xmemdup0: use stdnoreturn.h
[gnulib.git] / ChangeLog
1 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2
3         xmemdup0: use stdnoreturn.h
4         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7
8         sigpipe-die: use stdnoreturn.h
9         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12
13         openat: use stdnoreturn.h
14         * lib/openat.h: Include <stdnoreturn.h>.
15         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16         * modules/openat (Depends-on): Add stdnoreturn.
17
18         * lib/openat-die.c (openat_save_fail): Modernize comment.
19
20         * lib/xalloc-die.c (xalloc_die): Modernize comment.
21
22         * lib/glthread/thread.h: Modernize comment.
23
24         obstack: use _Noreturn
25         * lib/obstack.c (__attribute__): Remove macro.
26         (print_and_abort): Use _Noreturn.
27
28         c-stack: use _Noreturn
29         * lib/c-stack.c (die, overflow_handler, segv_handler):
30         Use _Noreturn rather than __attribute__((noreturn)).
31
32         argmatch-tests, exclude_tests: use _Noreturn
33         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34         Remove.
35         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
36
37         stdlib: use _Noreturn
38         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
39         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
40         * modules/stdlib (Depends-on): Add _Noreturn.
41         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
42
43         stdnoreturn-tests: new module
44         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
45
46         stdnoreturn: new module
47         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
48         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
49
50         _Noreturn-tests: new module
51         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
52
53         _Noreturn: new module
54         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
55         New section, mentioning it.
56         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
57
58         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
59
60 2011-07-11  Eric Blake  <eblake@redhat.com>
61
62         ffs: new module
63         * modules/ffs: New file.
64         * m4/ffs.m4: Likewise.
65         * lib/ffs.c: Likewise.
66         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
67         * modules/strings (Makefile.am): Substitute witness.
68         (Depends-on): Add c++defs.
69         * lib/strings.in.h (ffs): Declare.
70         * modules/ffs-tests: New test file.
71         * tests/test-ffs.c: Test new module.
72         * MODULES.html.sh (Integer arithmetic functions): Mention it.
73         * doc/posix-functions/ffs.texi (ffs): Likewise.
74
75         regex: avoid compiler warning
76         * lib/regex.c (includes): Include <strings.h>, for use of
77         strcasecmp in regcomp.c.
78         Reported by Joachim Schmitz.
79
80 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81
82         stdint: respect system's intmax_t if INTMAX_MAX
83         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
84         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
85         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
86         long but int64_t is long long, and where we will clash with the
87         system intmax_t if we override it.  See
88         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
89         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
90         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
91         similarly for UINTMAX_C.
92
93 2011-07-08  Bruno Haible  <bruno@clisp.org>
94
95         pthread_sigmask tests: Avoid a compiler warning.
96         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
97         non-zero.
98
99         sigprocmask tests: A better way to avoid a compiler warning.
100         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
101         (main): Complain if system() returns non-zero.
102         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
103
104 2011-07-08  Bruno Haible  <bruno@clisp.org>
105
106         pthread_sigmask: Work around IRIX bug.
107         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
108         bug.
109         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
110         there may be unblocked pending signals.
111         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
112
113 2011-07-08  Bruno Haible  <bruno@clisp.org>
114
115         pthread_sigmask: Work around Cygwin bug.
116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
117         bug.
118         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
119         the system's pthread_sigmask function.
120         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
121
122 2011-07-08  Bruno Haible  <bruno@clisp.org>
123
124         pthread_sigmask: Work around bug in single-threaded implementation.
125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
126         FreeBSD, HP-UX, Solaris bug.
127         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
128         * lib/pthread_sigmask.c: Include <stddef.h>.
129         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
130         the system's pthread_sigmask function.
131         * modules/pthread_sigmask (configure.ac): Invoke
132         gl_PREREQ_PTHREAD_SIGMASK.
133         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
134         HP-UX, Solaris.
135
136 2011-07-08  Eric Blake  <eblake@redhat.com>
137
138         test-sigprocmask: avoid compiler warning
139         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
140         * tests/test-sigprocmask.c (main): Use it to silence warning.
141         Reported by Jim Meyering.
142
143         test-snprintf: avoid compiler warning
144         * tests/test-snprintf.c (main): Avoid shadowed declaration.
145         * tests/test-vsnprintf.c (main): Likewise.
146         Reported by Jim Meyering.
147
148 2011-07-08  Bruno Haible  <bruno@clisp.org>
149
150         Tests for module 'pthread_sigmask'.
151         * modules/pthread_sigmask-tests: New file.
152         * tests/test-pthread_sigmask1.c: New file, based on
153         tests/test-sigprocmask.c.
154         * tests/test-pthread_sigmask2.c: New file.
155
156 2011-07-08  Jim Meyering  <meyering@redhat.com>
157
158         test-getopt.h: avoid warning about an unused variable
159         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
160
161 2011-07-07  Jim Meyering  <meyering@redhat.com>
162
163         maint: reduce list of files exempt from sc_prohibit_leading_TABs
164         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
165         now that it no longer contains leading TABs.
166         Remove unused "url=FIXME" statement.
167
168 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
169
170         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
171         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
172         When gl_THREADLIB is not in use, assume that the POSIX sematics
173         are desired.  This is better for Emacs, which uses POSIX semantics
174         on GNUish and/or POSIXish platforms, and does not use threads at
175         all otherwise.
176
177         pthread_sigmask: fix typo when testing for libraries
178         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
179         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
180
181 2011-07-08  Eric Blake  <eblake@redhat.com>
182
183         fts: introduce FTS_NOATIME
184         * lib/fts_.h (FTS_NOATIME): New bit flag.
185         (FTS_OPTIONMASK): Adjust.
186         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
187         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
188
189 2011-07-08  Bruno Haible  <bruno@clisp.org>
190
191         Tests for module 'thread'.
192         * modules/thread-tests: New file.
193         * tests/test-thread_self.c: New file.
194         * tests/test-thread_create.cc: New file.
195
196 2011-07-08  Bruno Haible  <bruno@clisp.org>
197
198         thread: Avoid gcc warnings when using gl_thread_self().
199         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
200         'void *'.
201         (gl_thread_self_pointer): Update.
202
203 2011-07-07  Bruno Haible  <bruno@clisp.org>
204
205         signal-c++-tests: Check declaration of pthread_sigmask.
206         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
207         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
208         $(LIB_PTHREAD_SIGMASK).
209
210 2011-07-07  Bruno Haible  <bruno@clisp.org>
211
212         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
213         * lib/signal.in.h (pthread_sigmask): Override if
214         REPLACE_PTHREAD_SIGMASK is 1.
215         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
216         REPLACE_PTHREAD_SIGMASK.
217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
218         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
219         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
220         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
221         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
222
223 2011-07-07  Bruno Haible  <bruno@clisp.org>
224
225         pthread_sigmask: Ensure declaration in <signal.h>.
226         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
227         include <pthread.h>.
228         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
229         problem.
230
231 2011-07-07  Bruno Haible  <bruno@clisp.org>
232
233         pthread_sigmask: Document the module.
234         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
235
236 2011-07-07  Bruno Haible  <bruno@clisp.org>
237
238         pthread_sigmask: Follow gnulib conventions.
239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
240         gl_PTHREAD_SIGMASK.
241         * modules/pthread_sigmask (configure.ac): Update.
242
243 2011-07-07  Bruno Haible  <bruno@clisp.org>
244
245         pthread_sigmask: Make declaration C++ safe.
246         * lib/signal.in.h: In two special conditions, just do an #include_next.
247         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
248         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
249         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
250         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
251         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
252         not REPLACE_PTHREAD_MASK.
253         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
254         not REPLACE_PTHREAD_MASK.
255         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
256
257 2011-07-07  Bruno Haible  <bruno@clisp.org>
258
259         pthread_sigmask: Fix return value.
260         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
261         * lib/pthread_sigmask.c: New file.
262         * modules/pthread_sigmask (Files): Add it.
263         (configure.ac): Invoke AC_LIBOBJ.
264
265 2011-07-07  Eric Blake  <eblake@redhat.com>
266
267         getopt: more portable argv creation
268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
269         const, use char arrays rather than strings.
270         Suggested by Paul Eggert.
271
272 2011-07-07  Bruno Haible  <bruno@clisp.org>
273
274         Tests for module 'sigprocmask'.
275         * modules/sigprocmask-tests: New file.
276         * tests/test-sigprocmask.c: New file.
277
278 2011-07-07  Bruno Haible  <bruno@clisp.org>
279
280         float tests: Tweak.
281         * tests/test-float.c (main): Tweak skip message.
282
283 2011-07-07  Eric Blake  <eblake@redhat.com>
284
285         getopt: avoid compiler warning during configure
286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
287         assigning string literals to non-const pointer.
288
289         getopt-gnu: avoid crash in glibc getopt
290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
291         * tests/test-getopt.h (test_getopt): Enhance test.
292         * tests/test-getopt_long.h (test_getopt_long): Likewise.
293         * doc/posix-functions/getopt.texi (getopt): Document it.
294         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
295         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
296         Likewise.
297
298 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
299
300         getopt: handle W; without long options in getopt [BZ #12922]
301         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
302         but no long options are defined, just return 'W'.
303
304 2011-07-07  Bruno Haible  <bruno@clisp.org>
305
306         Avoid literal tabs.
307         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
308         variable containing a tab instead of a literal tab.
309         Reported by Jim Meyering.
310
311 2011-07-07  Bruno Haible  <bruno@clisp.org>
312
313         Comments.
314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
315
316 2011-07-06  Bruno Haible  <bruno@clisp.org>
317
318         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
319         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
320         <winsock2.h>.
321         (rpl_fd_isset, FD_ISSET): New definitions, copied from
322         lib/sys_socket.in.h.
323         (close, gethostname): Hide declarations from <winsock2.h>.
324         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
325         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
326         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
327         (select): Don't override if gnulib's <sys/select.h> was already
328         included.
329         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
330         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
331         setsockopt, shutdown, select): Tweak indentation.
332
333 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
334
335         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
336         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
337         in an application that does not use the sys_select module.
338
339 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
340
341         poll: do not return 0 on timeout=-1
342         * lib/poll.c: Loop with yield if no events occured
343
344 2011-07-06  Eric Blake  <eblake@redhat.com>
345
346         pthread_sigmask: always replace when not using pthread
347         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
348         replacement when using some threading other than pthread.  Fix
349         logic bug.
350
351 2011-07-06  Bruno Haible  <bruno@clisp.org>
352
353         Comments.
354         * m4/printf.m4: Update comments about mingw.
355
356 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
357
358         sys_select: define sigset_t more portably
359         * lib/sys_select.in.h: Always include <sys/types.h>, since
360         we now need sigset_t and mingw defines it there.
361         Include <signal.h> before split inclusion guard, to avoid
362         mishaps on Solaris, whose <signal.h> eventually includes us.
363         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
364         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
365         which come from ...
366         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
367         gl_CHECK_TYPE_SIGSET_T.
368         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
369         does the real work.
370         * modules/sys_select (Depends-on): Add 'signal'.
371
372         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
373         Suggested by Bruno Haible.
374
375         pselect: Use pthread_sigmask, not sigprocmask.
376         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
377         multithreaded apps better than sigprocmask does.
378         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
379         sigprocmask directly.
380
381 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
382
383         * lib/pselect.c (pselect): Use plain name, without "rpl_".
384         Don't #undef,  since we don't need any underlying pselect.
385         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
386         (Depends-on): Add select.
387         (Link): Add $(LIBSOCKET).
388         These changes suggested by Bruno Haible.
389
390         pselect: document better
391         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
392         * doc/posix-functions/pselect.texi (pselect): Document new module.
393
394         pthread_sigmask: new module
395         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
396         * doc/posix-functions/pthread_sigmask.texi: Document new module.
397         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
398         This is done only as a macro; I don't know how well that'll
399         work for C++.  Move <sys/types.h> include before the include_next,
400         to avoid mishap on Solaris.
401         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
402         * modules/signal (Makefile.am): Substitute the check's results.
403         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
404
405         test-pselect: new module
406         * modules/pselect-tests, tests/test-pselect.c: New files.
407         * tests/test-select.c, tests/test-sys_select-c++.cc:
408         If TEST_PSELECT is defined, test pselect instead of testing select.
409
410         * tests/test-sys_select.c (sigset_t): Test for it, too.
411         Suggested by Bruno Haible.
412
413 2011-07-05  Eric Blake  <eblake@redhat.com>
414
415         snprintf: guarantee %1$d, for libintl
416         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
417         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
418         * doc/posix-functions/snprintf.texi (snprintf): Update.
419         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
420         * tests/test-snprintf.c (main): Enhance test.
421         * tests/test-vsnprintf.c (main): Likewise.
422
423 2011-07-05  Jim Meyering  <meyering@redhat.com>
424
425         maint: exempt stdio-read.c and stdio-write.c from the cppi check
426         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
427         per Bruno's request, to accommodate this idiom (no space after "#")
428         even when the function is inside an #if block:
429         char *
430         gets (char *s)
431         #undef gets
432         {
433           ...
434         }
435
436 2011-07-04  Jim Meyering  <meyering@redhat.com>
437
438         maint: indent with spaces, not TABs, and add a rule to check this
439         * tests/test-userspec.c: Indent with spaces, not TABs.
440         * tests/test-argp.c: Likewise.
441         * tests/test-c-stack2.sh: Likewise.
442         * tests/test-parse-duration.sh: Likewise
443         * m4/strtod.m4: Likewise.
444         * m4/alloca.m4: Likewise.
445         * m4/pselect.m4: Likewise.
446         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
447
448 2011-07-03  Jim Meyering  <meyering@redhat.com>
449
450         maint.mk: correct omissions in prohibit_argmatch_without_use check
451         This rule would mistakenly report that argmatch.h is included without
452         use even when both the argmatch and invalid_arg macro were used.
453         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
454         of argmatch and invalid_arg.
455
456 2011-07-03  Bruno Haible  <bruno@clisp.org>
457
458         Comments about EINTR.
459         * lib/safe-read.h: Explain the purpose of this module.
460         * lib/safe-write.h: Likewise.
461         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
462         module.
463         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
464         module.
465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
466
467 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
468
469         xnanosleep: Rewrite to use new dtotimespec module.
470         It has the conversion code that used to be in xnanosleep.
471         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
472         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
473         (TIME_T_MAX): Remove.
474         (xnanosleep): Rewrite in terms of dtotimespec.
475         * modules/xnanosleep (Depends-on): Add dtotimespec.
476         Remove intprops, stdbool.
477
478         timespec-add, timespec-sub: new modules
479         * lib/timespec.h (timespec_add, timespec_sub): New decls.
480         * lib/timespec-add.c, lib/timespec-sub.c:
481         * modules/timespec-add, modules/timespec-sub: New files.
482
483         dtotimespec: new module
484         * lib/timespec.h (dtotimespec): New decl.
485         * lib/dtotimespec.c, modules/dtotimespec: New files.
486
487         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
488
489         pselect: new module
490         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
491         (pselect): New decls.
492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
493         since the standard pselect decl uses 'restrict'.
494         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
495         HAVE_PSELECT, REPLACE_PSELECT.
496         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
497         HAVE_PSELECT, REPLACE_PSELECT.
498         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
499
500         sys_select: don't depend on sys_socket
501         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
503         This fix works on GNU and GNU-like platforms, but has not been tested
504         on native Windows.
505         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
507         gl_HEADER_SYS_SOCKET.
508         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
509         gl_PREREQ_SYS_H_WINSOCK2.
510
511 2011-06-29  Eric Blake  <eblake@redhat.com>
512
513         pipe2: fix C89 compile problem
514         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
515         Reported by Bruno Haible.
516
517         pipe, pipe2: don't corrupt fd on error
518         * lib/pipe.c (pipe): Leave fd unchanged on error.
519         * lib/pipe2.c (pipe2): Likewise.
520         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
521         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
522
523 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
524
525         mmap-anon: do not use regular expressions inadvertently
526         * m4/mmap-anon.m4: Remove trailing period from strings sought
527         in the output.
528
529 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
530
531         nanosleep: fix integer overflow problem
532         * lib/nanosleep.c (my_usleep): Don't assume signed integer
533         arithmetic wraps around on overflow.
534
535         nanosleep: simplify carrying
536         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
537         first call to the underyling nanosleep, not for the last one.
538         This doesn't fix any bugs, but it simplifies the computation of
539         the remaining delay.  Found while auditing integer overflow issues.
540
541         dup2: remove test for existence of fcntl
542         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
543         "#if HAVE_FCNTL", in the configure-time test program.
544         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
545         and therefore speeds up "configure" a bit.  Found while
546         adding the dup2 module to Emacs.
547
548 2011-06-24  Eric Blake  <eblake@redhat.com>
549
550         maint.mk: enhance useless header checks
551         * top/maint.mk (_sc_header_without_use): Check both include
552         styles.
553         (sc_prohibit_assert_without_use)
554         (sc_prohibit_close_stream_without_use)
555         (sc_prohibit_getopt_without_use)
556         (sc_prohibit_quotearg_without_use)
557         (sc_prohibit_quote_without_use)
558         (sc_prohibit_long_options_without_use)
559         (sc_prohibit_inttostr_without_use)
560         (sc_prohibit_ignore_value_without_use)
561         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
562         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
563         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
564         (sc_prohibit_hash_pjw_without_use)
565         (sc_prohibit_safe_read_without_use)
566         (sc_prohibit_argmatch_without_use)
567         (sc_prohibit_canonicalize_without_use)
568         (sc_prohibit_root_dev_ino_without_use)
569         (sc_prohibit_openat_without_use)
570         (sc_prohibit_c_ctype_without_use)
571         (sc_prohibit_signal_without_use)
572         (sc_prohibit_stdio--_without_use)
573         (sc_prohibit_stdio-safer_without_use)
574         (sc_prohibit_strings_without_use)
575         (sc_prohibit_intprops_without_use)
576         (sc_prohibit_stddef_without_use)
577         (sc_prohibit_xfreopen_without_use): Update clients.
578
579 2011-06-24  Jim Meyering  <meyering@redhat.com>
580
581         syntax-check: keep one maint.mk rule in sync with its header
582         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
583         of the bug Eric has just fixed, with today's commit 25e4c2ec.
584         I prefer to avoid temporary files here, so use <(...), but that
585         is not supported by /bin/sh, so...
586         (SHELL): Define to /bin/bash.
587
588 2011-06-24  Eric Blake  <eblake@redhat.com>
589
590         maint.mk: update sc_prohibit_intprops_without_use
591         * top/maint.mk (_intprops_names): Match recent changes.
592
593 2011-06-24  Bruno Haible  <bruno@clisp.org>
594
595         strerror-override: No-op tweak.
596         * lib/strerror-override.h (strerror_override): Reorder conditions,
597         for consistency with lib/strerror-override.c.
598
599 2011-06-23  Eric Blake  <eblake@redhat.com>
600
601         maint.mk: test further PATH_MAX issues
602         * top/maint.mk (sc_prohibit_path_max_array): Rename...
603         (sc_prohibit_path_max_allocation): ...and also test alloca.
604         Suggested by Jim Meyering.
605
606 2011-06-22  Eric Blake  <eblake@redhat.com>
607
608         maint.mk: add syntax-check to avoid char[PATH_MAX]
609         * top/maint.mk (sc_prohibit_path_max_array): New rule.
610
611         stat: be robust to PATH_MAX definition
612         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
613         * modules/stat (Depends-on): Add verify.
614
615         link: work around IRIX bug
616         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
617         * lib/link.c (rpl_link): Work around it.
618         * tests/test-link.h (test_link): Enhance test.
619         * doc/posix-functions/link.texi (link): Document the bug.
620
621         getopt: silence clang warning
622         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
623         dereference.
624         Reported by Gustavo Martin Domato.
625
626 2011-06-22  Jim Meyering  <meyering@redhat.com>
627
628         bootstrap: do not insert a blank line into each .gitignore file
629         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
630
631 2011-06-21  Eric Blake  <eblake@redhat.com>
632
633         perror: test for output mismatch
634         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
635         perror on IRIX.
636
637         strerror_r: fix OpenBSD behavior on out-of-range
638         * lib/strerror_r.c (strerror_r): Always use maximal string.
639         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
640
641         strerror_r: fix OpenBSD behavior on 0
642         * lib/strerror-override.c (strerror_override): Also override 0
643         when needed.
644         * lib/strerror-override.h (strerror_override): Likewise.
645         * lib/strerror.c (strerror): Simplify, now that 0 override is done
646         earlier.
647         * lib/strerror_r.c (strerror_r): Likewise.
648         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
649         behavior...
650         (gl_FUNC_STRERROR_0): ...into new macro.
651         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
652         is overridden.
653         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
654         * modules/strerror-override (Files): Add strerror.m4.
655         (configure.ac): Also provide override for 0 when needed.
656         * doc/posix-functions/strerror.texi (strerror): Document this.
657         * doc/posix-functions/perror.texi (perror): Likewise.
658
659         perror: adjust array size
660         * modules/perror (Depends-on): Add strerror-override.
661         * lib/perror.c (perror): Use it to avoid magic number.
662
663         strerror-override: reduce size
664         * lib/strerror-override.c (strerror_override): Use fewer lines.
665
666 2011-06-20  Bruno Haible  <bruno@clisp.org>
667
668         pathmax: Ensure correct value for PATH_MAX on HP-UX.
669         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
670
671 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
672
673         alloca: port to compilers that can optimize like GCC 4.6.0
674         * lib/alloca.c (find_stack_direction): New signature, taken from
675         Autoconf git.  This works with GCC 4.6.0.  This code should never
676         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
677         be used with other compilers that optimize as well as GCC 4.6.0 does.
678         (alloca): Adjust to new signature.
679         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
680         New macro, which patches Autoconf in a similar way.
681
682         c-stack: stop worrying about stack direction
683         * lib/c-stack.c (find_stack_direction): Remove.
684         (segv_handler): Don't worry about stack direction growth, as it's
685         too much of a pain to configure this correctly, given how compilers
686         are optimizing-away our stack-growth detection code.  Instead, assume
687         that any access to just before or just after the stack is OK.
688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
689         Don't require AC_FUNC_ALLOCA; no longer needed.
690
691 2011-06-20  Eric Blake  <eblake@redhat.com>
692
693         test-stat: don't allocate PATH_MAX bytes
694         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
695         PATH_MAX-sized buffer.
696         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
697         * modules/stat-tests (Depends-on): Likewise.
698         * tests/test-fstatat.c (includes): Drop pathmax.h.
699         * tests/test-stat.c (includes): Likewise.
700         Reported by Bruno Haible.
701
702 2011-06-20  Bruno Haible  <bruno@clisp.org>
703
704         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
705         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
706         * lib/float.c: New file.
707         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
708         REPLACE_FLOAT_LDBL.
709         * modules/float (Files): Add lib/float.c.
710         (configure.ac): Invoke AC_LIBOBJ.
711         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
712
713 2011-06-20  Bruno Haible  <bruno@clisp.org>
714
715         Tests for module 'float'.
716         * modules/float-tests: New file.
717         * tests/test-float.c: New file.
718
719 2011-06-19  Bruno Haible  <bruno@clisp.org>
720
721         isinf: Coding style.
722         * lib/isinf.c: Use GNU coding style.
723
724 2011-06-19  Bruno Haible  <bruno@clisp.org>
725
726         linkat test: Avoid test failure on AIX 7.1.
727         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
728         * tests/test-link.h (test_link): Likewise.
729
730 2011-06-19  Bruno Haible  <bruno@clisp.org>
731
732         pread test: Avoid test failure on OpenBSD 4.9.
733         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
734
735 2011-06-19  Bruno Haible  <bruno@clisp.org>
736
737         sprintf-posix: Fix test failure on AIX 7.1.
738         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
739         * doc/posix-functions/dprintf.texi: Mention limited precision problem
740         on AIX.
741         * doc/posix-functions/fprintf.texi: Likewise.
742         * doc/posix-functions/printf.texi: Likewise.
743         * doc/posix-functions/snprintf.texi: Likewise.
744         * doc/posix-functions/sprintf.texi: Likewise.
745         * doc/posix-functions/vdprintf.texi: Likewise.
746         * doc/posix-functions/vfprintf.texi: Likewise.
747         * doc/posix-functions/vprintf.texi: Likewise.
748         * doc/posix-functions/vsnprintf.texi: Likewise.
749         * doc/posix-functions/vsprintf.texi: Likewise.
750
751 2011-06-19  Bruno Haible  <bruno@clisp.org>
752
753         roundl-ieee: Fix test failure on AIX 7.1.
754         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
755         * doc/posix-functions/roundl.texi: Mention problem with negative
756         arguments.
757
758 2011-06-19  Bruno Haible  <bruno@clisp.org>
759
760         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
761         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
762         * doc/posix-functions/round.texi: Mention problem with negative
763         arguments.
764         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
765
766 2011-06-19  Bruno Haible  <bruno@clisp.org>
767
768         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
769         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
770         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
771         * doc/posix-functions/roundf.texi: Mention problem with negative
772         arguments.
773         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
774
775 2011-06-19  Bruno Haible  <bruno@clisp.org>
776
777         ceilf-ieee: Work around bug on MacOS X 10.5.
778         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
779
780         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
781         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
782         IEEE compliant, avoid compiler optimizations.
783         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
784         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
785         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
786         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
787         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
788         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
789         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
790         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
791         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
793
794 2011-06-19  Bruno Haible  <bruno@clisp.org>
795
796         ceilf-ieee: Work around bug on AIX 7.1.
797         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
798         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
799
800 2011-06-19  Bruno Haible  <bruno@clisp.org>
801
802         ceil-ieee: Work around bug on AIX 7.1.
803         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
804         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
805
806 2011-06-18  Bruno Haible  <bruno@clisp.org>
807
808         fsync test: Avoid test failure on MacOS X and AIX.
809         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
810         EINVAL.
811
812 2011-06-18  Bruno Haible  <bruno@clisp.org>
813
814         openat, fdopendir tests: Fix link errors.
815         * modules/openat-tests (Depends-on): Add progname.
816         * modules/fdopendir-tests (Depends-on): Likewise.
817         * tests/test-fchownat.c: Include progname.h.
818         (main): Call set_program_name.
819         * tests/test-fstatat.c: Include progname.h.
820         (main): Call set_program_name.
821         * tests/test-mkdirat.c: Include progname.h.
822         (main): Call set_program_name.
823         * tests/test-openat.c: Include progname.h.
824         (main): Call set_program_name.
825         * tests/test-unlinkat.c: Include progname.h.
826         (main): Call set_program_name.
827         * tests/test-fdopendir.c: Include progname.h.
828         (main): Call set_program_name.
829
830 2011-06-18  Bruno Haible  <bruno@clisp.org>
831
832         Doc update.
833         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
834         HP-UX.
835         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
836
837 2011-06-18  Bruno Haible  <bruno@clisp.org>
838
839         getcwd tests: Avoid compilation error on HP-UX 11.31.
840         * modules/getcwd-tests (Depends-on): Add pathmax.
841         * tests/test-getcwd.c: Include pathmax.h.
842
843 2011-06-18  Bruno Haible  <bruno@clisp.org>
844
845         isfinite, isinf: Fix link error on AIX 6 and 7.
846         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
847         needed, also test the macro with a 'float' argument.
848         * m4/isinf.m4 (gl_ISINF): Likewise.
849
850 2011-06-18  Bruno Haible  <bruno@clisp.org>
851
852         getloadavg: Don't clobber LIBS. Regression from previous commit.
853         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
854         AC_CHECK_LIB from here...
855         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
856         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
857         gl_func_getloadavg_done.
858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
859
860 2011-06-18  Bruno Haible  <bruno@clisp.org>
861
862         clean-temp: Improve documentation.
863         * lib/clean-temp.h: Explain better how to use this module.
864         Reported by John Darrington <john@darrington.wattle.id.au>.
865
866 2011-06-17  Bruno Haible  <bruno@clisp.org>
867
868         pread, pwrite: Avoid cc warning on AIX.
869         * lib/unistd.in.h (pread): Undefine before defining as a macro.
870         (pwrite): Likewise.
871
872 2011-06-17  Bruno Haible  <bruno@clisp.org>
873
874         spawn-pipe tests: Fix link error.
875         * tests/test-spawn-pipe-child.c: Undefine fprintf.
876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
877
878 2011-06-17  Bruno Haible  <bruno@clisp.org>
879
880         Tests: Remove unnecessary dependency.
881         * modules/canonicalize-tests (Depends-on): Remove progname.
882         * modules/chown-tests (Depends-on): Likewise.
883         * modules/dirname-tests (Depends-on): Likewise.
884         * modules/fdopendir-tests (Depends-on): Likewise.
885         * modules/fdutimensat-tests (Depends-on): Likewise.
886         * modules/hash-tests (Depends-on): Likewise.
887         * modules/lchown-tests (Depends-on): Likewise.
888         * modules/linkat-tests (Depends-on): Likewise.
889         * modules/renameat-tests (Depends-on): Likewise.
890         * modules/spawn-pipe-tests (Depends-on): Likewise.
891         * modules/utimensat-tests (Depends-on): Likewise.
892
893 2011-06-17  Bruno Haible  <bruno@clisp.org>
894
895         spawn-pipe tests: Fix link error.
896         * tests/test-spawn-pipe-child.c: Undefine fflush.
897
898 2011-06-17  Bruno Haible  <bruno@clisp.org>
899
900         Fix tests link errors.
901         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
902         * modules/chown-tests (Makefile.am): Don't link test-chown with
903         LIBINTL.
904         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
905         LIBINTL.
906         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
907         LIBINTL.
908         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
909         LIBINTL.
910
911 2011-06-16  Bruno Haible  <bruno@clisp.org>
912
913         crypto/gc-sha1: Fix recent regression.
914         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
915         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
916
917         crypto/gc-md5: Fix recent regression.
918         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
919
920         crypto/gc-md4: Fix recent regression.
921         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
922         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
923
924         crypto/gc-arctwo: Fix recent regression.
925         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
926         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
927
928         crypto/gc-rijndael: Fix recent regression.
929         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
930         (configure.ac): Invoke AC_LIBOBJ here.
931         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
933
934         crypto/gc-hmac-sha1: Fix recent regression.
935         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
936         (configure.ac): Invoke AC_LIBOBJ here.
937         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
939
940         crypto/gc-hmac-md5: Fix recent regression.
941         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
942         (configure.ac): Invoke AC_LIBOBJ here.
943         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
945
946         crypto/gc-des: Fix recent regression.
947         * modules/crypto/gc-des (Files): Remove m4/des.m4.
948         (configure.ac): Invoke AC_LIBOBJ here.
949         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
951
952         crypto/gc-arcfour: Fix recent regression.
953         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
954         (configure.ac): Invoke AC_LIBOBJ here.
955         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
957
958 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
959
960         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
961         After the 2011-05-21 change, this macro requires
962         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
963         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
964
965 2011-06-16  Bruno Haible  <bruno@clisp.org>
966
967         fprintftime: Move AC_LIBOBJ invocations to module description.
968         * m4/fprintftime.m4: Remove file.
969         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
970         (configure.ac): Remove gl_FPRINTFTIME call.
971         (Makefile.am): Augment lib_SOURCES.
972         Reported by Jim Meyering.
973
974 2011-06-16  Bruno Haible  <bruno@clisp.org>
975
976         tmpfile-safer: Finish 2011-05-23 commit.
977         * m4/stdio-safer.m4: Really remove file.
978         Reported by Jim Meyering.
979
980 2011-06-16  Bruno Haible  <bruno@clisp.org>
981
982         syntax-check: Fix typo.
983         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
984         printf-posix.m4.
985         Reported by Jim Meyering.
986
987 2011-06-13  Jim Meyering  <meyering@redhat.com>
988
989         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
990         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
991
992 2011-05-23  Bruno Haible  <bruno@clisp.org>
993
994         yesno: Move AC_LIBOBJ invocations to module description.
995         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
996         * modules/yesno (Makefile.am): Augment lib_SOURCES.
997
998 2011-05-23  Bruno Haible  <bruno@clisp.org>
999
1000         xstrtol: Move AC_LIBOBJ invocations to module description.
1001         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1002         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1003
1004 2011-05-23  Bruno Haible  <bruno@clisp.org>
1005
1006         xstrtold: Move AC_LIBOBJ invocations to module description.
1007         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1008         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1009
1010 2011-05-23  Bruno Haible  <bruno@clisp.org>
1011
1012         xstrtod: Move AC_LIBOBJ invocations to module description.
1013         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1014         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1015
1016 2011-05-23  Bruno Haible  <bruno@clisp.org>
1017
1018         xnanosleep: Move AC_LIBOBJ invocations to module description.
1019         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1020         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1021
1022 2011-05-23  Bruno Haible  <bruno@clisp.org>
1023
1024         xgetcwd: Move AC_LIBOBJ invocations to module description.
1025         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1026         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1027
1028 2011-05-23  Bruno Haible  <bruno@clisp.org>
1029
1030         xalloc: Move AC_LIBOBJ invocations to module description.
1031         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1032         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1033
1034 2011-05-23  Bruno Haible  <bruno@clisp.org>
1035
1036         write-any-file: Move AC_LIBOBJ invocations to module description.
1037         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1038         invocation.
1039         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1040
1041 2011-05-23  Bruno Haible  <bruno@clisp.org>
1042
1043         utimens: Move AC_LIBOBJ invocations to module description.
1044         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1045         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1046
1047 2011-05-23  Bruno Haible  <bruno@clisp.org>
1048
1049         utimecmp: Move AC_LIBOBJ invocations to module description.
1050         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1051         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1052
1053 2011-05-23  Bruno Haible  <bruno@clisp.org>
1054
1055         userspec: Move AC_LIBOBJ invocations to module description.
1056         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1057         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1058
1059 2011-05-23  Bruno Haible  <bruno@clisp.org>
1060
1061         unlinkdir: Move AC_LIBOBJ invocations to module description.
1062         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1063         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1064
1065 2011-05-23  Bruno Haible  <bruno@clisp.org>
1066
1067         unistd-safer: Move AC_LIBOBJ invocations to module description.
1068         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1069         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1070
1071 2011-05-23  Bruno Haible  <bruno@clisp.org>
1072
1073         tempname: Move AC_LIBOBJ invocations to module description.
1074         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1075         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1076
1077 2011-05-23  Bruno Haible  <bruno@clisp.org>
1078
1079         strftime: Move AC_LIBOBJ invocations to module description.
1080         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1081         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1082
1083 2011-05-23  Bruno Haible  <bruno@clisp.org>
1084
1085         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1086         * m4/stdlib-safer.m4: Remove file.
1087         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1088         (configure.ac): Remove gl_STDLIB_SAFER call.
1089         (Makefile.am): Augment lib_SOURCES.
1090
1091 2011-05-23  Bruno Haible  <bruno@clisp.org>
1092
1093         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1094         * m4/stdio-safer.m4: Remove file.
1095         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1096         (configure.ac): Remove gl_TMPFILE_SAFER call.
1097         (Makefile.am): Augment lib_SOURCES.
1098
1099 2011-05-23  Bruno Haible  <bruno@clisp.org>
1100
1101         popen-safer: Move AC_LIBOBJ invocations to module description.
1102         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1103         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1104         (configure.ac): Remove gl_POPEN_SAFER call.
1105         (Makefile.am): Augment lib_SOURCES.
1106
1107 2011-05-23  Bruno Haible  <bruno@clisp.org>
1108
1109         freopen-safer: Move AC_LIBOBJ invocations to module description.
1110         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1111         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1112         (configure.ac): Remove gl_FREOPEN_SAFER call.
1113         (Makefile.am): Augment lib_SOURCES.
1114
1115 2011-05-23  Bruno Haible  <bruno@clisp.org>
1116
1117         fopen-safer: Move AC_LIBOBJ invocations to module description.
1118         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1119         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1120         (configure.ac): Remove gl_FOPEN_SAFER call.
1121         (Makefile.am): Augment lib_SOURCES.
1122
1123 2011-05-23  Bruno Haible  <bruno@clisp.org>
1124
1125         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1126         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1127         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1128
1129 2011-05-23  Bruno Haible  <bruno@clisp.org>
1130
1131         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1132         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1133         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1134
1135 2011-05-23  Bruno Haible  <bruno@clisp.org>
1136
1137         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1138         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1139         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1140
1141 2011-05-23  Bruno Haible  <bruno@clisp.org>
1142
1143         settime: Move AC_LIBOBJ invocations to module description.
1144         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1145         * modules/settime (Makefile.am): Augment lib_SOURCES.
1146
1147 2011-05-23  Bruno Haible  <bruno@clisp.org>
1148
1149         savedir: Move AC_LIBOBJ invocations to module description.
1150         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1151         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1152
1153 2011-05-23  Bruno Haible  <bruno@clisp.org>
1154
1155         save-cwd: Move AC_LIBOBJ invocations to module description.
1156         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1157         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1158
1159 2011-05-23  Bruno Haible  <bruno@clisp.org>
1160
1161         same: Move AC_LIBOBJ invocations to module description.
1162         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1163         * modules/same (Makefile.am): Augment lib_SOURCES.
1164
1165 2011-05-23  Bruno Haible  <bruno@clisp.org>
1166
1167         safe-write: Move AC_LIBOBJ invocations to module description.
1168         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1169         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1170         instead of gl_SAFE_WRITE.
1171         (Makefile.am): Augment lib_SOURCES.
1172
1173 2011-05-23  Bruno Haible  <bruno@clisp.org>
1174
1175         safe-read: Move AC_LIBOBJ invocations to module description.
1176         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1177         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1178         of gl_SAFE_READ.
1179         (Makefile.am): Augment lib_SOURCES.
1180
1181 2011-05-23  Bruno Haible  <bruno@clisp.org>
1182
1183         safe-alloc: Move AC_LIBOBJ invocations to module description.
1184         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1185         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1186
1187 2011-05-23  Bruno Haible  <bruno@clisp.org>
1188
1189         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1190         * m4/rijndael.m4: Remove file.
1191         * modules/crypto/rijndael (Files): Remove it.
1192         (configure.ac): Remove gl_RIJNDAEL call.
1193         (Makefile.am): Augment lib_SOURCES.
1194
1195 2011-05-23  Bruno Haible  <bruno@clisp.org>
1196
1197         readtokens: Move AC_LIBOBJ invocations to module description.
1198         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1199         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1200
1201 2011-05-23  Bruno Haible  <bruno@clisp.org>
1202
1203         read-file: Move AC_LIBOBJ invocations to module description.
1204         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1205         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1206         of gl_FUNC_READ_FILE.
1207         (Makefile.am): Augment lib_SOURCES.
1208
1209 2011-05-23  Bruno Haible  <bruno@clisp.org>
1210
1211         quotearg: Move AC_LIBOBJ invocations to module description.
1212         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1213         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1214
1215 2011-05-23  Bruno Haible  <bruno@clisp.org>
1216
1217         quote: Move AC_LIBOBJ invocations to module description.
1218         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1219         * modules/quote (Makefile.am): Augment lib_SOURCES.
1220
1221 2011-05-23  Bruno Haible  <bruno@clisp.org>
1222
1223         posixver: Move AC_LIBOBJ invocations to module description.
1224         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1225         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1226
1227 2011-05-23  Bruno Haible  <bruno@clisp.org>
1228
1229         posixtm: Move AC_LIBOBJ invocations to module description.
1230         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1231         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1232
1233 2011-05-23  Bruno Haible  <bruno@clisp.org>
1234
1235         physmem: Move AC_LIBOBJ invocations to module description.
1236         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1237         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1238
1239 2011-05-23  Bruno Haible  <bruno@clisp.org>
1240
1241         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1242         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1243         invocation.
1244         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1245
1246 2011-05-23  Bruno Haible  <bruno@clisp.org>
1247
1248         mpsort: Move AC_LIBOBJ invocations to module description.
1249         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1250         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1251
1252 2011-05-23  Bruno Haible  <bruno@clisp.org>
1253
1254         modechange: Move AC_LIBOBJ invocations to module description.
1255         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1256         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1257
1258 2011-05-23  Bruno Haible  <bruno@clisp.org>
1259
1260         mkdir-p: Move AC_LIBOBJ invocations to module description.
1261         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1262         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1263
1264 2011-05-23  Bruno Haible  <bruno@clisp.org>
1265
1266         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1267         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1268         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1269
1270 2011-05-23  Bruno Haible  <bruno@clisp.org>
1271
1272         mgetgroups: Move AC_LIBOBJ invocations to module description.
1273         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1274         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1275
1276 2011-05-23  Bruno Haible  <bruno@clisp.org>
1277
1278         memxor: Move AC_LIBOBJ invocations to module description.
1279         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1280         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1281
1282 2011-05-23  Bruno Haible  <bruno@clisp.org>
1283
1284         memcoll: Move AC_LIBOBJ invocations to module description.
1285         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1286         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1287
1288 2011-05-23  Bruno Haible  <bruno@clisp.org>
1289
1290         memcasecmp: Move AC_LIBOBJ invocations to module description.
1291         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1292         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1293
1294 2011-05-23  Bruno Haible  <bruno@clisp.org>
1295
1296         crypto/md5: Move AC_LIBOBJ invocations to module description.
1297         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1298         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1299
1300 2011-05-23  Bruno Haible  <bruno@clisp.org>
1301
1302         crypto/md4: Move AC_LIBOBJ invocations to module description.
1303         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1304         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1305
1306 2011-05-23  Bruno Haible  <bruno@clisp.org>
1307
1308         crypto/md2: Move AC_LIBOBJ invocations to module description.
1309         * m4/md2.m4: Remove file.
1310         * modules/crypto/md2 (Files): Remove it.
1311         (configure.ac): Remove gl_MD2 call.
1312         (Makefile.am): Augment lib_SOURCES.
1313
1314 2011-05-23  Bruno Haible  <bruno@clisp.org>
1315
1316         long-options: Move AC_LIBOBJ invocations to module description.
1317         * m4/long-options.m4: Remove file.
1318         * modules/long-options (Files): Remove it.
1319         (configure.ac): Remove gl_LONG_OPTIONS call.
1320         (Makefile.am): Augment lib_SOURCES.
1321
1322 2011-05-23  Bruno Haible  <bruno@clisp.org>
1323
1324         i-ring: Move AC_LIBOBJ invocations to module description.
1325         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1326         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1327
1328 2011-05-23  Bruno Haible  <bruno@clisp.org>
1329
1330         idcache: Move AC_LIBOBJ invocations to module description.
1331         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1332         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1333
1334 2011-05-23  Bruno Haible  <bruno@clisp.org>
1335
1336         human: Move AC_LIBOBJ invocations to module description.
1337         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1338         * modules/human (Makefile.am): Augment lib_SOURCES.
1339
1340 2011-05-23  Bruno Haible  <bruno@clisp.org>
1341
1342         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1343         * m4/hmac-sha1.m4: Remove file.
1344         * modules/crypto/hmac-sha1 (Files): Remove it.
1345         (configure.ac): Remove gl_HMAC_SHA1 call.
1346         (Makefile.am): Augment lib_SOURCES.
1347
1348 2011-05-23  Bruno Haible  <bruno@clisp.org>
1349
1350         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1351         * m4/hmac-md5.m4: Remove file.
1352         * modules/crypto/hmac-md5 (Files): Remove it.
1353         (configure.ac): Remove gl_HMAC_MD5 call.
1354         (Makefile.am): Augment lib_SOURCES.
1355
1356 2011-05-23  Bruno Haible  <bruno@clisp.org>
1357
1358         hash: Move AC_LIBOBJ invocations to module description.
1359         * m4/hash.m4: Remove file.
1360         * modules/hash (Files): Remove it.
1361         (configure.ac): Remove gl_HASH call.
1362         (Makefile.am): Augment lib_SOURCES.
1363
1364 2011-05-23  Bruno Haible  <bruno@clisp.org>
1365
1366         hard-locale: Move AC_LIBOBJ invocations to module description.
1367         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1368         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1369
1370 2011-05-23  Bruno Haible  <bruno@clisp.org>
1371
1372         getugroups: Move AC_LIBOBJ invocations to module description.
1373         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1374         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1375
1376 2011-05-23  Bruno Haible  <bruno@clisp.org>
1377
1378         gettime: Move AC_LIBOBJ invocations to module description.
1379         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1380         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1381
1382 2011-05-23  Bruno Haible  <bruno@clisp.org>
1383
1384         getndelim2: Move AC_LIBOBJ invocations to module description.
1385         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1386         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1387
1388 2011-05-23  Bruno Haible  <bruno@clisp.org>
1389
1390         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1391         * m4/gc-pbkdf2-sha1.m4: Remove file.
1392         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1393         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1394         (Makefile.am): Augment lib_SOURCES.
1395
1396 2011-05-23  Bruno Haible  <bruno@clisp.org>
1397
1398         fts: Move AC_LIBOBJ invocations to module description.
1399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1400         * modules/fts (configure.ac): ... to here.
1401
1402 2011-05-23  Bruno Haible  <bruno@clisp.org>
1403
1404         file-type: Move AC_LIBOBJ invocations to module description.
1405         * m4/file-type.m4: Remove file.
1406         * modules/file-type (Files): Remove it.
1407         (configure.ac): Remove gl_FILE_TYPE call.
1408         (Makefile.am): Augment lib_SOURCES.
1409
1410 2011-05-23  Bruno Haible  <bruno@clisp.org>
1411
1412         filenamecat*: Respect rules for use of AC_LIBOBJ.
1413         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1414         Remove AC_LIBOBJ invocation.
1415         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1416         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1417
1418 2011-05-23  Bruno Haible  <bruno@clisp.org>
1419
1420         filemode: Move AC_LIBOBJ invocations to module description.
1421         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1422         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1423
1424 2011-05-23  Bruno Haible  <bruno@clisp.org>
1425
1426         openat-safer: Move AC_LIBOBJ invocations to module description.
1427         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1428         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1429
1430 2011-05-23  Bruno Haible  <bruno@clisp.org>
1431
1432         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1433         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1434         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1435
1436 2011-05-23  Bruno Haible  <bruno@clisp.org>
1437
1438         exclude: Move AC_LIBOBJ invocations to module description.
1439         * m4/exclude.m4: Remove file.
1440         * modules/exclude (Files): Remove it.
1441         (configure.ac): Remove gl_EXCLUDE call.
1442         (Makefile.am): Augment lib_SOURCES.
1443
1444 2011-05-23  Bruno Haible  <bruno@clisp.org>
1445
1446         dirname*: Respect rules for use of AC_LIBOBJ.
1447         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1448         invocations.
1449         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1450         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1451
1452 2011-05-23  Bruno Haible  <bruno@clisp.org>
1453
1454         dirent-safer: Move AC_LIBOBJ invocations to module description.
1455         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1456         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1457
1458 2011-05-23  Bruno Haible  <bruno@clisp.org>
1459
1460         crypto/des: Move AC_LIBOBJ invocations to module description.
1461         * m4/des.m4: Remove file.
1462         * modules/crypto/des (Files): Remove it.
1463         (configure.ac): Remove gl_DES call.
1464         (Makefile.am): Augment lib_SOURCES.
1465
1466 2011-05-23  Bruno Haible  <bruno@clisp.org>
1467
1468         cycle-check: Move AC_LIBOBJ invocations to module description.
1469         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1470         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1471
1472 2011-05-23  Bruno Haible  <bruno@clisp.org>
1473
1474         c-strtold: Move AC_LIBOBJ invocations to module description.
1475         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1476         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1477
1478 2011-05-23  Bruno Haible  <bruno@clisp.org>
1479
1480         c-strtod: Move AC_LIBOBJ invocations to module description.
1481         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1482         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1483
1484 2011-05-23  Bruno Haible  <bruno@clisp.org>
1485
1486         crc: Move AC_LIBOBJ invocations to module description.
1487         * m4/crc.m4: Remove file.
1488         * modules/crc (Files): Remove it.
1489         (configure.ac): Remove gl_CRC call.
1490         (Makefile.am): Augment lib_SOURCES.
1491
1492 2011-05-23  Bruno Haible  <bruno@clisp.org>
1493
1494         close-stream: Move AC_LIBOBJ invocations to module description.
1495         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1496         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1497
1498 2011-05-23  Bruno Haible  <bruno@clisp.org>
1499
1500         closeout: Move AC_LIBOBJ invocations to module description.
1501         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1502         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1503
1504 2011-05-23  Bruno Haible  <bruno@clisp.org>
1505
1506         closein: Move AC_LIBOBJ invocations to module description.
1507         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1508         * modules/closein (Makefile.am): Augment lib_SOURCES.
1509
1510 2011-05-23  Bruno Haible  <bruno@clisp.org>
1511
1512         cloexec: Move AC_LIBOBJ invocations to module description.
1513         * m4/cloexec.m4: Remove file.
1514         * modules/cloexec (Files): Remove it.
1515         (configure.ac): Remove gl_CLOEXEC call.
1516         (Makefile.am): Augment lib_SOURCES.
1517
1518 2011-05-23  Bruno Haible  <bruno@clisp.org>
1519
1520         check-version: Move AC_LIBOBJ invocations to module description.
1521         * m4/check-version.m4: Remove file.
1522         * modules/check-version (Files): Remove it.
1523         (configure.ac): Remove gl_CHECK_VERSION call.
1524         (Makefile.am): Augment lib_SOURCES.
1525
1526 2011-05-23  Bruno Haible  <bruno@clisp.org>
1527
1528         chdir-safer: Move AC_LIBOBJ invocations to module description.
1529         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1530         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1531
1532 2011-05-23  Bruno Haible  <bruno@clisp.org>
1533
1534         canonicalize: Move AC_LIBOBJ invocations to module description.
1535         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1536         AC_LIBOBJ invocation.
1537         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1538
1539 2011-05-23  Bruno Haible  <bruno@clisp.org>
1540
1541         canon-host: Move AC_LIBOBJ invocations to module description.
1542         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1543         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1544         instead of gl_CANON_HOST.
1545         (Makefile.am): Augment lib_SOURCES.
1546
1547 2011-05-23  Bruno Haible  <bruno@clisp.org>
1548
1549         backupfile: Move AC_LIBOBJ invocations to module description.
1550         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1551         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1552
1553 2011-05-23  Bruno Haible  <bruno@clisp.org>
1554
1555         argmatch: Move AC_LIBOBJ invocations to module description.
1556         * m4/argmatch.m4: Remove file.
1557         * modules/argmatch (Files): Remove it.
1558         (configure.ac): Remove gl_ARGMATCH call.
1559         (Makefile.am): Augment lib_SOURCES.
1560
1561 2011-05-23  Bruno Haible  <bruno@clisp.org>
1562
1563         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1564         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1565         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1566
1567 2011-05-23  Bruno Haible  <bruno@clisp.org>
1568
1569         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1570         * m4/arcfour.m4: Remove file.
1571         * modules/crypto/arcfour (Files): Remove it.
1572         (configure.ac): Remove gl_ARCFOUR call.
1573         (Makefile.am): Augment lib_SOURCES.
1574
1575 2011-05-22  Bruno Haible  <bruno@clisp.org>
1576
1577         write: Move AC_LIBOBJ invocations to module description.
1578         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1579         * modules/write (configure.ac): ... to here.
1580
1581 2011-05-22  Bruno Haible  <bruno@clisp.org>
1582
1583         wmemset: Move AC_LIBOBJ invocations to module description.
1584         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1585         here...
1586         * modules/wmemset (configure.ac): ... to here.
1587
1588 2011-05-22  Bruno Haible  <bruno@clisp.org>
1589
1590         wmemmove: Move AC_LIBOBJ invocations to module description.
1591         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1592         here...
1593         * modules/wmemmove (configure.ac): ... to here.
1594
1595 2011-05-22  Bruno Haible  <bruno@clisp.org>
1596
1597         wmemcpy: Move AC_LIBOBJ invocations to module description.
1598         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1599         here...
1600         * modules/wmemcpy (configure.ac): ... to here.
1601
1602 2011-05-22  Bruno Haible  <bruno@clisp.org>
1603
1604         wmemcmp: Move AC_LIBOBJ invocations to module description.
1605         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1606         here...
1607         * modules/wmemcmp (configure.ac): ... to here.
1608
1609 2011-05-22  Bruno Haible  <bruno@clisp.org>
1610
1611         wmemchr: Move AC_LIBOBJ invocations to module description.
1612         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1613         here...
1614         * modules/wmemchr (configure.ac): ... to here.
1615
1616 2011-05-22  Bruno Haible  <bruno@clisp.org>
1617
1618         wcswidth: Move AC_LIBOBJ invocations to module description.
1619         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1620         here...
1621         * modules/wcswidth (configure.ac): ... to here.
1622
1623 2011-05-22  Bruno Haible  <bruno@clisp.org>
1624
1625         wcwidth: Respect rules for use of AC_LIBOBJ.
1626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1627         invocation from here...
1628         * modules/wcwidth (configure.ac): ... to here.
1629         (Depends-on): Update conditions.
1630
1631 2011-05-22  Bruno Haible  <bruno@clisp.org>
1632
1633         wctype: Move AC_LIBOBJ invocations to module description.
1634         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1635         invocation from here...
1636         * modules/wctype (configure.ac): ... to here.
1637         (Depends-on): Update conditions.
1638
1639 2011-05-22  Bruno Haible  <bruno@clisp.org>
1640
1641         wctrans: Move AC_LIBOBJ invocations to module description.
1642         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1643         invocation from here...
1644         * modules/wctrans (configure.ac): ... to here.
1645
1646 2011-05-22  Bruno Haible  <bruno@clisp.org>
1647
1648         wctomb: Move AC_LIBOBJ invocations to module description.
1649         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1650         invocations from here...
1651         * modules/wctomb (configure.ac): ... to here.
1652
1653 2011-05-22  Bruno Haible  <bruno@clisp.org>
1654
1655         wctob: Move AC_LIBOBJ invocations to module description.
1656         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1657         gl_PREREQ_WCTOB invocations from here...
1658         * modules/wctob (configure.ac): ... to here.
1659         (Depends-on): Update conditions.
1660
1661 2011-05-22  Bruno Haible  <bruno@clisp.org>
1662
1663         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1664         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1665         here...
1666         * modules/wcsxfrm (configure.ac): ... to here.
1667
1668 2011-05-22  Bruno Haible  <bruno@clisp.org>
1669
1670         wcstok: Move AC_LIBOBJ invocations to module description.
1671         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1672         * modules/wcstok (configure.ac): ... to here.
1673
1674 2011-05-22  Bruno Haible  <bruno@clisp.org>
1675
1676         wcsstr: Move AC_LIBOBJ invocations to module description.
1677         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1678         * modules/wcsstr (configure.ac): ... to here.
1679
1680 2011-05-22  Bruno Haible  <bruno@clisp.org>
1681
1682         wcsspn: Move AC_LIBOBJ invocations to module description.
1683         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1684         * modules/wcsspn (configure.ac): ... to here.
1685
1686 2011-05-22  Bruno Haible  <bruno@clisp.org>
1687
1688         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1689         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1690         gl_PREREQ_WCSRTOMBS invocations from here...
1691         * modules/wcsrtombs (configure.ac): ... to here.
1692
1693 2011-05-22  Bruno Haible  <bruno@clisp.org>
1694
1695         wcsrchr: Move AC_LIBOBJ invocations to module description.
1696         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1697         here...
1698         * modules/wcsrchr (configure.ac): ... to here.
1699
1700 2011-05-22  Bruno Haible  <bruno@clisp.org>
1701
1702         wcspbrk: Move AC_LIBOBJ invocations to module description.
1703         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1704         here...
1705         * modules/wcspbrk (configure.ac): ... to here.
1706
1707 2011-05-22  Bruno Haible  <bruno@clisp.org>
1708
1709         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1710         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1711         gl_PREREQ_WCSNRTOMBS invocations from here...
1712         * modules/wcsnrtombs (configure.ac): ... to here.
1713
1714 2011-05-22  Bruno Haible  <bruno@clisp.org>
1715
1716         wcsnlen: Move AC_LIBOBJ invocations to module description.
1717         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1718         here...
1719         * modules/wcsnlen (configure.ac): ... to here.
1720
1721 2011-05-22  Bruno Haible  <bruno@clisp.org>
1722
1723         wcsncpy: Move AC_LIBOBJ invocations to module description.
1724         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1725         here...
1726         * modules/wcsncpy (configure.ac): ... to here.
1727
1728 2011-05-22  Bruno Haible  <bruno@clisp.org>
1729
1730         wcsncmp: Move AC_LIBOBJ invocations to module description.
1731         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1732         here...
1733         * modules/wcsncmp (configure.ac): ... to here.
1734
1735 2011-05-22  Bruno Haible  <bruno@clisp.org>
1736
1737         wcsncat: Move AC_LIBOBJ invocations to module description.
1738         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1739         here...
1740         * modules/wcsncat (configure.ac): ... to here.
1741
1742 2011-05-22  Bruno Haible  <bruno@clisp.org>
1743
1744         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1745         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1746         from here...
1747         * modules/wcsncasecmp (configure.ac): ... to here.
1748
1749 2011-05-22  Bruno Haible  <bruno@clisp.org>
1750
1751         wcslen: Move AC_LIBOBJ invocations to module description.
1752         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1753         * modules/wcslen (configure.ac): ... to here.
1754
1755 2011-05-22  Bruno Haible  <bruno@clisp.org>
1756
1757         wcsdup: Move AC_LIBOBJ invocations to module description.
1758         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1759         * modules/wcsdup (configure.ac): ... to here.
1760
1761 2011-05-22  Bruno Haible  <bruno@clisp.org>
1762
1763         wcscspn: Move AC_LIBOBJ invocations to module description.
1764         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1765         here...
1766         * modules/wcscspn (configure.ac): ... to here.
1767
1768 2011-05-22  Bruno Haible  <bruno@clisp.org>
1769
1770         wcscpy: Move AC_LIBOBJ invocations to module description.
1771         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1772         * modules/wcscpy (configure.ac): ... to here.
1773
1774 2011-05-22  Bruno Haible  <bruno@clisp.org>
1775
1776         wcscoll: Move AC_LIBOBJ invocations to module description.
1777         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1778         here...
1779         * modules/wcscoll (configure.ac): ... to here.
1780
1781 2011-05-22  Bruno Haible  <bruno@clisp.org>
1782
1783         wcscmp: Move AC_LIBOBJ invocations to module description.
1784         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1785         * modules/wcscmp (configure.ac): ... to here.
1786
1787 2011-05-22  Bruno Haible  <bruno@clisp.org>
1788
1789         wcschr: Move AC_LIBOBJ invocations to module description.
1790         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1791         * modules/wcschr (configure.ac): ... to here.
1792
1793 2011-05-22  Bruno Haible  <bruno@clisp.org>
1794
1795         wcscat: Move AC_LIBOBJ invocations to module description.
1796         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1797         * modules/wcscat (configure.ac): ... to here.
1798
1799 2011-05-22  Bruno Haible  <bruno@clisp.org>
1800
1801         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1802         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1803         here...
1804         * modules/wcscasecmp (configure.ac): ... to here.
1805
1806 2011-05-22  Bruno Haible  <bruno@clisp.org>
1807
1808         wcrtomb: Move AC_LIBOBJ invocations to module description.
1809         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1810         invocations from here...
1811         * modules/wcrtomb (configure.ac): ... to here.
1812
1813 2011-05-22  Bruno Haible  <bruno@clisp.org>
1814
1815         wcpncpy: Move AC_LIBOBJ invocations to module description.
1816         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1817         here...
1818         * modules/wcpncpy (configure.ac): ... to here.
1819
1820 2011-05-22  Bruno Haible  <bruno@clisp.org>
1821
1822         wcpcpy: Move AC_LIBOBJ invocations to module description.
1823         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1824         * modules/wcpcpy (configure.ac): ... to here.
1825
1826 2011-05-22  Bruno Haible  <bruno@clisp.org>
1827
1828         waitpid: Move AC_LIBOBJ invocations to module description.
1829         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1830         invocation from here...
1831         * modules/waitpid (configure.ac): ... to here.
1832
1833 2011-05-22  Bruno Haible  <bruno@clisp.org>
1834
1835         utimensat: Move AC_LIBOBJ invocations to module description.
1836         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1837         here...
1838         * modules/utimensat (configure.ac): ... to here.
1839
1840 2011-05-22  Bruno Haible  <bruno@clisp.org>
1841
1842         usleep: Move AC_LIBOBJ invocations to module description.
1843         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1844         here...
1845         * modules/usleep (configure.ac): ... to here.
1846
1847 2011-05-22  Bruno Haible  <bruno@clisp.org>
1848
1849         unlockpt: Move AC_LIBOBJ invocations to module description.
1850         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1851         gl_PREREQ_UNLOCKPT invocations from here...
1852         * modules/unlockpt (configure.ac): ... to here.
1853
1854 2011-05-22  Bruno Haible  <bruno@clisp.org>
1855
1856         unlink: Respect rules for use of AC_LIBOBJ.
1857         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1858         * modules/unlink (configure.ac): ... to here.
1859
1860 2011-05-22  Bruno Haible  <bruno@clisp.org>
1861
1862         uname: Move AC_LIBOBJ invocations to module description.
1863         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1865         here...
1866         * modules/uname (configure.ac): ... to here.
1867
1868 2011-05-22  Bruno Haible  <bruno@clisp.org>
1869
1870         ttyname_r: Move AC_LIBOBJ invocations to module description.
1871         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1872         gl_PREREQ_TTYNAME_R invocations from here...
1873         * modules/ttyname_r (configure.ac): ... to here.
1874
1875 2011-05-22  Bruno Haible  <bruno@clisp.org>
1876
1877         tsearch: Move AC_LIBOBJ invocations to module description.
1878         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1879         invocations from here...
1880         * modules/tsearch (configure.ac): ... to here.
1881
1882 2011-05-22  Bruno Haible  <bruno@clisp.org>
1883
1884         towctrans: Move AC_LIBOBJ invocations to module description.
1885         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1886         AC_LIBOBJ invocation from here...
1887         * modules/towctrans (configure.ac): ... to here.
1888
1889 2011-05-22  Bruno Haible  <bruno@clisp.org>
1890
1891         tmpfile: Move AC_LIBOBJ invocations to module description.
1892         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1893         invocations from here...
1894         * modules/tmpfile (configure.ac): ... to here.
1895
1896 2011-05-22  Bruno Haible  <bruno@clisp.org>
1897
1898         times: Move AC_LIBOBJ invocations to module description.
1899         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1900         * modules/times (configure.ac): ... to here.
1901
1902 2011-05-22  Bruno Haible  <bruno@clisp.org>
1903
1904         time_r: Move AC_LIBOBJ invocations to module description.
1905         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1906         invocations from here...
1907         * modules/time_r (configure.ac): ... to here.
1908
1909 2011-05-22  Bruno Haible  <bruno@clisp.org>
1910
1911         timegm: Move AC_LIBOBJ invocations to module description.
1912         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1913         invocations from here...
1914         * modules/timegm (configure.ac): ... to here.
1915
1916 2011-05-22  Bruno Haible  <bruno@clisp.org>
1917
1918         tcgetsid: Move AC_LIBOBJ invocations to module description.
1919         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1920         and gl_PREREQ_TCGETSID invocations from here...
1921         * modules/tcgetsid (configure.ac): ... to here.
1922         (Depends-on): Update conditions.
1923
1924 2011-05-22  Bruno Haible  <bruno@clisp.org>
1925
1926         symlinkat: Move AC_LIBOBJ invocations to module description.
1927         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1928         here...
1929         * modules/symlinkat (configure.ac): ... to here.
1930
1931 2011-05-22  Bruno Haible  <bruno@clisp.org>
1932
1933         symlink: Move AC_LIBOBJ invocations to module description.
1934         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1935         here...
1936         * modules/symlink (configure.ac): ... to here.
1937
1938 2011-05-22  Bruno Haible  <bruno@clisp.org>
1939
1940         strverscmp: Move AC_LIBOBJ invocations to module description.
1941         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1943         from here...
1944         * modules/strverscmp (configure.ac): ... to here.
1945
1946 2011-05-22  Bruno Haible  <bruno@clisp.org>
1947
1948         strtok_r: Move AC_LIBOBJ invocations to module description.
1949         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1950         and gl_PREREQ_STRTOK_R invocations from here...
1951         * modules/strtok_r (configure.ac): ... to here.
1952         (Depends-on): Update conditions.
1953
1954 2011-05-22  Bruno Haible  <bruno@clisp.org>
1955
1956         strtoumax: Move AC_LIBOBJ invocations to module description.
1957         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1959         from here...
1960         * modules/strtoumax (configure.ac): ... to here.
1961
1962 2011-05-22  Bruno Haible  <bruno@clisp.org>
1963
1964         strtoimax: Move AC_LIBOBJ invocations to module description.
1965         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1967         from here...
1968         * modules/strtoimax (configure.ac): ... to here.
1969
1970 2011-05-22  Bruno Haible  <bruno@clisp.org>
1971
1972         strtoull: Move AC_LIBOBJ invocations to module description.
1973         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1975         from here...
1976         * modules/strtoull (configure.ac): ... to here.
1977
1978 2011-05-22  Bruno Haible  <bruno@clisp.org>
1979
1980         strtoll: Move AC_LIBOBJ invocations to module description.
1981         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1983         here...
1984         * modules/strtoll (configure.ac): ... to here.
1985
1986 2011-05-22  Bruno Haible  <bruno@clisp.org>
1987
1988         strtoul: Move AC_LIBOBJ invocations to module description.
1989         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1990         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1991         * modules/strtoul (configure.ac): ... to here.
1992
1993 2011-05-22  Bruno Haible  <bruno@clisp.org>
1994
1995         strtol: Move AC_LIBOBJ invocations to module description.
1996         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1997         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1998         * modules/strtol (configure.ac): ... to here.
1999
2000 2011-05-22  Bruno Haible  <bruno@clisp.org>
2001
2002         strtod: Move AC_LIBOBJ invocations to module description.
2003         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2004         invocations from here...
2005         * modules/strtod (configure.ac): ... to here.
2006
2007 2011-05-22  Bruno Haible  <bruno@clisp.org>
2008
2009         strstr*: Move AC_LIBOBJ invocations to module description.
2010         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2011         invocations from here...
2012         * modules/strstr-simple (configure.ac): ... to here.
2013         * modules/strstr (configure.ac): ... and here.
2014
2015 2011-05-22  Bruno Haible  <bruno@clisp.org>
2016
2017         strsignal: Move AC_LIBOBJ invocations to module description.
2018         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2019         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2020         * modules/strsignal (configure.ac): ... to here.
2021         (Depends-on): Update conditions.
2022
2023 2011-05-22  Bruno Haible  <bruno@clisp.org>
2024
2025         strsep: Move AC_LIBOBJ invocations to module description.
2026         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2028         here...
2029         * modules/strsep (configure.ac): ... to here.
2030
2031 2011-05-22  Bruno Haible  <bruno@clisp.org>
2032
2033         strptime: Move AC_LIBOBJ invocations to module description.
2034         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2035         gl_PREREQ_STRPTIME invocations from here...
2036         * modules/strptime (configure.ac): ... to here.
2037
2038 2011-05-22  Bruno Haible  <bruno@clisp.org>
2039
2040         strpbrk: Move AC_LIBOBJ invocations to module description.
2041         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2043         here...
2044         * modules/strpbrk (configure.ac): ... to here.
2045
2046 2011-05-22  Bruno Haible  <bruno@clisp.org>
2047
2048         strnlen: Move AC_LIBOBJ invocations to module description.
2049         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2050         invocations from here...
2051         * modules/strnlen (configure.ac): ... to here.
2052
2053 2011-05-22  Bruno Haible  <bruno@clisp.org>
2054
2055         strndup: Move AC_LIBOBJ invocations to module description.
2056         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2057         invocations from here...
2058         * modules/strndup (configure.ac): ... to here.
2059         (Depends-on): Update conditions.
2060
2061 2011-05-22  Bruno Haible  <bruno@clisp.org>
2062
2063         strncat: Move AC_LIBOBJ invocations to module description.
2064         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2065         invocations from here...
2066         * modules/strncat (configure.ac): ... to here.
2067
2068 2011-05-22  Bruno Haible  <bruno@clisp.org>
2069
2070         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2071         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2072         invocations from here...
2073         * modules/strdup (configure.ac): ... to here.
2074         * modules/strdup-posix (configure.ac): ... and here.
2075
2076 2011-05-22  Bruno Haible  <bruno@clisp.org>
2077
2078         strcspn: Move AC_LIBOBJ invocations to module description.
2079         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2081         here...
2082         * modules/strcspn (configure.ac): ... to here.
2083
2084 2011-05-22  Bruno Haible  <bruno@clisp.org>
2085
2086         strchrnul: Move AC_LIBOBJ invocations to module description.
2087         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2088         gl_PREREQ_STRCHRNUL invocations from here...
2089         * modules/strchrnul (configure.ac): ... to here.
2090
2091 2011-05-22  Bruno Haible  <bruno@clisp.org>
2092
2093         strcasestr*: Move AC_LIBOBJ invocations to module description.
2094         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2095         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2096         * modules/strcasestr-simple (configure.ac): ... to here.
2097         * modules/strcasestr (configure.ac): ... and here.
2098
2099 2011-05-22  Bruno Haible  <bruno@clisp.org>
2100
2101         strcase: Move AC_LIBOBJ invocations to module description.
2102         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2103         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2104         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2105         gl_PREREQ_STRNCASECMP invocations from here...
2106         * modules/strcase (configure.ac): ... to here.
2107
2108 2011-05-22  Bruno Haible  <bruno@clisp.org>
2109
2110         stpncpy: Move AC_LIBOBJ invocations to module description.
2111         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2112         here...
2113         * modules/stpncpy (configure.ac): ... to here.
2114
2115 2011-05-22  Bruno Haible  <bruno@clisp.org>
2116
2117         stpcpy: Move AC_LIBOBJ invocations to module description.
2118         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2120         here...
2121         * modules/stpcpy (configure.ac): ... to here.
2122
2123 2011-05-21  Bruno Haible  <bruno@clisp.org>
2124
2125         stat: Move AC_LIBOBJ invocations to module description.
2126         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2127         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2128         here...
2129         * modules/stat (configure.ac): ... to here.
2130
2131 2011-05-21  Bruno Haible  <bruno@clisp.org>
2132
2133         sleep: Move AC_LIBOBJ invocations to module description.
2134         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2135         * modules/sleep (configure.ac): ... to here.
2136
2137 2011-05-21  Bruno Haible  <bruno@clisp.org>
2138
2139         signbit: Move AC_LIBOBJ invocations to module description.
2140         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2141         * modules/signbit (configure.ac): ... to here.
2142
2143 2011-05-21  Bruno Haible  <bruno@clisp.org>
2144
2145         sigprocmask: Move AC_LIBOBJ invocations to module description.
2146         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2147         gl_PREREQ_SIGPROMASK invocations from here...
2148         * modules/sigprocmask (configure.ac): ... to here.
2149
2150 2011-05-21  Bruno Haible  <bruno@clisp.org>
2151
2152         sigaction: Move AC_LIBOBJ invocations to module description.
2153         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2154         gl_PREREQ_SIGACTION invocations from here...
2155         * modules/sigaction (configure.ac): ... to here.
2156
2157 2011-05-21  Bruno Haible  <bruno@clisp.org>
2158
2159         sig2str: Move AC_LIBOBJ invocations to module description.
2160         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2162         here...
2163         * modules/sig2str (configure.ac): ... to here.
2164
2165 2011-05-21  Bruno Haible  <bruno@clisp.org>
2166
2167         setlocale: Move AC_LIBOBJ invocations to module description.
2168         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2169         gl_PREREQ_SETLOCALE invocations from here...
2170         * modules/setlocale (configure.ac): ... to here.
2171
2172 2011-05-21  Bruno Haible  <bruno@clisp.org>
2173
2174         unsetenv: Move AC_LIBOBJ invocations to module description.
2175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2176         and gl_PREREQ_UNSETENV invocations from here...
2177         * modules/unsetenv (configure.ac): ... to here.
2178         (Depends-on): Update.
2179
2180 2011-05-21  Bruno Haible  <bruno@clisp.org>
2181
2182         setenv: Move AC_LIBOBJ invocations to module description.
2183         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2184         here...
2185         * modules/setenv (configure.ac): ... to here.
2186
2187 2011-05-21  Bruno Haible  <bruno@clisp.org>
2188
2189         selinux-h: Move AC_LIBOBJ invocations to module description.
2190         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2191         AC_LIBOBJ invocation from here...
2192         * modules/selinux-h (configure.ac): ... to here.
2193
2194 2011-05-21  Bruno Haible  <bruno@clisp.org>
2195
2196         select: Respect rules for use of AC_LIBOBJ.
2197         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2198         here...
2199         * modules/select (configure.ac): ... to here.
2200
2201 2011-05-21  Bruno Haible  <bruno@clisp.org>
2202
2203         scandir: Move AC_LIBOBJ invocations to module description.
2204         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2205         invocations from here...
2206         * modules/scandir (configure.ac): ... to here.
2207
2208 2011-05-21  Bruno Haible  <bruno@clisp.org>
2209
2210         rpmatch: Move AC_LIBOBJ invocations to module description.
2211         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2213         here...
2214         * modules/rpmatch (configure.ac): ... to here.
2215
2216 2011-05-21  Bruno Haible  <bruno@clisp.org>
2217
2218         rmdir: Respect rules for use of AC_LIBOBJ.
2219         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2220         * modules/rmdir (configure.ac): ... to here.
2221
2222 2011-05-21  Bruno Haible  <bruno@clisp.org>
2223
2224         renameat: Move AC_LIBOBJ invocations to module description.
2225         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2226         here...
2227         * modules/renameat (configure.ac): ... to here.
2228
2229 2011-05-21  Bruno Haible  <bruno@clisp.org>
2230
2231         rename: Respect rules for use of AC_LIBOBJ.
2232         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2233         here...
2234         * modules/rename (configure.ac): ... to here.
2235
2236 2011-05-21  Bruno Haible  <bruno@clisp.org>
2237
2238         remove: Move AC_LIBOBJ invocations to module description.
2239         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2240         here...
2241         * modules/remove (configure.ac): ... to here.
2242
2243 2011-05-21  Bruno Haible  <bruno@clisp.org>
2244
2245         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2246         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2247         macro.
2248         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2249         * modules/relocatable-lib (configure.ac): ... to here.
2250         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2251         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2252
2253 2011-05-21  Bruno Haible  <bruno@clisp.org>
2254
2255         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2256         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2257         here...
2258         * modules/relocatable-prog (configure.ac): ... to here.
2259
2260 2011-05-21  Bruno Haible  <bruno@clisp.org>
2261
2262         regex: Move AC_LIBOBJ invocations to module description.
2263         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2264         invocations from here...
2265         * modules/regex (configure.ac): ... to here.
2266
2267 2011-05-21  Bruno Haible  <bruno@clisp.org>
2268
2269         realloc-*: Move AC_LIBOBJ invocations to module description.
2270         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2271         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2272         AC_LIBOBJ invocations from here...
2273         * modules/realloc-gnu (configure.ac): ... to here.
2274         * modules/realloc-posix (configure.ac): ... and here.
2275
2276 2011-05-21  Bruno Haible  <bruno@clisp.org>
2277
2278         readutmp: Move AC_LIBOBJ invocations to module description.
2279         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2280         * modules/readutmp (configure.ac): ... to here.
2281
2282 2011-05-21  Bruno Haible  <bruno@clisp.org>
2283
2284         readlinkat: Move AC_LIBOBJ invocations to module description.
2285         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2286         here...
2287         * modules/readlinkat (configure.ac): ... to here.
2288
2289 2011-05-21  Bruno Haible  <bruno@clisp.org>
2290
2291         readlink: Move AC_LIBOBJ invocations to module description.
2292         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2293         gl_PREREQ_READLINK invocations from here...
2294         * modules/readlink (configure.ac): ... to here.
2295
2296 2011-05-21  Bruno Haible  <bruno@clisp.org>
2297
2298         readline: Move AC_LIBOBJ invocations to module description.
2299         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2300         gl_PREREQ_READLINE invocations from here...
2301         * modules/readline (configure.ac): ... to here.
2302
2303 2011-05-21  Bruno Haible  <bruno@clisp.org>
2304
2305         read: Move AC_LIBOBJ invocations to module description.
2306         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2307         * modules/read (configure.ac): ... to here.
2308
2309 2011-05-21  Bruno Haible  <bruno@clisp.org>
2310
2311         rawmemchr: Move AC_LIBOBJ invocations to module description.
2312         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2314         from here...
2315         * modules/rawmemchr (configure.ac): ... to here.
2316
2317 2011-05-21  Bruno Haible  <bruno@clisp.org>
2318
2319         random_r: Move AC_LIBOBJ invocations to module description.
2320         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2321         gl_PREREQ_RANDOM_R invocations from here...
2322         * modules/random_r (configure.ac): ... to here.
2323
2324 2011-05-21  Bruno Haible  <bruno@clisp.org>
2325
2326         pwrite: Move AC_LIBOBJ invocations to module description.
2327         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2328         * modules/pwrite (configure.ac): ... to here.
2329
2330 2011-05-21  Bruno Haible  <bruno@clisp.org>
2331
2332         putenv: Move AC_LIBOBJ invocations to module description.
2333         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2334         * modules/putenv (configure.ac): ... to here.
2335
2336 2011-05-21  Bruno Haible  <bruno@clisp.org>
2337
2338         login_tty: Move AC_LIBOBJ invocations to module description.
2339         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2340         * modules/login_tty (configure.ac): ... to here.
2341
2342 2011-05-21  Bruno Haible  <bruno@clisp.org>
2343
2344         openpty: Move AC_LIBOBJ invocations to module description.
2345         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2346         * modules/openpty (configure.ac): ... to here.
2347
2348 2011-05-21  Bruno Haible  <bruno@clisp.org>
2349
2350         forkpty: Move AC_LIBOBJ invocations to module description.
2351         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2352         * modules/forkpty (configure.ac): ... to here.
2353
2354 2011-05-21  Bruno Haible  <bruno@clisp.org>
2355
2356         ptsname: Move AC_LIBOBJ invocations to module description.
2357         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2358         invocations from here...
2359         * modules/ptsname (configure.ac): ... to here.
2360
2361 2011-05-21  Bruno Haible  <bruno@clisp.org>
2362
2363         pread: Move AC_LIBOBJ invocations to module description.
2364         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2365         * modules/pread (configure.ac): ... to here.
2366
2367 2011-05-21  Bruno Haible  <bruno@clisp.org>
2368
2369         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2370         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2371         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2372         * modules/posix_spawn (configure.ac): ... to here.
2373         * modules/posix_spawnp (configure.ac): ... and here.
2374
2375 2011-05-21  Bruno Haible  <bruno@clisp.org>
2376
2377         popen: Move AC_LIBOBJ invocations to module description.
2378         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2379         invocations from here...
2380         * modules/popen (configure.ac): ... to here.
2381
2382 2011-05-21  Bruno Haible  <bruno@clisp.org>
2383
2384         poll: Move AC_LIBOBJ invocations to module description.
2385         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2386         invocations from here...
2387         * modules/poll (configure.ac): ... to here.
2388
2389 2011-05-21  Bruno Haible  <bruno@clisp.org>
2390
2391         pipe-posix: Move AC_LIBOBJ invocations to module description.
2392         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2393         * modules/pipe-posix (configure.ac): ... to here.
2394
2395 2011-05-21  Bruno Haible  <bruno@clisp.org>
2396
2397         openat: Respect rules for use of AC_LIBOBJ.
2398         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2399         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2400         * modules/openat (configure.ac): ... to here.
2401
2402 2011-05-21  Bruno Haible  <bruno@clisp.org>
2403
2404         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2405         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2406         invocation from here...
2407         * modules/obstack-printf (configure.ac): ... to here.
2408         * modules/obstack-printf-posix (configure.ac): ... and here.
2409
2410 2011-05-21  Bruno Haible  <bruno@clisp.org>
2411
2412         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2413         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2414         from here...
2415         * modules/nl_langinfo (configure.ac): ... to here.
2416
2417 2011-05-21  Bruno Haible  <bruno@clisp.org>
2418
2419         nanosleep: Move AC_LIBOBJ invocations to module description.
2420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2421         gl_PREREQ_NANOSLEEP invocations from here...
2422         * modules/nanosleep (configure.ac): ... to here.
2423
2424 2011-05-21  Bruno Haible  <bruno@clisp.org>
2425
2426         mountlist: Move AC_LIBOBJ invocations to module description.
2427         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2428         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2429         * modules/mountlist (configure.ac): ... to here.
2430
2431 2011-05-21  Bruno Haible  <bruno@clisp.org>
2432
2433         mktime: Respect rules for use of AC_LIBOBJ.
2434         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2435         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2436         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2437         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2438         * modules/mktime (configure.ac): ... to here.
2439         * modules/mktime-internal (configure.ac): ... and here.
2440         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2441
2442 2011-05-21  Bruno Haible  <bruno@clisp.org>
2443
2444         mkstemps: Move AC_LIBOBJ invocations to module description.
2445         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2446         here...
2447         * modules/mkstemps (configure.ac): ... to here.
2448
2449 2011-05-21  Bruno Haible  <bruno@clisp.org>
2450
2451         mkstemp: Move AC_LIBOBJ invocations to module description.
2452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2453         gl_PREREQ_MKSTEMP invocations from here...
2454         * modules/mkstemp (configure.ac): ... to here.
2455
2456 2011-05-21  Bruno Haible  <bruno@clisp.org>
2457
2458         mkostemps: Move AC_LIBOBJ invocations to module description.
2459         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2460         here...
2461         * modules/mkostemps (configure.ac): ... to here.
2462
2463 2011-05-21  Bruno Haible  <bruno@clisp.org>
2464
2465         mkostemp: Move AC_LIBOBJ invocations to module description.
2466         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2467         gl_PREREQ_MKOSTEMP invocations from here...
2468         * modules/mkostemp (configure.ac): ... to here.
2469
2470 2011-05-21  Bruno Haible  <bruno@clisp.org>
2471
2472         mknod: Move AC_LIBOBJ invocations to module description.
2473         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2474         * modules/mknod (configure.ac): ... to here.
2475
2476 2011-05-21  Bruno Haible  <bruno@clisp.org>
2477
2478         mkfifoat: Move AC_LIBOBJ invocations to module description.
2479         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2480         here...
2481         * modules/mkfifoat (configure.ac): ... to here.
2482
2483 2011-05-21  Bruno Haible  <bruno@clisp.org>
2484
2485         mkfifo: Respect rules for use of AC_LIBOBJ.
2486         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2487         here...
2488         * modules/mkfifo (configure.ac): ... to here.
2489
2490 2011-05-21  Bruno Haible  <bruno@clisp.org>
2491
2492         mkdtemp: Move AC_LIBOBJ invocations to module description.
2493         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2494         invocations from here...
2495         * modules/mkdtemp (configure.ac): ... to here.
2496
2497 2011-05-21  Bruno Haible  <bruno@clisp.org>
2498
2499         mkdir: Move AC_LIBOBJ invocations to module description.
2500         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2501         * modules/mkdir (configure.ac): ... to here.
2502
2503 2011-05-21  Bruno Haible  <bruno@clisp.org>
2504
2505         memset: Move AC_LIBOBJ invocations to module description.
2506         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2508         here...
2509         * modules/memset (configure.ac): ... to here.
2510
2511 2011-05-21  Bruno Haible  <bruno@clisp.org>
2512
2513         memrchr: Move AC_LIBOBJ invocations to module description.
2514         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2516         here...
2517         * modules/memrchr (configure.ac): ... to here.
2518
2519 2011-05-21  Bruno Haible  <bruno@clisp.org>
2520
2521         mempcpy: Move AC_LIBOBJ invocations to module description.
2522         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2524         here...
2525         * modules/mempcpy (configure.ac): ... to here.
2526
2527 2011-05-21  Bruno Haible  <bruno@clisp.org>
2528
2529         memmove: Move AC_LIBOBJ invocations to module description.
2530         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2532         here...
2533         * modules/memmove (configure.ac): ... to here.
2534
2535 2011-05-21  Bruno Haible  <bruno@clisp.org>
2536
2537         memmem*: Move AC_LIBOBJ invocations to module description.
2538         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2539         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2540         here...
2541         (gl_FUNC_MEMMEM): ... and here...
2542         * modules/memmem-simple (configure.ac): ... to here.
2543         * modules/memmem (configure.ac): ... and here.
2544
2545 2011-05-21  Bruno Haible  <bruno@clisp.org>
2546
2547         memcpy: Move AC_LIBOBJ invocations to module description.
2548         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2549         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2550         here...
2551         * modules/memcpy (configure.ac): ... to here.
2552
2553 2011-05-21  Bruno Haible  <bruno@clisp.org>
2554
2555         memcmp: Simplify autoconf macro.
2556         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2557         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2558         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2559
2560 2011-05-21  Bruno Haible  <bruno@clisp.org>
2561
2562         memcmp: Move AC_LIBOBJ invocations to module description.
2563         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2564         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2565         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2566         * modules/memcmp (configure.ac): ... to here.
2567         (Depends-on): Update conditions.
2568
2569 2011-05-21  Bruno Haible  <bruno@clisp.org>
2570
2571         memchr: Respect rules for use of AC_LIBOBJ.
2572         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2573         invocations from here...
2574         * modules/memchr (configure.ac): ... to here.
2575
2576 2011-05-21  Bruno Haible  <bruno@clisp.org>
2577
2578         mbtowc: Move AC_LIBOBJ invocations to module description.
2579         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2580         invocations from here...
2581         * modules/mbtowc (configure.ac): ... to here.
2582
2583 2011-05-21  Bruno Haible  <bruno@clisp.org>
2584
2585         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2586         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2587         gl_PREREQ_MBSRTOWCS invocations from here...
2588         * modules/mbsrtowcs (configure.ac): ... to here.
2589
2590 2011-05-21  Bruno Haible  <bruno@clisp.org>
2591
2592         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2593         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2594         gl_PREREQ_MBSNRTOWCS invocations from here...
2595         * modules/mbsnrtowcs (configure.ac): ... to here.
2596
2597 2011-05-21  Bruno Haible  <bruno@clisp.org>
2598
2599         mbsinit: Move AC_LIBOBJ invocations to module description.
2600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2601         invocations from here...
2602         * modules/mbsinit (configure.ac): ... to here.
2603
2604 2011-05-21  Bruno Haible  <bruno@clisp.org>
2605
2606         mbrlen: Move AC_LIBOBJ invocations to module description.
2607         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2608         invocations from here...
2609         * modules/mbrlen (configure.ac): ... to here.
2610
2611 2011-05-21  Bruno Haible  <bruno@clisp.org>
2612
2613         mbrtowc: Respect rules for use of AC_LIBOBJ.
2614         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2615         invocations from here...
2616         * modules/mbrtowc (configure.ac): ... to here.
2617
2618 2011-05-21  Bruno Haible  <bruno@clisp.org>
2619
2620         malloc-*: Move AC_LIBOBJ invocations to module description.
2621         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2622         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2623         AC_LIBOBJ invocations from here...
2624         * modules/malloc-gnu (configure.ac): ... to here.
2625         * modules/malloc-posix (configure.ac): ... and here.
2626
2627 2011-05-21  Bruno Haible  <bruno@clisp.org>
2628
2629         lstat, openat: Respect rules for use of AC_LIBOBJ.
2630         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2631         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2632         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2633         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2634         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2635         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2636         here.
2637         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2638
2639 2011-05-21  Bruno Haible  <bruno@clisp.org>
2640
2641         lseek: Move AC_LIBOBJ invocations to module description.
2642         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2643         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2644         * modules/lseek (configure.ac): ... to here.
2645
2646 2011-05-21  Bruno Haible  <bruno@clisp.org>
2647
2648         linkat: Move AC_LIBOBJ invocations to module description.
2649         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2650         here...
2651         * modules/linkat (configure.ac): ... to here.
2652
2653 2011-05-21  Bruno Haible  <bruno@clisp.org>
2654
2655         link: Respect rules for use of AC_LIBOBJ.
2656         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2657         * modules/link (configure.ac): ... to here.
2658
2659 2011-05-21  Bruno Haible  <bruno@clisp.org>
2660
2661         lchown: Move AC_LIBOBJ invocations to module description.
2662         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2663         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2664         * modules/lchown (configure.ac): ... to here.
2665
2666 2011-05-21  Bruno Haible  <bruno@clisp.org>
2667
2668         iswctype: Move AC_LIBOBJ invocations to module description.
2669         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2670         here...
2671         * modules/iswctype (configure.ac): ... to here.
2672
2673 2011-05-21  Bruno Haible  <bruno@clisp.org>
2674
2675         iswblank: Move AC_LIBOBJ invocations to module description.
2676         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2677         here...
2678         * modules/iswblank (configure.ac): ... to here.
2679
2680 2011-05-21  Bruno Haible  <bruno@clisp.org>
2681
2682         atanl: Move AC_LIBOBJ invocations to module description.
2683         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2684         * modules/atanl (configure.ac): ... to here.
2685
2686 2011-05-21  Bruno Haible  <bruno@clisp.org>
2687
2688         acosl: Move AC_LIBOBJ invocations to module description.
2689         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2690         * modules/acosl (configure.ac): ... to here.
2691
2692 2011-05-21  Bruno Haible  <bruno@clisp.org>
2693
2694         asinl: Respect rules for use of AC_LIBOBJ.
2695         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2696         * modules/asinl (configure.ac): ... to here.
2697
2698 2011-05-21  Bruno Haible  <bruno@clisp.org>
2699
2700         tanl: Move AC_LIBOBJ invocations to module description.
2701         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2702         * modules/tanl (configure.ac): ... to here.
2703
2704 2011-05-21  Bruno Haible  <bruno@clisp.org>
2705
2706         cosl: Move AC_LIBOBJ invocations to module description.
2707         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2708         * modules/cosl (configure.ac): ... to here.
2709
2710 2011-05-21  Bruno Haible  <bruno@clisp.org>
2711
2712         sinl: Move AC_LIBOBJ invocations to module description.
2713         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2714         * modules/sinl (configure.ac): ... to here.
2715
2716 2011-05-21  Bruno Haible  <bruno@clisp.org>
2717
2718         logl: Move AC_LIBOBJ invocations to module description.
2719         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2720         * modules/logl (configure.ac): ... to here.
2721
2722 2011-05-21  Bruno Haible  <bruno@clisp.org>
2723
2724         expl: Move AC_LIBOBJ invocations to module description.
2725         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2726         * modules/expl (configure.ac): ... to here.
2727
2728 2011-05-21  Bruno Haible  <bruno@clisp.org>
2729
2730         roundl: Move AC_LIBOBJ invocations to module description.
2731         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2732         * modules/roundl (configure.ac): ... to here.
2733
2734 2011-05-21  Bruno Haible  <bruno@clisp.org>
2735
2736         round: Move AC_LIBOBJ invocations to module description.
2737         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2738         * modules/round (configure.ac): ... to here.
2739
2740 2011-05-21  Bruno Haible  <bruno@clisp.org>
2741
2742         roundf: Move AC_LIBOBJ invocations to module description.
2743         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2744         * modules/roundf (configure.ac): ... to here.
2745
2746 2011-05-21  Bruno Haible  <bruno@clisp.org>
2747
2748         truncl: Move AC_LIBOBJ invocations to module description.
2749         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2750         * modules/truncl (configure.ac): ... to here.
2751
2752 2011-05-21  Bruno Haible  <bruno@clisp.org>
2753
2754         trunc: Move AC_LIBOBJ invocations to module description.
2755         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2756         * modules/trunc (configure.ac): ... to here.
2757
2758 2011-05-21  Bruno Haible  <bruno@clisp.org>
2759
2760         truncf: Move AC_LIBOBJ invocations to module description.
2761         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2762         * modules/truncf (configure.ac): ... to here.
2763
2764 2011-05-21  Bruno Haible  <bruno@clisp.org>
2765
2766         ceill: Move AC_LIBOBJ invocations to module description.
2767         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2768         * modules/ceill (configure.ac): ... to here.
2769
2770 2011-05-21  Bruno Haible  <bruno@clisp.org>
2771
2772         ceil: Move AC_LIBOBJ invocations to module description.
2773         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2774         * modules/ceil (configure.ac): ... to here.
2775
2776 2011-05-21  Bruno Haible  <bruno@clisp.org>
2777
2778         ceilf: Move AC_LIBOBJ invocations to module description.
2779         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2780         * modules/ceilf (configure.ac): ... to here.
2781
2782 2011-05-21  Bruno Haible  <bruno@clisp.org>
2783
2784         floorl: Respect rules for use of AC_LIBOBJ.
2785         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2786         * modules/floorl (configure.ac): ... to here.
2787
2788 2011-05-21  Bruno Haible  <bruno@clisp.org>
2789
2790         floor: Respect rules for use of AC_LIBOBJ.
2791         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2792         * modules/floor (configure.ac): ... to here.
2793
2794 2011-05-21  Bruno Haible  <bruno@clisp.org>
2795
2796         floorf: Move AC_LIBOBJ invocations to module description.
2797         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2798         * modules/floorf (configure.ac): ... to here.
2799
2800 2011-05-20  Bruno Haible  <bruno@clisp.org>
2801
2802         sqrtl: Respect rules for use of AC_LIBOBJ.
2803         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2804         * modules/sqrtl (configure.ac): ... to here.
2805
2806 2011-05-20  Bruno Haible  <bruno@clisp.org>
2807
2808         ldexpl: Respect rules for use of AC_LIBOBJ.
2809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2810         * modules/ldexpl (configure.ac): ... to here.
2811
2812 2011-05-20  Bruno Haible  <bruno@clisp.org>
2813
2814         frexpl*: Respect rules for use of AC_LIBOBJ.
2815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2816         invocation from here...
2817         * modules/frexpl (configure.ac): ... to here.
2818         * modules/frexpl-nolibm (configure.ac): ... and here.
2819
2820 2011-05-20  Bruno Haible  <bruno@clisp.org>
2821
2822         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2823         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2824         invocation from here...
2825         * modules/frexp (configure.ac): ... to here.
2826         * modules/frexp-nolibm (configure.ac): ... and here.
2827
2828 2011-05-20  Bruno Haible  <bruno@clisp.org>
2829
2830         isnan: Respect rules for use of AC_LIBOBJ.
2831         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2832         invocations here.
2833         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2834         REPLACE_ISNAN.
2835         * modules/isnand (configure.ac): Likewise.
2836         * modules/isnanl (configure.ac): Likewise.
2837
2838 2011-05-20  Bruno Haible  <bruno@clisp.org>
2839
2840         isnanl*: Respect rules for use of AC_LIBOBJ.
2841         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2842         invocation from here...
2843         * modules/isnanl (configure.ac): ... to here.
2844         * modules/isnanl-nolibm (configure.ac): ... and here.
2845
2846 2011-05-20  Bruno Haible  <bruno@clisp.org>
2847
2848         isnand*: Move AC_LIBOBJ invocations to module description.
2849         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2850         invocation from here...
2851         * modules/isnand (configure.ac): ... to here.
2852         * modules/isnand-nolibm (configure.ac): ... and here.
2853
2854 2011-05-20  Bruno Haible  <bruno@clisp.org>
2855
2856         isnanf*: Move AC_LIBOBJ invocations to module description.
2857         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2858         invocation from here...
2859         * modules/isnanf (configure.ac): ... to here.
2860         * modules/isnanf-nolibm (configure.ac): ... and here.
2861
2862 2011-05-20  Bruno Haible  <bruno@clisp.org>
2863
2864         isnan*: Separate the AC_LIBOBJ invocations.
2865         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2866         AC_LIBOBJ invocation.
2867         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2868         here.
2869         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2870         AC_LIBOBJ invocation.
2871         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2872         here.
2873         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2874         AC_LIBOBJ invocation.
2875         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2876         here.
2877         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2878
2879 2011-05-08  Bruno Haible  <bruno@clisp.org>
2880
2881         isinf: Move AC_LIBOBJ invocations to module description.
2882         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2883         * modules/isinf (configure.ac): ... to here.
2884
2885 2011-05-08  Bruno Haible  <bruno@clisp.org>
2886
2887         isfinite: Move AC_LIBOBJ invocations to module description.
2888         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2889         * modules/isfinite (configure.ac): ... to here.
2890
2891 2011-05-08  Bruno Haible  <bruno@clisp.org>
2892
2893         isblank: Move AC_LIBOBJ invocations to module description.
2894         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2895         here...
2896         * modules/isblank (configure.ac): ... to here.
2897
2898 2011-05-08  Bruno Haible  <bruno@clisp.org>
2899
2900         isapipe: Move AC_LIBOBJ invocations to module description.
2901         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2902         gl_PREREQ_ISAPIPE invocations from here...
2903         * modules/isapipe (configure.ac): ... to here.
2904         (Depends-on): Update condition.
2905
2906 2011-05-08  Bruno Haible  <bruno@clisp.org>
2907
2908         ioctl: Move AC_LIBOBJ invocations to module description.
2909         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2910         invocations from here...
2911         * modules/ioctl (configure.ac): ... to here.
2912         (Depends-on): Update condition.
2913
2914 2011-05-08  Bruno Haible  <bruno@clisp.org>
2915
2916         imaxdiv: Move AC_LIBOBJ invocations to module description.
2917         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2918         invocations from here...
2919         * modules/imaxdiv (configure.ac): ... to here.
2920
2921 2011-05-08  Bruno Haible  <bruno@clisp.org>
2922
2923         imaxabs: Move AC_LIBOBJ invocations to module description.
2924         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2925         invocations from here...
2926         * modules/imaxabs (configure.ac): ... to here.
2927
2928 2011-05-08  Bruno Haible  <bruno@clisp.org>
2929
2930         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2932         AC_LIBOBJ invocations from here...
2933         * modules/getaddrinfo (configure.ac): ... to here.
2934         (Depends-on): Add conditions.
2935
2936 2011-05-08  Bruno Haible  <bruno@clisp.org>
2937
2938         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2939         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2940         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2941         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2942         (gl_PREREQ_INET_PTON): ... from here.
2943         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2944         gl_PREREQ_INET_PTON here.
2945         (Depends-on): Update condition.
2946
2947 2011-05-08  Bruno Haible  <bruno@clisp.org>
2948
2949         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2950         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2951         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2952         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2953         (gl_PREREQ_INET_NTOP): ... from here.
2954         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2955         gl_PREREQ_INET_NTOP here.
2956         (Depends-on): Update condition.
2957
2958 2011-05-08  Bruno Haible  <bruno@clisp.org>
2959
2960         iconv_open: Move AC_LIBOBJ invocations to module description.
2961         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2962         AC_LIBOBJ invocations from here...
2963         * modules/iconv_open (configure.ac): ... to here.
2964
2965 2011-05-08  Bruno Haible  <bruno@clisp.org>
2966
2967         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2968         If module 'iconv_open' is among the main modules and module
2969         'iconv_open-utf' is among the tests dependencies, then
2970         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2971         return the special iconv_t values. Therefore iconv() and iconv_close()
2972         must support these special iconv_t values, already in lib, not only in
2973         tests.
2974         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2976         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2977         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2978         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2979         (Depends-on): Add the dependencies of iconv_open-utf.
2980         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2981         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2982         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2983
2984 2011-05-08  Bruno Haible  <bruno@clisp.org>
2985
2986         group-member: Move AC_LIBOBJ invocations to module description.
2987         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2988         gl_PREREQ_GROUP_MEMBER invocations from here...
2989         * modules/group-member (configure.ac): ... to here.
2990
2991 2011-05-08  Bruno Haible  <bruno@clisp.org>
2992
2993         grantpt: Move AC_LIBOBJ invocations to module description.
2994         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2995         invocations from here...
2996         * modules/grantpt (configure.ac): ... to here.
2997
2998 2011-05-08  Bruno Haible  <bruno@clisp.org>
2999
3000         glob: Move AC_LIBOBJ invocations to module description.
3001         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3002         from here...
3003         * modules/glob (configure.ac): ... to here.
3004
3005 2011-05-08  Bruno Haible  <bruno@clisp.org>
3006
3007         getusershell: Move AC_LIBOBJ invocations to module description.
3008         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3009         Move AC_LIBOBJ invocation from here...
3010         * modules/getusershell (configure.ac): ... to here.
3011         (Depends-on): Update condition.
3012
3013 2011-05-08  Bruno Haible  <bruno@clisp.org>
3014
3015         gettimeofday: Move AC_LIBOBJ invocations to module description.
3016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3017         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3018         gl_PREREQ_GETTIMEOFDAY invocations from here...
3019         * modules/gettimeofday (configure.ac): ... to here.
3020
3021 2011-05-08  Bruno Haible  <bruno@clisp.org>
3022
3023         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3024         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3025         just gl_FUNC_TZSET.
3026         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3027         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3029         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3030
3031 2011-05-08  Bruno Haible  <bruno@clisp.org>
3032
3033         getsubopt: Move AC_LIBOBJ invocations to module description.
3034         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3035         gl_PREREQ_GETSUBOPT invocations from here...
3036         * modules/getsubopt (configure.ac): ... to here.
3037
3038 2011-05-08  Bruno Haible  <bruno@clisp.org>
3039
3040         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3041         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3042         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3043         * modules/getpass-gnu (configure.ac): ... to here.
3044
3045 2011-05-08  Bruno Haible  <bruno@clisp.org>
3046
3047         getpass: Move AC_LIBOBJ invocations to module description.
3048         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3049         gl_PREREQ_GETPASS invocations from here...
3050         * modules/getpass (configure.ac): ... to here.
3051
3052 2011-05-08  Bruno Haible  <bruno@clisp.org>
3053
3054         getpagesize: Move AC_LIBOBJ invocations to module description.
3055         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3056         from here...
3057         * modules/getpagesize (configure.ac): ... to here.
3058
3059 2011-05-08  Bruno Haible  <bruno@clisp.org>
3060
3061         getopt: Move AC_LIBOBJ invocations to module description.
3062         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3063         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3064         invocations from here...
3065         * modules/getopt-gnu (configure.ac): ... to here.
3066         * modules/getopt-posix (configure.ac): ... and here.
3067         (Depends-on): Update condition.
3068
3069 2011-05-08  Bruno Haible  <bruno@clisp.org>
3070
3071         getopt, argp: Respect rules for use of AC_LIBOBJ.
3072         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3073         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3074         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3075         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3076
3077 2011-05-08  Bruno Haible  <bruno@clisp.org>
3078
3079         getlogin_r: Move AC_LIBOBJ invocations to module description.
3080         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3081         gl_PREREQ_GETLOGIN_R invocations from here...
3082         * modules/getlogin_r (configure.ac): ... to here.
3083
3084 2011-05-08  Bruno Haible  <bruno@clisp.org>
3085
3086         getlogin: Move AC_LIBOBJ invocations to module description.
3087         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3088         here...
3089         * modules/getlogin (configure.ac): ... to here.
3090
3091 2011-05-08  Bruno Haible  <bruno@clisp.org>
3092
3093         getloadavg: Move AC_LIBOBJ invocations to module description.
3094         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3095         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3096         * modules/getloadavg (configure.ac): ... to here.
3097
3098 2011-05-08  Bruno Haible  <bruno@clisp.org>
3099
3100         gethrxtime: Move AC_LIBOBJ invocations to module description.
3101         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3102         LIB_GETHRXTIME from here...
3103         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3104         invocations from here...
3105         * modules/gethrxtime (configure.ac): ... to here.
3106
3107 2011-05-08  Bruno Haible  <bruno@clisp.org>
3108
3109         gethostname: Move AC_LIBOBJ invocations to module description.
3110         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3111         gl_PREREQ_GETHOSTNAME invocations from here...
3112         * modules/gethostname (configure.ac): ... to here.
3113
3114 2011-05-08  Bruno Haible  <bruno@clisp.org>
3115
3116         getgroups: Move AC_LIBOBJ invocations to module description.
3117         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3118         here...
3119         * modules/getgroups (configure.ac): ... to here.
3120
3121 2011-05-08  Bruno Haible  <bruno@clisp.org>
3122
3123         getdtablesize: Move AC_LIBOBJ invocations to module description.
3124         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3125         invocation from here...
3126         * modules/getdtablesize (configure.ac): ... to here.
3127
3128 2011-05-08  Bruno Haible  <bruno@clisp.org>
3129
3130         getdomainname: Move AC_LIBOBJ invocations to module description.
3131         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3132         gl_PREREQ_GETDOMAINNAME invocations from here...
3133         * modules/getdomainname (configure.ac): ... to here.
3134
3135 2011-05-08  Bruno Haible  <bruno@clisp.org>
3136
3137         getline: Move AC_LIBOBJ invocations to module description.
3138         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3139         invocations from here...
3140         * modules/getline (configure.ac): ... to here.
3141
3142 2011-05-08  Bruno Haible  <bruno@clisp.org>
3143
3144         getline: Simplify.
3145         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3146         It's already handled through the module dependency.
3147
3148 2011-05-08  Bruno Haible  <bruno@clisp.org>
3149
3150         getdelim: Move AC_LIBOBJ invocations to module description.
3151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3152         and gl_PREREQ_GETDELIM invocations from here...
3153         * modules/getdelim (configure.ac): ... to here.
3154         (Depends-on): Fix condition.
3155
3156 2011-05-08  Bruno Haible  <bruno@clisp.org>
3157
3158         getcwd: Move AC_LIBOBJ invocations to module description.
3159         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3160         invocations from here...
3161         * modules/getcwd (configure.ac): ... to here.
3162
3163 2011-05-08  Bruno Haible  <bruno@clisp.org>
3164
3165         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3166         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3167         here...
3168         * modules/getcwd-lgpl (configure.ac): ... to here.
3169
3170 2011-05-07  Bruno Haible  <bruno@clisp.org>
3171
3172         crypto/gc: Move AC_LIBOBJ invocations to module description.
3173         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3174         * modules/crypto/gc (configure.ac): ... to here.
3175
3176 2011-05-07  Bruno Haible  <bruno@clisp.org>
3177
3178         fwriting: Move AC_LIBOBJ invocations to module description.
3179         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3180         here...
3181         * modules/fwriting (configure.ac): ... to here.
3182
3183 2011-05-07  Bruno Haible  <bruno@clisp.org>
3184
3185         fwritable: Move AC_LIBOBJ invocations to module description.
3186         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3187         here...
3188         * modules/fwritable (configure.ac): ... to here.
3189
3190 2011-05-07  Bruno Haible  <bruno@clisp.org>
3191
3192         futimens: Move AC_LIBOBJ invocations to module description.
3193         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3194         here...
3195         * modules/futimens (configure.ac): ... to here.
3196
3197 2011-05-07  Bruno Haible  <bruno@clisp.org>
3198
3199         ftruncate: Move AC_LIBOBJ invocations to module description.
3200         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3201         gl_PREREQ_FTRUNCATE invocations from here...
3202         * modules/ftruncate (configure.ac): ... to here.
3203
3204 2011-05-07  Bruno Haible  <bruno@clisp.org>
3205
3206         fsync: Move AC_LIBOBJ invocations to module description.
3207         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3208         invocations from here...
3209         * modules/fsync (configure.ac): ... to here.
3210
3211 2011-05-07  Bruno Haible  <bruno@clisp.org>
3212
3213         fsusage: Move AC_LIBOBJ invocations to module description.
3214         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3215         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3216         * modules/fsusage (configure.ac): ... to here.
3217
3218 2011-05-07  Bruno Haible  <bruno@clisp.org>
3219
3220         freopen: Move AC_LIBOBJ invocations to module description.
3221         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3222         invocations from here...
3223         * modules/freopen (configure.ac): ... to here.
3224
3225 2011-05-07  Bruno Haible  <bruno@clisp.org>
3226
3227         free: Move AC_LIBOBJ invocations to module description.
3228         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3229         invocations from here...
3230         * modules/free (configure.ac): ... to here.
3231
3232 2011-05-07  Bruno Haible  <bruno@clisp.org>
3233
3234         freadable: Move AC_LIBOBJ invocations to module description.
3235         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3236         here...
3237         * modules/freadable (configure.ac): ... to here.
3238
3239 2011-05-07  Bruno Haible  <bruno@clisp.org>
3240
3241         fpurge: Move AC_LIBOBJ invocations to module description.
3242         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3243         invocations from here...
3244         * modules/fpurge (configure.ac): ... to here.
3245
3246 2011-05-07  Bruno Haible  <bruno@clisp.org>
3247
3248         fpending: Move AC_LIBOBJ invocations to module description.
3249         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3250         gl_FUNC_FPENDING.
3251         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3252         invocations from here...
3253         * modules/fpending (configure.ac): ... to here.
3254
3255 2011-05-07  Bruno Haible  <bruno@clisp.org>
3256
3257         fopen: Move AC_LIBOBJ invocations to module description.
3258         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3259         invocations from here...
3260         * modules/fopen (configure.ac): ... to here.
3261
3262 2011-05-07  Bruno Haible  <bruno@clisp.org>
3263
3264         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3265         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3266         gl_FUNC_FNMATCH_POSIX.
3267         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3268         invocations from here...
3269         * modules/fnmatch (configure.ac): ... to here.
3270         * modules/fnmatch-gnu (configure.ac): ... and here.
3271
3272 2011-05-07  Bruno Haible  <bruno@clisp.org>
3273
3274         flock: Move AC_LIBOBJ invocations to module description.
3275         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3276         invocations from here...
3277         * modules/flock (configure.ac): ... to here.
3278
3279 2011-05-07  Bruno Haible  <bruno@clisp.org>
3280
3281         fileblocks: Move AC_LIBOBJ invocations to module description.
3282         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3283         gl_PREREQ_FILEBLOCKS invocations from here...
3284         * modules/fileblocks (configure.ac): ... to here.
3285
3286 2011-05-06  Bruno Haible  <bruno@clisp.org>
3287
3288         fflush: Move AC_LIBOBJ invocations to module description.
3289         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3290         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3291         invocations from here...
3292         * modules/fflush (configure.ac): ... to here.
3293
3294 2011-05-06  Bruno Haible  <bruno@clisp.org>
3295
3296         fdopendir: Move AC_LIBOBJ invocations to module description.
3297         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3298         here...
3299         * modules/fdopendir (configure.ac): ... to here.
3300         (Depends-on): Improve conditions.
3301
3302 2011-05-06  Bruno Haible  <bruno@clisp.org>
3303
3304         _Exit: Move AC_LIBOBJ invocations to module description.
3305         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3306         invocations from here...
3307         * modules/_Exit (configure.ac): ... to here.
3308
3309 2011-05-21  Bruno Haible  <bruno@clisp.org>
3310
3311         euidaccess: Respect rules for use of AC_LIBOBJ.
3312         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3314         from here...
3315         * modules/euidaccess (configure.ac): ... to here.
3316
3317 2011-05-06  Bruno Haible  <bruno@clisp.org>
3318
3319         error: Move AC_LIBOBJ invocations to module description.
3320         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3321         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3322         invocations from here...
3323         * modules/error (configure.ac): ... to here.
3324
3325 2011-05-06  Bruno Haible  <bruno@clisp.org>
3326
3327         duplocale: Move AC_LIBOBJ invocations to module description.
3328         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3329         gl_PREREQ_DUPLOCALE invocations from here...
3330         * modules/duplocale (configure.ac): ... to here.
3331
3332 2011-05-05  Bruno Haible  <bruno@clisp.org>
3333
3334         dirfd: Move AC_LIBOBJ invocations to module description.
3335         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3336         gl_FUNC_DIRFD.
3337         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3338         here...
3339         * modules/dirfd (configure.ac): ... to here.
3340         (Depends-on): Fix condition.
3341
3342 2011-05-05  Bruno Haible  <bruno@clisp.org>
3343
3344         chown: Respect rules for use of AC_LIBOBJ.
3345         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3346         * modules/chown (configure.ac): ... to here.
3347
3348 2011-05-05  Bruno Haible  <bruno@clisp.org>
3349
3350         chdir-long: Move AC_LIBOBJ invocations to module description.
3351         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3352         gl_PREREQ_CHDIR_LONG invocations from here...
3353         * modules/chdir-long (configure.ac): ... to here.
3354
3355 2011-05-05  Bruno Haible  <bruno@clisp.org>
3356
3357         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3358         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3359         from here...
3360         * modules/canonicalize-lgpl (configure.ac): ... to here.
3361
3362 2011-05-05  Bruno Haible  <bruno@clisp.org>
3363
3364         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3365         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3366         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3367         REPLACE_CALLOC.
3368         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3369         * modules/calloc-gnu (configure.ac): Likewise.
3370
3371 2011-05-05  Bruno Haible  <bruno@clisp.org>
3372
3373         btowc: Move AC_LIBOBJ invocations to module description.
3374         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3375         invocations from here...
3376         * modules/btowc (configure.ac): ... to here.
3377
3378 2011-05-21  Bruno Haible  <bruno@clisp.org>
3379
3380         atexit: Move AC_LIBOBJ invocations to module description.
3381         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3382         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3383         here...
3384         * modules/atexit (configure.ac): ... to here.
3385
3386 2011-05-05  Bruno Haible  <bruno@clisp.org>
3387
3388         atoll: Move AC_LIBOBJ invocations to module description.
3389         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3390         invocations from here...
3391         * modules/atoll (configure.ac): ... to here.
3392
3393 2011-05-05  Bruno Haible  <bruno@clisp.org>
3394
3395         argz: Move AC_LIBOBJ invocations to module description.
3396         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3397         * modules/argz (configure.ac): ... to here.
3398
3399 2011-05-05  Bruno Haible  <bruno@clisp.org>
3400
3401         alphasort: Move AC_LIBOBJ invocations to module description.
3402         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3403         gl_PREREQ_ALPHASORT invocations from here...
3404         * modules/alphasort (configure.ac): ... to here.
3405
3406 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3407
3408         verify: new macro verify_expr; verify_true deprecated
3409         * NEWS: Mention this.
3410         * doc/verify.texi (Compile-time Assertions): Document this.
3411         * lib/verify.h (verify_true): Deprecate.
3412         (verify_expr): New macro.
3413         * tests/test-verify.c (function): Test verify_expr.
3414
3415 2011-06-14  Jim Meyering  <meyering@redhat.com>
3416
3417         init.sh: give more portable redirection-related advice in a comment
3418         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3419         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3420         for lots of discussion.  Stefano Lattarini suggested the solution
3421         of putting "9>&2" after the command.  Reported by Bruno Haible.
3422
3423 2011-06-13  Bruno Haible  <bruno@clisp.org>
3424
3425         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3427         'none'.
3428
3429 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3430
3431         ftoastr: use strtof only if HAVE_STRTOF
3432         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3434         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3435         * modules/ftoastr (configure.ac): Check for strtof.
3436
3437 2011-06-13  Bruno Haible  <bruno@clisp.org>
3438
3439         gnulib-tool: Addendum to 2011-06-08 commit.
3440         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3441         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3442
3443 2011-06-13  Bruno Haible  <bruno@clisp.org>
3444
3445         fseeko: Provide a non-inline replacement of fseek().
3446         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3447         * modules/fseeko (Depends-on): Add fseek.
3448         * modules/fseek (License): Change to LGPLv2+.
3449
3450 2011-06-13  Bruno Haible  <bruno@clisp.org>
3451
3452         ftello: Provide a non-inline replacement of ftell().
3453         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3454         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3455         not have ftello() (such as on mingw).
3456         * modules/ftello (Depends-on): Add ftell.
3457         * modules/ftell (License): Change to LGPLv2+.
3458
3459 2011-05-07  Bruno Haible  <bruno@clisp.org>
3460
3461         ftell: Move AC_LIBOBJ invocations to module description.
3462         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3463         * modules/ftell (configure.ac): ... to here.
3464
3465 2011-05-07  Bruno Haible  <bruno@clisp.org>
3466
3467         ftello: Respect rules for use of AC_LIBOBJ.
3468         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3469         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3470         here...
3471         * modules/ftello (configure.ac): ... to here.
3472
3473 2011-05-07  Bruno Haible  <bruno@clisp.org>
3474
3475         fseeko: Simplify.
3476         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3477         (gl_FUNC_FSEEKO): Inline it here.
3478
3479 2011-05-07  Bruno Haible  <bruno@clisp.org>
3480
3481         fseek: Move AC_LIBOBJ invocations to module description.
3482         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3483         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3484         * modules/fseek (configure.ac): ... to here.
3485
3486 2011-05-07  Bruno Haible  <bruno@clisp.org>
3487
3488         fseek: Respect rules for use of AC_LIBOBJ.
3489         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3490         here...
3491         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3492
3493 2011-05-07  Bruno Haible  <bruno@clisp.org>
3494
3495         fseeko: Respect rules for use of AC_LIBOBJ.
3496         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3497         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3498         here...
3499         * modules/fseeko (configure.ac): ... to here.
3500
3501 2011-06-13  Bruno Haible  <bruno@clisp.org>
3502
3503         gnulib-tool: Allow comments in the 'Depends-on' section.
3504         * doc/gnulib.texi (Module description): Mention comment syntax in the
3505         Depends-on section.
3506         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3507
3508 2011-06-13  Bruno Haible  <bruno@clisp.org>
3509
3510         file-set.h: guard __attibute__ use, now that it's not always defined
3511         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3512         versions that support it.  This fixes a coreutils build failure with
3513         the vendor cc on HP-UX 11.31.
3514
3515 2011-06-12  Bruno Haible  <bruno@clisp.org>
3516
3517         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3518         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3519         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3520         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3521         (acl, aclsort): New declarations.
3522         (aclv_nontrivial): New declaration.
3523         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3524         (file_has_acl): Read also the second kind of HP-UX ACLs.
3525         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3526         kind of HP-UX ACLs if the first kind fails.
3527         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3528         second kind of HP-UX ACLs.
3529         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3530         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3531         agree.
3532         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3533         hpuxjfs.
3534         Handle hpuxjfs.
3535         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3536         hpuxjfs.
3537         Handle hpuxjfs.
3538         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3539         (func_test_same_acls): Use both lsacl and getacl.
3540         Handle hpuxjfs.
3541         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3542         (func_test_same_acls): Use both lsacl and getacl.
3543         Handle hpuxjfs.
3544
3545 2011-06-12  Bruno Haible  <bruno@clisp.org>
3546
3547         acl: Complete the 2010-08-10 fix.
3548         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3549         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3550         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3551         explicitly.
3552         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3553         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3554
3555 2011-06-12  Bruno Haible  <bruno@clisp.org>
3556
3557         spawn-pipe tests: Comments.
3558         * tests/test-spawn-pipe-child.c (main): Update comment.
3559         Reported by James Youngman <jay@gnu.org>.
3560
3561 2011-06-11  James Youngman  <jay@gnu.org>
3562
3563         New module 'stat-size'.
3564         * modules/stat-size: New module.  Provides macros for accessing
3565         file size information in instances of struct stat.  Depends on the
3566         fileblocks module because it calls st_blocks.
3567         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3568         * doc/gnulib.texi: Include stat-size.texi.
3569         * doc/stat-size.texi: Documentation for this module.
3570         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3571         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3572         AC_STRUCT_ST_BLOCKS.
3573
3574 2011-06-09  Bruno Haible  <bruno@clisp.org>
3575
3576         thread: Support pthreads-win32.
3577         * lib/glthread/thread.h (gl_thread_self): Define differently on
3578         pthreads-win32.
3579         (gl_null_thread): New declaration.
3580         (gl_thread_self_pointer): New macro.
3581         * lib/glthread/thread.c (gl_null_thread): New constant.
3582         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3583         gl_thread_self.
3584         * tests/test-tls.c: Likewise.
3585         Suggested by Paul Eggert. Reported by Eric Blake.
3586
3587 2011-06-09  Bruno Haible  <bruno@clisp.org>
3588
3589         thread: Fix confusion between NULL and 0.
3590         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3591         Reported by Paul Eggert.
3592
3593 2011-06-09  Bruno Haible  <bruno@clisp.org>
3594
3595         spawn-pipe tests: Avoid test failure on HP-UX 11.
3596         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3597         is closed.
3598
3599 2011-06-09  Bruno Haible  <bruno@clisp.org>
3600
3601         acl tests: Fix compilation error on HP-UX 11.
3602         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3603
3604 2011-06-09  Bruno Haible  <bruno@clisp.org>
3605
3606         rmdir: Avoid test failure on HP-UX 10.20.
3607         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3608         EEXIST.
3609
3610 2011-06-08  Eric Blake  <eblake@redhat.com>
3611
3612         perror: fix test on mingw
3613         * modules/perror-tests (Depends-on): Add dup2.
3614
3615         strerror_r-posix: fix on MacOS
3616         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3617         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3618         logic bug.
3619         * lib/strerror_r.c (strerror_r): Fix the bug.
3620         * lib/strerror.c (strerror): Likewise.
3621         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3622         problem.
3623         * doc/posix-functions/strerror.texi (strerror): Likewise.
3624         * doc/posix-functions/perror.texi (perror): Likewise.
3625         * tests/test-strerror.c (main): Enhance test.
3626         * tests/test-strerror_r.c (main): Likewise.
3627
3628 2011-06-08  Bruno Haible  <bruno@clisp.org>
3629
3630         gnulib-tool: Better isolation between different gnulib-tool invocations.
3631         * gnulib-tool: New option --witness-c-macro.
3632         (witness_c_macro): New variable.
3633         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3634         AM_CPPFLAGS define it as a C macro.
3635         (func_emit_tests_Makefile_am): Likewise.
3636         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3637         read it from there.
3638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3639         m4_define, not AC_DEFUN.
3640         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3641         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3642         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3643         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3644         s|...|...|, to substitute the values of the GNULIB_* module indicator
3645         variables.
3646         * modules/dirent (Makefile.am): Likewise.
3647         * modules/fcntl-h (Makefile.am): Likewise.
3648         * modules/iconv-h (Makefile.am): Likewise.
3649         * modules/langinfo (Makefile.am): Likewise.
3650         * modules/locale (Makefile.am): Likewise.
3651         * modules/math (Makefile.am): Likewise.
3652         * modules/netdb (Makefile.am): Likewise.
3653         * modules/poll-h (Makefile.am): Likewise.
3654         * modules/pty (Makefile.am): Likewise.
3655         * modules/search (Makefile.am): Likewise.
3656         * modules/signal (Makefile.am): Likewise.
3657         * modules/spawn (Makefile.am): Likewise.
3658         * modules/stdio (Makefile.am): Likewise.
3659         * modules/stdlib (Makefile.am): Likewise.
3660         * modules/string (Makefile.am): Likewise.
3661         * modules/sys_ioctl (Makefile.am): Likewise.
3662         * modules/sys_select (Makefile.am): Likewise.
3663         * modules/sys_socket (Makefile.am): Likewise.
3664         * modules/sys_stat (Makefile.am): Likewise.
3665         * modules/sys_times (Makefile.am): Likewise.
3666         * modules/sys_utsname (Makefile.am): Likewise.
3667         * modules/sys_wait (Makefile.am): Likewise.
3668         * modules/termios (Makefile.am): Likewise.
3669         * modules/time (Makefile.am): Likewise.
3670         * modules/unistd (Makefile.am): Likewise.
3671         * modules/wchar (Makefile.am): Likewise.
3672
3673 2011-06-08  Eric Blake  <eblake@redhat.com>
3674
3675         strerror: simplify replacement
3676         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3677         * modules/strerror (configure.ac): No prereqs needed here...
3678         * modules/strerror-override (configure.ac): ...but this needs it.
3679         (Files): Add file for needed prereq macro.
3680
3681 2011-06-08  Bruno Haible  <bruno@clisp.org>
3682
3683         strerror_r-posix: Tweaks.
3684         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3685         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3687         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3688         (gl_FUNC_STRERROR_R): ... to here.
3689         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3690
3691 2011-06-07  Eric Blake  <eblake@redhat.com>
3692
3693         perror: document fixed bugs
3694         * doc/posix-functions/perror.texi (perror): Document recent
3695         patches.
3696
3697 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3698
3699         stat-time: get_stat_birthtime failure is better-defined
3700         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3701         return a timestamp whose tv_sec and tv_nsec values are both -1.
3702         Previously, the spec said only that the tv_nsec value was negative.
3703         This upward-compatible change simplifies GNU tar a bit.
3704
3705 2011-06-07  Eric Blake  <eblake@redhat.com>
3706
3707         strerror_r-posix: work around cygwin 1.7.9
3708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3709         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3710         bug without replacing strerror_r.
3711         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3712         strerror_r is buggy, but without requiring strerror_r compilation.
3713         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3714
3715         test-perror: relax test to ignore cygwin bug
3716         * tests/test-perror2.c (main): Relax test on requiring detection
3717         of stream errors, and use unbuffered stream.
3718         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3719         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3720         * doc/posix-functions/fputc.texi (fputc): Likewise.
3721         * doc/posix-functions/fputs.texi (fputs): Likewise.
3722         * doc/posix-functions/fputws.texi (fputws): Likewise.
3723         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3724         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3725         * doc/posix-functions/getopt.texi (getopt): Likewise.
3726         * doc/posix-functions/perror.texi (perror): Likewise.
3727         * doc/posix-functions/printf.texi (printf): Likewise.
3728         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3729         * doc/posix-functions/psignal.texi (psignal): Likewise.
3730         * doc/posix-functions/putc.texi (putc): Likewise.
3731         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3732         Likewise.
3733         * doc/posix-functions/putchar.texi (putchar): Likewise.
3734         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3735         Likewise.
3736         * doc/posix-functions/puts.texi (puts): Likewise.
3737         * doc/posix-functions/putwc.texi (putwc): Likewise.
3738         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3739         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3740         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3741         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3742         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3743         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3744         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3745         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3746
3747 2011-05-22  Bruno Haible  <bruno@clisp.org>
3748
3749         strerror: Move AC_LIBOBJ invocations to module description.
3750         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3751         gl_PREREQ_STRERROR invocations from here...
3752         * modules/strerror (configure.ac): ... to here.
3753
3754 2011-05-21  Bruno Haible  <bruno@clisp.org>
3755
3756         perror: Use common idiom.
3757         * modules/perror (configure.ac): Reorder statements.
3758
3759 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3760
3761         tests: fix usage message in 'mktempd_'
3762         * tests/init.sh (mktempd_): In the usage message, use literal
3763         'mktempd_', not '$ME' (which is even undefined), as the name of
3764         the subroutine.
3765
3766 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3767
3768         tests init: new function 'fatal_', for hard errors
3769         Before this patch, the only way offered by tests/init.sh to
3770         properly signal a hard error was the `framework_failure_'
3771         function.  But the error message issued by that function,
3772         as its name would suggest, refers to a set-up failure in the
3773         testsuite, while hard errors can obviously also be due to
3774         other reasons.  The best way to fix this inconsistency is to
3775         introduce a new function with a more general error message.
3776         * tests/init.sh (fatal_): New function.
3777
3778 2011-06-06  Eric Blake  <eblake@redhat.com>
3779
3780         canonicalize-lgpl: use common idiom
3781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3782         over newer POSIX -Rf.
3783         Reported by Bruno Haible.
3784
3785         canonicalize-lgpl: work around AIX realpath bug
3786         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3787         * doc/posix-functions/realpath.texi (realpath): Document it.
3788         Reported by Bruno Haible.
3789
3790         strerror: work around FreeBSD bug
3791         * lib/strerror.c (strerror): Special case 0.
3792         Reported by Bruno Haible.
3793
3794         strerror-override: avoid bloating errno module
3795         * modules/errno (Files, configure.ac): Move replacement strings...
3796         * modules/strerror-override: ...to new module.
3797         * modules/strerror (Depends-on): Add strerror-override.
3798         * modules/strerror_r-posix (Depends-on): Likewise.
3799         * MODULES.html.sh: Document new module.
3800         Reported by Bruno Haible.
3801
3802 2011-06-06  Bruno Haible  <bruno@clisp.org>
3803
3804         spawn-pipe tests: Rename program.
3805         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3806         * tests/test-spawn-pipe-child.c: Update comment.
3807         * tests/test-spawn-pipe.sh: Update.
3808         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3809
3810         spawn-pipe tests: Link the child program only against libc.
3811         * tests/test-spawn-pipe-child.c: New file, extracted from
3812         tests/test-spawn-pipe.c.
3813         (main): Expect only one argument.
3814         (is_open): New function, copied from tests/test-pipe.c.
3815         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3816         (child_main): Remove function.
3817         (test_pipe): Pass only one argument to the child program.
3818         (main): Remove child process code. Expect the child program's name as
3819         first argument.
3820         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3821         argument.
3822         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3823         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3824         test-spawn-pipe-child against no libraries.
3825
3826 2011-06-06  Bruno Haible  <bruno@clisp.org>
3827
3828         careadlinkat: Avoid mismatch between ssize_t and int.
3829         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3830         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3831
3832 2011-06-06  Jim Meyering  <meyering@redhat.com>
3833
3834         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3835         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3836         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3837
3838 2011-06-05  Bruno Haible  <bruno@clisp.org>
3839
3840         ansi-c++-opt: Interoperability with libtool.
3841         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3842         set the variable to "no", not to ":".
3843         * NEWS: Mention the change.
3844
3845 2011-06-05  Bruno Haible  <bruno@clisp.org>
3846
3847         acl: Fix test failure on AIX 7.
3848         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3849         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3850
3851 2011-06-05  Bruno Haible  <bruno@clisp.org>
3852
3853         pipe-filter-ii: Fix test failure on AIX and IRIX.
3854         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3855         with EAGAIN, retry with a smaller buffer size.
3856
3857 2011-06-05  Bruno Haible  <bruno@clisp.org>
3858
3859         localename: Fix link dependencies.
3860         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3861         * modules/localename-tests (Makefile.am): Link test-localename with
3862         $(LIBTHREAD).
3863
3864 2011-06-05  Bruno Haible  <bruno@clisp.org>
3865
3866         error: Avoid gcc warning.
3867         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3868
3869 2011-06-05  Bruno Haible  <bruno@clisp.org>
3870
3871         unsetenv: Avoid gcc warning.
3872         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3873
3874 2011-06-05  Bruno Haible  <bruno@clisp.org>
3875
3876         setenv: Avoid gcc warning.
3877         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3878
3879 2011-06-05  Bruno Haible  <bruno@clisp.org>
3880
3881         sys_select: Ensure memset is declared also on AIX 7.
3882         * lib/sys_select.in.h: Include <string.h> also on AIX.
3883         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3884         self-contained also on AIX 7.1.
3885
3886 2011-06-04  Jim Meyering  <meyering@redhat.com>
3887
3888         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3889         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3890         function name, "error".
3891         (_gl_translatable_diag_func_re): New configurable variable.
3892
3893 2011-06-04  Bruno Haible  <bruno@clisp.org>
3894
3895         getopt: Avoid gcc warning.
3896         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3897
3898 2011-06-04  Bruno Haible  <bruno@clisp.org>
3899
3900         strerror_r: Fix comments.
3901         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3902         commit.
3903
3904 2011-06-04  Bruno Haible  <bruno@clisp.org>
3905
3906         perror: Fix compilation error.
3907         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3908         Undefine fprintf, not sprintf.
3909         * modules/perror (Depends-on): Remove intprops, verify.
3910
3911 2011-06-04  Bruno Haible  <bruno@clisp.org>
3912
3913         setlocale: Enable replacement on Cygwin 1.5.
3914         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3915         Cygwin 1.5.x.
3916         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3917         LC_CTYPE category also exists on Cygwin 1.5.x.
3918
3919 2011-06-04  Bruno Haible  <bruno@clisp.org>
3920
3921         strerror-override: Don't disable symbol renamings.
3922         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3923         * lib/strerror-override.c: Include config.h.
3924         (strerror_override): Don't undefine.
3925
3926 2011-06-03  Bruno Haible  <bruno@clisp.org>
3927
3928         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3929         * lib/localename.h: Update copyright header.
3930         * lib/localename.c: Likewise.
3931         * lib/relocatable.h: Likewise.
3932         * lib/relocatable.c: Likewise.
3933
3934 2011-06-02  Bruno Haible  <bruno@clisp.org>
3935
3936         doc: Fix a module name.
3937         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3938
3939 2011-06-02  Bruno Haible  <bruno@clisp.org>
3940
3941         pipe2: Remove dependency on 'nonblocking' module.
3942         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3943         O_NONBLOCK is defined by gnulib.
3944         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3945         is zero.
3946         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3947         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3948         defined by gnulib.
3949         (get_nonblocking_flag): New function.
3950         (main): Test O_NONBLOCK flag only if it is nonzero.
3951         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3952
3953 2011-06-03  Jim Meyering  <meyering@redhat.com>
3954
3955         maint: three new prohibit-header-without-use rules
3956         Prohibit use of cloexec.h, posixver.h, same.h without use.
3957         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3958         (sc_prohibit_posixver_without_use): Likewise.
3959         (sc_prohibit_same_without_use): Likewise.
3960
3961 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3962
3963         allocator: 'die' routine is now given requested size
3964         * lib/allocator.h (struct allocator.die): New size arg.
3965         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3966         If the actual problem is an ssize_t limitation, not a size_t or
3967         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3968
3969 2011-06-01  Eric Blake  <eblake@redhat.com>
3970
3971         strerror: drop strerror_r dependency
3972         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3973         * lib/strerror-override.c (strerror_override): ...to new file.
3974         * lib/strerror-override.h: Add prototype.
3975         * lib/strerror-impl.h: Delete.
3976         * lib/strerror.c (strerror): New implementation.
3977         * modules/errno (Files): Add new files.
3978         (configure.ac): Compile new file as appropriate.
3979         * modules/strerror (Files): Drop unused file.
3980         (Depends-on): Drop strerror_r-posix.
3981         * MODULES.html.sh: Document strerror_r-posix.
3982         Requested by Sam Steingold.
3983
3984         perror: call strerror_r directly
3985         * modules/perror (Files): Drop strerror-impl.h.
3986         * lib/perror.c (perror): Use our own stack buffer, rather than
3987         calling a wrapper that uses static storage.
3988         * doc/posix-functions/perror.texi (perror): Document a limitation
3989         of our replacement.
3990
3991         strerror_r: fix includes for FreeBSD
3992         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3993         since we use abort on some platforms.
3994         Reported by Matthias Bolte.
3995
3996 2011-05-31  Bruno Haible  <bruno@clisp.org>
3997
3998         Fix link errors in tests: openat-die uses gettext-h.
3999         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4000         against $(LIBINTL).
4001         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4002         against $(LIBINTL).
4003         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4004         $(LIBINTL).
4005         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4006         against $(LIBINTL).
4007         * modules/linkat-tests (Makefile.am): Link test-linkat against
4008         $(LIBINTL).
4009         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4010         $(LIBINTL).
4011         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4012         against $(LIBINTL).
4013         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4014         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4015         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4016         $(LIBINTL).
4017         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4018         $(LIBINTL).
4019         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4020         $(LIBINTL).
4021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4022
4023 2011-05-31  Bruno Haible  <bruno@clisp.org>
4024
4025         Fix link errors in tests: wait-process uses gettext-h.
4026         * modules/nonblocking-pipe-tests (Makefile.am): Set
4027         test_nonblocking_pipe_main_LDADD.
4028         * modules/nonblocking-socket-tests (Makefile.am): Link
4029         test-nonblocking-socket-main against $(LIBINTL).
4030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4031
4032 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4033
4034         assert-h: work around 'verify' incompatibility
4035         * lib/verify.h: Use @...@ directives, not ifdef.
4036         * modules/assert-h (assert.h): Implement the directives.
4037         (assert.h): Substitute the symbol-prefix more consistently.
4038
4039 2011-05-29  Jim Meyering  <meyering@redhat.com>
4040
4041         trim: remove three superfluous assignments
4042         * lib/trim.c (trim2): Remove three superfluous assignments
4043         and correct brace positioning.
4044
4045 2011-05-29  Bruno Haible  <bruno@clisp.org>
4046
4047         wctype-h: Avoid namespace pollution on Solaris 2.6.
4048         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4049         identifiers.
4050         * doc/posix-headers/wctype.texi: Mention the problem.
4051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4052
4053 2011-05-28  Jim Meyering  <meyering@redhat.com>
4054
4055         parse-datetime.y: accommodate -Wstrict-overflow
4056         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4057         placate -Wstrict-overflow.
4058
4059         trim: avoid a warning from -O2 -Wstrict-overflow
4060         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4061
4062 2011-05-29  Bruno Haible  <bruno@clisp.org>
4063
4064         gnulib-tool: Fix bug in yesterday's commit.
4065         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4066         twice.
4067
4068 2011-05-29  Bruno Haible  <bruno@clisp.org>
4069
4070         Allow multiple gnulib generated include files to be combined.
4071         * gnulib-tool (func_compute_include_guard_prefix): New function.
4072         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4073         ${gl_include_guard_prefix} references.
4074         (func_import, func_create_testdir): Invoke
4075         func_compute_include_guard_prefix.
4076         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4077         * lib/ctype.in.h: Likewise.
4078         * lib/dirent.in.h: Likewise.
4079         * lib/errno.in.h: Likewise.
4080         * lib/fcntl.in.h: Likewise.
4081         * lib/float.in.h: Likewise.
4082         * lib/getopt.in.h: Likewise.
4083         * lib/iconv.in.h: Likewise.
4084         * lib/langinfo.in.h: Likewise.
4085         * lib/locale.in.h: Likewise.
4086         * lib/math.in.h: Likewise.
4087         * lib/netdb.in.h: Likewise.
4088         * lib/netinet_in.in.h: Likewise.
4089         * lib/poll.in.h: Likewise.
4090         * lib/pthread.in.h: Likewise.
4091         * lib/pty.in.h: Likewise.
4092         * lib/sched.in.h: Likewise.
4093         * lib/se-selinux.in.h: Likewise.
4094         * lib/search.in.h: Likewise.
4095         * lib/signal.in.h: Likewise.
4096         * lib/spawn.in.h: Likewise.
4097         * lib/stdarg.in.h: Likewise.
4098         * lib/stddef.in.h: Likewise.
4099         * lib/stdint.in.h: Likewise.
4100         * lib/stdio.in.h: Likewise.
4101         * lib/stdlib.in.h: Likewise.
4102         * lib/string.in.h: Likewise.
4103         * lib/strings.in.h: Likewise.
4104         * lib/sys_file.in.h: Likewise.
4105         * lib/sys_ioctl.in.h: Likewise.
4106         * lib/sys_select.in.h: Likewise.
4107         * lib/sys_socket.in.h: Likewise.
4108         * lib/sys_stat.in.h: Likewise.
4109         * lib/sys_time.in.h: Likewise.
4110         * lib/sys_times.in.h: Likewise.
4111         * lib/sys_uio.in.h: Likewise.
4112         * lib/sys_utsname.in.h: Likewise.
4113         * lib/sys_wait.in.h: Likewise.
4114         * lib/sysexits.in.h: Likewise.
4115         * lib/termios.in.h: Likewise.
4116         * lib/time.in.h: Likewise.
4117         * lib/unistd.in.h: Likewise.
4118         * lib/wchar.in.h: Likewise.
4119         * lib/wctype.in.h: Likewise.
4120         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4121         * modules/ctype (Makefile.am): Likewise.
4122         * modules/dirent (Makefile.am): Likewise.
4123         * modules/errno (Makefile.am): Likewise.
4124         * modules/fcntl-h (Makefile.am): Likewise.
4125         * modules/float (Makefile.am): Likewise.
4126         * modules/getopt-posix (Makefile.am): Likewise.
4127         * modules/iconv-h (Makefile.am): Likewise.
4128         * modules/langinfo (Makefile.am): Likewise.
4129         * modules/locale (Makefile.am): Likewise.
4130         * modules/math (Makefile.am): Likewise.
4131         * modules/netdb (Makefile.am): Likewise.
4132         * modules/netinet_in (Makefile.am): Likewise.
4133         * modules/poll-h (Makefile.am): Likewise.
4134         * modules/pthread (Makefile.am): Likewise.
4135         * modules/pty (Makefile.am): Likewise.
4136         * modules/sched (Makefile.am): Likewise.
4137         * modules/search (Makefile.am): Likewise.
4138         * modules/selinux-h (Makefile.am): Likewise.
4139         * modules/signal (Makefile.am): Likewise.
4140         * modules/spawn (Makefile.am): Likewise.
4141         * modules/stdarg (Makefile.am): Likewise.
4142         * modules/stddef (Makefile.am): Likewise.
4143         * modules/stdint (Makefile.am): Likewise.
4144         * modules/stdio (Makefile.am): Likewise.
4145         * modules/stdlib (Makefile.am): Likewise.
4146         * modules/string (Makefile.am): Likewise.
4147         * modules/strings (Makefile.am): Likewise.
4148         * modules/sys_file (Makefile.am): Likewise.
4149         * modules/sys_ioctl (Makefile.am): Likewise.
4150         * modules/sys_select (Makefile.am): Likewise.
4151         * modules/sys_socket (Makefile.am): Likewise.
4152         * modules/sys_stat (Makefile.am): Likewise.
4153         * modules/sys_time (Makefile.am): Likewise.
4154         * modules/sys_times (Makefile.am): Likewise.
4155         * modules/sys_uio (Makefile.am): Likewise.
4156         * modules/sys_utsname (Makefile.am): Likewise.
4157         * modules/sys_wait (Makefile.am): Likewise.
4158         * modules/sysexits (Makefile.am): Likewise.
4159         * modules/termios (Makefile.am): Likewise.
4160         * modules/time (Makefile.am): Likewise.
4161         * modules/unistd (Makefile.am): Likewise.
4162         * modules/wchar (Makefile.am): Likewise.
4163         * modules/wctype-h (Makefile.am): Likewise.
4164         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4165
4166 2011-05-29  Bruno Haible  <bruno@clisp.org>
4167
4168         assert-h: Allow multiple gnulib generated replacements to coexist.
4169         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4170
4171 2011-05-29  Bruno Haible  <bruno@clisp.org>
4172
4173         argp: Allow coexistence with strerror_r-posix module.
4174         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4175         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4176         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4177         not the glibc signature.
4178
4179 2011-05-28  Bruno Haible  <bruno@clisp.org>
4180
4181         gnulib-tool: Alternative structure of testdirs, similar to --import.
4182         * gnulib-tool: New option --single-configure.
4183         (func_usage): Document it.
4184         (single_configure): New variable.
4185         (func_modules_transitive_closure_separately,
4186         func_modules_transitive_closure_separately,
4187         func_determine_use_libtests, func_modules_add_dummy_separately,
4188         func_modules_to_filelist_separately): New functions, extracted from
4189         func_import.
4190         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4191         (func_import): Use the new functions.
4192         (func_create_testdir): Set final_modules. Handle $single_configure =
4193         true case.
4194
4195 2011-05-28  Bruno Haible  <bruno@clisp.org>
4196
4197         getloadavg: Remove an unreliable safety check.
4198         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4199         getloadavg.c is in place.
4200         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4201         Reported by Sam Steingold <sds@gnu.org>.
4202
4203 2011-05-28  Bruno Haible  <bruno@clisp.org>
4204
4205         doc: Cleanup yet another file produced by texinfo.tex.
4206         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4207
4208 2011-05-28  Bruno Haible  <bruno@clisp.org>
4209
4210         Finish the conditional dependencies mechanism.
4211         * gnulib-tool: New option --no-conditional-dependencies.
4212         (func_usage): Document it. Don't mark --conditional-dependencies as
4213         experimental.
4214         (cond_dependencies): The possible values can now be true, false, empty.
4215         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4216         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4217         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4218
4219 2011-05-28  Bruno Haible  <bruno@clisp.org>
4220
4221         doc: Use a recent texinfo.tex.
4222         * doc/Makefile (tex_opts): New variable.
4223         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4224
4225 2011-05-28  Jim Meyering  <meyering@redhat.com>
4226
4227         intprops.h: adjust comment to match code change
4228         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4229         only once, it *may* have side effects.  Also fix an unrelated typo.
4230         (_GL_INT_SIGNED): Likewise.
4231
4232 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4233
4234         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4235
4236 2011-05-26  Bruno Haible  <bruno@clisp.org>
4237
4238         mbsrchr: Avoid collision with system function on Interix.
4239         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4240         Reported by Markus Duft <mduft@gentoo.org>.
4241
4242 2011-05-15  James Youngman  <jay@gnu.org>
4243
4244         getopt: for ambiguous options, enumerate the possibilities.
4245         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4246         the ambiguous options when an ambiguous prefix is given. This was
4247         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4248         glibc change was
4249         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4250
4251 2011-05-25  Eric Blake  <eblake@redhat.com>
4252
4253         getcwd: work around mingw bug
4254         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4255         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4256         Reported by Matthias Bolte.
4257
4258 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         test-intprops: disable -Wtype-limits diagnostics
4261         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4262         diagnostics.  Otherwise, the integer overflow macros generate many
4263         diagnostics.  Reported by Jim Meyering in
4264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4265
4266         intprops: shorten, to pacify gcc -Woverlength-strings
4267         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4268         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4269         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4270         likely to run afoul of C compiler limits for string constant lengths.
4271         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4272
4273 2011-05-24  Eric Blake  <eblake@redhat.com>
4274
4275         docs: document recently fixed glibc printf bug
4276         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4277         * doc/posix-functions/printf.texi (printf): Likewise.
4278         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4279         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4280
4281         closein-tests: convert to init.sh
4282         * modules/closein-tests (Files): Add init.sh
4283         * tests/test-closein.sh Use it.
4284
4285         yesno-tests: convert to init.sh
4286         * modules/yesno-tests (Files): Add init.sh.
4287         * tests/test-yesno.sh: Use it.
4288
4289         atexit-tests: ensure reliable exit status
4290         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4291         Reported by Bruno Haible.
4292
4293 2011-05-24  Bruno Haible  <bruno@clisp.org>
4294
4295         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4297         gl_PREREQ_STRERROR_R invocations from here...
4298         * modules/strerror_r-posix (configure.ac): ... to here.
4299
4300 2011-05-24  Eric Blake  <eblake@redhat.com>
4301
4302         strerror_r: fix missing header
4303         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4304
4305         strerror_r: fix AIX test failures
4306         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4307         ERANGE failure.
4308
4309         strerror_r: fix Solaris test failures
4310         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4311         failures.
4312         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4313
4314         strerror_r: enforce POSIX recommendations
4315         * lib/strerror_r.c (safe_copy): New helper method.
4316         (strerror_r): Guarantee a non-empty string.
4317         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4318         recent POSIX rulings and to match our strerror guarantees.
4319         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4320
4321 2011-05-24  Jim Meyering  <meyering@redhat.com>
4322
4323         test-perror2.c: avoid warning about unused variable
4324         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4325
4326 2011-05-24  Eric Blake  <eblake@redhat.com>
4327
4328         perror: avoid spurious test failure on HP-UX
4329         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4330
4331         tests: fix logic bug in init.sh
4332         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4333         shell.
4334
4335 2011-05-24  Jim Meyering  <meyering@redhat.com>
4336
4337         utimensat: do not reference an out-of-scope buffer
4338         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4339         declared in an inner scope, yet "times" would be dereferenced outside
4340         the scope in which "ts" was valid.
4341         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4342         of ts[2] "out/up", so that the use of aliased "times" (via
4343         "times = ts;") does not end up referencing an out-of-scope "ts"
4344
4345         opendir-safer.c: don't clobber errno; don't close negative FD
4346         * lib/opendir-safer.c (opendir_safer):
4347         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4348         file descriptor, and more importantly, don't clobber the
4349         offending errno value with EINVAL.  Before, upon failure
4350         of dup_safer, we would pass the negative file descriptor to
4351         fdopendir, which would clobber errno.
4352
4353 2011-05-23  Bruno Haible  <bruno@clisp.org>
4354
4355         idcache: Fix module description.
4356         * modules/idcache (Include): Set to "idcache.h".
4357
4358 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4359
4360         gnulib-tool: fix portability problem with MacOS sed
4361         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4362         before the "}".  Problem reported by Leo in
4363         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4364         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4365         sed_extract_condition1, sed_extract_condition2.
4366
4367 2011-05-23  Bruno Haible  <bruno@clisp.org>
4368
4369         hash: Simplify autoconf macro.
4370         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4371
4372 2011-05-23  Bruno Haible  <bruno@clisp.org>
4373
4374         getugroups: Fix module description.
4375         * modules/getugroups (Include): Set to "getugroups.h".
4376
4377 2011-05-23  Bruno Haible  <bruno@clisp.org>
4378
4379         linkat: Simplify autoconf macro.
4380         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4381
4382 2011-05-23  Bruno Haible  <bruno@clisp.org>
4383             Eric Blake  <eblake@redhat.com>
4384
4385         linkat, renameat: Update dependencies.
4386         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4387         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4388         symlinkat.
4389
4390 2011-05-23  Jim Meyering  <meyering@redhat.com>
4391
4392         maint.mk: more tight_scope improvements
4393         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4394         (_gl_TS_headers): Define only in if-0'd block.
4395         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4396         sometimes we must *not* use it.  Adjust uses accordingly.
4397         (sc_tight_scope): Use much simpler grep-based test to determine
4398         whether we skip this rule.
4399
4400         maint.mk: generalize/improve the tight-scope rule
4401         * top/maint.mk: Emit a warning when the test is skipped.
4402         (_gl_TS_dir): Add $(srcdir)/ prefix.
4403         (_gl_TS_function_match): Simplify, rather than trying
4404         to enumerate common types.  Otherwise, it would fail to match an
4405         "extern unsigned char const *" declaration in idutils.
4406         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4407         a way to support use of that type of macro.
4408         (_gl_TS_var_match): Simplify regexp.
4409         (_gl_TS_obj_files): New configurable variable.
4410         (_gl_TS_headers): Likewise.
4411
4412 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4413
4414         verify: fix bug when gnulib <assert.h> is also included
4415         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4416         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4417         Perhaps there's a better way, but this fixes the immediate problem.
4418         Problem reported by Bruno Haible in
4419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4420
4421 2011-05-22  Bruno Haible  <bruno@clisp.org>
4422
4423         xgetcwd: Simplify autoconf macro.
4424         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4425
4426 2011-05-22  Bruno Haible  <bruno@clisp.org>
4427
4428         New module 'mktime-internal'.
4429         * modules/mktime-internal: New file.
4430         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4431         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4432         mktime_internal as a C macro if libc has __mktime_internal.
4433         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4434         conditions.
4435         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4436
4437 2011-05-22  Bruno Haible  <bruno@clisp.org>
4438
4439         timegm: Correct mktime replacement statements.
4440         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4441         defining mktime as a C macro. This completes a 2009-07-28 commit.
4442
4443 2011-05-22  Bruno Haible  <bruno@clisp.org>
4444
4445         timegm: Simplify autoconf macro.
4446         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4447
4448 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4449
4450         clock-time: change to LGPLv2+.
4451         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4452         BSD-like but we have no mark for that; this is good enough for now.
4453
4454 2011-05-21  Bruno Haible  <bruno@clisp.org>
4455
4456         strerror_r: Fix comments.
4457         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4458
4459 2011-05-21  Bruno Haible  <bruno@clisp.org>
4460
4461         relocatable-prog-wrapper: Fix possible link error.
4462         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4463         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4464         (gl_FUNC_SETENV): ... to here.
4465         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4466         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4467
4468 2011-05-21  Bruno Haible  <bruno@clisp.org>
4469
4470         relocatable-prog-wrapper: Assume strerror() exists.
4471         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4472         m4/strerror.m4.
4473         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4474         * lib/relocwrapper.c: Remove mention of strerror module.
4475         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4476         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4477         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4478         C macro.
4479
4480 2011-05-21  Bruno Haible  <bruno@clisp.org>
4481
4482         select: Simplify replacement idiom.
4483         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4484         Win32 platforms.
4485         * lib/sys_select.in.h (select): Simplify accordingly.
4486         * modules/select (Depends-on): Likewise.
4487
4488 2011-05-21  Bruno Haible  <bruno@clisp.org>
4489
4490         mkdir-p: Simplify autoconf macro.
4491         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4492         gl_FUNC_LCHOWN.
4493
4494 2011-05-21  Eric Blake  <eblake@redhat.com>
4495
4496         strerror_r: avoid clobbering strerror on cygwin
4497         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4498         fall back instead to sys_errlist.
4499         * modules/strerror (configure.ac): Add witness.
4500         * tests/test-strerror_r.c (main): Enhance test.
4501         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4502         * tests/test-perror2.c (main): Free memory before exit.
4503
4504 2011-05-21  Bruno Haible  <bruno@clisp.org>
4505
4506         mkdtemp: Use gnulib naming conventions.
4507         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4508         * modules/mkdtemp (configure.ac): Update.
4509
4510 2011-05-20  Eric Blake  <eblake@redhat.com>
4511
4512         strerror_r: avoid corrupting errno on Solaris
4513         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4514         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4515
4516         strerror_r: avoid compiler warning
4517         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4518
4519         strerror_r: simplify AIX code
4520         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4521
4522         test-perror: avoid spurious failure on FreeBSD
4523         * modules/perror-tests (Depends-on): Add strerror, now that
4524         strerror_r no longer pulls it in.
4525
4526 2011-05-20  Bruno Haible  <bruno@clisp.org>
4527
4528         strerror_r-posix: Remove unused dependencies.
4529         * modules/strerror_r-posix (Depends-on): Remove strerror.
4530         Reported by Eric Blake.
4531
4532 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4533
4534         intprops: remove assumption about A|B representation
4535         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4536         is a valid integer if both A and B are.  Although this is true for
4537         all known practical hosts, the C standard doesn't guarantee it,
4538         and the code need not assume it.  Also, this change may work around
4539         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4541
4542 2011-05-20  Eric Blake  <eblake@redhat.com>
4543
4544         perror: work around FreeBSD bug
4545         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4546         is broken.  Move AC_LIBOBJ...
4547         * modules/perror (configure.ac): Here.
4548         * doc/posix-functions/perror.texi (perror): Document this.
4549         * tests/test-perror2.c (main): Enhance test.
4550
4551         test-perror: check for strerror interactions
4552         * tests/macros.h (STREQ): Add macro.
4553         * modules/perror-tests (Files): Add second test.
4554         * tests/test-perror2.c (main): New file.
4555         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4556
4557         test-perror: rewrite to use init script
4558         * modules/perror-tests (Files): Add init.sh.
4559         * tests/test-perror.sh: Use temporary directory.
4560
4561 2011-05-20  Jim Meyering  <meyering@redhat.com>
4562
4563         maint: replace misused "a" with "an"
4564         * doc/intprops.texi: "a integer"
4565         * doc/regex.texi: "a explanation"
4566         * lib/alignof.h: "a object"
4567         * lib/argmatch.h: "a explanation"
4568         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4569         * lib/stdint.in.h: "a integer"
4570         * lib/userspec.c: "a owner"
4571         * doc/gnulib.texi: Fix "a idea", and reword.
4572
4573 2011-05-19  Jim Meyering  <meyering@redhat.com>
4574
4575         maint: correct misuse of "a" and "an"
4576         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4577         * lib/argp-help.c: "an docum...": s/an/a/
4578         * lib/argp-parse.c: "An vector": s/An/A/
4579         * lib/execute.c: "an native": s/an/a/
4580         * lib/spawn-pipe.c: Likewise.
4581         * lib/gc.h: "an Gc_rc": s/an/a/
4582         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4583         * lib/fts.c: "an stat.st_dev": s/an/a/
4584
4585 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4586
4587         intprops-tests: work around HP-UX 11.23 cc bug with constants
4588         * tests/test-intprops.c (VERIFY): New macro.
4589         (main): Use it, instead of verify, to work around the compiler bug; see
4590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4591
4592         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4593         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4594         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4595         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4596         (_GL_REMAINDER_OVERFLOW): Use it.
4597
4598         intprops-tests: revert unsigned part of previous change
4599         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4600         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4601         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4603
4604 2011-05-19  Bruno Haible  <bruno@clisp.org>
4605
4606         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4607         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4608         strerror_r() returned without filling the buffer.
4609         Reported by Eric Blake.
4610
4611 2011-05-19  Eric Blake  <eblake@redhat.com>
4612
4613         strerror_r: guarantee unchanged errno
4614         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4615         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4616         failure.
4617         * tests/test-strerror_r.c (main): Enhance test.
4618
4619 2011-05-19  Bruno Haible  <bruno@clisp.org>
4620
4621         strerror_r: Reorder #if blocks.
4622         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4623         for consistency with the previous commit.
4624
4625 2011-05-19  Bruno Haible  <bruno@clisp.org>
4626
4627         perror: Avoid clobbering the strerror buffer when possible.
4628         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4629         * lib/strerror.c: Include it.
4630         * modules/strerror (Files): Add lib/strerror-impl.h.
4631         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4632         (my_strerror): New function, defined through lib/strerror-impl.h.
4633         (perror): Use it instead of strerror.
4634         * modules/perror (Files): Add lib/strerror-impl.h.
4635         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4636
4637 2011-05-19  Eric Blake  <eblake@redhat.com>
4638
4639         strerror_r: fix on newer cygwin
4640         * lib/strerror_r.c (strerror_r): Cygwin now has
4641         __xpg_strerror_r, use it.
4642
4643 2011-05-19  Bruno Haible  <bruno@clisp.org>
4644
4645         strerror_r: Avoid clobbering the strerror buffer when possible.
4646         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4647         (sys_nerr, sys_errlist): New declarations.
4648         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4649         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4650         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4651
4652 2011-05-19  Bruno Haible  <bruno@clisp.org>
4653
4654         strerror_r: Fix test failure on mingw.
4655         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4656         EXTEND_STRERROR_R.
4657         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4658         macros from errno.in.h instead.
4659
4660 2011-05-19  Eric Blake  <eblake@redhat.com>
4661
4662         strerror: relax test for Solaris
4663         * tests/test-strerror.c (main): Permit Solaris behavior.
4664         * tests/test-strerror_r.c (main): Likewise.
4665
4666         strerror: enforce POSIX ruling on strerror(0)
4667         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4669         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4670         * doc/posix-functions/strerror.texi (strerror): Document it.
4671         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4672         * tests/test-strerror.c (main): Strengthen test.
4673         * tests/test-strerror_r.c (main): Likewise.
4674
4675 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4676
4677         intprop-tests: port to older and more-pedantic compilers
4678         * modules/intprops-tests (Files): Add tests/macros.h.
4679         * tests/test-intprops.c: Include macros.h.
4680         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4681         it's no longer documented to expand to an integer constant expression.
4682         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4683         argument is floating point, as it's no longer documented to expand
4684         to an integer constant expression in that case.
4685         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4686         compiler bugs reported by Bruno Haible.  See
4687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4688         (U0, U1): New constants, to work around the same bugs.  Also,
4689         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4690
4691         intprops: work around C compiler bugs
4692         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4693         bug in Sun C 5.11 2010/08/13 and other compilers; see
4694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4695
4696         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4697         * doc/intprops.texi (Integer Type Determination): Fix
4698         documentation for TYPE_IS_INTEGER: it returns an constant
4699         expression, not an integer constant expression.  Fix doc for
4700         TYPE_SIGNED: it returns an integer constant expression only if its
4701         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4702         hardly worth documented that way....)
4703
4704 2011-05-18  Bruno Haible  <bruno@clisp.org>
4705
4706         strerror_r: Avoid clobbering the strerror buffer when possible.
4707         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4708         Handle gnulib defined errno values here. When strerror() returns NULL
4709         or an empty string, return EINVAL.
4710         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4711         gnulib defined errno values here.
4712         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4713
4714 2011-05-18  Eric Blake  <eblake@redhat.com>
4715
4716         fnmatch: avoid compiler warning
4717         * lib/fnmatch_loop.c (FCT): Use correct type.
4718         Reported by Matthias Bolte.
4719
4720 2011-05-13  Jim Meyering  <meyering@redhat.com>
4721
4722         maint.mk: three new prohibit_<HDR>_without_use rules
4723         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4724         (sc_prohibit_stdio-safer_without_use): Likewise.
4725         (sc_prohibit_xfreopen_without_use): Likewise.
4726
4727 2011-05-17  Jim Meyering  <meyering@redhat.com>
4728
4729         announce-gen: fail if the NEWS delta is empty
4730         If there's nothing noteworthy in NEWS, then either you forgot
4731         or you shouldn't be releasing.
4732         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4733
4734 2011-05-17  Pádraig Brady <P@draigBrady.com>
4735
4736         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4737         reserved symbols starting with double underscore from the check.
4738
4739 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4740
4741         intprops: add doc
4742         * doc/intprops.texi: New file, documenting intprops.
4743         * doc/gnulib.texi (Particular Modules): Include it.
4744
4745         verify: add doc to gnulib manual and fix example
4746         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4747         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4748         (Compile-time Assertions): Fix example so it can't overflow.
4749
4750 2011-05-17  Jim Meyering  <meyering@redhat.com>
4751
4752         warnings.m4: don't usurp save_CPPFLAGS variable name
4753         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4754
4755         doc: fix typo
4756         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4757
4758 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4759             Bruno Haible  <bruno@clisp.org>
4760
4761         doc: Tweak recent change.
4762         * README (Portability guidelines): Tweak new text.
4763         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4764         Interix 6.1.
4765
4766 2011-05-16  Eric Blake  <eblake@redhat.com>
4767
4768         inttypes: avoid autoconf warning
4769         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4770         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4771
4772 2011-05-16  Sam Steingold <sds@gnu.org>
4773         and Eric Blake  <eblake@redhat.com>
4774
4775         vc-list-files: accept multiple directory operands
4776         * build-aux/vc-list-files: Iterate over all remaining operands.
4777
4778 2011-05-16  Bruno Haible  <bruno@clisp.org>
4779
4780         Fix confusion regarding deprecated modules.
4781         * modules/calloc (Status, Notice): Mark module as deprecated, not
4782         obsolete.
4783         * modules/fnmatch-posix (Status, Notice): Likewise.
4784         * modules/getdate (Status, Notice): Likewise.
4785         * modules/getopt (Status, Notice): Likewise.
4786         * modules/malloc (Status, Notice): Likewise.
4787         * modules/pipe (Status, Notice): Likewise.
4788         * modules/realloc (Status, Notice): Likewise.
4789         * modules/rename-dest-slash (Status, Notice): Likewise.
4790         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4791         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4792         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4793         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4794         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4795
4796 2011-05-16  Bruno Haible  <bruno@clisp.org>
4797
4798         doc: List the target platforms.
4799         * doc/gnulib-intro.texi (Target Platforms): New section.
4800         * doc/gnulib.texi (Introduction): Update menu.
4801         * README (Portability guidelines): Refer to the new section. Update
4802         statement about oldest supported environment. Remove rationale why
4803         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4804         unportable C89 function.
4805         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4806         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4807
4808 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4809
4810         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4811
4812 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4813
4814         intprops-tests: new module
4815         * modules/intprops-tests, tests/test-intprops.c: New files.
4816
4817         intprops: add safe, portable integer overflow checking
4818         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4819         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4820         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4821         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4822         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4823         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4824         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4825         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4826         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4827         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4828         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4829
4830 2011-05-12  James Youngman  <jay@gnu.org>
4831
4832         Add a test for glibc's Bugzilla bug #12378.
4833         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4834         doesn't allow the literal matching of a lone "[" (which is
4835         required by POSIX).
4836         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4837
4838 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4839
4840         Sync glibc change fixing Bugzilla bug #12378.
4841         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4842         beginning and fall back to matching as normal character if the
4843         string ends before the matching ']' is found.  This is what POSIX
4844         requires.
4845
4846 2011-05-13  Eric Blake  <eblake@redhat.com>
4847
4848         getcwd-lgpl: relax test for FreeBSD
4849         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4850         issue.
4851         * tests/test-getcwd-lgpl.c (main): Relax test.
4852         Reported by Matthias Bolte.
4853
4854 2011-05-11  Eric Blake  <eblake@redhat.com>
4855
4856         test-fflush: silence compiler warning
4857         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4858
4859 2011-05-11  Bruno Haible  <bruno@clisp.org>
4860
4861         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4862         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4863         * modules/canonicalize (Depends-on): Add 'nocrash'.
4864         * modules/canonicalize-lgpl (Depends-on): Likewise.
4865         * doc/posix-functions/realpath.texi: Update platforms list.
4866         Reported by Ryan Schmidt <ryandesign@macports.org>.
4867
4868 2011-05-11  Bruno Haible  <bruno@clisp.org>
4869
4870         group-member: Declare function in <unistd.h>.
4871         * lib/unistd.in.h (group_member): New declaration.
4872         * lib/group-member.h: Remove file.
4873         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4874         * tests/test-unistd-c++.cc: Check signature of group_member.
4875         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4876         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4877         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4878         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4879         HAVE_GROUP_MEMBER.
4880         * modules/group-member (Files): Remove lib/group-member.h.
4881         (Depends-on): Add unistd. Specify conditions.
4882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4883         (Include): Change to <unistd.h>.
4884         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4885         HAVE_GROUP_MEMBER.
4886         * NEWS: Mention the change.
4887         * lib/euidaccess.c: Don't include group-member.h.
4888
4889 2011-05-11  Bruno Haible  <bruno@clisp.org>
4890
4891         group-member: Document module.
4892         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4893         module.
4894
4895 2011-05-11  Bruno Haible  <bruno@clisp.org>
4896
4897         fclose: Fix mistake earlier today.
4898         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4899
4900 2011-05-11  Eric Blake  <eblake@redhat.com>
4901
4902         fclose: preserve fflush errors
4903         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4904         Reported by Jim Meyering.
4905
4906         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4907         * build-aux/bootstrap (check_versions): When no specific version
4908         is required, merely check that the app produces an exit status
4909         that indicates its existence.
4910
4911         maint.mk: drop redundant check
4912         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4913         the same but better.
4914
4915 2011-05-11  Bruno Haible  <bruno@clisp.org>
4916
4917         fclose: Fix possible link error.
4918         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4919         unregister_shadow_fd. Improve comments.
4920         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4921         Eric Blake.
4922
4923 2011-05-11  Jim Meyering  <meyering@redhat.com>
4924
4925         maint.mk: improve "can not" detection and generalize rule name
4926         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4927         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4928         Use the same technique as in sc_prohibit_doubled_word, so that
4929         we recognize "can not" also when the words are separated by a newline.
4930         Suggested by Eric Blake.
4931         (perl_filename_lineno_text_): Define.  Factored out of...
4932         (prohibit_doubled_word_): ...here.  Use the new definition.
4933         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4934         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4935         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4936
4937 2011-05-10  Eric Blake  <eblake@redhat.com>
4938
4939         fclose: avoid double close race when possible
4940         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4941         all but WINDOWS_SOCKETS.
4942
4943 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4944
4945         openat: correct new comment
4946         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4947
4948 2011-05-10  Jim Meyering  <meyering@redhat.com>
4949
4950         openat: add comments
4951         * lib/openat-proc.c (openat_proc_name): Add comments,
4952         mostly from Eric Blake.
4953
4954 2011-05-09  Eric Blake  <eblake@redhat.com>
4955
4956         openat: reduce syscalls in first probe of /proc
4957         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4958         be a directory.  Simplify the probe for .. bugs.
4959         * modules/openat (Depends-on): Drop same-inode.
4960         Reported by Bastien ROUCARIES.
4961
4962 2011-05-09  Jim Meyering  <meyering@redhat.com>
4963
4964         maint.mk: change semantics/name of tight_scope variables
4965         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4966         Rename variables to align with semantics that make them more useful.
4967
4968         maint.mk: tweak new rule's name not to impinge
4969         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4970         (sc_tight_scope): Use new rule name rather than $@-0.
4971
4972         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4973         * top/maint.mk (sc_tight_scope): New rule.
4974         (sc_tight_scope-0): New rule, ifdef'd out.
4975         (_gl_TS_dir): Default.
4976         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4977         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4978
4979 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4980
4981         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4982         Haible <bruno@clisp.org>.
4983
4984 2011-05-08  Bruno Haible  <bruno@clisp.org>
4985
4986         Comments.
4987         * m4/isnanf.m4: Add comment.
4988         * m4/isnanl.m4: Likewise.
4989
4990 2011-05-08  Bruno Haible  <bruno@clisp.org>
4991
4992         glob: Remove obsolete macro.
4993         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4994
4995 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         intprops: Sun C 5.11 supports __typeof__
4998         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4999         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5000         which is new.
5001         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5002
5003         intprops: switch to usual gnulib indenting and naming
5004         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5005         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5006
5007         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5008
5009 2011-05-08  Jim Meyering  <meyering@redhat.com>
5010
5011         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5012         * top/maint.mk (release-prep): Use make's --no-print-directory
5013         option when generating the announcement.  This eliminates the
5014         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5015         generated announcement template.
5016
5017 2011-05-08  Bruno Haible  <bruno@clisp.org>
5018
5019         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5020         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5021         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5022
5023 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5024
5025         ignore-value, verify: Omit include files from lib_SOURCES.
5026         * modules/ignore-value, modules/verify (Makefile.am):
5027         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5028         that leads Automake to duplicate use of am__objects_... variables
5029         in Makefile.in.  See
5030         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5031
5032 2011-05-07  Bruno Haible  <bruno@clisp.org>
5033
5034         fclose: Simplify autoconf macro.
5035         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5036         defined.
5037
5038 2011-05-07  Bruno Haible  <bruno@clisp.org>
5039
5040         canonicalize-lgpl: Fix autoconf macro ordering bug.
5041         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5042         gl_STDLIB_H_DEFAULTS.
5043
5044 2011-05-06  Eric Blake  <eblake@redhat.com>
5045
5046         maintainer-makefile: make sc_po_check easier to tune
5047         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5048         to probe for strings, such as an alternate location for gnulib.
5049
5050         fclose: guarantee behavior on seekable stdin
5051         * modules/fclose (Depends-on): Add fflush.
5052         * doc/posix-functions/fclose.texi (fclose): Document this.
5053         * tests/test-fclose.c (main): Make test for this unconditional.
5054
5055 2011-05-06  Bruno Haible  <bruno@clisp.org>
5056
5057         fflush, fpurge: Relicense under LGPLv2+.
5058         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5059         * modules/fpurge (License): Likewise.
5060         With permission from Eric Blake and Jim Meyering.
5061         Suggested by Eric Blake.
5062
5063 2011-05-06  Karl Berry  <karl@gnu.org>
5064
5065         * MODULES.html.sh (func_all_modules): remove exit.
5066
5067 2011-05-06  Jim Meyering  <meyering@redhat.com>
5068
5069         maint.mk: use info-gnu@ as the default only for a stable release
5070         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5071         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5072         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5074
5075 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5076
5077         assert-h: new module, which supports C1X-style static_assert
5078         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5079         * lib/verify.h: Revamp so that this can be copied into assert.h,
5080         while retaining the ability to use it standalone as before.
5081         Rename private identifiers so as not to encroach on the
5082         standard C namespace, since this is now used by assert.h.
5083         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5084         the old verify_true.
5085         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5086         the old verify_true.  Use _GL_VERIFY_TYPE.
5087         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5088         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5089         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5090         defined when this file is copied into the replacement assert.h.
5091         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5092         and _Static_assert is not built in.
5093         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5094         defined, and use the new macros mentioned above.
5095         * doc/posix-headers/assert.texi: Document this.
5096
5097 2011-05-05  Bruno Haible  <bruno@clisp.org>
5098
5099         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5100         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5101         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5102         gl_REPLACE_FCLOSE here.
5103         * modules/fflush (Depends-on): Remove fclose.
5104         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5105         combination with module 'fclose'.
5106
5107 2011-05-05  Bruno Haible  <bruno@clisp.org>
5108
5109         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5110         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5111         gl_FUNC_FFLUSH.
5112         (gl_FUNC_FFLUSH): Use it.
5113         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5115         gl_REPLACE_FSEEKO here.
5116
5117 2011-05-05  Bruno Haible  <bruno@clisp.org>
5118
5119         tzset: Relicense under LGPL.
5120         * modules/tzset (License): Change to LGPL.
5121         No agreement needed; it's a no-op.
5122
5123         strtoimax, strtoumax: Relicense under LGPL.
5124         * modules/strtoimax (License): Change to LGPL.
5125         * modules/strtoumax (License): Likewise.
5126         With permission from Jim Meyering, Paul Eggert:
5127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5129
5130         getgroups: Relicense under LGPL.
5131         * modules/getgroups (License): Change to LGPL.
5132         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5136
5137         nanosleep: Relicense under LGPL.
5138         * modules/nanosleep (License): Change to LGPL.
5139         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5140         Haible:
5141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5145
5146         futimens: Relicense under LGPL.
5147         * modules/futimens (License): Change to LGPL.
5148         With permission from Eric Blake:
5149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5150
5151         fflush: Relicense under LGPL.
5152         * modules/fflush (License): Change to LGPL.
5153         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5157
5158         tmpfile: Relicense under LGPL.
5159         * modules/tmpfile (License): Change to LGPL.
5160         With permission from Ben Pfaff:
5161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5162
5163         isfinite: Relicense under LGPL.
5164         * modules/isfinite (License): Change to LGPL.
5165         With permission from Ben Pfaff, Bruno Haible:
5166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5168
5169         acosl..tanl: Relicense under LGPL.
5170         * modules/acosl (License): Change to LGPL.
5171         * modules/asinl (License): Likewise.
5172         * modules/atanl (License): Likewise.
5173         * modules/cosl (License): Likewise.
5174         * modules/expl (License): Likewise.
5175         * modules/logl (License): Likewise.
5176         * modules/sinl (License): Likewise.
5177         * modules/sqrtl (License): Likewise.
5178         * modules/tanl (License): Likewise.
5179         Source code originally from glibc and Paolo Bonzini. Agreements:
5180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5182
5183 2011-05-05  Bruno Haible  <bruno@clisp.org>
5184
5185         signal: Define sighandler_t.
5186         * lib/signal.in.h (sighandler_t): New type.
5187         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5188         whether sighandler_t is defined.
5189         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5190         * modules/signal (Depends-on): Add extensions.
5191         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5192         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5193         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5194
5195 2011-05-05  Eric Blake  <eblake@redhat.com>
5196
5197         maint: remove useless REPLACE_*_H macros
5198         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5199         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5200         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5201         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5202         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5203         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5204         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5205         * m4/btowc.m4: Update callers.
5206         * m4/dirfd.m4: Likewise.
5207         * m4/duplocale.m4: Likewise.
5208         * m4/fchdir.m4: Likewise.
5209         * m4/fdopendir.m4: Likewise.
5210         * m4/inet_ntop.m4: Likewise.
5211         * m4/inet_pton.m4: Likewise.
5212         * m4/ioctl.m4: Likewise.
5213         * m4/mbrlen.m4: Likewise.
5214         * m4/mbrtowc.m4: Likewise.
5215         * m4/mbsinit.m4: Likewise.
5216         * m4/mbsnrtowcs.m4: Likewise.
5217         * m4/mbsrtowcs.m4: Likewise.
5218         * m4/poll.m4: Likewise.
5219         * m4/setlocale.m4: Likewise.
5220         * m4/wcrtomb.m4: Likewise.
5221         * m4/wcsnrtombs.m4: Likewise.
5222         * m4/wcsrtombs.m4: Likewise.
5223         * m4/wctob.m4: Likewise.
5224         * m4/wcwidth.m4: Likewise.
5225         * modules/posix_spawn: Likewise.
5226         * modules/posix_spawn_file_actions_addclose: Likewise.
5227         * modules/posix_spawn_file_actions_adddup2: Likewise.
5228         * modules/posix_spawn_file_actions_addopen: Likewise.
5229         * modules/posix_spawn_file_actions_destroy: Likewise.
5230         * modules/posix_spawn_file_actions_init: Likewise.
5231         * modules/posix_spawnattr_destroy: Likewise.
5232         * modules/posix_spawnattr_getflags: Likewise.
5233         * modules/posix_spawnattr_getpgroup: Likewise.
5234         * modules/posix_spawnattr_getschedparam: Likewise.
5235         * modules/posix_spawnattr_getschedpolicy: Likewise.
5236         * modules/posix_spawnattr_getsigdefault: Likewise.
5237         * modules/posix_spawnattr_getsigmask: Likewise.
5238         * modules/posix_spawnattr_init: Likewise.
5239         * modules/posix_spawnattr_setflags: Likewise.
5240         * modules/posix_spawnattr_setpgroup: Likewise.
5241         * modules/posix_spawnattr_setschedparam: Likewise.
5242         * modules/posix_spawnattr_setschedpolicy: Likewise.
5243         * modules/posix_spawnattr_setsigdefault: Likewise.
5244         * modules/posix_spawnattr_setsigmask: Likewise.
5245         * modules/posix_spawnp: Likewise.
5246
5247 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5248
5249         Add option to do-release-commit-and-tag to specify branch.
5250         * build-aux/do-release-commit-and-tag: Add --branch.
5251
5252 2011-05-03  Bruno Haible  <bruno@clisp.org>
5253
5254         Avoid unnecessary compilation units, through conditional dependencies.
5255         * modules/accept (Depends-on): Add conditions to the dependencies.
5256         * modules/acosl (Depends-on): Likewise.
5257         * modules/argz (Depends-on): Likewise.
5258         * modules/asinl (Depends-on): Likewise.
5259         * modules/atanl (Depends-on): Likewise.
5260         * modules/atoll (Depends-on): Likewise.
5261         * modules/bind (Depends-on): Likewise.
5262         * modules/btowc (Depends-on): Likewise.
5263         * modules/canonicalize-lgpl (Depends-on): Likewise.
5264         * modules/ceil (Depends-on): Likewise.
5265         * modules/ceilf (Depends-on): Likewise.
5266         * modules/ceill (Depends-on): Likewise.
5267         * modules/chdir-long (Depends-on): Likewise.
5268         * modules/chown (Depends-on): Likewise.
5269         * modules/close (Depends-on): Likewise.
5270         * modules/connect (Depends-on): Likewise.
5271         * modules/cosl (Depends-on): Likewise.
5272         * modules/dirfd (Depends-on): Likewise.
5273         * modules/dprintf (Depends-on): Likewise.
5274         * modules/dprintf-posix (Depends-on): Likewise.
5275         * modules/error (Depends-on): Likewise.
5276         * modules/euidaccess (Depends-on): Likewise.
5277         * modules/expl (Depends-on): Likewise.
5278         * modules/faccessat (Depends-on): Likewise.
5279         * modules/fchdir (Depends-on): Likewise.
5280         * modules/fclose (Depends-on): Likewise.
5281         * modules/fcntl (Depends-on): Likewise.
5282         * modules/fdopendir (Depends-on): Likewise.
5283         * modules/fflush (Depends-on): Likewise.
5284         * modules/floor (Depends-on): Likewise.
5285         * modules/floorf (Depends-on): Likewise.
5286         * modules/floorl (Depends-on): Likewise.
5287         * modules/fnmatch (Depends-on): Likewise.
5288         * modules/fopen (Depends-on): Likewise.
5289         * modules/fprintf-posix (Depends-on): Likewise.
5290         * modules/frexp (Depends-on): Likewise.
5291         * modules/frexp-nolibm (Depends-on): Likewise.
5292         * modules/frexpl (Depends-on): Likewise.
5293         * modules/frexpl-nolibm (Depends-on): Likewise.
5294         * modules/fseek (Depends-on): Likewise.
5295         * modules/fsusage (Depends-on): Likewise.
5296         * modules/ftell (Depends-on): Likewise.
5297         * modules/ftello (Depends-on): Likewise.
5298         * modules/futimens (Depends-on): Likewise.
5299         * modules/getcwd (Depends-on): Likewise.
5300         * modules/getcwd-lgpl (Depends-on): Likewise.
5301         * modules/getdelim (Depends-on): Likewise.
5302         * modules/getdomainname (Depends-on): Likewise.
5303         * modules/getgroups (Depends-on): Likewise.
5304         * modules/gethostname (Depends-on): Likewise.
5305         * modules/getline (Depends-on): Likewise.
5306         * modules/getlogin_r (Depends-on): Likewise.
5307         * modules/getopt-posix (Depends-on): Likewise.
5308         * modules/getpeername (Depends-on): Likewise.
5309         * modules/getsockname (Depends-on): Likewise.
5310         * modules/getsockopt (Depends-on): Likewise.
5311         * modules/getsubopt (Depends-on): Likewise.
5312         * modules/getusershell (Depends-on): Likewise.
5313         * modules/glob (Depends-on): Likewise.
5314         * modules/grantpt (Depends-on): Likewise.
5315         * modules/iconv_open (Depends-on): Likewise.
5316         * modules/iconv_open-utf (Depends-on): Likewise.
5317         * modules/inet_ntop (Depends-on): Likewise.
5318         * modules/inet_pton (Depends-on): Likewise.
5319         * modules/ioctl (Depends-on): Likewise.
5320         * modules/isapipe (Depends-on): Likewise.
5321         * modules/isfinite (Depends-on): Likewise.
5322         * modules/isinf (Depends-on): Likewise.
5323         * modules/lchown (Depends-on): Likewise.
5324         * modules/ldexpl (Depends-on): Likewise.
5325         * modules/link (Depends-on): Likewise.
5326         * modules/linkat (Depends-on): Likewise.
5327         * modules/listen (Depends-on): Likewise.
5328         * modules/logl (Depends-on): Likewise.
5329         * modules/lstat (Depends-on): Likewise.
5330         * modules/mbrlen (Depends-on): Likewise.
5331         * modules/mbrtowc (Depends-on): Likewise.
5332         * modules/mbsinit (Depends-on): Likewise.
5333         * modules/mbsnrtowcs (Depends-on): Likewise.
5334         * modules/mbsrtowcs (Depends-on): Likewise.
5335         * modules/mbtowc (Depends-on): Likewise.
5336         * modules/memcmp (Depends-on): Likewise.
5337         * modules/mkdir (Depends-on): Likewise.
5338         * modules/mkdtemp (Depends-on): Likewise.
5339         * modules/mkfifo (Depends-on): Likewise.
5340         * modules/mkfifoat (Depends-on): Likewise.
5341         * modules/mknod (Depends-on): Likewise.
5342         * modules/mkostemp (Depends-on): Likewise.
5343         * modules/mkostemps (Depends-on): Likewise.
5344         * modules/mkstemp (Depends-on): Likewise.
5345         * modules/mkstemps (Depends-on): Likewise.
5346         * modules/mktime (Depends-on): Likewise.
5347         * modules/nanosleep (Depends-on): Likewise.
5348         * modules/open (Depends-on): Likewise.
5349         * modules/openat (Depends-on): Likewise.
5350         * modules/perror (Depends-on): Likewise.
5351         * modules/poll (Depends-on): Likewise.
5352         * modules/popen (Depends-on): Likewise.
5353         * modules/posix_spawn (Depends-on): Likewise.
5354         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5355         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5356         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5357         * modules/posix_spawnp (Depends-on): Likewise.
5358         * modules/pread (Depends-on): Likewise.
5359         * modules/printf-posix (Depends-on): Likewise.
5360         * modules/ptsname (Depends-on): Likewise.
5361         * modules/putenv (Depends-on): Likewise.
5362         * modules/pwrite (Depends-on): Likewise.
5363         * modules/readline (Depends-on): Likewise.
5364         * modules/readlink (Depends-on): Likewise.
5365         * modules/readlinkat (Depends-on): Likewise.
5366         * modules/recv (Depends-on): Likewise.
5367         * modules/recvfrom (Depends-on): Likewise.
5368         * modules/regex (Depends-on): Likewise.
5369         * modules/remove (Depends-on): Likewise.
5370         * modules/rename (Depends-on): Likewise.
5371         * modules/renameat (Depends-on): Likewise.
5372         * modules/rmdir (Depends-on): Likewise.
5373         * modules/round (Depends-on): Likewise.
5374         * modules/roundf (Depends-on): Likewise.
5375         * modules/roundl (Depends-on): Likewise.
5376         * modules/rpmatch (Depends-on): Likewise.
5377         * modules/select (Depends-on): Likewise.
5378         * modules/send (Depends-on): Likewise.
5379         * modules/sendto (Depends-on): Likewise.
5380         * modules/setenv (Depends-on): Likewise.
5381         * modules/setlocale (Depends-on): Likewise.
5382         * modules/setsockopt (Depends-on): Likewise.
5383         * modules/shutdown (Depends-on): Likewise.
5384         * modules/sigaction (Depends-on): Likewise.
5385         * modules/signbit (Depends-on): Likewise.
5386         * modules/sigprocmask (Depends-on): Likewise.
5387         * modules/sinl (Depends-on): Likewise.
5388         * modules/sleep (Depends-on): Likewise.
5389         * modules/snprintf (Depends-on): Likewise.
5390         * modules/snprintf-posix (Depends-on): Likewise.
5391         * modules/socket (Depends-on): Likewise.
5392         * modules/sprintf-posix (Depends-on): Likewise.
5393         * modules/sqrtl (Depends-on): Likewise.
5394         * modules/stat (Depends-on): Likewise.
5395         * modules/strchrnul (Depends-on): Likewise.
5396         * modules/strdup-posix (Depends-on): Likewise.
5397         * modules/strerror (Depends-on): Likewise.
5398         * modules/strerror_r-posix (Depends-on): Likewise.
5399         * modules/strndup (Depends-on): Likewise.
5400         * modules/strnlen (Depends-on): Likewise.
5401         * modules/strptime (Depends-on): Likewise.
5402         * modules/strsep (Depends-on): Likewise.
5403         * modules/strsignal (Depends-on): Likewise.
5404         * modules/strstr-simple (Depends-on): Likewise.
5405         * modules/strtod (Depends-on): Likewise.
5406         * modules/strtoimax (Depends-on): Likewise.
5407         * modules/strtok_r (Depends-on): Likewise.
5408         * modules/strtoumax (Depends-on): Likewise.
5409         * modules/symlink (Depends-on): Likewise.
5410         * modules/symlinkat (Depends-on): Likewise.
5411         * modules/tanl (Depends-on): Likewise.
5412         * modules/tcgetsid (Depends-on): Likewise.
5413         * modules/tmpfile (Depends-on): Likewise.
5414         * modules/trunc (Depends-on): Likewise.
5415         * modules/truncf (Depends-on): Likewise.
5416         * modules/truncl (Depends-on): Likewise.
5417         * modules/uname (Depends-on): Likewise.
5418         * modules/unlink (Depends-on): Likewise.
5419         * modules/unlockpt (Depends-on): Likewise.
5420         * modules/unsetenv (Depends-on): Likewise.
5421         * modules/usleep (Depends-on): Likewise.
5422         * modules/utimensat (Depends-on): Likewise.
5423         * modules/vasprintf (Depends-on): Likewise.
5424         * modules/vdprintf (Depends-on): Likewise.
5425         * modules/vdprintf-posix (Depends-on): Likewise.
5426         * modules/vfprintf-posix (Depends-on): Likewise.
5427         * modules/vprintf-posix (Depends-on): Likewise.
5428         * modules/vsnprintf (Depends-on): Likewise.
5429         * modules/vsnprintf-posix (Depends-on): Likewise.
5430         * modules/vsprintf-posix (Depends-on): Likewise.
5431         * modules/wcrtomb (Depends-on): Likewise.
5432         * modules/wcscasecmp (Depends-on): Likewise.
5433         * modules/wcscspn (Depends-on): Likewise.
5434         * modules/wcsdup (Depends-on): Likewise.
5435         * modules/wcsncasecmp (Depends-on): Likewise.
5436         * modules/wcsnrtombs (Depends-on): Likewise.
5437         * modules/wcspbrk (Depends-on): Likewise.
5438         * modules/wcsrtombs (Depends-on): Likewise.
5439         * modules/wcsspn (Depends-on): Likewise.
5440         * modules/wcsstr (Depends-on): Likewise.
5441         * modules/wcstok (Depends-on): Likewise.
5442         * modules/wcswidth (Depends-on): Likewise.
5443         * modules/wctob (Depends-on): Likewise.
5444         * modules/wctomb (Depends-on): Likewise.
5445         * modules/wctype (Depends-on): Likewise.
5446         * modules/wcwidth (Depends-on): Likewise.
5447         * modules/write (Depends-on): Likewise.
5448
5449 2011-05-03  Bruno Haible  <bruno@clisp.org>
5450
5451         Support for conditional dependencies.
5452         * doc/gnulib.texi (Module description): Document the syntax of
5453         conditional dependencies.
5454         * gnulib-tool: New option --conditional-dependencies.
5455         (func_usage): Document it.
5456         (cond_dependencies): New variable.
5457         (func_get_automake_snippet_conditional,
5458         func_get_automake_snippet_unconditional): New functions, extracted from
5459         func_get_automake_snippet.
5460         (func_get_automake_snippet): Use them.
5461         (sed_first_32_chars): New variable.
5462         (func_module_shellfunc_name): New function.
5463         (func_module_shellvar_name): New function.
5464         (func_module_conditional_name): New function.
5465         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5466         func_cond_module_condition): New functions.
5467         (func_modules_transitive_closure): Add support for conditional
5468         dependencies.
5469         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5470         conditional automake snippet in an automake conditional.
5471         (func_emit_autoconf_snippets): Emit shell functions that contain the
5472         code for conditional modules.
5473         (func_import, func_create_testdir): Update specification.
5474
5475 2011-05-03  Eric Blake  <eblake@redhat.com>
5476
5477         test-getaddrinfo: report error information
5478         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5479
5480 2011-05-03  Jim Meyering  <meyering@redhat.com>
5481
5482         bootstrap: avoid build failure when $GZIP is set
5483         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5484         program name.  If defined at all, it is supposed to list gzip options.
5485         Reported by Alan Curry in http://debbugs.gnu.org/8609
5486
5487 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5488
5489         readme-release: new module with release instructions
5490         * modules/readme-release: New module.
5491         * top/README-release: New file, from coreutils, grep, diffutils.
5492         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5493
5494 2011-05-02  Eric Blake  <eblake@redhat.com>
5495
5496         fflush: also replace fclose when fixing fflush
5497         * modules/fflush (Depends-on): Add fclose.
5498         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5499         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5500         memstreams with no backing fd.
5501         * doc/posix-functions/fclose.texi (fclose): Document the use of
5502         fflush module to fix the bug.
5503         * tests/test-fclose.c (main): Relax test when fclose is used in
5504         isolation.
5505
5506         fclose: add some tests
5507         * modules/fclose-tests: New test module.
5508         * tests/test-fclose.c: New file.
5509         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5510
5511         fclose: reduced dependencies
5512         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5513         simpler lseek.
5514         * lib/fclose.c (rpl_fclose): Likewise.
5515         Reported by Simon Josefsson.
5516
5517         exit: drop remaining clients
5518         * modules/argmatch (Depends-on): Replace exit with stdlib.
5519         * modules/copy-file (Depends-on): Likewise.
5520         * modules/execute (Depends-on): Likewise.
5521         * modules/exitfail (Depends-on): Likewise.
5522         * modules/obstack (Depends-on): Likewise.
5523         * modules/pagealign_alloc (Depends-on): Likewise.
5524         * modules/pipe-filter-gi (Depends-on): Likewise.
5525         * modules/pipe-filter-ii (Depends-on): Likewise.
5526         * modules/savewd (Depends-on): Likewise.
5527         * modules/spawn-pipe (Depends-on): Likewise.
5528         * modules/wait-process (Depends-on): Likewise.
5529         * modules/xsetenv (Depends-on): Likewise.
5530         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5531         * modules/git-merge-changelog (Depends-on): Likewise.
5532         * modules/long-options (Depends-on): Likewise.
5533         * modules/pt_chown (Depends-on): Likewise.
5534         * modules/sysexits (Depends-on): Likewise.
5535
5536         freading: relax license from LGPLv3+ to LGPLv2+
5537         * modules/freading (License): Relax LGPL version.
5538
5539 2011-05-02  Bruno Haible  <bruno@clisp.org>
5540
5541         fchdir: Remove unused dependencies.
5542         * modules/fchdir (Depends-on): Remove include_next.
5543
5544 2011-05-02  Bruno Haible  <bruno@clisp.org>
5545
5546         gnulib-tool: Refactor.
5547         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5548         from func_emit_autoconf_snippets.
5549         (func_emit_autoconf_snippets): Use it.
5550
5551 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5552
5553         * NEWS: Document removal of 'exit'.
5554         * modules/exit: Remove file.
5555
5556 2011-05-01  Bruno Haible  <bruno@clisp.org>
5557
5558         Update DEPENDENCIES.
5559         * DEPENDENCIES (gettext): Recommend the newest release.
5560         Reported by Simon Josefsson.
5561
5562 2011-05-01  Bruno Haible  <bruno@clisp.org>
5563
5564         gnulib-tool: Reduce code duplication.
5565         * gnulib-tool (func_emit_autoconf_snippets): New function.
5566         (func_import, func_create_testdir): Use it.
5567
5568 2011-04-30  Eric Blake  <eblake@redhat.com>
5569
5570         fclose: don't fail on non-seekable input stream
5571         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5572         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5573         since fflush is allowed to fail in that case.
5574
5575 2011-04-30  Bruno Haible  <bruno@clisp.org>
5576
5577         dup3: cleanup
5578         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5579
5580 2011-04-30  Bruno Haible  <bruno@clisp.org>
5581
5582         netdb: Make it work in C++ mode.
5583         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5584         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5585         module.
5586         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5587         gl_MODULE_INDICATOR_FOR_TESTS.
5588         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5589         * modules/netdb-c++-tests: New file.
5590         * tests/test-netdb-c++.cc: New file.
5591
5592 2011-04-30  Bruno Haible  <bruno@clisp.org>
5593
5594         New modules 'vfscanf', 'vscanf'.
5595         * modules/vfscanf: New file.
5596         * modules/vscanf: New file.
5597         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5598         here.
5599         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5600         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5601
5602 2011-04-30  Bruno Haible  <bruno@clisp.org>
5603
5604         passfd: Add comments.
5605         * lib/passfd.c: Add comments about platforms.
5606
5607 2011-04-30  Bruno Haible  <bruno@clisp.org>
5608
5609         sys_uio: Make <sys/uio.h> self-contained.
5610         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5611         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5612
5613 2011-04-30  Bruno Haible  <bruno@clisp.org>
5614
5615         sys_socket: Ensure 'struct iovec' definition.
5616         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5617         <sys/socket.h>.
5618         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5619
5620 2011-04-30  Bruno Haible  <bruno@clisp.org>
5621
5622         sys_uio: Protect definition of 'struct iovec'.
5623         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5624         it as a C struct.
5625
5626 2011-04-30  Bruno Haible  <bruno@clisp.org>
5627
5628         manywarnings: fix indentation
5629         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5630
5631 2011-04-30  Pádraig Brady <P@draigBrady.com>
5632
5633         manywarnings: add -Wno-missing-field-initializers if needed.
5634         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5635         option if it's needed to allow initialization with { 0, }
5636
5637 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5638
5639         announce-gen: cosmetic improvement
5640         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5641
5642 2011-04-29  Jim Meyering  <meyering@redhat.com>
5643
5644         vc-list-files: indent with spaces, not TABs
5645         * build-aux/vc-list-files: Convert leading TABs to spaces,
5646         to match the style of most other files in gnulib.
5647
5648         announce-gen: indent with spaces, not TABs
5649         * build-aux/announce-gen: Convert all TABs to spaces, to match
5650         the style of most other files in gnulib.
5651
5652 2011-04-29  Eric Blake  <eblake@redhat.com>
5653
5654         quotearg: avoid uninitialized variable use
5655         * lib/quotearg.c (quoting_options_from_style): Initialize
5656         remaining fields, and ensure that custom styles are only used via
5657         quoting_options rather than quoting_style.
5658
5659 2011-04-29  Jim Meyering  <meyering@redhat.com>
5660
5661         maint.mk: remove unused VC-tag variable
5662         * top/maint.mk (VC-tag): Remove unused variable.
5663
5664 2011-04-29  Bruno Haible  <bruno@clisp.org>
5665
5666         netdb: fix gai_strerror replacements
5667         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5668         * modules/netdb: Substitute it.
5669
5670 2011-04-29  Jim Meyering  <meyering@redhat.com>
5671
5672         test-getcwd.c: avoid new set-but-not-used warning
5673         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5674         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5675         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5676         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5677
5678         test-hash.c: avoid a new shadowing warning
5679         * tests/test-hash.c (main): Don't shadow "dup".
5680
5681 2011-04-28  Eric Blake  <eblake@redhat.com>
5682
5683         getaddrinfo: fix gai_strerror signature
5684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5685         and work around mingw with UNICODE defined.
5686         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5687         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5688         * modules/netdb (Makefile.am): Substitute it.
5689         * lib/netdb.in.h (gai_strerror): Declare replacement.
5690         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5691         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5692         the fix.
5693
5694         getsockopt: avoid compiler warning
5695         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5696         Reported by Matthias Bolte.
5697
5698         tests: drop unused link dependency
5699         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5700         * modules/dirent-safer-tests (Makefile.am): Likewise.
5701         * modules/fdopendir-tests (Makefile.am): Likewise.
5702         * modules/mkfifoat-tests (Makefile.am): Likewise.
5703         * modules/openat-safer-tests (Makefile.am): Likewise.
5704         * modules/openat-tests (Makefile.am): Likewise.
5705         * modules/readlinkat-tests (Makefile.am): Likewise.
5706         * modules/symlinkat-tests (Makefile.am): Likewise.
5707         * modules/linkat-tests (Makefile.am): Likewise.
5708         (Depends-on): Switch to filenamecat-lgpl.
5709         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5710         LIBINTL.
5711         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5712         * tests/test-linkat.c (main): Don't require xalloc.
5713
5714         hash, mgetgroups: drop xalloc dependency
5715         * lib/hash.c (includes): Adjust includes.
5716         * lib/mgetgroups.c (includes): Likewise.
5717         (xgetgroups): Move...
5718         * lib/xgetgroups.c: ...to new file.
5719         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5720         * modules/xgetgroups: New file, split from...
5721         * modules/mgetgroups: ...here.
5722         (Depends-on): Add xalloc-oversized.
5723         * modules/hash (Depends-on): Likewise.
5724         * modules/hash-tests (Depends-on): Drop xalloc.
5725         (test_hash_LDADD): Drop unused library.
5726         * tests/test-hash.c (main): Break xalloc dependency.
5727         (includes): Drop unused include.
5728
5729         xalloc-oversized: new module
5730         * modules/xalloc-oversized: New module.
5731         * modules/xalloc (Depends-on): Add it.
5732         * lib/xalloc.h (xalloc_oversized): Move...
5733         * lib/xalloc-oversized.h: ...into new file.
5734
5735         utimecmp: drop dependency on xmalloc
5736         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5737         due to memory pressure.
5738         * modules/utimecmp (Depends-on): Drop xalloc.
5739
5740 2011-04-27  Eric Blake  <eblake@redhat.com>
5741
5742         getcwd: fix mingw bugs
5743         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5744         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5745         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5746
5747 2011-04-27  Bruno Haible  <bruno@clisp.org>
5748
5749         mkstemps: Ensure declaration on MacOS X 10.5.
5750         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5751         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5752         MacOS X.
5753
5754 2011-04-27  Bruno Haible  <bruno@clisp.org>
5755
5756         mkstemp: More documentation.
5757         * doc/posix-functions/mkstemp.texi: Document header file problem on
5758         MacOS X.
5759
5760 2011-04-27  Bruno Haible  <bruno@clisp.org>
5761
5762         mkstemp: Tweak configure message when cross-compiling.
5763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5764         result as a guess.
5765
5766 2011-04-27  Bruno Haible  <bruno@clisp.org>
5767
5768         clean-temp: Clarify what it does.
5769         * lib/clean-temp.h: Add more comments.
5770         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5771         module.
5772         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5773         * doc/glibc-functions/mkstemps.texi: Likewise.
5774         * doc/glibc-functions/mkostemps.texi: Likewise.
5775
5776 2011-04-27  Eric Blake  <eblake@redhat.com>
5777
5778         fchdir: avoid extra chdir and fix test
5779         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5780         getcwd-lgpl.
5781         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5782         have to be canonical.
5783         (canonicalize_file_name): Drop unused macro.
5784         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5785
5786         filenamecat-lgpl: fix licence
5787         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5788         when it was first created.
5789
5790         linkat, renameat: add missing dependency
5791         * modules/linkat (Depends-on): Require getcwd-lgpl.
5792         * modules/renameat (Depends-on): Likewise.
5793
5794         tests: reduce dependencies
5795         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5796         * tests/test-renameat.c (main): Likewise.
5797         * modules/linkat-tests (Depends-on): Relax dependency.
5798         * modules/renameat-tests (Depends-on): Likewise.
5799         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5800         dependency explicit.
5801
5802         save-cwd: reduce default dependency
5803         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5804         * lib/save-cwd.c: Update comments.
5805         * NEWS: Document the semantic change.
5806
5807         getcwd: enhance tests
5808         * tests/test-getcwd-lgpl.c: New file, taken from...
5809         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5810         repeat long path stress tests from m4 probe.
5811         * modules/getcwd-lgpl-tests: New module.
5812         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5813         * m4/getcwd-abort-bug.m4: Update comment.
5814         * m4/getcwd-path-max.m4: Likewise.
5815
5816         getcwd-lgpl: new module
5817         * modules/getcwd-lgpl: New module.
5818         * lib/getcwd-lgpl.c: New file.
5819         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5820         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5821         * modules/getcwd (configure.ac): Set C witness.
5822         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5823
5824         getcwd: tweak comments
5825         * m4/getcwd-abort-bug.m4: Fix comments.
5826         * m4/getcwd-path-max.m4: Likewise.
5827         * m4/getcwd.m4: Likewise.
5828
5829 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5830         and Eric Blake  <eblake@redhat.com>
5831
5832         mkstemp: replace if system version uses wrong permissions
5833         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5834         read/write mode bits set in file created by mkstemp.
5835         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5836
5837 2011-04-27  Eric Blake  <eblake@redhat.com>
5838
5839         passfd: avoid compiler warning
5840         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5841         Reported by Laine Stump.
5842
5843 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5844
5845         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5846         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5847
5848 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5849         and Eric Blake  <eblake@redhat.com>
5850
5851         mkstemp: mention clean-temp module
5852         * lib/mkstemp.c: Add comment.
5853         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5854
5855 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5856
5857         inttypes: also provide default values for 32-bit tests
5858         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5859         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5860
5861 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5862
5863         strtoumax: remove dependency on strtoimax
5864         This is like the strtoull change of yesterday.
5865         * modules/strtoumax (Files): Add lib/strtoimax.c.
5866         (Depends-on): Remove strtoimax and add verify.
5867
5868         inttypes-incomplete: new module
5869         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5870         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5871         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5872         of gl_INTTYPES_H.
5873         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5874         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5875         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5876         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5877         * modules/strtoumax, modules/xstrtol (Depends-on):
5878         Depend on inttypes-incomplete, not inttypes.
5879         * modules/inttypes-incomplete: New module, containing the contents
5880         of the old modules/inttypes module, except that the Files: section
5881         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5882         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5883         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5884         (Depends-on): Depend only on inttypes-incomplete.
5885         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5886
5887         inttypes: omit now-redundant strtoimax and strtoumax work
5888         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5889         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5890
5891         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5892         This supports apps that need pointers to strtoimax and strtoumax,
5893         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5894         nonexistent functions.  See
5895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5896         et seq.
5897         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5898         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5899         a macro.
5900         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5901
5902 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5903
5904         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5905
5906 2011-04-25  Bruno Haible  <bruno@clisp.org>
5907
5908         strtol, strtoul: Mark modules as obsolete.
5909         * modules/strtol (Status, Notice): New sections.
5910         * modules/strtoul (Status, Notice): New sections.
5911
5912 2011-04-25  Bruno Haible  <bruno@clisp.org>
5913
5914         strtod: Remove check for strtod, unless supporting old platforms.
5915         * modules/strtod-obsolete: New file.
5916         * m4/strtod-obsolete.m4: New file.
5917         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5918         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5919         * modules/strtod (Depends-on): Add strtod-obsolete.
5920         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5921
5922 2011-04-25  Bruno Haible  <bruno@clisp.org>
5923
5924         strcase: Make module obsolete.
5925         * modules/strcase (Status, Notice): New sections.
5926
5927 2011-04-25  Bruno Haible  <bruno@clisp.org>
5928
5929         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5930         * modules/dup2-obsolete: New file.
5931         * m4/dup2-obsolete.m4: New file.
5932         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5933         gl_FUNC_DUP2_OBSOLETE is not also defined.
5934         * modules/dup2 (Depends-on): Add dup2-obsolete.
5935         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5936
5937 2011-04-25  Bruno Haible  <bruno@clisp.org>
5938
5939         strnlen: Avoid memchr related link error on old obsolete platforms.
5940         * modules/memchr-obsolete: New file.
5941         * m4/memchr-obsolete.m4: New file.
5942         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5943         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5944         * modules/memchr (Depends-on): Add memchr-obsolete.
5945         * modules/strnlen (Depends-on): Likewise.
5946         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5947
5948 2011-04-25  Jim Meyering  <meyering@redhat.com>
5949
5950         maint.mk: makefile_at_at_check extend and clean up
5951         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5952         in addition to */Makefile.am.
5953         Exempt legitimate uses of @VAR@ notation, e.g.,
5954         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5955         Remove obsolete coreutils-specific comment.
5956         Prompted by discussion here:
5957         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5958
5959 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5960
5961         strtoul: remove dependency on strtol
5962         This is so that 'configure' need not check for strtol merely because
5963         the application needs strtoul.
5964         * modules/strtoul (Files): Add lib/strtol.c.
5965         (Depends-on): Remove strtol.
5966
5967         strtoull: remove dependency on strtoul
5968         This is like the strtoll change.
5969         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5970         (Depends-on): Remove strtoul.
5971
5972         strtoll: remove dependency on strtol
5973         This is so that 'configure' need not check for strtol merely because
5974         the application needs strtoll.
5975         * modules/strtoll (Files): Add lib/strtol.c.
5976         (Depends-on): Remove strtol.
5977
5978 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5979
5980         inttypes: Move some configure check to module 'imaxdiv'.
5981         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5982         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5983         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5984
5985 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5986
5987         inttypes: Move some configure check to module 'imaxabs'.
5988         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5989         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5990         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5991
5992 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5993
5994         inttypes: Remove configure tests that are not needed since 2009-12-31.
5995         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5996         gl_cv_header_working_inttypes_h.
5997
5998 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5999
6000         * modules/strnlen (Depends-on): Remove memchr.
6001         The strnlen implementation doesn't need the memchr module's fixes; see
6002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6003
6004         strtol: remove dependency on wchar
6005         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6006         * modules/strtol (Depends-on): Remove wchar.
6007
6008 2011-04-21  Eric Blake  <eblake@redhat.com>
6009
6010         passfd: fix test regression on Linux
6011         * modules/passfd-tests (configure.ac): Correct socketpair check.
6012
6013         passfd: speed up configure and drop unused code
6014         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6015         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6016         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6017         Instead of probing at configure for unix_scm_rights_bsd44_way,
6018         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6019         check to a struct member probe.
6020         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6021         (sendfd, recvfd): Update preprocessor checks.
6022         * modules/passfd (Files): Reflect rename, and drop unused file.
6023         (Depends-on): Drop unused dependency.
6024
6025         passfd: allow compilation on mingw
6026         * modules/sys_socket (Depends-on): Add sys_uio.
6027         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6028         iovec and a minimal struct msghdr.
6029         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6030         * tests/test-sys_socket.c (main): Enhance test.
6031         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6032         guaranteed to provide what we need.
6033         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6034         * modules/passfd-tests (Depends-on): Add sys_wait.
6035         * tests/test-passfd.c (main): Skip test on mingw, for now.
6036         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6037         partial 'struct msghdr' implementation.
6038
6039         sys_uio: new module
6040         * modules/sys_uio: New module.
6041         * modules/sys_uio-tests: Likewise.
6042         * lib/sys_uio.in.h: New file.
6043         * m4/sys_uio_h.m4: Likewise.
6044         * tests/test-sys_uio.c: Likewise.
6045         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6046         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6047
6048 2011-04-20  Jim Meyering  <meyering@redhat.com>
6049
6050         useless-if-before-free: avoid false-positive
6051         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6052         disjunct so that it too requires a terminating ";".  Without that,
6053         this script would identify as useless one statement from gcc that
6054         was not:
6055           if (aligned_ptr)
6056             free (((void **) aligned_ptr) [-1]);
6057
6058 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6059
6060         doc: update users.txt.
6061         * users.txt: Add barcode.
6062
6063 2011-04-19  Bruno Haible  <bruno@clisp.org>
6064
6065         ioctl: Remove link dependency on native Windows.
6066         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6067         (gl_close_fn, gl_ioctl_fn): New types.
6068         (struct fd_hook): Renamed from struct close_hook. Change type of
6069         private_close_fn field. Add private_ioctl_fn field.
6070         (close_hook_fn): Add parameter for primary close method.
6071         (execute_close_hooks, execute_all_close_hooks): Likewise.
6072         (ioctl_hook_fn): New type.
6073         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6074         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6075         argument.
6076         (unregister_fd_hook): Renamed from unregister_close_hook.
6077         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6078         Don't include <unistd.h>.
6079         (close): Remove undef.
6080         (anchor): Update.
6081         (execute_close_hooks): Add argument for primary close method.
6082         (execute_all_close_hooks): Likewise.
6083         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6084         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6085         argument. Allow each argument to be NULL.
6086         (unregister_fd_hook): Renamed from unregister_close_hook.
6087         * lib/close.c (rpl_close): Pass 'close' function pointer to
6088         execute_all_close_hooks.
6089         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6090         (primary_ioctl): New function.
6091         (ioctl): Don't call ioctlsocket here. Instead, call
6092         execute_all_ioctl_hooks.
6093         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6094         close method.
6095         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6096         (fd_sockets_hook): Renamed from close_sockets_hook.
6097         (gl_sockets_startup, gl_sockets_cleanup): Update.
6098         * modules/fd-hook: Renamed from modules/close-hook. Update.
6099         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6100         * modules/sockets (Depends-on): Likewise.
6101         * modules/ioctl (Depends-on): Add fd-hook.
6102         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6103         GNULIB_SOCKET.
6104
6105 2011-04-19  Bruno Haible  <bruno@clisp.org>
6106
6107         Move the support of O_NONBLOCK in open() to the 'open' module.
6108         * modules/nonblocking (Depends-on): Remove 'open'.
6109         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6110         gl_cv_have_open_O_NONBLOCK.
6111         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6112         O_NONBLOCK support.
6113         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6114
6115 2011-04-17  Bruno Haible  <bruno@clisp.org>
6116
6117         pipe2: Simplify code.
6118         * lib/pipe2.c (pipe2): Reduce code duplication.
6119
6120 2011-04-17  Bruno Haible  <bruno@clisp.org>
6121
6122         nonblocking: Add comment.
6123         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6124
6125 2011-04-17  Bruno Haible  <bruno@clisp.org>
6126
6127         nonblocking: Add tests for sockets.
6128         * tests/test-nonblocking-socket.sh: New file.
6129         * tests/test-nonblocking-socket-main.c: New file.
6130         * tests/test-nonblocking-socket-child.c: New file.
6131         * tests/test-nonblocking-socket.h: New file.
6132         * tests/socket-server.h: New file.
6133         * tests/socket-client.h: New file.
6134         * modules/nonblocking-socket-tests: New file.
6135         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6136
6137 2011-04-17  Bruno Haible  <bruno@clisp.org>
6138
6139         nonblocking: Add tests for pipes.
6140         * tests/test-nonblocking-pipe.sh: New file.
6141         * tests/test-nonblocking-pipe-main.c: New file.
6142         * tests/test-nonblocking-pipe-child.c: New file.
6143         * tests/test-nonblocking-pipe.h: New file.
6144         * tests/test-nonblocking-writer.h: New file.
6145         * tests/test-nonblocking-reader.h: New file.
6146         * tests/test-nonblocking-misc.h: New file.
6147         * modules/nonblocking-pipe-tests: New file.
6148         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6149
6150 2011-04-16  Bruno Haible  <bruno@clisp.org>
6151
6152         gettext: Clarify the needed programmer actions.
6153         * modules/gettext (Notice): New field.
6154         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6155
6156 2011-04-16  Bruno Haible  <bruno@clisp.org>
6157
6158         strchrnul: Tweak last commit.
6159         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6160         bug.
6161         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6162         as in _GL_FUNCDECL_SYS.
6163         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6164         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6165
6166 2011-04-15  Eric Blake  <eblake@redhat.com>
6167
6168         strchrnul: work around cygwin bug
6169         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6170         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6172         * modules/string (Makefile.am): Substitute it.
6173         * lib/string.in.h (strchrnul): Use it.
6174
6175 2011-04-15  Bruno Haible  <bruno@clisp.org>
6176
6177         Don't require lib/stdio-write.c when only module 'stdio' is used.
6178         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6179         invocation.
6180         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6181
6182 2011-04-14  Bruno Haible  <bruno@clisp.org>
6183
6184         Support non-blocking pipe I/O in read() on native Windows.
6185         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6186         (read): New declaration.
6187         * lib/read.c: New file.
6188         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6189         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6190         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6191         vscanf): New declarations.
6192         * lib/stdio-read.c: New file.
6193         * m4/read.m4: New file.
6194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6195         REPLACE_READ.
6196         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6197         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6198         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6199         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6200         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6201         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6202         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6203         * modules/read: New file.
6204         * modules/nonblocking (Files): Add lib/stdio-read.c.
6205         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6206         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6207         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6208         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6209         * modules/pread (Depends-on): Add read.
6210         * modules/safe-read (Depends-on): Likewise.
6211         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6212         gets, scanf, vfscanf, vscanf): Verify signatures.
6213         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6214         problem with non-blocking pipes.
6215         * doc/posix-functions/fgetc.texi: Likewise.
6216         * doc/posix-functions/fgets.texi: Likewise.
6217         * doc/posix-functions/fread.texi: Likewise.
6218         * doc/posix-functions/fscanf.texi: Likewise.
6219         * doc/posix-functions/getc.texi: Likewise.
6220         * doc/posix-functions/getchar.texi: Likewise.
6221         * doc/posix-functions/gets.texi: Likewise.
6222         * doc/posix-functions/scanf.texi: Likewise.
6223         * doc/posix-functions/vfscanf.texi: Likewise.
6224         * doc/posix-functions/vscanf.texi: Likewise.
6225
6226 2011-04-14  Bruno Haible  <bruno@clisp.org>
6227
6228         Support non-blocking pipe I/O in write() on native Windows.
6229         * lib/write.c (rpl_write): Split a write request that failed merely
6230         because the byte count was larger than the pipe buffer's size.
6231         * doc/posix-functions/write.texi: Mention the problem with large byte
6232         counts.
6233
6234 2011-04-14  Bruno Haible  <bruno@clisp.org>
6235
6236         wchar: Ensure that wchar_t gets defined on uClibc.
6237         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6238         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6239
6240 2011-04-13  Bruno Haible  <bruno@clisp.org>
6241
6242         safe-write, full-read: Avoid unnecessary compilation units.
6243         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6244         (Depends-on): Remove safe-read. Add ssize_t.
6245         * modules/full-read (Files): Add lib/full-write.c.
6246         (Depends-on): Add full-write.
6247
6248 2011-04-13  Bruno Haible  <bruno@clisp.org>
6249
6250         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6251         * modules/pwrite (Depends-on): Add 'write'.
6252
6253 2011-04-13  Bruno Haible  <bruno@clisp.org>
6254
6255         Support non-blocking pipe I/O in write() on native Windows.
6256         * lib/unistd.in.h (write): Enable replacement also if
6257         GNULIB_UNISTD_H_NONBLOCKING is 1.
6258         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6259         (rpl_write): When failing to write on a non-blocking pipe, change
6260         errno from ENOSPC to EAGAIN.
6261         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6262         putchar, puts, vfprintf, vprintf): Enable replacement also if
6263         GNULIB_STDIO_H_NONBLOCKING is 1.
6264         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6265         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6266         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6267         CALL_WITH_SIGPIPE_EMULATION.
6268         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6269         * m4/nonblocking.m4: New file.
6270         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6271         for non-blocking I/O support.
6272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6273         GNULIB_UNISTD_H_NONBLOCKING.
6274         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6275         required for non-blocking I/O support.
6276         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6277         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6278         lib/stdio-write.c, m4/asm-underscore.m4.
6279         (Depends-on): Add stdio, unistd.
6280         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6281         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6282         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6283         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6284         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6285         problem with non-blocking pipes.
6286         * doc/posix-functions/fputc.texi: Likewise.
6287         * doc/posix-functions/fputs.texi: Likewise.
6288         * doc/posix-functions/fwrite.texi: Likewise.
6289         * doc/posix-functions/printf.texi: Likewise.
6290         * doc/posix-functions/putc.texi: Likewise.
6291         * doc/posix-functions/putchar.texi: Likewise.
6292         * doc/posix-functions/puts.texi: Likewise.
6293         * doc/posix-functions/vfprintf.texi: Likewise.
6294         * doc/posix-functions/vprintf.texi: Likewise.
6295         * doc/posix-functions/write.texi: Likewise.
6296
6297 2011-04-10  Jim Meyering  <meyering@redhat.com>
6298
6299         maint.mk: prohibit doubled words
6300         Detect them also when they're separated by a newline.
6301         There are 3 ways to customize it:
6302           - disable the test on a per file basis, as usual with rules using
6303             $(VC_LIST_EXCEPT)
6304           - replace the default doubled-word-selecting regexp (affects all files)
6305           - ignore a particular file-vs-doubled-word match
6306         I nearly used that last one to ignore the "is is" match in
6307         coreutils' NEWS file, since the text was "ls -is is ..."
6308         To do that, I would have added this line to cfg.mk:
6309           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6310         but it would have ignored any "is is" match in NEWS.
6311         Low probability, but still...
6312         Instead, I changed the text, slightly:
6313           -  ls -is is now consistent with ls -lis in ignoring values returned
6314           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6315         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6316         (prohibit_doubled_word_): Define.
6317         (sc_prohibit_doubled_word): New rule.
6318         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6319
6320 2011-04-10  Jim Meyering  <meyering@redhat.com>
6321
6322         maint: fix doubled-word typo in comment
6323         * m4/gethostname.m4: s/is is/it is/
6324         * m4/getdomainname.m4: Likewise.
6325
6326 2011-04-10  Jim Meyering  <meyering@redhat.com>
6327
6328         maint: remove doubled word: s/it it/it/
6329         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6330
6331 2011-04-10  Jim Meyering  <meyering@redhat.com>
6332
6333         maint.mk: remove useless semicolon and backslash
6334         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6335         semicolon and backslash.
6336
6337 2011-04-10  Bruno Haible  <bruno@clisp.org>
6338
6339         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6340         * modules/stdint-tests (Depends-on): Add wchar.
6341
6342 2011-04-10  Jim Meyering  <meyering@redhat.com>
6343
6344         maint: remove doubled words in comments, e.g., s/a a/a/
6345         * lib/strptime.c (day_of_the_week): s/the the/the/
6346         * tests/test-chown.h (test_chown): s/a a/a/
6347
6348         test-chown.h: correct a cast
6349         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6350         when the destination is a stat.st_gid.
6351
6352 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6353
6354         getaddrinfo: Fix test for sa_len member.
6355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6356         include <sys/types.h> before <sys/socket.h>.
6357
6358 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6359
6360         maint: change "can not" to "cannot"
6361         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6362         boundaries.
6363
6364 2011-04-09  Jim Meyering  <meyering@redhat.com>
6365
6366         maint: change "a a" to "a"
6367         * tests/test-lchown.h (test_lchown): s/a a/a/
6368
6369         maint.mk: prohibit \<the the\>
6370         * top/maint.mk (sc_prohibit_the_the): New rule.
6371
6372         maint: fix "the the" in comment
6373         * lib/count-one-bits.h: s/the the/the/
6374
6375         maint: change "can not" to "cannot"
6376         But do not change the occurrences in maintain.texi or in
6377         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6378         * doc/gnulib-tool.texi: s/can not/cannot/
6379         * doc/posix-functions/accept.texi (accept): Likewise.
6380         * doc/posix-functions/socket.texi (socket): Likewise.
6381         * lib/mbrtowc.c: Likewise.
6382
6383         maint.mk: prohibit use of "can not"
6384         * top/maint.mk (sc_prohibit_can_not): New rule.
6385         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6386
6387 2011-04-09  Bruno Haible  <bruno@clisp.org>
6388
6389         careadlinkat: Guard against misuse of careadlinkatcwd.
6390         * lib/careadlinkat.c: Include <stdlib.h>.
6391         (careadlinkatcwd): Check that the fd argument is as expected.
6392
6393 2011-04-09  Bruno Haible  <bruno@clisp.org>
6394
6395         careadlinkat: Use common coding style.
6396         * lib/careadlinkat.c: Move gnulib includes after system includes.
6397
6398 2011-04-09  Bruno Haible  <bruno@clisp.org>
6399
6400         careadlinkat: Clarify specification.
6401         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6402         (careadlinkatcwd): Add comment.
6403         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6404
6405 2011-04-09  Bruno Haible  <bruno@clisp.org>
6406
6407         areadlinkat: Avoid link error on many platforms.
6408         * modules/areadlinkat (Depends-on): Add areadlink.
6409
6410 2011-04-09  Bruno Haible  <bruno@clisp.org>
6411
6412         allocator, careadlinkat: Fix double-inclusion guard.
6413         * lib/allocator.h: Fix double-inclusion guard.
6414         * lib/careadlinkat.h: Likewise.
6415
6416 2011-04-09  Bruno Haible  <bruno@clisp.org>
6417
6418         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6419         * lib/relocwrapper.c: Update dependencies hierarchy.
6420         * build-aux/install-reloc: Update list of files to be compiled.
6421         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6422         lib/allocator.[hc].
6423
6424 2011-04-08  Eric Blake  <eblake@redhat.com>
6425
6426         strftime: silence gnulib-tool warning
6427         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6428
6429 2011-04-08  Bruno Haible  <bruno@clisp.org>
6430
6431         verify: Fix syntax error with GCC 4.6 in C++ mode.
6432         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6433         (HAVE_STATIC_ASSERT): New macro.
6434         (verify_true, verify): Use 'static_assert' if it is supported and
6435         '_Static_assert' is not supported.
6436
6437 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6438
6439         allocator: New module.
6440         * modules/allocator, lib/allocator.c: New files.
6441         * lib/allocator.h (stdlib_allocator): New decl.
6442         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6443         Remove.  Do not include <stdlib.h>.
6444         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6445         * modules/careadlinkat (Files): Remove lib/allocator.h.
6446         (Depends-on): Add allocator.
6447
6448         stdlib: let modules use system malloc, realloc
6449         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6450         if !_GL_USE_STDLIB_ALLOC.
6451         (malloc, realloc): Limit this change to a smaller scope.
6452
6453         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6454         (malloc, realloc): Don't #undef; no longer needed.
6455         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6456         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6457         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6458         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6459         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6460         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6461         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6462         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6463
6464         careadlinkat: rename members to avoid problem
6465         * lib/allocator.h (struct allocator): Rename members from
6466         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6467         and realloc are #define'd.  Reported by Eric Blake in
6468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6469         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6470
6471 2011-04-08  Eric Blake  <eblake@redhat.com>
6472
6473         nonblocking: reduce dependency
6474         * tests/test-nonblocking.c: Only test sockets when in use.
6475         * modules/nonblocking-tests (Depends-on): Drop socket.
6476         (Makefile.am): Link even if sockets are not present.
6477         * modules/pipe2-tests (Makefile.am): Likewise.
6478         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6479
6480         pipe2: fix O_NONBLOCK support on mingw
6481         * modules/pipe2 (Depends-on): Add nonblocking.
6482         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6483         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6484         * tests/test-nonblocking.c (main): Likewise.
6485         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6486
6487         fcntl-h: fix O_ACCMODE on cygwin
6488         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6489         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6490
6491         pipe-filter: drop O_NONBLOCK workarounds
6492         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6493         * modules/pipe-filter-ii (Depends-on): Likewise.
6494         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6495
6496         nonblocking: provide O_NONBLOCK for mingw
6497         * modules/nonblocking (Depends-on): Add open.
6498         (configure.ac): Set new witness macro.
6499         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6500         * modules/fcntl-h (Makefile.am): Substitute it.
6501         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6502         nonblocking module is in use.
6503         * lib/nonblocking.c: Adjust portability test.
6504         * lib/open.c (open): Don't let native open see gnulib flag.
6505         * tests/test-fcntl-h.c (main): Enhance test.
6506         * tests/test-open.h (test_open): Likewise.
6507         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6508
6509         careadlinkat: fix compilation error on mingw
6510         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6511         within struct allocator.
6512
6513 2011-04-06  Eric Blake  <eblake@redhat.com>
6514
6515         binary-io: relicense under LGPLv2+
6516         * modules/binary-io (License): Relax to LGPLv2+.
6517         Requested for libvirt, and required by pipe2.
6518
6519 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         verify: use _Static_assert if available
6522         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6523         (verify_true, verify): Use it if available.  This generates better
6524         diagnostics with GCC 4.6.0 and later.
6525
6526 2011-04-05  Bruno Haible  <bruno@clisp.org>
6527
6528         Remove leftover generated .h files after config.status changed.
6529
6530         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6531         GL_GENERATE_ALLOCA_H.
6532         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6533         GL_GENERATE_ALLOCA_H evaluates to false.
6534
6535         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6536         GL_GENERATE_ARGZ_H.
6537         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6538         evaluates to false.
6539
6540         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6541         GL_GENERATE_BYTESWAP_H.
6542         * modules/byteswap (Makefile.am): Remove byteswap.h if
6543         GL_GENERATE_BYTESWAP_H evaluates to false.
6544
6545         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6546         GL_GENERATE_ERRNO_H.
6547         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6548         evaluates to false.
6549
6550         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6551         GL_GENERATE_FLOAT_H.
6552         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6553         evaluates to false.
6554
6555         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6556         GL_GENERATE_FNMATCH_H.
6557         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6558         GL_GENERATE_FNMATCH_H evaluates to false.
6559
6560         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6561         GL_GENERATE_GLOB_H.
6562         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6563         evaluates to false.
6564
6565         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6566         automake conditional GL_GENERATE_ICONV_H.
6567         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6568         evaluates to false.
6569
6570         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6571         GL_GENERATE_NETINET_IN_H.
6572         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6573         GL_GENERATE_NETINET_IN_H evaluates to false.
6574
6575         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6576         conditional GL_GENERATE_PTHREAD_H.
6577         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6578         * modules/pthread (Makefile.am): Remove pthread.h if
6579         GL_GENERATE_PTHREAD_H evaluates to false.
6580
6581         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6582         GL_GENERATE_SCHED_H.
6583         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6584         evaluates to false.
6585
6586         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6587         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6588         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6589         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6590
6591         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6592         GL_GENERATE_STDARG_H.
6593         * modules/stdarg (Makefile.am): Remove stdarg.h if
6594         GL_GENERATE_STDARG_H evaluates to false.
6595
6596         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6597         GL_GENERATE_STDBOOL_H.
6598         * modules/stdbool (Makefile.am): Remove stdbool.h if
6599         GL_GENERATE_STDBOOL_H evaluates to false.
6600
6601         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6602         conditional GL_GENERATE_STDDEF_H.
6603         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6604         * modules/stddef (Makefile.am): Remove stddef.h if
6605         GL_GENERATE_STDDEF_H evaluates to false.
6606
6607         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6608         GL_GENERATE_STDINT_H.
6609         * modules/stdint (Makefile.am): Remove stdint.h if
6610         GL_GENERATE_STDINT_H evaluates to false.
6611
6612         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6613         GL_GENERATE_SYSEXITS_H.
6614         * modules/sysexits (Makefile.am): Remove sysexits.h if
6615         GL_GENERATE_SYSEXITS_H evaluates to false.
6616
6617         Reported by Karl Berry and Ralf Wildenhues.
6618
6619 2011-04-05  Bruno Haible  <bruno@clisp.org>
6620
6621         Ensure to rebuild generated .h files when config.status has changed.
6622         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6623         config.status.
6624         * modules/ctype (Makefile.am): Likewise.
6625         * modules/dirent (Makefile.am): Likewise.
6626         * modules/errno (Makefile.am): Likewise.
6627         * modules/fcntl-h (Makefile.am): Likewise.
6628         * modules/float (Makefile.am): Likewise.
6629         * modules/getopt-posix (Makefile.am): Likewise.
6630         * modules/glob (Makefile.am): Likewise.
6631         * modules/iconv-h (Makefile.am): Likewise.
6632         * modules/inttypes (Makefile.am): Likewise.
6633         * modules/langinfo (Makefile.am): Likewise.
6634         * modules/locale (Makefile.am): Likewise.
6635         * modules/math (Makefile.am): Likewise.
6636         * modules/netdb (Makefile.am): Likewise.
6637         * modules/netinet_in (Makefile.am): Likewise.
6638         * modules/poll-h (Makefile.am): Likewise.
6639         * modules/pthread (Makefile.am): Likewise.
6640         * modules/pty (Makefile.am): Likewise.
6641         * modules/sched (Makefile.am): Likewise.
6642         * modules/search (Makefile.am): Likewise.
6643         * modules/selinux-h (Makefile.am): Likewise.
6644         * modules/signal (Makefile.am): Likewise.
6645         * modules/spawn (Makefile.am): Likewise.
6646         * modules/stdarg (Makefile.am): Likewise.
6647         * modules/stdbool (Makefile.am): Likewise.
6648         * modules/stddef (Makefile.am): Likewise.
6649         * modules/stdint (Makefile.am): Likewise.
6650         * modules/stdio (Makefile.am): Likewise.
6651         * modules/stdlib (Makefile.am): Likewise.
6652         * modules/string (Makefile.am): Likewise.
6653         * modules/strings (Makefile.am): Likewise.
6654         * modules/sys_file (Makefile.am): Likewise.
6655         * modules/sys_ioctl (Makefile.am): Likewise.
6656         * modules/sys_select (Makefile.am): Likewise.
6657         * modules/sys_socket (Makefile.am): Likewise.
6658         * modules/sys_stat (Makefile.am): Likewise.
6659         * modules/sys_time (Makefile.am): Likewise.
6660         * modules/sys_times (Makefile.am): Likewise.
6661         * modules/sys_utsname (Makefile.am): Likewise.
6662         * modules/sys_wait (Makefile.am): Likewise.
6663         * modules/sysexits (Makefile.am): Likewise.
6664         * modules/termios (Makefile.am): Likewise.
6665         * modules/time (Makefile.am): Likewise.
6666         * modules/unistd (Makefile.am): Likewise.
6667         * modules/wchar (Makefile.am): Likewise.
6668         * modules/wctype-h (Makefile.am): Likewise.
6669         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6670
6671 2011-04-05  Bruno Haible  <bruno@clisp.org>
6672
6673         pipe2: Relicense under LGPLv2+.
6674         * modules/pipe2 (License): Change to LGPLv2+.
6675         Requested by Eric Blake, for libvirt.
6676
6677 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6678
6679         bootstrap: compute gnulib_extra_files after updating build_aux
6680         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6681         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6682
6683 2011-04-05  Eric Blake  <eblake@redhat.com>
6684
6685         bootstrap: preserve git whitelist item sorting
6686         * build-aux/bootstrap (sort_patterns): New function.
6687         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6688
6689 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6690
6691         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6692         sc_space_tab check.
6693
6694 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6695
6696         areadlink, areadlinkat: rewrite in terms of careadlinkat
6697         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6698         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6699         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6700         (malloc, realloc): Remove #undefs.
6701         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6702         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6703         readlink, ssize_t, stdint, unistd.
6704         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6705         areadlink, stdint.
6706
6707         careadlinkat: new module
6708         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6709         * modules/careadlinkat: New files, written by me with
6710         a review and feedback from Ben Pfaff in
6711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6712
6713 2011-04-01  Bruno Haible  <bruno@clisp.org>
6714
6715         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6716         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6717         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6718         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6719         Reported by Bruce Korb <bruce.korb@gmail.com>.
6720
6721 2011-04-01  Bruno Haible  <bruno@clisp.org>
6722
6723         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6724         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6725         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6726         * modules/wcpcpy (Depends-on): Add extensions.
6727         * modules/wcpncpy (Depends-on): Likewise.
6728         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6729         systems.
6730         * doc/posix-functions/wcpncpy.texi: Likewise.
6731         * doc/posix-functions/wcwidth.texi: Likewise.
6732
6733 2011-03-31  Eric Blake  <eblake@redhat.com>
6734
6735         nonblocking: fix mingw test failures
6736         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6737         non-blocking flag on regular file.
6738         (get_nonblocking_flag): Set errno on invalid fd.
6739         * tests/test-nonblocking.c (main): Avoid test failure on
6740         directories if fchdir is not active.
6741         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6742
6743 2011-03-31  Bruno Haible  <bruno@clisp.org>
6744
6745         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6746         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6747         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6748         Reported by Simon Josefsson <simon@josefsson.org>.
6749
6750 2011-03-31  Bruno Haible  <bruno@clisp.org>
6751         and Eric Blake  <eblake@redhat.com>
6752
6753         nonblocking: new module
6754         * modules/nonblocking: New module.
6755         * modules/nonblocking-tests: Likewise.
6756         * lib/nonblocking.h: New file.
6757         * lib/nonblocking.c: Likewise.
6758         * tests/test-nonblocking.c: New test.
6759         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6760
6761 2011-03-30  Bruno Haible  <bruno@clisp.org>
6762
6763         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6764         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6765         instead of 'printf' format for GCC >= 4.4.
6766         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6767         (fprintf, printf, vfprintf, vprintf): Declare with
6768         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6769         the system's vfprintf() function.
6770         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6771
6772 2011-03-30  Eric Blake  <eblake@redhat.com>
6773
6774         passfd: fix scoping bug
6775         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6776         before sendmsg/recvmsg.
6777
6778         passfd: standardize coding conventions
6779         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6780         can be learned at compile time.
6781         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6782         ifdefs.
6783         (sendfd, recvfd): Follow gnulib code conventions.
6784
6785         passfd: fix incorrect sendmsg arguments
6786         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6787         incorrect msg_controllen value.
6788         * modules/passfd-tests (Depends-on): Check for alarm.
6789         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6790         Reported by Bastien ROUCARIES.
6791
6792 2011-03-30  Bruno Haible  <bruno@clisp.org>
6793
6794         c-strcasestr: Relicense under LGPLv2+.
6795         * modules/c-strcasestr (License): Change to LGPLv2+.
6796         Requested by Eric Blake, for libvirt.
6797
6798 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6799
6800         * users.txt: Add libidn2.  Fix libtasn1 link.
6801
6802 2011-03-30  Jim Meyering  <meyering@redhat.com>
6803
6804         tests: readlink* ("",... fails with EINVAL on newer kernels
6805         readlink and readlinkat have typically failed with ENOENT for
6806         the invalid, empty file name,  "".  However, with the advent
6807         of linux-2.6.39, they fail with EINVAL.
6808         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6809         when operating on the empty file name.
6810         * tests/test-readlink.h (test_readlink): Likewise.
6811
6812 2011-03-29  Bruno Haible  <bruno@clisp.org>
6813
6814         Relicense some modules under LGPLv2+, for libidn2.
6815         * modules/array-mergesort (License): Change to LGPLv2+.
6816         * modules/c-strcaseeq (License): Likewise.
6817         * modules/striconveh (License): Likewise.
6818         * modules/striconveha (License): Likewise.
6819         * modules/uniconv/base (License): Likewise.
6820         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6821         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6822         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6823         * modules/unictype/base (License): Likewise.
6824         * modules/unictype/bidiclass-of (License): Likewise.
6825         * modules/unictype/category-M (License): Likewise.
6826         * modules/unictype/category-none (License): Likewise.
6827         * modules/unictype/category-of (License): Likewise.
6828         * modules/unictype/category-test (License): Likewise.
6829         * modules/unictype/category-test-withtable (License): Likewise.
6830         * modules/unictype/combining-class (License): Likewise.
6831         * modules/unictype/joiningtype-of (License): Likewise.
6832         * modules/unictype/scripts (License): Likewise.
6833         * modules/uninorm/base (License): Likewise.
6834         * modules/uninorm/canonical-decomposition (License): Likewise.
6835         * modules/uninorm/composition (License): Likewise.
6836         * modules/uninorm/decompose-internal (License): Likewise.
6837         * modules/uninorm/decomposition-table (License): Likewise.
6838         * modules/uninorm/nfc (License): Likewise.
6839         * modules/uninorm/nfd (License): Likewise.
6840         * modules/uninorm/u32-normalize (License): Likewise.
6841         * modules/unistr/base (License): Likewise.
6842         * modules/unistr/u32-cpy (License): Likewise.
6843         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6844         * modules/unistr/u32-to-u8 (License): Likewise.
6845         * modules/unistr/u32-uctomb (License): Likewise.
6846         * modules/unistr/u8-check (License): Likewise.
6847         * modules/unistr/u8-mblen (License): Likewise.
6848         * modules/unistr/u8-mbtouc (License): Likewise.
6849         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6850         * modules/unistr/u8-mbtoucr (License): Likewise.
6851         * modules/unistr/u8-prev (License): Likewise.
6852         * modules/unistr/u8-strlen (License): Likewise.
6853         * modules/unistr/u8-to-u32 (License): Likewise.
6854         * modules/unistr/u8-uctomb (License): Likewise.
6855         * modules/unitypes (License): Likewise.
6856         Requested by Simon Josefsson.
6857
6858 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6859
6860         lib-symbol-visibility: Add a notice.
6861         * modules/lib-symbol-visibility (Notice): New field.
6862
6863 2011-03-29  Bruno Haible  <bruno@clisp.org>
6864
6865         getaddrinfo: Doc fix.
6866         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6867         section "fixed in Gnulib".
6868
6869 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6870
6871         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6872         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6873
6874 2011-03-26  Bruno Haible  <bruno@clisp.org>
6875
6876         unictype/property-byname: Reduce the number of load-time relocations.
6877         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6878         (UC_PROPERTY_INDEX_*): New enumeration values.
6879         (uc_property_byname): Convert an index from the lookup table to an
6880         uc_property_t.
6881         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6882         values.
6883
6884 2011-03-26  Bruno Haible  <bruno@clisp.org>
6885
6886         unictype/property-byname: Allow omitted word separators and aliases.
6887         * lib/unictype/pr_byname.gperf: Add property names without word
6888         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6889         for 'space'.
6890
6891 2011-03-26  Bruno Haible  <bruno@clisp.org>
6892
6893         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6894         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6895         also hyphens to space.
6896         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6897         without spaces.
6898         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6899
6900 2011-03-26  Bruno Haible  <bruno@clisp.org>
6901
6902         unictype/joiningtype-byname: Recognize long names as well.
6903         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6904         a long name.
6905         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6906         unictype/joiningtype_byname.h.
6907         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6908         * lib/unictype/joiningtype_byname.gperf: New file.
6909         * modules/unictype/joiningtype-byname (Files): Add
6910         lib/unictype/joiningtype_byname.gperf.
6911         (Depends-on): Add gperf.
6912         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6913         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6914         long names.
6915
6916         Tests for module 'unictype/joiningtype-longname'.
6917         * modules/unictype/joiningtype-longname-tests: New file.
6918         * tests/unictype/test-joiningtype_longname.c: New file.
6919
6920         New module 'unictype/joiningtype-longname'.
6921         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6922         * lib/unictype/joiningtype_longname.c: New file.
6923         * modules/unictype/joiningtype-longname: New file.
6924         * modules/unictype/joiningtype-all (Depends-on): Add
6925         unictype/joiningtype-longname.
6926
6927 2011-03-26  Bruno Haible  <bruno@clisp.org>
6928
6929         unictype/bidiclass-byname: Recognize long names as well.
6930         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6931         name.
6932         * lib/unictype/bidi_byname.c: Include <string.h>,
6933         unictype/bidi_byname.h.
6934         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6935         * lib/unictype/bidi_byname.gperf: New file.
6936         * modules/unictype/bidiclass-byname (Files): Add
6937         lib/unictype/bidi_byname.gperf.
6938         (Depends-on): Add gperf.
6939         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6940         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6941         long names.
6942
6943         Tests for module 'unictype/bidiclass-longname'.
6944         * modules/unictype/bidiclass-longname-tests: New file.
6945         * tests/unictype/test-bidi_longname.c: New file.
6946
6947         New module 'unictype/bidiclass-longname'.
6948         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6949         * lib/unictype/bidi_longname.c: New file.
6950         * modules/unictype/bidiclass-longname: New file.
6951         * modules/unictype/bidiclass-all (Depends-on): Add
6952         unictype/bidiclass-longname.
6953
6954 2011-03-26  Bruno Haible  <bruno@clisp.org>
6955
6956         unictype/bidi*: Rename modules.
6957         * modules/unictype/bidiclass-all: Renamed from
6958         modules/unictype/bidicategory-all.
6959         * modules/unictype/bidiclass-name: Renamed from
6960         modules/unictype/bidiclass-name.
6961         (Description): Update.
6962         * modules/unictype/bidiclass-name-tests: Renamed from
6963         modules/unictype/bidicategory-name-tests.
6964         * modules/unictype/bidiclass-byname: Renamed from
6965         modules/unictype/bidicategory-byname.
6966         (Description): Update.
6967         * modules/unictype/bidiclass-byname-tests: Renamed from
6968         modules/unictype/bidicategory-byname-tests.
6969         * modules/unictype/bidiclass-of: Renamed from
6970         modules/unictype/bidicategory-of.
6971         (Description): Update.
6972         * modules/unictype/bidiclass-of-tests: Renamed from
6973         modules/unictype/bidicategory-of-tests.
6974         * modules/unictype/bidiclass-test: Renamed from
6975         modules/unictype/bidicategory-test.
6976         (Description): Update.
6977         * modules/unictype/bidiclass-test-tests: Renamed from
6978         modules/unictype/bidicategory-test-tests.
6979         * modules/unictype/bidicategory-all: New file, a simple redirection.
6980         * modules/unictype/bidicategory-name: Likewise.
6981         * modules/unictype/bidicategory-byname: Likewise.
6982         * modules/unictype/bidicategory-of: Likewise.
6983         * modules/unictype/bidicategory-test: Likewise.
6984         * modules/unictype/property-bidi-* (Dependencies): Update.
6985         * lib/unictype/bidi_*.c: Update comment.
6986
6987 2011-03-26  Bruno Haible  <bruno@clisp.org>
6988
6989         unictype/bidi*: Rename functions, part 2.
6990         * modules/unictype/bidicategory-name (configure.ac): Update required
6991         libunistring version.
6992         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6993
6994 2011-03-25  Bruno Haible  <bruno@clisp.org>
6995
6996         New module 'unictype/combining-class-all'.
6997         * modules/unictype/combining-class-all: New file.
6998
6999         Tests for module 'unictype/combining-class-byname'.
7000         * modules/unictype/combining-class-byname-tests: New file.
7001         * tests/unictype/test-combiningclass_byname.c: New file.
7002
7003         New module 'unictype/combining-class-byname'.
7004         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7005         * lib/unictype/combiningclass_byname.c: New file.
7006         * lib/unictype/combiningclass_byname.gperf: New file.
7007         * modules/unictype/combining-class-byname: New file.
7008
7009         Tests for module 'unictype/combining-class-longname'.
7010         * modules/unictype/combining-class-longname-tests: New file.
7011         * tests/unictype/test-combiningclass_longname.c: New file.
7012
7013         New module 'unictype/combining-class-longname'.
7014         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7015         * lib/unictype/combiningclass_longname.c: New file.
7016         * modules/unictype/combining-class-longname: New file.
7017
7018         Tests for module 'unictype/combining-class-name'.
7019         * modules/unictype/combining-class-name-tests: New file.
7020         * tests/unictype/test-combiningclass_name.c: New file.
7021
7022         New module 'unictype/combining-class-name'.
7023         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7024         * lib/unictype/combiningclass_name.c: New file.
7025         * modules/unictype/combining-class-name: New file.
7026
7027 2011-03-25  Bruno Haible  <bruno@clisp.org>
7028
7029         unictype/combining-class: Rename source files.
7030         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7031         of unictype/combining.h.
7032         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7033         Update.
7034         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7035         * modules/unictype/combining-class (Description): Fix.
7036         (Files, Makefile.am): Update.
7037         * tests/unictype/test-combiningclass.c: Renamed from
7038         tests/unictype/test-combining.c.
7039         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7040
7041 2011-03-25  Bruno Haible  <bruno@clisp.org>
7042
7043         unictype: Update list of canonical combining classes.
7044         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7045
7046 2011-03-25  Bruno Haible  <bruno@clisp.org>
7047
7048         unictype/category-byname: Recognize long names as well.
7049         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7050         a long name.
7051         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7052         unictype/categ_byname.h.
7053         (UC_CATEGORY_INDEX_*): New enumeration values.
7054         (uc_general_category_byname): Use uc_general_category_lookup and
7055         convert from index to value.
7056         * lib/unictype/categ_byname.gperf: New file.
7057         * modules/unictype/category-byname (Files): Add
7058         lib/unictype/categ_byname.gperf.
7059         (Depends-on): Add gperf.
7060         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7061         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7062         long names.
7063
7064         Tests for module 'unictype/category-longname'.
7065         * modules/unictype/category-longname-tests: New file.
7066         * tests/unictype/test-categ_longname.c: New file.
7067
7068         New module 'unictype/category-longname'.
7069         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7070         * lib/unictype/categ_longname.c: New file.
7071         * modules/unictype/category-longname: New file.
7072         * modules/unictype/category-all (Depends-on): Add it.
7073
7074 2011-03-25  Bruno Haible  <bruno@clisp.org>
7075
7076         Tests for module 'unictype/category-LC'.
7077         * modules/unictype/category-LC-tests: New file.
7078         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7079
7080         New module 'unictype/category-LC'.
7081         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7082         (UC_CATEGORY_LC): New declaration.
7083         (UC_CASED_LETTER): New macro.
7084         * lib/gen-uni-tables.c (is_category_LC): New function.
7085         (output_categories): Also handle category LC.
7086         (UC_CATEGORY_MASK_LC): New enumeration value.
7087         (general_category_byname): Also handle category LC.
7088         * lib/unictype/categ_LC.c: New file.
7089         * lib/unictype/categ_LC.h: New file, automatically generated.
7090         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7091         category LC.
7092         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7093         * modules/unictype/category-LC: New file.
7094         * modules/unictype/category-byname (Depends-on): Add
7095         unictype/category-LC.
7096         * modules/unictype/category-all (Depends-on): Likewise.
7097
7098 2011-03-25  Eric Blake  <eblake@redhat.com>
7099
7100         xmalloc: revert yesterday's regression
7101         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7102         realloc's underlying behavior (allowing allocation of zero-size
7103         objects, especially if malloc-gnu is also in use).
7104
7105 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7106
7107         maint.mk: add missing version to VC-tag
7108         * top/maint.mk: git tag was missing actual tag name; add it.
7109
7110         valgrind: do leak checking, and exit with code 1 on error (not 0)
7111         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7112         to VALGRIND.
7113
7114 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7115
7116         posix-modules: say what it does.
7117         * posix-modules: Add a line to the --help output saying what it does.
7118
7119 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7120
7121         xmalloc: Do not leak if underlying realloc is C99 compatible.
7122         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7123         This avoids a leak on C99-based systems.  See
7124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7125
7126 2011-03-24  Eric Blake  <eblake@redhat.com>
7127
7128         realloc: document portability problem
7129         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7130         passing 0 size to realloc.
7131
7132 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7133
7134         doc: update users.txt
7135         * users.txt: Add cvsps, tmpwatch
7136
7137 2011-03-23  Matt Rice  <ratmice@gmail.com>
7138
7139         doc: update users.txt
7140         * users.txt: Add gdb.
7141
7142 2011-03-23  Jim Meyering  <meyering@redhat.com>
7143
7144         doc: update users.txt
7145         Looking through matches up to the following URL (there are still
7146         several more pages), I found several projects that use gnulib:
7147         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7148         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7149         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7150
7151 2011-03-22  Bruno Haible  <bruno@clisp.org>
7152
7153         unictype/bidi*: Rename functions.
7154         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7155         uc_bidi_class, uc_is_bidi_class): New declarations.
7156         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7157         uc_bidi_category_byname.
7158         (uc_bidi_category_byname): New function.
7159         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7160         u_bidi_category_name.
7161         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7162         (uc_bidi_category_name): New function.
7163         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7164         uc_bidi_category.
7165         (uc_bidi_category): New function.
7166         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7167         uc_is_bidi_category. Invoke uc_bidi_class.
7168         (uc_is_bidi_category): New function.
7169         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7170         instead of uc_bidi_category_byname.
7171         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7172         instead of uc_bidi_category_name.
7173         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7174         uc_bidi_category.
7175         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7176         instead of uc_is_bidi_category.
7177
7178 2011-03-21  Bruno Haible  <bruno@clisp.org>
7179
7180         New module 'unictype/joininggroup-all'.
7181         * modules/unictype/joininggroup-all: New file.
7182
7183         Tests for module 'unictype/joininggroup-of'.
7184         * modules/unictype/joininggroup-of-tests: New file.
7185         * tests/unictype/test-joininggroup_of.c: New file.
7186         * tests/unictype/test-joininggroup_of.h: New file, automatically
7187         generated by gen-uni-tables.
7188
7189         New module 'unictype/joininggroup-of'.
7190         * modules/unictype/joininggroup-of: New file.
7191         * lib/unictype/joininggroup_of.c: New file.
7192         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7193         gen-uni-tables.
7194
7195         Tests for module 'unictype/joininggroup-byname'.
7196         * modules/unictype/joininggroup-byname-tests: New file.
7197         * tests/unictype/test-joininggroup_byname.c: New file.
7198
7199         New module 'unictype/joininggroup-byname'.
7200         * modules/unictype/joininggroup-byname: New file.
7201         * lib/unictype/joininggroup_byname.c: New file.
7202         * lib/unictype/joininggroup_byname.gperf: New file.
7203
7204         Tests for module 'unictype/joininggroup-name'.
7205         * modules/unictype/joininggroup-name-tests: New file.
7206         * tests/unictype/test-joininggroup_name.c: New file.
7207
7208         New module 'unictype/joininggroup-name'.
7209         * modules/unictype/joininggroup-name: New file.
7210         * lib/unictype/joininggroup_name.c: New file.
7211         * lib/unictype/joininggroup_name.h: New file.
7212
7213         New module 'unictype/joiningtype-all'.
7214         * modules/unictype/joiningtype-all: New file.
7215
7216         Tests for module 'unictype/joiningtype-of'.
7217         * modules/unictype/joiningtype-of-tests: New file.
7218         * tests/unictype/test-joiningtype_of.c: New file.
7219         * tests/unictype/test-joiningtype_of.h: New file, automatically
7220         generated by gen-uni-tables.
7221
7222         New module 'unictype/joiningtype-of'.
7223         * modules/unictype/joiningtype-of: New file.
7224         * lib/unictype/joiningtype_of.c: New file.
7225         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7226         gen-uni-tables.
7227
7228         Tests for module 'unictype/joiningtype-byname'.
7229         * modules/unictype/joiningtype-byname-tests: New file.
7230         * tests/unictype/test-joiningtype_byname.c: New file.
7231
7232         New module 'unictype/joiningtype-byname'.
7233         * modules/unictype/joiningtype-byname: New file.
7234         * lib/unictype/joiningtype_byname.c: New file.
7235
7236         Tests for module 'unictype/joiningtype-name'.
7237         * modules/unictype/joiningtype-name-tests: New file.
7238         * tests/unictype/test-joiningtype_name.c: New file.
7239
7240         New module 'unictype/joiningtype-name'.
7241         * modules/unictype/joiningtype-name: New file.
7242         * lib/unictype/joiningtype_name.c: New file.
7243
7244         unictype: Add support for Arabic shaping properties.
7245         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7246         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7247         declarations.
7248         (UC_JOINING_GROUP_*): New enumeration values.
7249         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7250         declarations.
7251         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7252         (unicode_joining_type): New variable.
7253         (UC_JOINING_GROUP_*): New enumeration values.
7254         (unicode_joining_group): New variable.
7255         (fill_arabicshaping, joining_type_as_c_identifier,
7256         output_joining_type_test, output_joining_type,
7257         joining_group_as_c_identifier, output_joining_group_test,
7258         output_joining_group): New functions.
7259         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7260         fill_arabicshaping and output_joining_type_test, output_joining_type,
7261         output_joining_group_test, output_joining_group.
7262         Reported by Simon Josefsson.
7263
7264 2011-03-21  Jim Meyering  <meyering@redhat.com>
7265
7266         strftime: fix a bug in yesterday's change
7267         * lib/strftime.c (add): Accommodate width's initial value of -1.
7268         Otherwise, nstrftime would copy uninitialized data into
7269         the result buffer.
7270
7271 2011-03-21  Jim Meyering  <meyering@redhat.com>
7272
7273         tests: add strftime-tests module
7274         * tests/test-strftime.c: New file.
7275         * modules/strftime-tests: New module.
7276
7277 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7278
7279         strftime: don't assume a byte count fits in 'int'
7280         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7281         found this problem by static analysis, using gcc -Wstrict-overflow
7282         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7283         on an integer overflow having undefined behavior, but it turns out
7284         that the argument is a size, which might not fit in 'int' anyway,
7285
7286 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7287
7288         stdio: don't require ignore_value around fwrite
7289
7290         This patch works around libc bug 11959
7291         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7292         Without this patch, applications must often write
7293         ignore_value (fwrite (...)) even though the ignore_value is
7294         not helpful here.  It's common to write many objects, using
7295         fwrite/printf/etc., and then use ferror to detect output error.
7296
7297         I considered making this patch optional, but decided against it,
7298         because libc is obviously being inconsistent here: there is no
7299         reason libc should insist that user code must inspect fwrite
7300         return's value without also insisting that it inspect printf's,
7301         putchar's, etc.  If user code wants to have a strict style where
7302         all these functions' values are checked (so that ferror need not
7303         be checked), we could add support for that style in a new gnulib
7304         module, but in the meantime it's better to be consistent and to
7305         support common usage.
7306
7307         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7308         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7309         that we are compiling in checking mode, and if not C++, and
7310         if not already wrapping fwrite for some other reason.
7311         (fwrite): #define to rpl_fwrite if the latter is defined.
7312
7313 2011-03-20  Bruno Haible  <bruno@clisp.org>
7314
7315         verror: Fix compilation error introduced on 2011-02-13.
7316         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7317         instead of __attribute__.
7318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7319
7320 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7321             Bruno Haible  <bruno@clisp.org>
7322
7323         socklen: do not depend on sys_socket
7324         While trying to modify Emacs to use gnulib's socklen module,
7325         I discovered a circular dependency: socklen depends on sys_socket
7326         and vice versa.  Emacs can use socklen, but it does not need
7327         sys_socket because it has its own substitute for sys/socket.h.
7328         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7329         gl_TYPE_SOCKLEN_T.
7330         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7331         gl_PREREQ_SYS_H_SOCKET.
7332         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7333         gl_PREREQ_SYS_H_SOCKET.
7334         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7335         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7336         * modules/socklen (Depends-on): Do not depend on sys_socket.
7337         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7338
7339 2011-03-20  Jim Meyering  <meyering@redhat.com>
7340
7341         maint.mk: sort file names *after* new transformation
7342         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7343         prefix would have led to an unwarranted failure in GNU parted.
7344         Sort after that transformation.
7345
7346 2011-03-19  Jim Meyering  <meyering@redhat.com>
7347
7348         maint.mk: fix po-file syntax-check rule
7349         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7350         Patch by Bruno Haible.
7351
7352 2011-03-19  Bruno Haible  <bruno@clisp.org>
7353
7354         socklen: Update comment.
7355         * m4/socklen.m4: Update comment about platforms.
7356
7357 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7358             Bruno Haible  <bruno@clisp.org>
7359
7360         inet_ntop, inet_pton: Simplify.
7361         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7362         documented to provide socklen_t and we already depend on sys_socket.
7363         * modules/inet_pton (Depends-on): Likewise.
7364         * lib/arpa_inet.in.h: Adjust comment.
7365
7366 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7367             Bruno Haible  <bruno@clisp.org>
7368
7369         netdb: Simplify.
7370         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7371         documented to provide socklen_t and we already depend on sys_socket.
7372         * lib/netdb.in.h: Adjust comment.
7373
7374 2011-03-19  Bruno Haible  <bruno@clisp.org>
7375
7376         sys_socket, netdb: Document problem with socklen_t.
7377         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7378         platforms.
7379         * doc/posix-headers/netdb.texi: Likewise.
7380
7381 2011-03-18  Eric Blake  <eblake@redhat.com>
7382
7383         maint.mk: let po check work in VPATH build
7384         * top/maint.mk (po_file): Allow cfg.mk override.
7385         (sc_po_check): Allow VPATH use.
7386         Reported by Jiri Denemark.
7387
7388 2011-03-16  Jim Meyering  <meyering@redhat.com>
7389
7390         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7391         Before, you would have had to create one .x-sc_ file per rule in order
7392         to exempt offending files.  Now, you may instead use a Make variable --
7393         usually defined in cfg.mk -- whose name identifies the affected rule.
7394         * top/maint.mk (_sc_excl): Define.
7395         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7396         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7397
7398 2011-03-13  Bruno Haible  <bruno@clisp.org>
7399
7400         ignore-value tests: Avoid warnings.
7401         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7402         empty for gcc < 3.4.
7403
7404 2011-03-13  Bruno Haible  <bruno@clisp.org>
7405
7406         passfd: Fix link error on Solaris.
7407         * modules/passfd (Description): Correct.
7408         (Depends-on): Add socketlib.
7409         (Link): New section.
7410         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7411
7412 2011-03-13  Bruno Haible  <bruno@clisp.org>
7413
7414         passfd: Fix link error on AIX 5.2.
7415         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7416
7417 2011-03-13  Bruno Haible  <bruno@clisp.org>
7418
7419         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7420         * lib/sys_socket.in.h: Include <stddef.h>.
7421         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7422         CMSG_FIRSTHDR. Remove unused variable.
7423
7424 2011-03-13  Bruno Haible  <bruno@clisp.org>
7425
7426         passfd: Fix compilation error on OpenBSD.
7427         * lib/passfd.c: Include <sys/uio.h>.
7428
7429 2011-03-13  Bruno Haible  <bruno@clisp.org>
7430
7431         passfd test: Fix warnings.
7432         * tests/test-passfd.c: Include <sys/wait.h>.
7433         (main): Fix typo.
7434
7435 2011-03-13  Bruno Haible  <bruno@clisp.org>
7436
7437         passfd module, part 4, tweaks.
7438         * tests/test-passfd.c: Reorder includes.
7439         (main): Fix perror and printf calls.
7440
7441 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7442
7443         passfd module, part 4.
7444         * modules/passfd-tests: New file.
7445         * tests/test-passfd.c: New file.
7446
7447 2011-03-13  Jim Meyering  <meyering@redhat.com>
7448
7449         Makefile: rely on GNU make; derive syntax-check rule names
7450         Rather than requiring that each sc_ rule be listed as a dependent
7451         of "check", use features of GNU make to derive the list.
7452         * Makefile (syntax-check-rules): Define.
7453         (check): Depend on the new variable, not the hard-coded list.
7454
7455 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7456             Bruno Haible  <bruno@clisp.org>
7457
7458         passfd module, part 3.
7459         * lib/passfd.h (recvfd): Add a flags argument.
7460         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7461         (recvfd): Add a flags argument.
7462         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7463         exists.
7464         * modules/passfd (Depends-on): Add cloexec.
7465         Suggested by Eric Blake.
7466
7467 2011-03-13  Bruno Haible  <bruno@clisp.org>
7468
7469         passfd module, part 2, tweaks.
7470         * modules/passfd (Files): Reorder.
7471         (Depends-on): Remove errno.
7472         (Include): Remove <sys/socket.h>, <sys/un.h>.
7473         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7474         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7475         specification header. Include <sys/socket.h> always. Don't include
7476         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7477         (sendfd): Clarify that it sets errno when it fails.
7478         (recvfd): Fix specification.
7479
7480 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7481
7482         passfd module, part 2.
7483         * modules/passfd: New file.
7484         * lib/passfd.h: New file.
7485         * lib/passfd.c: New file.
7486
7487 2011-03-12  Bruno Haible  <bruno@clisp.org>
7488
7489         wcswidth, mbswidth: Avoid integer overflow.
7490         * lib/wcswidth.c: Include <limits.h>.
7491         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7492         * lib/mbswidth.c: Include <limits.h>.
7493         (mbsnwidth): Avoid 'int' overflow.
7494         Reported by Jim Meyering.
7495
7496 2011-03-12  Bruno Haible  <bruno@clisp.org>
7497
7498         futimens, utimensat: Avoid endless recursion on Solaris 10.
7499         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7500         Solaris.
7501         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7502         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7503
7504 2011-03-11  Jim Meyering  <meyering@redhat.com>
7505
7506         maint.mk: relax a regexp to accommodate other formatting styles
7507         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7508         between "ngettext" and the following "(".
7509
7510 2011-03-11  Pádraig Brady <P@draigBrady.com>
7511
7512         maint.mk: suppress a false positive warning
7513         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7514         diagnostics are marked with ngettext.
7515
7516 2011-03-10  Eric Blake  <eblake@redhat.com>
7517
7518         wchar: add explicit dependencies, for Tru64
7519         * modules/mbmemcasecoll (Depends-on): Add wchar.
7520         * modules/mbtowc (Depends-on): Likewise.
7521         * modules/vasnprintf (Depends-on): Likewise.
7522         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7523         * modules/wctomb (Depends-on): Likewise.
7524         Reported by Peter O'Gorman.
7525
7526 2011-03-08  Bruno Haible  <bruno@clisp.org>
7527
7528         passfd module, part 1, tweaks.
7529         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7530         Improve indentation. Improve AC_MSG_CHECKING messages.
7531         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7532         gl_SOCKET_FAMILIES.
7533
7534 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7535
7536         passfd module, part 1.
7537         * m4/afunix.m4: New file.
7538         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7539         sockets.
7540
7541 2011-03-08  Bruno Haible  <bruno@clisp.org>
7542
7543         regex-quote: New API.
7544         * lib/regex-quote.h: Include <stdbool.h>.
7545         (struct regex_quote_spec): New type.
7546         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7547         New declarations.
7548         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7549         'const struct regex_quote_spec *' argument.
7550         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7551         (pcre_special): New constant.
7552         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7553         New functions.
7554         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7555         'const struct regex_quote_spec *' argument.
7556         * modules/regex-quote (Depends-on): Add stdbool.
7557         * tests/test-regex-quote.c (check): Update for new API. Add test for
7558         anchored results.
7559         * NEWS: Mention the API change.
7560         Reported by Reuben Thomas and Eric Blake.
7561
7562 2011-03-06  Bruno Haible  <bruno@clisp.org>
7563
7564         regex-quote: Fix creation of POSIX extended regular expressions.
7565         * lib/regex-quote.c (ere_special): Add grouping and alternation
7566         operators.
7567
7568 2011-03-05  Bruno Haible  <bruno@clisp.org>
7569
7570         doc: Improve doc regarding autopoint vs. gnulib.
7571         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7572         disable autopoint while running autoreconf.
7573         Suggested by Ralf Wildenhues.
7574
7575 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7576
7577         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7578         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7579
7580 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7581
7582         parse-duration: remove xalloc.h dependency
7583         * lib/parse-duration.c (parse_period): handle NULL return from
7584         strdup instead of calling xstrdup().
7585         * modules/parse-duration: remove "xalloc" dependency
7586
7587 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7588
7589         bootstrap: honor m4_base when running aclocal
7590         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7591
7592 2011-03-02  Jim Meyering  <meyering@redhat.com>
7593
7594         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7595         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7596         on request from Matt Booth.
7597
7598 2011-03-01  Eric Blake  <eblake@redhat.com>
7599
7600         test-link: work on Hurd
7601         * tests/test-link.h (test_link): Hurd rejects linking directories
7602         with EISDIR instead of the POSIX-mandated EPERM.
7603
7604 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7605
7606         stdio: simplify by moving files to printf-posix, sigpipe
7607         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7608         since this symbol is needed only if printf is replaced.
7609         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7610         Require gl_ASM_SYMBOL_PREFIX.
7611         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7612         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7613         (Depends-on): Add 'raise'.
7614         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7615         * modules/stdio (Files): Remove lib/stdio-write.c,
7616         m4/asm-underscore.m4.
7617         (Depends-on): Remove 'raise'.
7618
7619         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7620         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7621         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7622         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7623
7624 2011-02-28  Bruno Haible  <bruno@clisp.org>
7625
7626         localcharset: Assume ANSI C behaviour of free().
7627         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7628         calling free().
7629         Suggested by Simon Josefsson <simon@josefsson.org>.
7630
7631 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7632             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7633             Bruno Haible  <bruno@clisp.org>  (tiny change)
7634
7635         On Cygwin, use /proc file system instead of win32 API.
7636         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7637         Win32 file names.
7638         (DllMain): Simplify by removing Cygwin specific code.
7639         (find_shared_library_fullname): Use Linux specific implementation also
7640         for Cygwin.
7641         (get_shared_library_fullname): Update accordingly.
7642         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7643         Win32 file names.
7644         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7645         Cygwin specific code.
7646
7647 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7648             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7649
7650         Fix OpenMP flag detection for various Fortran compilers.
7651         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7652         OpenMP-conditional compilation construct, to force compile
7653         failure with missing OpenMP flag.
7654         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7655
7656 2011-02-25  Eric Blake  <eblake@redhat.com>
7657
7658         strstr: expand test coverage
7659         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7660         compilation.
7661         * tests/test-memmem.c (main): Duplicate tests.
7662         * tests/test-strcasestr.c (main): Likewise.
7663         * tests/test-c-strcasestr.c (main): Likewise.
7664
7665 2011-02-25  Jim Meyering  <meyering@redhat.com>
7666
7667         maint.mk: detect missing-NL-at-EOF, too
7668         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7669         it also detects when a file lacks a newline at EOF.
7670         (require_exactly_one_NL_at_EOF_): Renamed from
7671         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7672         since people may well have .x-sc_... file names tied to the
7673         existing name.  Suggested by Eric Blake.
7674
7675 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7676
7677         dirname: move m4/dos.m4 functionality into lib/dosname.h
7678
7679         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7680         extracts symbols from it, puts them into config.h; but it's much
7681         easier to use the symbols directly.  filename.h already does this,
7682         but it disagrees with dos.m4 in some respects.  This patch
7683         introduces a different include file dosname.h that packages up
7684         dos.m4, and then later we can work on merging filename.h and
7685         dosname.h.  Applications that need only the easy-to-configure
7686         symbols should consider including dosname.h rather than dirname.h.
7687         * NEWS: Mention incompatible changes.
7688         * m4/dos.m4: Remove.
7689         * lib/dosname.h, modules/dosname: New files.
7690         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7691         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7692         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7693         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7694         Include dosname.h, not dirname.h.
7695         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7696         Include dosname.h, for definitions of symbols like ISSLASH
7697         that used to be in config.h.
7698         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7699         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7700         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7701         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7702         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7703         * modules/rmdir (Files): Likewise.
7704         * modules/stat (Files): Likewise.
7705         * modules/unlink (Files): Likewise.
7706         * modules/dirname-lgpl (Depends-on): Add dosname.
7707         * modules/lstat (Depends-on): Likewise.
7708         * modules/openat (Depends-on): Likewise.
7709         * modules/rmdir (Depends-on): Likewise.
7710         * modules/savewd (Depends-on): Likewise.
7711         * modules/stat (Depends-on): Likewise.
7712         * modules/unlink (Depends-on): Likewise.
7713         * modules/openat (Depends-on): Remove dirname-lgpl.
7714         * modules/savewd (Depends-on): Likewise.
7715         * tests/test-dirname.c: Do not use removed symbols like
7716         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7717         the remaining symbols, e.g., ISSLASH ('\\').
7718
7719 2011-02-25  Eric Blake  <eblake@redhat.com>
7720
7721         strstr: revert patches that introduced bug and pessimization
7722         * lib/str-two-way.h: Add another reference.
7723         (two_way_short_needle, two_way_long_needle): Revert changes from
7724         2011-02-24; they pessimize search speed.
7725         (critical_factorization): Partially revert changes from
7726         2010-06-22; they violate the requirement that the left half of the
7727         needle be smaller than the period of the needle.
7728
7729 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7730
7731         filenamecat: remove unnecessary dependency on dirname-lgpl
7732         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7733         is no direct dependency, just an indirect one via filenamecat-lgpl.
7734
7735         remove: remove unnecessary use of m4/dos.m4
7736         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7737         * modules/remove (FILES): Remove m4/dos.m4.
7738
7739         * lib/openat-proc.c: Don't include dirname.h; not needed.
7740
7741         backupfile: remove unnecessary use of m4/dos.m4
7742         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7743         of its symbols are used by the backupfile code.  backupfile.c does
7744         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7745         for the rare case of programs that want all their backup file
7746         names to live within 8+3 limits, and dos.m4 doesn't address that.
7747         * modules/backupfile (Files): Remove m4/dos.m4.
7748
7749 2011-02-24  Jim Meyering  <meyering@redhat.com>
7750
7751         strstr: fix a bug whereby strstr would mistakenly return NULL
7752         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7753         in period calculation.
7754         (two_way_long_needle): Likewise.
7755         The original problem was reported by Mike Stump in
7756         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7757         Ralf Wildenhues provided the short needle and haystack.
7758         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7759         Add a more involved test to trigger the bug in two_way_long_needle.
7760
7761 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7762
7763         gnulib-tool: remove use of bold display in help screen
7764         * gnulib-tool (func_usage): Do not use bold display anymore in the
7765         help screen.  That was just meant to be a temporary emphasis for a
7766         backward-incompatible change.
7767
7768 2011-02-23  Bruno Haible  <bruno@clisp.org>
7769
7770         Fix misindentation of preprocessor directives.
7771         * lib/argp-namefrob.h: Reindent preprocessor directives.
7772         * lib/getopt_int.h (struct _getopt_data): Likewise.
7773         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7774         * lib/vasnprintf.c (decode_long_double): Likewise.
7775         * tests/test-argmatch.c: Insert blank lines, for clarity.
7776         * tests/test-exclude.c: Likewise.
7777
7778 2011-02-22  Bruno Haible  <bruno@clisp.org>
7779
7780         ioctl: Fix for MacOS X in 64-bit mode.
7781         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7782         value.
7783         Suggested by Eric Blake.
7784         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7785
7786 2011-02-22  Jim Meyering  <meyering@redhat.com>
7787
7788         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7789         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7790         in lib/.
7791
7792 2011-02-22  Eric Blake  <eblake@redhat.com>
7793
7794         maint: avoid any CDPATH issue
7795         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7796
7797         maint: adjust cpp indentation for my modules, as well
7798         * Makefile (sc_cpp_indent_check): Add my name.
7799         * lib/fbufmode.c: Filter through cppi.
7800         * lib/fpurge.c: Likewise.
7801         * lib/freadable.c: Likewise.
7802         * lib/freading.c: Likewise.
7803         * lib/fwritable.c: Likewise.
7804         * lib/fwriting.c: Likewise.
7805         * lib/sigaction.c: Likewise.
7806
7807 2011-02-22  Jim Meyering  <meyering@redhat.com>
7808
7809         maint: adjust cpp indentation to reflect nesting depth
7810         I.e., in a block of code that begins with an unnested "#if",
7811         put one space between the "#" in column 1 and following token.
7812         For example,
7813         -#include <sys/vfs.h>
7814         +# include <sys/vfs.h>
7815         Do this only in .c files that are part of a module I maintain.
7816         * lib/linkat.c: Filter through cppi.
7817         * lib/nanosleep.c: Likewise.
7818         * lib/openat.c: Likewise.
7819         * lib/openat-die.c: Likewise.
7820         * lib/dup3.c: Likewise.
7821         * lib/fchownat.c: Likewise.
7822         * lib/flock.c: Likewise.
7823         * lib/fsync.c: Likewise.
7824         * lib/fts.c: Likewise.
7825         * lib/getpass.c: Likewise.
7826         * lib/gettimeofday.c: Likewise.
7827         * lib/userspec.c: Likewise.
7828         * Makefile (sc_cpp_indent_check): New rule, to check this.
7829
7830 2011-02-22  Bruno Haible  <bruno@clisp.org>
7831
7832         New module 'wctomb'.
7833         * lib/stdlib.in.h (wctomb): New declaration.
7834         * lib/wctomb.c: New file.
7835         * lib/wctomb-impl.h: New file.
7836         * m4/wctomb.m4: New file.
7837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7838         REPLACE_WCTOMB.
7839         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7840         REPLACE_WCTOMB.
7841         * modules/wctomb: New file.
7842         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7843         * doc/posix-functions/wctomb.texi: Mention the new module.
7844         * modules/wctob (Depends-on): Add wctomb.
7845
7846 2011-02-22  Bruno Haible  <bruno@clisp.org>
7847
7848         New module 'mbtowc'.
7849         * lib/stdlib.in.h (mbtowc): New declaration.
7850         * lib/mbtowc.c: New file.
7851         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7852         * m4/mbtowc.m4: New file.
7853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7854         REPLACE_MBTOWC.
7855         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7856         REPLACE_MBTOWC.
7857         * modules/mbtowc: New file.
7858         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7859         * doc/posix-functions/mbtowc.texi: Mention the new module.
7860         * modules/btowc (Depends-on): Add mbtowc.
7861
7862 2011-02-22  Bruno Haible  <bruno@clisp.org>
7863
7864         wcrtomb: Add more tests for native Windows platforms.
7865         * tests/test-wcrtomb-w32-1.sh: New file.
7866         * tests/test-wcrtomb-w32-2.sh: New file.
7867         * tests/test-wcrtomb-w32-3.sh: New file.
7868         * tests/test-wcrtomb-w32-4.sh: New file.
7869         * tests/test-wcrtomb-w32-5.sh: New file.
7870         * tests/test-wcrtomb-w32.c: New file.
7871         * modules/wcrtomb-tests (Files): Add them.
7872         (Makefile.am): Arrange to run these tests.
7873         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7874         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7875
7876 2011-02-20  Bruno Haible  <bruno@clisp.org>
7877
7878         wcrtomb: Enhance test.
7879         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7880
7881 2011-02-20  Bruno Haible  <bruno@clisp.org>
7882
7883         mbrtowc: Tiny optimization.
7884         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7885
7886 2011-02-20  Jim Meyering  <meyering@redhat.com>
7887
7888         test-exclude.c: remove unmatched #endif
7889         * tests/test-exclude.c: Remove stray #endif, left over from
7890         the change of a week ago.
7891
7892 2011-02-19  Jim Meyering  <meyering@redhat.com>
7893
7894         git-version-gen: skip "-dirty" check when appropriate
7895         * build-aux/git-version-gen: Don't run any git commands when the
7896         version string comes from .tarball-version.  Prior to this, we
7897         would run git update-index --refresh even from a just-unpacked
7898         tarball directory, and that could affect a .git/ directory in a
7899         parent of the build directory.  Reported by Mike Frysinger.
7900
7901 2011-02-19  Bruno Haible  <bruno@clisp.org>
7902
7903         unictype/property-byname: Reduce the size of the 'data' segment.
7904         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7905
7906 2011-02-19  Bruno Haible  <bruno@clisp.org>
7907
7908         unictype/scripts: Reduce the size of the 'data' segment.
7909         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7910         '%pic'.
7911         * lib/unictype/scripts_byname.gperf: Regenerated.
7912
7913 2011-02-19  Bruno Haible  <bruno@clisp.org>
7914
7915         stdint: Update documentation.
7916         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7917
7918 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         stdint: omit redundant check for wchar.h
7921         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7922         always tests whether wchar.h exists, so remove the now-redundant test.
7923
7924 2011-02-18  Bruno Haible  <bruno@clisp.org>
7925
7926         stdint: Cut dependency to module 'wchar'.
7927         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7928         include the necessary prerequisites.
7929         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7930         * modules/stdint (Depends-on): Remove wchar.
7931         (Makefile.am): Substitute HAVE_WCHAR_H.
7932         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7933
7934 2011-02-18  Eric Blake  <eblake@redhat.com>
7935
7936         longlong: skip, rather than fail, on cross-compilation
7937         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7938         when cross-compiling; regression from 2011-02-16.
7939
7940 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7941
7942         * NEWS: Mention 2011-02-08 change to stdlib.
7943
7944 2011-02-17  Bruno Haible  <bruno@clisp.org>
7945
7946         getloadavg: Add comments about platforms.
7947         * m4/getloadavg.m4: Add comment.
7948         * lib/getloadavg.c: Likewise.
7949
7950 2011-02-17  Bruno Haible  <bruno@clisp.org>
7951
7952         getloadavg: Fix link error on Solaris 2.6.
7953         * modules/getloadavg (Link): New section.
7954         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7955         linking test-getloadavg.
7956         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7957         getloadavg.
7958
7959 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7960
7961         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7962         It was 'int', but this doesn't match the IRIX 6.5 manual.
7963         Suggested by Bruno Haible in
7964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7965
7966 2011-02-17  Bruno Haible  <bruno@clisp.org>
7967
7968         havelib: Fix comments.
7969         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7970         change.
7971
7972 2011-02-17  Bruno Haible  <bruno@clisp.org>
7973
7974         havelib: Update config.rpath.
7975         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7976
7977 2011-02-17  Bruno Haible  <bruno@clisp.org>
7978
7979         getloadavg test: Add some plausibility checks.
7980         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7981         is improbable.
7982
7983 2011-02-16  Eric Blake  <eblake@redhat.com>
7984
7985         maintainer-makefile: make syntax-check a no-op from tarballs
7986         * top/maint.mk (no-vc-detected): New rule.
7987         (local-checks-available): Use it to avoid hanging if someone tries
7988         'make syntax-check' from a tarball.  Also append to any non-syntax
7989         checks already defined in cfg.mk.
7990
7991 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7992
7993         longlong: tune, particularly for common case of c99
7994
7995         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7996         or running anything if c99, or if unsigned long long int does not
7997         work.  In either case, we know the answer without further tests.
7998         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7999         it at most once, and use its results for both long long int and
8000         unsigned long long int.  This is more likely to be efficient in
8001         the common case where the program wants to check for both long
8002         long int and unsigned long long int.
8003         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8004         since the answer is already known.
8005
8006 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8007
8008         getloadavg: set errno
8009         * lib/getloadavg.c: Set errno when returning -1.  If no other
8010         error number looks appropriate, set it to ENOSYS if the getloadavg
8011         looks like it can't possibly ever work, ENOTSUP otherwise.
8012         Suggested by Bruno Haible in
8013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8014
8015         getloadavg: trim unused parts and speed up 'configure'
8016         * NEWS: Document this.
8017         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8018         always compiled if getloadavg is absent.
8019         Move test code to ...
8020         * tests/test-getloadavg.c: New file, containing previous
8021         contents of test from lib/getloadavg.c.  It also contains
8022         suggestions by Bruno Haible in
8023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8024         * modules/getloadavg-tests: New file.
8025         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8026         Do tests in the same order as they're needed for getloadavg.c.
8027         Omit setgid-related tests that generate symbols KMEM_GROUP,
8028         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8029         Do only the tests that are needed to see whether the system has
8030         getloadavg, moving the other tests into ...
8031         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8032         NLIST_NAME_UNION; nobody should be using it.  Do not define
8033         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8034         relevant, as the user of this module shouldn't care how getloadavg
8035         is implemented.
8036
8037         getloadavg: omit unused var
8038         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8039
8040 2011-02-15  Jim Meyering  <meyering@redhat.com>
8041
8042         doc: update users.txt
8043         * users.txt: Update iwhd's URL.
8044
8045 2011-02-13  Bruno Haible  <bruno@clisp.org>
8046
8047         Consistent macro naming for macros that use GCC __attribute__.
8048         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8049         _ATTRIBUTE_NONNULL_.
8050         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8051         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8052         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8053         ATTRIBUTE_DEPRECATED.
8054         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8055         ATTRIBUTE_NORETURN.
8056         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8057         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8058         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8059         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8060         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8061         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8062         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8063         ATTRIBUTE_SENTINEL.
8064         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8065         ATTRIBUTE_RETURN_CHECK.
8066         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8067         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8068         ATTRIBUTE_NORETURN.
8069         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8070         Reported by Paul Eggert.
8071
8072 2011-02-13  Bruno Haible  <bruno@clisp.org>
8073
8074         Don't interfere with a program's definition of __attribute__.
8075         * lib/argp.h (__attribute__): Remove definition.
8076         (_GL_ATTRIBUTE_FORMAT): New macro.
8077         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8078         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8079         (_GL_ATTRIBUTE_FORMAT): New macro.
8080         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8081         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8082         GCC 3 or newer.
8083         * lib/error.h (__attribute__): Remove definition.
8084         (_GL_ATTRIBUTE_FORMAT): New macro.
8085         (error, error_at_line): Use it.
8086         * lib/hash.h (__attribute__): Remove definition.
8087         (ATTRIBUTE_WUR): Update definition. Define always.
8088         * lib/openat.h (__attribute__): Remove definition.
8089         (ATTRIBUTE_NORETURN): Update definition. Define always.
8090         * lib/sigpipe-die.h (__attribute__): Remove definition.
8091         (ATTRIBUTE_NORETURN): Update definition. Define always.
8092         * lib/vasnprintf.h (__attribute__): Remove definition.
8093         (_GL_ATTRIBUTE_FORMAT): New macro.
8094         (asnprintf, vasnprintf): Use it.
8095         * lib/xalloc.h (__attribute__): Remove definition.
8096         (ATTRIBUTE_NORETURN): Update definition. Define always.
8097         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8098         * lib/xmemdup0.h (__attribute__): Remove definition.
8099         (ATTRIBUTE_NORETURN): Update definition. Define always.
8100         * lib/xprintf.h (__attribute__): Remove definition.
8101         (_GL_ATTRIBUTE_FORMAT): New macro.
8102         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8103         * lib/xstrtol.h (__attribute__): Remove definition.
8104         (ATTRIBUTE_NORETURN): Update definition. Define always.
8105         * lib/xvasprintf.h (__attribute__): Remove definition.
8106         (_GL_ATTRIBUTE_FORMAT): New macro.
8107         (xasprintf, xvasprintf): Use it.
8108         * tests/test-argmatch.c (__attribute__): Remove definition.
8109         (ATTRIBUTE_NORETURN): Update definition. Define always.
8110         * tests/test-exclude.c (__attribute__): Remove definition.
8111         (ATTRIBUTE_NORETURN): Update definition. Define always.
8112         Reported by Paul Eggert.
8113
8114 2011-02-13  Bruno Haible  <bruno@clisp.org>
8115
8116         mbrtowc: Add more tests for native Windows platforms.
8117         * tests/test-mbrtowc-w32-1.sh: New file.
8118         * tests/test-mbrtowc-w32-2.sh: New file.
8119         * tests/test-mbrtowc-w32-3.sh: New file.
8120         * tests/test-mbrtowc-w32-4.sh: New file.
8121         * tests/test-mbrtowc-w32-5.sh: New file.
8122         * tests/test-mbrtowc-w32.c: New file.
8123         * modules/mbrtowc-tests (Files): Add them.
8124         (Makefile.am): Arrange to run these tests.
8125         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8126         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8127
8128 2011-02-13  Bruno Haible  <bruno@clisp.org>
8129
8130         mbrtowc: Work around native Windows bug.
8131         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8132         guess when no suitable locale for testing was found.
8133         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8134
8135 2011-02-13  Bruno Haible  <bruno@clisp.org>
8136
8137         mbsinit: Work around mingw bug.
8138         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8139         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8140         Windows.
8141         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8142
8143 2011-02-13  Bruno Haible  <bruno@clisp.org>
8144
8145         mbsinit: Don't crash for a NULL argument.
8146         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8147         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8148
8149 2011-02-13  Bruno Haible  <bruno@clisp.org>
8150
8151         Don't interfere with a program's definition of __attribute__.
8152         * lib/stdio.in.h (__attribute__): Remove definition.
8153         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8154         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8155         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8156         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8157         * lib/string.in.h (__attribute__): Remove definition.
8158         Reported by Paul Eggert.
8159
8160 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8161
8162         stdlib: don't get in the way of non-GCC __attribute__
8163         See thread starting at
8164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8165         Revert previous stdlib change, installing the following instead:
8166         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8167         to get in the way of a non-GCC compiler that supports __attribute__.
8168         (_GL_ATTRIBUTE_RETURN): New macro.
8169         (_Exit): Use it instead of __attribute__.
8170
8171 2011-02-12  Bruno Haible  <bruno@clisp.org>
8172
8173         quotearg test: Avoid test failure on mingw.
8174         * tests/test-quotearg.sh: Convert the locale identifier from native
8175         Windows syntax to Unix syntax.
8176
8177 2011-02-12  Bruno Haible  <bruno@clisp.org>
8178
8179         setlocale: Prefer gnulib's override over libintl's override.
8180         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8181         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8182         GNULIB_defined_setlocale is set.
8183
8184 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8185
8186         stdlib: support non-GCC __attribute__
8187
8188         Fix a serious and tricky problem encountered when attempting to
8189         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8190         5.5, but it crashed due to memory corruption on Solaris 10 with
8191         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8192         bits that are otherwise zero.  This tagging is optional inside
8193         Emacs but is preferred and is used when __attribute__ ((__aligned
8194         (8))) works, as it does with both recent-enough GCC and with Sun C
8195         5.11.  However, Sun C 5.11 is not GCC and does not #define
8196         __GNUC__ and __GNUC_MINOR__.
8197
8198         When I added the getloadavg module to Emacs, it brought in
8199         stdlib.in.h, which contained this fragment:
8200
8201            #ifndef __attribute__
8202            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8203            #  define __attribute__(Spec)   /* empty */
8204            # endif
8205            #endif
8206
8207         When files that include <stdlib.h> were compiled with Sun C 5.11,
8208         the above code disabled __attribute__ ((__aligned (8))), which
8209         caused variables to not be properly aligned, which eventually led
8210         to the pointer corruption mentioned above.  (This was a bit hard
8211         to diagnose, unfortunately.)
8212
8213         Several "#define __attribute__(X) /* empty */" code snippets need
8214         to be eradicated from Gnulib to work with non-GCC compilers that
8215         support __attribute__.  The Autoconf way to do this is to test for
8216         each kind of attribute that we want support for, and selectively
8217         enable that in source code.
8218
8219         Fix this problem just for stdlib.h, by adding a test for the
8220         __noreturn__ attribute, and change stdlib.in.h to use that test
8221         when needed.  This technique can be easily generalized to the
8222         other *.in.h files and attributes, and a similar technique can be
8223         used for *.h and *.c files.  This patch is enough to solve the
8224         problem for Emacs + getloadavg, and I thought I'd publish it for
8225         feedback before undertaking further, similar fixes in other
8226         modules.
8227
8228         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8229         because it's not needed for stdlib.h.  It merely substitutes the
8230         value directly into stdlib.h.  We may well need to #define it, or
8231         similar symbols, for other modules, but it's nice to also have an
8232         option to not #define it for applications like Emacs that do not
8233         need it.
8234
8235         * lib/stdlib.in.h (__attribute__): Do not #define.
8236         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8237         be defined only if the _Exit module is also used.
8238         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8240         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8241         platforms.
8242         * modules/_Exit (Files): Add m4/attribute.m4.
8243         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8244         * m4/attribute.m4: New file.
8245
8246 2011-02-12  Bruno Haible  <bruno@clisp.org>
8247
8248         wcsrtombs: Work around bug on native Windows.
8249         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8250         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8251         instead of len.
8252         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8253
8254 2011-02-12  Bruno Haible  <bruno@clisp.org>
8255
8256         mbsrtowcs: Work around bug on native Windows.
8257         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8258         against mingw bug.
8259         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8260
8261 2011-02-12  Bruno Haible  <bruno@clisp.org>
8262
8263         Avoid setlocale bugs in tests.
8264         * modules/btowc (Dependencies): Add setlocale.
8265         * modules/c-strcase (Dependencies): Likewise.
8266         * modules/mbmemcasecmp (Dependencies): Likewise.
8267         * modules/mbmemcasecoll (Dependencies): Likewise.
8268         * modules/mbrtowc (Dependencies): Likewise.
8269         * modules/mbscasecmp (Dependencies): Likewise.
8270         * modules/mbscasestr (Dependencies): Likewise.
8271         * modules/mbschr (Dependencies): Likewise.
8272         * modules/mbscspn (Dependencies): Likewise.
8273         * modules/mbsinit (Dependencies): Likewise.
8274         * modules/mbsncasecmp (Dependencies): Likewise.
8275         * modules/mbsnrtowcs (Dependencies): Likewise.
8276         * modules/mbspbrk (Dependencies): Likewise.
8277         * modules/mbspcasecmp (Dependencies): Likewise.
8278         * modules/mbsrchr (Dependencies): Likewise.
8279         * modules/mbsrtowcs (Dependencies): Likewise.
8280         * modules/mbsspn (Dependencies): Likewise.
8281         * modules/mbsstr (Dependencies): Likewise.
8282         * modules/nl_langinfo (Dependencies): Likewise.
8283         * modules/quotearg (Dependencies): Likewise.
8284         * modules/unicase/locale-language (Dependencies): Likewise.
8285         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8286         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8287         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8288         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8289         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8290         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8291         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8292         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8293         * modules/vasnprintf-posix (Dependencies): Likewise.
8294         * modules/wcrtomb (Dependencies): Likewise.
8295         * modules/wcsnrtombs (Dependencies): Likewise.
8296         * modules/wcsrtombs (Dependencies): Likewise.
8297
8298 2011-02-12  Bruno Haible  <bruno@clisp.org>
8299
8300         setlocale: Workaround native Windows bug.
8301         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8302         succeeds but sets LC_CTYPE to "C", report a failure.
8303         * tests/test-setlocale2.sh: New file.
8304         * tests/test-setlocale2.c: New file.
8305         * modules/setlocale-tests (Files): Add the new files.
8306         (Makefile.am): Enable test-setlocale2.sh test.
8307         * doc/posix-functions/setlocale.texi: Mention workaround.
8308
8309 2011-02-11  Bruno Haible  <bruno@clisp.org>
8310
8311         Tests for module 'setlocale'.
8312         * modules/setlocale-tests: New file.
8313         * tests/test-setlocale1.sh: New file.
8314         * tests/test-setlocale1.c: New file.
8315
8316         New module 'setlocale'.
8317         * lib/locale.in.h (setlocale): New declaration.
8318         * lib/setlocale.c: New file, based on
8319         gettext/gettext-runtime/intl/setlocale.c.
8320         * m4/setlocale.m4: New file.
8321         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8322         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8323         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8324         REPLACE_SETLOCALE.
8325         * modules/setlocale: New file.
8326         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8327         * doc/posix-functions/setlocale.texi: Mention the new module.
8328
8329 2011-02-11  Bruno Haible  <bruno@clisp.org>
8330
8331         Prepare for locale dependent tests on mingw.
8332         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8333         because it has the wrong locale encoding.
8334         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8335         French_France.1252 instead of "fr".
8336         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8337         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8338         because it has the wrong locale encoding.
8339         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8340         native Windows, try Turkish_Turkey.65001.
8341         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8342         Chinese_China.54936.
8343
8344         Prepare for locale dependent tests on mingw.
8345         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8346         differently.
8347         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8348         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8349         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8350         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8351
8352 2011-02-11  Eric Blake  <eblake@redhat.com>
8353
8354         strptime: avoid compiler warnings
8355         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8356         compiler warnings about dead code.
8357         Reported by Daniel P. Berrange.
8358
8359 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8360
8361         doc: update users.txt
8362         * users.txt: Add rcs.
8363
8364 2011-02-10  John W. Eaton  <jwe@gnu.org>
8365
8366         doc: update users.txt
8367         * users.txt: Add octave.
8368
8369 2011-02-10  Jim Meyering  <meyering@redhat.com>
8370
8371         doc: update users.txt
8372         * users.txt: Add iwhd.
8373
8374 2011-02-09  Bruno Haible  <bruno@clisp.org>
8375
8376         gnulib-tool: Make copyright notice adjustment more robust.
8377         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8378         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8379         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8380         License".
8381         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8382
8383 2011-02-06  Bruno Haible  <bruno@clisp.org>
8384
8385         New module 'towctrans'.
8386         * modules/towctrans: New file.
8387         * lib/wctype.in.h (towctrans): New declaration.
8388         * lib/towctrans.c: New file.
8389         * lib/towctrans-impl.h: New file.
8390         * m4/towctrans.m4: New file.
8391         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8392         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8393         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8394         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8395         * doc/posix-functions/towctrans.texi: Mention the new module.
8396
8397 2011-02-06  Bruno Haible  <bruno@clisp.org>
8398
8399         New module 'wctrans'.
8400         * modules/wctrans: New file.
8401         * lib/wctype.in.h (wctrans): New declaration.
8402         * lib/wctrans.c: New file.
8403         * lib/wctrans-impl.h: New file.
8404         * m4/wctrans.m4: New file.
8405         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8406         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8407         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8408         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8409         * doc/posix-functions/wctrans.texi: Mention the new module.
8410
8411 2011-02-06  Bruno Haible  <bruno@clisp.org>
8412
8413         New module 'iswctype'.
8414         * modules/iswctype: New file.
8415         * lib/wctype.in.h (iswctype): New declaration.
8416         * lib/iswctype.c: New file.
8417         * lib/iswctype-impl.h: New file.
8418         * m4/iswctype.m4: New file.
8419         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8420         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8421         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8422         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8423         * doc/posix-functions/iswctype.texi: Mention the new module and the
8424         HP-UX 11.00 problem.
8425
8426 2011-02-06  Bruno Haible  <bruno@clisp.org>
8427
8428         New module 'wctype'.
8429         * modules/wctype: Change to represent the wctype() substitute.
8430         * lib/wctype.in.h (wctype): New declaration.
8431         * lib/wctype.c: New file.
8432         * lib/wctype-impl.h: New file.
8433         * m4/wctype.m4: New file.
8434         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8435         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8436         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8437         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8438         * doc/posix-functions/wctype.texi: Mention the new module and the
8439         HP-UX 11.00 problem.
8440
8441 2011-02-06  Bruno Haible  <bruno@clisp.org>
8442
8443         wctype-h: Ensure wctype_t and wctrans_t are defined.
8444         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8445         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8446         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8447         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8448         HAVE_WCTRANS_T.
8449         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8450
8451 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8452
8453         flock: fix license typo
8454
8455         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8456         omitted.
8457
8458 2011-02-08  Bruno Haible  <bruno@clisp.org>
8459
8460         Split large sed scripts, for HP-UX sed.
8461         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8462         to avoid HP-UX limit of 99 commands, in the near future.
8463         * modules/stdlib (Makefile.am): Likewise.
8464         * modules/unistd (Makefile.am): Likewise.
8465         * modules/wchar (Makefile.am): Likewise.
8466         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8467         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8468         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8469
8470 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8471             Bruno Haible  <bruno@clisp.org>
8472
8473         stdlib: improve random_r modularization
8474         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8475         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8476         you also need the random_r module to get this material right.
8477         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8478         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8479         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8480
8481 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8482
8483         stdlib: don't depend on stdint
8484         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8485         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8486         be independent of whether stdint.h is needed.
8487         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8488         here, instead of ...
8489         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8490         struct random_data should be using the random_r module, not just
8491         the stdlib module (which wouldn't make sense: what package needs
8492         just struct random_data without also needing random_r?).
8493         * modules/stdlib (Depends-on): Remove stdint.
8494
8495         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8496         See the thread rooted at
8497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8498         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8499         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8500         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8501         __VMS)); previously it was always included (via fcntl--.h).
8502         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8503         hand; this is good enough for load averages.  Also, do not use
8504         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8505         flags directly if available and don't bother otherwise.  (Packages
8506         that need the extra reliability should use the modules that define
8507         these flags on older platforms that lack them.)
8508         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8509         fcntl-safer.
8510
8511 2011-02-08  Jim Meyering  <meyering@redhat.com>
8512
8513         di-set.h, ino-map.h: add multiple-inclusion guard
8514         Technically, the guard is required only for ino-map.h, due to its
8515         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8516         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8517         * lib/ino-map.h: Likewise.
8518
8519 2011-02-06  Bruno Haible  <bruno@clisp.org>
8520
8521         iswblank: Ensure declaration on glibc systems.
8522         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8523         * modules/iswblank (Dependencies): Add 'extensions'.
8524         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8525
8526 2011-02-06  Bruno Haible  <bruno@clisp.org>
8527
8528         New module 'iswblank'.
8529         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8530         * modules/iswblank: New file.
8531         * modules/wctype-h (Files): Remove lib/iswblank.c.
8532         (Makefile.am): Substitute GNULIB_ISWBLANK.
8533         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8534         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8535         (gl_WCTYPE_H_DEFAULTS): New macro.
8536         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8537         * modules/iswblank-tests: New file.
8538         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8539         * tests/test-wctype-h.c (main): Remove iswblank tests.
8540         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8541         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8542         of 'wctype-h'.
8543         * NEWS: Mention the change.
8544         * modules/mbchar (Depends-on): Add iswblank.
8545
8546 2011-02-08  Bruno Haible  <bruno@clisp.org>
8547
8548         di-set tests: Refactor.
8549         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8550         unnecessary includes.
8551         (ASSERT): Remove macro.
8552         (main): Make C90 compliant by avoiding variable declaration after
8553         statement.
8554         * modules/di-set-tests (Files): Add tests/macros.h.
8555
8556 2011-02-08  Bruno Haible  <bruno@clisp.org>
8557
8558         ino-map tests: Refactor.
8559         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8560         unnecessary includes.
8561         (ASSERT): Remove macro.
8562         (main): Make C90 compliant by avoiding variable declaration after
8563         statement.
8564         * modules/ino-map-tests (Files): Add tests/macros.h.
8565
8566 2011-02-08  Jim Meyering  <meyering@redhat.com>
8567
8568         di-set: add "const" to a cast
8569         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8570         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8571
8572 2011-02-06  Bruno Haible  <bruno@clisp.org>
8573
8574         Rename module 'wctype' to 'wctype-h'.
8575         * modules/wctype-h: Renamed from modules/wctype.
8576         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8577         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8578         (Files, Depends-on, Makefile.am): Update.
8579         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8580         (Files, Makefile.am): Update.
8581         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8582         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8583         * doc/posix-headers/wctype.texi: Update.
8584         * doc/posix-functions/iswalnum.texi: Update.
8585         * doc/posix-functions/iswalpha.texi: Update.
8586         * doc/posix-functions/iswblank.texi: Update.
8587         * doc/posix-functions/iswcntrl.texi: Update.
8588         * doc/posix-functions/iswdigit.texi: Update.
8589         * doc/posix-functions/iswgraph.texi: Update.
8590         * doc/posix-functions/iswlower.texi: Update.
8591         * doc/posix-functions/iswprint.texi: Update.
8592         * doc/posix-functions/iswpunct.texi: Update.
8593         * doc/posix-functions/iswspace.texi: Update.
8594         * doc/posix-functions/iswupper.texi: Update.
8595         * doc/posix-functions/iswxdigit.texi: Update.
8596         * doc/posix-functions/towlower.texi: Update.
8597         * doc/posix-functions/towupper.texi: Update.
8598         * NEWS: Mention the change.
8599         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8600         * modules/mbchar (Dependencies): Likewise.
8601         * modules/mbswidth (Dependencies): Likewise.
8602         * modules/quotearg (Dependencies): Likewise.
8603         * modules/regex (Dependencies): Likewise.
8604         * modules/wcscasecmp (Dependencies): Likewise.
8605         * modules/wcsncasecmp (Dependencies): Likewise.
8606         * modules/wcwidth (Dependencies): Likewise.
8607
8608 2011-02-06  Bruno Haible  <bruno@clisp.org>
8609
8610         New module 'wcswidth'.
8611         * modules/wcswidth: New file.
8612         * lib/wchar.in.h (wcswidth): New declaration.
8613         * lib/wcswidth.c: New file.
8614         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8615         * m4/wcswidth.m4: New file.
8616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8618         REPLACE_WCSWIDTH.
8619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8620         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8621         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8622         * doc/posix-functions/wcswidth.texi: Mention the new module.
8623
8624 2011-02-06  Bruno Haible  <bruno@clisp.org>
8625
8626         New module 'wcstok'.
8627         * modules/wcstok: New file.
8628         * lib/wchar.in.h (wcstok): New declaration.
8629         * lib/wcstok.c: New file.
8630         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8631         * m4/wcstok.m4: New file.
8632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8635         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8636         * doc/posix-functions/wcstok.texi: Mention the new module.
8637
8638 2011-02-06  Bruno Haible  <bruno@clisp.org>
8639
8640         New module 'wcsstr'.
8641         * modules/wcsstr: New file.
8642         * lib/wchar.in.h (wcsstr): New declaration.
8643         * lib/wcsstr.c: New file.
8644         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8645         * m4/wcsstr.m4: New file.
8646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8649         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8650         * doc/posix-functions/wcsstr.texi: Mention the new module.
8651
8652 2011-02-06  Bruno Haible  <bruno@clisp.org>
8653
8654         New module 'wcspbrk'.
8655         * modules/wcspbrk: New file.
8656         * lib/wchar.in.h (wcspbrk): New declaration.
8657         * lib/wcspbrk.c: New file.
8658         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8659         * m4/wcspbrk.m4: New file.
8660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8663         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8664         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8665
8666 2011-02-06  Bruno Haible  <bruno@clisp.org>
8667
8668         New module 'wcsspn'.
8669         * modules/wcsspn: New file.
8670         * lib/wchar.in.h (wcsspn): New declaration.
8671         * lib/wcsspn.c: New file.
8672         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8673         * m4/wcsspn.m4: New file.
8674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8677         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8678         * doc/posix-functions/wcsspn.texi: Mention the new module.
8679
8680 2011-02-06  Bruno Haible  <bruno@clisp.org>
8681
8682         New module 'wcscspn'.
8683         * modules/wcscspn: New file.
8684         * lib/wchar.in.h (wcscspn): New declaration.
8685         * lib/wcscspn.c: New file.
8686         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8687         * m4/wcscspn.m4: New file.
8688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8691         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8692         * doc/posix-functions/wcscspn.texi: Mention the new module.
8693
8694 2011-02-06  Bruno Haible  <bruno@clisp.org>
8695
8696         New module 'wcsrchr'.
8697         * modules/wcsrchr: New file.
8698         * lib/wchar.in.h (wcsrchr): New declaration.
8699         * lib/wcsrchr.c: New file.
8700         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8701         * m4/wcsrchr.m4: New file.
8702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8705         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8706         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8707
8708 2011-02-06  Bruno Haible  <bruno@clisp.org>
8709
8710         New module 'wcschr'.
8711         * modules/wcschr: New file.
8712         * lib/wchar.in.h (wcschr): New declaration.
8713         * lib/wcschr.c: New file.
8714         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8715         * m4/wcschr.m4: New file.
8716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8719         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8720         * doc/posix-functions/wcschr.texi: Mention the new module.
8721
8722 2011-02-06  Bruno Haible  <bruno@clisp.org>
8723
8724         New module 'wcsdup'.
8725         * modules/wcsdup: New file.
8726         * lib/wchar.in.h (wcsdup): New declaration.
8727         * lib/wcsdup.c: New file.
8728         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8729         * m4/wcsdup.m4: New file.
8730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8733         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8734         * doc/posix-functions/wcsdup.texi: Mention the new module.
8735
8736 2011-02-06  Bruno Haible  <bruno@clisp.org>
8737
8738         New module 'wcsxfrm'.
8739         * modules/wcsxfrm: New file.
8740         * lib/wchar.in.h (wcsxfrm): New declaration.
8741         * lib/wcsxfrm.c: New file.
8742         * lib/wcsxfrm-impl.h: New file.
8743         * m4/wcsxfrm.m4: New file.
8744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8747         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8748         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8749
8750 2011-02-06  Bruno Haible  <bruno@clisp.org>
8751
8752         New module 'wcscoll'.
8753         * modules/wcscoll: New file.
8754         * lib/wchar.in.h (wcscoll): New declaration.
8755         * lib/wcscoll.c: New file.
8756         * lib/wcscoll-impl.h: New file.
8757         * m4/wcscoll.m4: New file.
8758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8761         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8762         * doc/posix-functions/wcscoll.texi: Mention the new module.
8763
8764 2011-02-06  Bruno Haible  <bruno@clisp.org>
8765
8766         New module 'wcsncasecmp'.
8767         * modules/wcsncasecmp: New file.
8768         * lib/wchar.in.h (wcsncasecmp): New declaration.
8769         * lib/wcsncasecmp.c: New file.
8770         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8771         * m4/wcsncasecmp.m4: New file.
8772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8775         HAVE_WCSNCASECMP.
8776         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8777         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8778
8779 2011-02-06  Bruno Haible  <bruno@clisp.org>
8780
8781         New module 'wcscasecmp'.
8782         * modules/wcscasecmp: New file.
8783         * lib/wchar.in.h (wcscasecmp): New declaration.
8784         * lib/wcscasecmp.c: New file.
8785         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8786         * m4/wcscasecmp.m4: New file.
8787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8790         HAVE_WCSCASECMP.
8791         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8792         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8793
8794 2011-02-05  Bruno Haible  <bruno@clisp.org>
8795
8796         New module 'wcsncmp'.
8797         * modules/wcsncmp: New file.
8798         * lib/wchar.in.h (wcsncmp): New declaration.
8799         * lib/wcsncmp.c: New file.
8800         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8801         * m4/wcsncmp.m4: New file.
8802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8805         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8806         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8807
8808 2011-02-05  Bruno Haible  <bruno@clisp.org>
8809
8810         New module 'wcscmp'.
8811         * modules/wcscmp: New file.
8812         * lib/wchar.in.h (wcscmp): New declaration.
8813         * lib/wcscmp.c: New file.
8814         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8815         * m4/wcscmp.m4: New file.
8816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8819         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8820         * doc/posix-functions/wcscmp.texi: Mention the new module.
8821
8822 2011-02-05  Bruno Haible  <bruno@clisp.org>
8823
8824         New module 'wcsncat'.
8825         * modules/wcsncat: New file.
8826         * lib/wchar.in.h (wcsncat): New declaration.
8827         * lib/wcsncat.c: New file.
8828         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8829         * m4/wcsncat.m4: New file.
8830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8833         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8834         * doc/posix-functions/wcsncat.texi: Mention the new module.
8835
8836 2011-02-05  Bruno Haible  <bruno@clisp.org>
8837
8838         New module 'wcscat'.
8839         * modules/wcscat: New file.
8840         * lib/wchar.in.h (wcscat): New declaration.
8841         * lib/wcscat.c: New file.
8842         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8843         * m4/wcscat.m4: New file.
8844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8847         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8848         * doc/posix-functions/wcscat.texi: Mention the new module.
8849
8850 2011-02-05  Bruno Haible  <bruno@clisp.org>
8851
8852         New module 'wcpncpy'.
8853         * modules/wcpncpy: New file.
8854         * lib/wchar.in.h (wcpncpy): New declaration.
8855         * lib/wcpncpy.c: New file.
8856         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8857         * m4/wcpncpy.m4: New file.
8858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8860         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8861         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8862         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8863
8864 2011-02-05  Bruno Haible  <bruno@clisp.org>
8865
8866         New module 'wcsncpy'.
8867         * modules/wcsncpy: New file.
8868         * lib/wchar.in.h (wcsncpy): New declaration.
8869         * lib/wcsncpy.c: New file.
8870         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8871         * m4/wcsncpy.m4: New file.
8872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8875         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8876         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8877
8878 2011-02-05  Bruno Haible  <bruno@clisp.org>
8879
8880         New module 'wcpcpy'.
8881         * modules/wcpcpy: New file.
8882         * lib/wchar.in.h (wcpcpy): New declaration.
8883         * lib/wcpcpy.c: New file.
8884         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8885         * m4/wcpcpy.m4: New file.
8886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8888         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8889         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8890         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8891
8892 2011-02-05  Bruno Haible  <bruno@clisp.org>
8893
8894         New module 'wcscpy'.
8895         * modules/wcscpy: New file.
8896         * lib/wchar.in.h (wcscpy): New declaration.
8897         * lib/wcscpy.c: New file.
8898         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8899         * m4/wcscpy.m4: New file.
8900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8902         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8903         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8904         * doc/posix-functions/wcscpy.texi: Mention the new module.
8905
8906 2011-02-05  Bruno Haible  <bruno@clisp.org>
8907
8908         New module 'wcsnlen'.
8909         * modules/wcsnlen: New file.
8910         * lib/wchar.in.h (wcsnlen): New declaration.
8911         * lib/wcsnlen.c: New file.
8912         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8913         * m4/wcsnlen.m4: New file.
8914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8917         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8918         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8919
8920 2011-02-05  Bruno Haible  <bruno@clisp.org>
8921
8922         New module 'wcslen'.
8923         * modules/wcslen: New file.
8924         * lib/wchar.in.h (wcslen): New declaration.
8925         * lib/wcslen.c: New file.
8926         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8927         * m4/wcslen.m4: New file.
8928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8931         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8932         * doc/posix-functions/wcslen.texi: Mention the new module.
8933
8934 2011-02-05  Bruno Haible  <bruno@clisp.org>
8935
8936         New module 'wmemset'.
8937         * modules/wmemset: New file.
8938         * lib/wchar.in.h (wmemset): New declaration.
8939         * lib/wmemset.c: New file.
8940         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8941         * m4/wmemset.m4: New file.
8942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8944         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8945         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8946         * doc/posix-functions/wmemset.texi: Mention the new module.
8947
8948 2011-02-05  Bruno Haible  <bruno@clisp.org>
8949
8950         New module 'wmemmove'.
8951         * modules/wmemmove: New file.
8952         * lib/wchar.in.h (wmemmove): New declaration.
8953         * lib/wmemmove.c: New file.
8954         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8955         * m4/wmemmove.m4: New file.
8956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8958         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8959         HAVE_WMEMMOVE.
8960         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8961         * doc/posix-functions/wmemmove.texi: Mention the new module.
8962
8963 2011-02-05  Bruno Haible  <bruno@clisp.org>
8964
8965         New module 'wmemcpy'.
8966         * modules/wmemcpy: New file.
8967         * lib/wchar.in.h (wmemcpy): New declaration.
8968         * lib/wmemcpy.c: New file.
8969         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8970         * m4/wmemcpy.m4: New file.
8971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8973         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8974         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8975         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8976
8977 2011-02-05  Bruno Haible  <bruno@clisp.org>
8978
8979         New module 'wmemcmp'.
8980         * modules/wmemcmp: New file.
8981         * lib/wchar.in.h (wmemcmp): New declaration.
8982         * lib/wmemcmp.c: New file.
8983         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8984         * m4/wmemcmp.m4: New file.
8985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8987         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8988         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8989         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8990
8991 2011-02-07  Jim Meyering  <meyering@redhat.com>
8992
8993         di-set, ino-map: new modules, from coreutils
8994         * lib/di-set.c: New file.
8995         * lib/di-set.h: Likewise.
8996         * lib/ino-map.c: Likewise.
8997         * lib/ino-map.h: Likewise.
8998         * modules/di-set: Likewise.
8999         * modules/di-set-tests: Likewise.
9000         * modules/ino-map: Likewise.
9001         * modules/ino-map-tests: Likewise.
9002         * tests/test-di-set.c: Likewise.
9003         * tests/test-ino-map.c: Likewise.
9004
9005 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9006
9007         getloadavg: merge minor changes from Emacs
9008
9009         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9010         (getloadavg): Use memset, not bzero.
9011
9012         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9013         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9014         clash (bug#86).
9015
9016 2010-11-14  Bruno Haible  <bruno@clisp.org>
9017
9018         Allow multiple gnulib generated replacements to coexist.
9019         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9020         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9021         * lib/langinfo.in.h (nl_item): Likewise.
9022         * lib/math.in.h (_NaN, NAN): Likewise.
9023         * lib/netdb.in.h (struct addrinfo): Likewise.
9024         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9025         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9026         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9027         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9028         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9029         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9030         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9031         pthread_mutexattr_init, pthread_mutexattr_settype,
9032         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9033         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9034         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9035         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9036         * lib/sched.in.h (struct sched_param): Likewise.
9037         * lib/se-selinux.in.h (security_class_t, security_context_t,
9038         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9039         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9040         lsetfilecon, fsetfilecon, security_check_context,
9041         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9042         Likewise.
9043         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9044         Likewise.
9045         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9046         _gl_function_taking_int_returning_void_t, union sigval,
9047         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9048         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9049         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9050         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9051         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9052         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9053         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9054         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9055         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9056         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9057         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9058         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9059         socklen_t, rpl_fd_isset): Likewise.
9060         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9061         * lib/sys_time.in.h (struct timeval): Likewise.
9062         * lib/sys_times.in.h (struct tms): Likewise.
9063         * lib/sys_utsname.in.h (struct utsname):
9064         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9065         * lib/unistd.in.h (getpagesize): Likewise.
9066         * lib/wchar.in.h (mbstate_t): Likewise.
9067         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9068         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9069         towlower, towupper): Likewise.
9070         Reported by Sam Steingold <sds@gnu.org>.
9071
9072 2011-02-05  Eric Blake  <eblake@redhat.com>
9073
9074         unsetenv: work around Haiku issues
9075         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9076         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9077
9078 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9079
9080         libposix: avoid calling error() within libposix
9081         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9082         is defined.
9083
9084 2011-02-05  Eric Blake  <eblake@redhat.com>
9085
9086         strerror_r-posix: port to cygwin
9087         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9088         implementation.
9089         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9090         * tests/test-strerror_r.c (main): Fix test.
9091         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9092         issue.
9093
9094 2011-02-05  Bruno Haible  <bruno@clisp.org>
9095
9096         New module 'wmemchr'.
9097         * modules/wmemchr: New file.
9098         * lib/wchar.in.h (wmemchr): New declaration.
9099         * lib/wmemchr.c: New file.
9100         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9101         * m4/wmemchr.m4: New file.
9102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9104         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9105         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9106         * doc/posix-functions/wmemchr.texi: Mention the new module.
9107
9108 2011-02-04  Eric Blake  <eblake@redhat.com>
9109
9110         fdopendir: detect FreeBSD bug
9111         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9112         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9113
9114 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         stdbool: do not define HAVE_STDBOOL_H
9117         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9118         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9119         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9120         imported from the latest Autoconf git.  It was motivated by Emacs,
9121         which uses gnulib but does not need HAVE_STDBOOL_H.
9122
9123 2011-02-04  Bruno Haible  <bruno@clisp.org>
9124
9125         wcsnrtombs: Prepare for new module wwcsnrtombs.
9126         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9127         * lib/wcsnrtombs.c: Include it.
9128         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9129
9130         wcsrtombs: Prepare for new module wwcsrtombs.
9131         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9132         * lib/wcsrtombs.c: Include it.
9133         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9134
9135         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9136         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9137         * lib/mbsnrtowcs.c: Include it.
9138         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9139
9140         mbsrtowcs: Prepare for new module mbsrtowwcs.
9141         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9142         * lib/mbsrtowcs.c: Include it.
9143         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9144
9145 2011-02-04  Bruno Haible  <bruno@clisp.org>
9146
9147         vasnprintf: Reduce use of malloc for small format strings.
9148         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9149         (arguments): Add room for the first 7 arguments.
9150         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9151         (char_directives, u8_directives, u16_directives, u32_directives): Add
9152         room for the first 7 directives.
9153         * lib/printf-parse.c: Include <string.h>.
9154         (PRINTF_PARSE): Change memory handling code so that it uses the first
9155         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9156         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9157         Reported by Pádraig Brady <P@draigbrady.com>.
9158
9159 2011-01-31  Eric Blake  <eblake@redhat.com>
9160
9161         dup2: work around Haiku bug
9162         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9163         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9164         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9165         * tests/test-dup2.c (main): Enhance test.
9166
9167 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9168
9169         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9170         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9171         declared by eglibc 2.11.2.
9172         * lib/stdio.in.h: Likewise.
9173
9174 2011-01-31  Eric Blake  <eblake@redhat.com>
9175
9176         ignore-value: add missing test dependency
9177         * tests/test-ignore-value.c: Revert previous change; stdio.h
9178         provides off_t.
9179         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9180
9181 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9182
9183         mktime: clarify long_int width checking
9184         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9185         the top level, to make it clearer that the assumption about
9186         long_int width is being checked.  See
9187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9188
9189 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9190
9191         ignore-value: Fix self-test.
9192         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9193
9194 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9195
9196         TYPE_MAXIMUM: avoid theoretically undefined behavior
9197         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9198         negative number, which the C Standard says has undefined behavior.
9199         In practice this is not a problem, but might as well do it by the book.
9200         Reported by Rich Felker and Eric Blake; see
9201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9202         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9203         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9205         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9206         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9207         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9208
9209         mktime: #undef mktime before #defining it
9210         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9211
9212         mktime: systematically normalize tm_isdst comparisons
9213         * lib/mktime.c (isdst_differ): New function.
9214         (__mktime_internal): Use it systematically for all isdst comparisons.
9215         This completes the fix for libc BZ #6723, and removes the need for
9216         normalizing tm_isdst.  See
9217         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9218         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9219
9220         mktime: fix some integer overflow issues and sidestep the rest
9221
9222         This was prompted by a bug report by Benjamin Lindner for MinGW
9223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9224         His bug is due to signed integer overflow (0 - INT_MIN), and I
9225         I scanned through mktime.c looking for other integer overflow
9226         problems, fixing all the bugs I found.
9227
9228         Although the C Standard says the resulting code is still not safe
9229         in the presence of integer overflow, in practice it should be good
9230         enough for all real-world two's-complement implementations, except
9231         for debugging environments that deliberately trap on integer
9232         overflow (e.g., gcc -ftrapv).
9233
9234         * lib/mktime.c (WRAPV): New macro.
9235         (SHR): Also check that long_int and time_t shift right in the
9236         usual way, before using the fast-but-unportable method.
9237         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9238         used.  The code already assumed two's complement, so there's
9239         no need to test for alternatives.  All uses removed.
9240         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9241         the C standard.  Problem reported by Rich Felker in
9242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9243         (twos_complement_arithmetic): Also check long_int and time_t.
9244         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9245         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9246         (__mktime_internal): Avoid integer overflow with unary subtraction
9247         in two instances where -1 - X is an adequate replacement for -X,
9248         since the calculations are approximate.
9249
9250 2011-01-29  Eric Blake  <eblake@redhat.com>
9251
9252         mktime: avoid infinite loop
9253         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9254         type; behavior is still undefined but portable to all known targets.
9255         Reported by Rich Felker.
9256
9257 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9258
9259         rename, unlink, same-inode: Relicense.
9260         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9261         * modules/unlink (License): Likewise.
9262         * modules/same-inode (License): Likewise.
9263
9264 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9265
9266         mktime: avoid problems on NetBSD 5 / i386
9267         * lib/mktime.c (long_int): New type.  This works around a problem
9268         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9269         but time_t is 64 bits, and where I expect the existing code is
9270         wrong in some cases.
9271         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9272         (ydhms_diff): Bring back the compile-time check for wide-enough
9273         year and yday.
9274
9275         mktime: fix misspelling in comment
9276         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9277         This merges all recent glibc changes of importance.
9278
9279 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9280
9281         move-if-change: cope with concurrent mv of identical file.
9282         * build-aux/move-if-change (CMPPROG): Accept environment
9283         variable as an override for `cmp'.
9284         (usage): Document CMPPROG.
9285         Adjust comparison to drop stdout.  Cope with failure of mv if
9286         the target file exists and is identical to the source, for
9287         parallel builds.
9288         Report from H.J. Lu against binutils in PR binutils/12283.
9289
9290 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9291
9292         * users.txt: Mention sharutils.
9293
9294 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9295
9296         * users.txt: Mention OATH Toolkit.
9297
9298 2011-01-27  Bruno Haible  <bruno@clisp.org>
9299
9300         Prepare for supporting FreeBSD 10.
9301         * build-aux/config.libpath: Remove handling of freebsd1*.
9302
9303 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9304
9305         Prepare for supporting FreeBSD 10.
9306         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9307         match FreeBSD 10.0.
9308
9309 2011-01-27  Bruno Haible  <bruno@clisp.org>
9310
9311         vma-iter, get-rusage-as: Add OpenBSD support.
9312         * modules/vma-iter (configure.ac): Test for mquery.
9313         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9314         * lib/vma-iter.c: Include <sys/mman.h>.
9315         (vma_iterate): Add an implementation based on mquery().
9316         * lib/resource-ext.h (get_rusage_as): Update comments.
9317         * lib/get-rusage-as.c: Likewise.
9318         * lib/get-rusage-data.c: Likewise.
9319
9320 2011-01-26  Karl Berry  <karl@gnu.org>
9321
9322         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9323         variables to make it easier to override the makeinfo program used.
9324
9325 2011-01-26  Eric Blake  <eblake@redhat.com>
9326
9327         fcntl: work around Haiku F_DUPFD bugs
9328         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9329         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9330         cloexec bit on duplication.
9331         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9332
9333 2011-01-26  Bruno Haible  <bruno@clisp.org>
9334
9335         Enable memory leak tests on AIX.
9336         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9337         * tests/test-fprintf-posix3.c (main): Likewise.
9338
9339 2011-01-26  Bruno Haible  <bruno@clisp.org>
9340
9341         Tests for module 'get-rusage-data'.
9342         * modules/get-rusage-data-tests: New file.
9343         * tests/test-get-rusage-data.c: New file.
9344
9345         New module 'get-rusage-data'.
9346         * lib/resource-ext.h (get_rusage_data): New declaration.
9347         * lib/get-rusage-data.c: New file.
9348         * modules/get-rusage-data: New file.
9349
9350 2011-01-25  Bruno Haible  <bruno@clisp.org>
9351
9352         get-rusage-as: Allow for easier testing.
9353         * lib/resource-ext.h (get_rusage_as): Add comment.
9354         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9355         (main): New function for interactive testing.
9356
9357 2011-01-25  Bruno Haible  <bruno@clisp.org>
9358
9359         vma-iter: Treat Haiku like BeOS.
9360         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9361         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9362
9363 2011-01-25  Eric Blake  <eblake@redhat.com>
9364
9365         c-stack: fix regression on cygwin when libsigsegv is present
9366         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9367
9368 2011-01-24  Bruno Haible  <bruno@clisp.org>
9369
9370         vma-iter: Avoid empty intervals.
9371         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9372         on an empty interval.
9373
9374 2011-01-24  Jim Meyering  <meyering@redhat.com>
9375
9376         u64: remove unnecessary #include
9377         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9378
9379 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9380
9381         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9382         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9383
9384 2011-01-23  Bruno Haible  <bruno@clisp.org>
9385
9386         New module 'vma-iter'.
9387         * lib/vma-iter.h: New file.
9388         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9389         * modules/vma-iter: New file.
9390         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9391         for get_rusage_as_via_iterator.
9392         (vma_iterate_callback): New function.
9393         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9394         * modules/get-rusage-as (Depends-on): Add vma-iter.
9395
9396 2011-01-23  Bruno Haible  <bruno@clisp.org>
9397
9398         uninorm: Tweak includes.
9399         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9400         Reported by Jim Meyering.
9401
9402 2011-01-23  Bruno Haible  <bruno@clisp.org>
9403
9404         get-rusage-as: Improve on NetBSD.
9405         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9406         /proc, like on FreeBSD.
9407
9408 2011-01-23  Jim Meyering  <meyering@redhat.com>
9409
9410         xreadlink.h: remove unnecessary #include
9411         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9412
9413         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9414         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9415
9416 2011-01-23  Bruno Haible  <bruno@clisp.org>
9417
9418         get-rusage-as: Fix bug.
9419         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9420         original limit when aborting the first loop.
9421
9422 2011-01-23  Bruno Haible  <bruno@clisp.org>
9423
9424         wctype: Ensure valid C syntax.
9425         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9426         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9427
9428 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9429
9430         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9432         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9433         as they are needed only for configure's test case.
9434         This removes two unnecessary symbols from config.h.
9435
9436         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9437         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9439         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9440         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9441         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9442         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9443         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9444         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9445         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9446         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9448         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9449         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9450         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9451         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9452         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9453         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9454
9455 2011-01-21  Eric Blake  <eblake@redhat.com>
9456
9457         maintainer-makefile: work with older git for submodule check
9458         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9459         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9460         Reported by Matthias Bolte.
9461
9462         bootstrap: minor portability fixes
9463         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9464         (usage): Omit leading capital and trailing . on help phrases, per
9465         GNU Coding Standards.
9466         (check_versions, top level): Prefix messages with script name.
9467
9468 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9469
9470         bootstrap: support --no-git option
9471         * build-aux/bootstrap: Add --no-git option, to be used when
9472         --gnulib-srcdir points to the exact desired checkout.
9473
9474 2011-01-21  Eric Blake  <eblake@redhat.com>
9475
9476         strerror_r-posix: work with glibc 2.13
9477         * lib/strerror_r.c (strerror_r): Fix return type.
9478
9479 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9480             Bruno Haible  <bruno@clisp.org>
9481
9482         uN_strstr: New unit tests.
9483         * modules/unistr/u8-strstr-tests: New file.
9484         * modules/unistr/u16-strstr-tests: New file.
9485         * modules/unistr/u32-strstr-tests: New file.
9486         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9487         * tests/unistr/test-u8-strstr.c: New file.
9488         * tests/unistr/test-u16-strstr.c: New file.
9489         * tests/unistr/test-u32-strstr.c: New file.
9490
9491 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9492             Bruno Haible  <bruno@clisp.org>
9493
9494         Make uN_strstr functions O(n) worst-case.
9495         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9496         16-bit and 32-bit unit cases, use the unibyte algorithm from
9497         lib/mbsstr.c.
9498         * lib/unistr/u8-strstr.c: Include <string.h>.
9499         (UNIT_IS_UINT8_T): New macro.
9500         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9501         (U_STRLEN, U_STRNLEN): New macros.
9502         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9503         (U_STRLEN, U_STRNLEN): New macros.
9504         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9505         (configure.ac): Update required libunistring version.
9506         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9507         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9508         malloca.
9509         (configure.ac): Update required libunistring version.
9510         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9511         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9512         malloca.
9513         (configure.ac): Update required libunistring version.
9514
9515 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9516             Bruno Haible  <bruno@clisp.org>
9517
9518         Prepare for faster uN_strstr functions.
9519         * lib/str-kmp.h: Support definable UNITs.
9520         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9521         needle_len argument.
9522         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9523         * lib/mbscasestr.c (mbscasestr): Likewise.
9524
9525 2011-01-21  Pádraig Brady <P@draigBrady.com>
9526
9527         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9528         * tests/test-malloca.c (main): Unset the environment variable
9529         to greatly speed up the test.
9530         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9531         * modules/malloca-tests: Depend on unsetenv.
9532
9533 2011-01-21  Pádraig Brady <P@draigBrady.com>
9534
9535         ignore-value: remove stdint dependency
9536         * lib/ignore-value.h: Remove <stdint.h>
9537         * modules/ignore-value: Remove stdint dependency.
9538
9539 2011-01-21  Jim Meyering  <meyering@redhat.com>
9540
9541         maint.mk: adjust variable name to be consistent with other gl_ vars
9542         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9543         to be lower case.
9544
9545 2011-01-20  Jim Meyering  <meyering@redhat.com>
9546
9547         maint.mk: make "check" depend on public-submodule-commit by default
9548         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9549
9550 2011-01-20  Bruno Haible  <bruno@clisp.org>
9551
9552         mbfile, mbiter: Complete change from 2008-12-21.
9553         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9554         * m4/mbiter.m4 (gl_MBITER): Likewise.
9555
9556 2011-01-20  Jim Meyering  <meyering@redhat.com>
9557
9558         init.sh: insert space between each function name and "()"
9559         * tests/init.sh: Make it a little easier to see that a function's
9560         name is "warn_", and not "warn" when looking at the first part of
9561         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9562
9563 2011-01-20  Jim Meyering  <meyering@redhat.com>
9564
9565         mountlist: clean up code formatting
9566         * lib/mountlist.c (read_file_system_list): Split a long line,
9567         correct bracing style, use NULL in place of "(struct statfs *)0",
9568         don't parenthesize return value, add spaces around "=" and after
9569         ";-in-for-stmt".
9570
9571 2011-01-14  Markus Duft <mduft@gentoo.org>
9572
9573         mountlist: add support for Interix
9574         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9575         Apply statvfs to all entries of /dev/fs.
9576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9577         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9578
9579 2011-01-20  Jim Meyering  <meyering@redhat.com>
9580
9581         maint.mk: improve the public-submodule-commit rule
9582         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9583         to suppress printing of its commands... unless V=1.
9584         Add git submodule's --quiet option to suppress printing of e.g.,
9585         "Entering gnulib" output.
9586         "cd" into $(srcdir) before running git submodule.
9587
9588 2011-01-20  Bruno Haible  <bruno@clisp.org>
9589
9590         include_next: Fix bug introduced on 2011-01-18.
9591         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9592         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9593         ac_cv_header_... variable if the second argument is not 'check'.
9594         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9595         gl_NEXT_HEADERS_INTERNAL.
9596
9597 2011-01-20  Bruno Haible  <bruno@clisp.org>
9598
9599         Allow the user to avoid the GNULIB_TEST_* macros.
9600         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9601         Suggested by Paul Eggert.
9602
9603 2011-01-14  Jim Meyering  <meyering@redhat.com>
9604
9605         bootstrap: avoid failure when there is no .gitmodules file
9606         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9607         has been assigned to, even when its value is the empty string.
9608         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9609         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9610         Reported by John W. Eaton <jwe@gnu.org>.
9611
9612 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9613
9614         assume <ctype.h>, ..., <time.h> exist
9615         For years gnulib has been assuming the existence of the headers
9616         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9617         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9618         them, since they don't appear to be needed.
9619         * README (Portability guidelines): Document this.
9620         * lib/flock.c: Assume <fcntl.h> exists.
9621         * lib/regex_internal.h: Assume <locale.h> exists.
9622         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9623         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9624         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9625         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9626         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9627         * m4/regex.m4 (gl_REGEX): Likewise.
9628         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9629         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9630         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9631         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9632         * tests/test-argp.c: Likewise.
9633         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9634
9635         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9636         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9637         AA_APPLE_UNIVERSAL_BUILD.  See
9638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9639         * NEWS: Document this.
9640
9641 2011-01-19  Eric Blake  <eblake@redhat.com>
9642
9643         c-stack: assume stack overflow if SA_SIGINFO unsupported
9644         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9645         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9646         sigaction will work.
9647         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9648         behavior match Linux.
9649         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9650
9651         stdbool-tests: accomodate Haiku
9652         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9653
9654         binary-io: fix O_TEXT on Haiku
9655         * modules/binary-io (Depends-on): Add fcntl-h.
9656         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9657         than blindly undefining O_TEXT.
9658         Reported by Scott McCreary.
9659
9660 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9661
9662         include_next: do not check for standard headers like stddef.h
9663
9664         I found this problem when modifying Emacs to use gnulib.
9665         I noticed that it added HAVE_STDDEF_H to config.h, even though
9666         gnulib always assumes <stddef.h> exists as per README and this
9667         symbol is unnecessary.
9668         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9669         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9670         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9671         faster for headers like stddef.h that are known to exist.
9672         (gl_CHECK_NEXT_HEADERS): Use it.
9673         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9674         rather than gl_CHECK_NEXT_HEADERS.
9675         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9676         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9677
9678 2011-01-18  Eric Blake  <eblake@redhat.com>
9679
9680         ansi-c++-opt: skip C++ dependency style if C++ is unused
9681         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9682         tests when we know C++ compilation is not desired.
9683         Reported by Scott McCreary.
9684
9685 2011-01-18  Bruno Haible  <bruno@clisp.org>
9686
9687         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9688         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9689         (main): Perform test also when getrlimit and setrlimit don't exist or
9690         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9691         limiting the address space size using setrlimit, compare the address
9692         space size before and after the the test.
9693         * tests/test-dprintf-posix2.c: Likewise.
9694         * tests/test-fprintf-posix3.sh: Update skip messages.
9695         * tests/test-dprintf-posix2.sh: Likewise.
9696         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9697         * modules/dprintf-posix-tests (Depends-on): Likewise.
9698         Reported by Bruce Korb <bkorb@gnu.org> and
9699         Gary V. Vaughan <gary@gnu.org>.
9700
9701 2011-01-18  Bruno Haible  <bruno@clisp.org>
9702
9703         get-rusage-as: Improvement for Cygwin.
9704         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9705         areas that are merely reserved.
9706
9707 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9708
9709         strftime: remove dependencies on multibyte modules
9710
9711         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9712         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9713         only if __osf__ is defined, and I suspect OSF doesn't need these
9714         other modules.  If my guess is wrong, we'll need to come up with a
9715         variant of strftime that doesn't need the multibyte modules.
9716
9717         I discovered this problem when attempting modify Emacs to use the
9718         strftime module.  With the previous gnulib, this caused Emacs to
9719         need 31 new files, ranging from lib/config.charset to
9720         m4/wint_t.m4.  This was overkill and I expect would be offputting
9721         to the Emacs maintainers.  After this change, only 6 new files are
9722         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9723         stdbool.m4, and tm_gmtoff.m4.
9724
9725         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9726         Suggested by Bruno Haible in
9727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9728         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9729         and do not check for wchar.h.
9730         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9731         (Depends-on): Remove mbrlen, mbsinit, wchar.
9732
9733 2011-01-18  Bruno Haible  <bruno@clisp.org>
9734
9735         Tests for module 'get-rusage-as'.
9736         * modules/get-rusage-as-tests: New file.
9737         * tests/test-get-rusage-as.c: New file.
9738
9739         New module 'get-rusage-as'.
9740         * modules/get-rusage-as: New file.
9741         * lib/resource-ext.h: New file.
9742         * lib/get-rusage-as.c: New file.
9743
9744 2011-01-17  Eric Blake  <eblake@redhat.com>
9745
9746         sigaction: relax license from LGPLv3+ to LGPLv2+
9747         * modules/sigaction (License): Relax to LGPLv2+.
9748
9749 2011-01-14  Bruno Haible  <bruno@clisp.org>
9750
9751         filemode: Make function declarations usable in C++ mode.
9752         * lib/filemode.h: Enclose function declarations in extern "C" block.
9753         Reported by John W. Eaton <jwe@gnu.org>.
9754
9755 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9756
9757         save-cwd: no longer include "xgetcwd.h"
9758         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9759         This avoids a compilation failure in projects that use save-cwd
9760         without also using the xgetcwd module.
9761
9762 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9763
9764         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9765         This is so that a program like Emacs, which needs only dtoastr,
9766         does not have to bother with distributing and compiling ftoastr
9767         and ldtoastr.
9768         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9769         * modules/dtoastr, modules/ldtoastr: New files.
9770         * modules/ftoastr: Now works just for 'float'.
9771         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9772         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9773         dtoastr.c, ldtoastr.c.
9774
9775 2011-01-11  Jim Meyering  <meyering@redhat.com>
9776
9777         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9778         There is no need to work around the lack of the fchdir function,
9779         since gnulib can now provide a replacement when required.
9780         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9781         * modules/save-cwd (Depends-on): Add fchdir.
9782
9783 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9784
9785         openat, save-cwd: avoid xmalloc
9786
9787         This removes a direct (but undocumented) dependency of openat on
9788         xalloc, along with an indirect dependency via save-cwd.  It also
9789         removes a dependency of save-cwd on xgetcwd, and thereby
9790         indirectly on xalloc.  This change causes the openat substitute
9791         to fall back on save_cwd when memory is tight, and for save_cwd to
9792         fail instead of dying when memory is tight, but that's good enough.
9793         Problem and initial idea for fix reported by Bastien Roucaries in
9794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9795
9796         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9797         xalloc.h (for xmalloc).
9798         (openat_proc_name): Use malloc, not xmalloc.
9799         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9800         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9801
9802         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9803         This avoids heap allocation for file names whose lengths are in
9804         the range 512..1023, with the upper bound increasing to at most
9805         4031 depending on the platform's PATH_MAX.  (We do not want
9806         pathmax.h here as it might supply a non-constant PATH_MAX.)
9807         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9808         Perhaps they should be moved to malloca.h?
9809         (OPENAT_BUFFER_SIZE): Use them.
9810
9811 2011-01-10  Bruno Haible  <bruno@clisp.org>
9812
9813         doc: Update users.txt.
9814         * users.txt: Add recutils.
9815
9816 2011-01-09  Karl Berry  <karl@gnu.org>
9817
9818         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9819
9820         * doc/configmake.texi: New file.
9821         * doc/gnulib.texi: Include it.
9822         * modules/configmake: Move documentation from here.
9823
9824 2011-01-09  Bruno Haible  <bruno@clisp.org>
9825
9826         Update to Unicode 6.0.0.
9827         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9828         (get_lbp): Update for Unicode 6.0.0.
9829         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9830         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9831         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9832         U+11001, U+11038..U+11046. Remove U+06DE.
9833         (uc_width): Fix bounds of planes.
9834         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9835         lib/uniwidth/width.c.
9836         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9837         trailing whitespace removed.
9838         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9839         without comments, but with the original copyright notice.
9840         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9841         * lib/unicase/ignorable.h: Likewise.
9842         * lib/unicase/tocasefold.h: Likewise.
9843         * lib/unicase/tolower.h: Likewise.
9844         * lib/unicase/totitle.h: Likewise.
9845         * lib/unicase/toupper.h: Likewise.
9846         * lib/unictype/bidi_of.h: Likewise.
9847         * lib/unictype/blocks.h: Likewise.
9848         * lib/unictype/categ_C.h: Likewise.
9849         * lib/unictype/categ_Cn.h: Likewise.
9850         * lib/unictype/categ_L.h: Likewise.
9851         * lib/unictype/categ_Ll.h: Likewise.
9852         * lib/unictype/categ_Lm.h: Likewise.
9853         * lib/unictype/categ_Lo.h: Likewise.
9854         * lib/unictype/categ_Lu.h: Likewise.
9855         * lib/unictype/categ_M.h: Likewise.
9856         * lib/unictype/categ_Mc.h: Likewise.
9857         * lib/unictype/categ_Me.h: Likewise.
9858         * lib/unictype/categ_Mn.h: Likewise.
9859         * lib/unictype/categ_N.h: Likewise.
9860         * lib/unictype/categ_Nd.h: Likewise.
9861         * lib/unictype/categ_No.h: Likewise.
9862         * lib/unictype/categ_P.h: Likewise.
9863         * lib/unictype/categ_Po.h: Likewise.
9864         * lib/unictype/categ_S.h: Likewise.
9865         * lib/unictype/categ_Sc.h: Likewise.
9866         * lib/unictype/categ_Sk.h: Likewise.
9867         * lib/unictype/categ_Sm.h: Likewise.
9868         * lib/unictype/categ_So.h: Likewise.
9869         * lib/unictype/categ_of.h: Likewise.
9870         * lib/unictype/combining.h: Likewise.
9871         * lib/unictype/ctype_alnum.h: Likewise.
9872         * lib/unictype/ctype_alpha.h: Likewise.
9873         * lib/unictype/ctype_graph.h: Likewise.
9874         * lib/unictype/ctype_lower.h: Likewise.
9875         * lib/unictype/ctype_print.h: Likewise.
9876         * lib/unictype/ctype_punct.h: Likewise.
9877         * lib/unictype/ctype_upper.h: Likewise.
9878         * lib/unictype/decdigit.h: Likewise.
9879         * lib/unictype/digit.h: Likewise.
9880         * lib/unictype/numeric.h: Likewise.
9881         * lib/unictype/pr_alphabetic.h: Likewise.
9882         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9883         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9884         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9885         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9886         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9887         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9888         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9889         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9890         * lib/unictype/pr_case_ignorable.h: Likewise.
9891         * lib/unictype/pr_cased.h: Likewise.
9892         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9893         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9894         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9895         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9896         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9897         * lib/unictype/pr_combining.h: Likewise.
9898         * lib/unictype/pr_composite.h: Likewise.
9899         * lib/unictype/pr_currency_symbol.h: Likewise.
9900         * lib/unictype/pr_decimal_digit.h: Likewise.
9901         * lib/unictype/pr_deprecated.h: Likewise.
9902         * lib/unictype/pr_format_control.h: Likewise.
9903         * lib/unictype/pr_grapheme_base.h: Likewise.
9904         * lib/unictype/pr_grapheme_extend.h: Likewise.
9905         * lib/unictype/pr_grapheme_link.h: Likewise.
9906         * lib/unictype/pr_id_continue.h: Likewise.
9907         * lib/unictype/pr_id_start.h: Likewise.
9908         * lib/unictype/pr_ideographic.h: Likewise.
9909         * lib/unictype/pr_lowercase.h: Likewise.
9910         * lib/unictype/pr_math.h: Likewise.
9911         * lib/unictype/pr_numeric.h: Likewise.
9912         * lib/unictype/pr_other_alphabetic.h: Likewise.
9913         * lib/unictype/pr_other_id_continue.h: Likewise.
9914         * lib/unictype/pr_other_math.h: Likewise.
9915         * lib/unictype/pr_punctuation.h: Likewise.
9916         * lib/unictype/pr_sentence_terminal.h: Likewise.
9917         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9918         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9919         * lib/unictype/pr_unified_ideograph.h: Likewise.
9920         * lib/unictype/pr_uppercase.h: Likewise.
9921         * lib/unictype/pr_xid_continue.h: Likewise.
9922         * lib/unictype/pr_xid_start.h: Likewise.
9923         * lib/unictype/scripts.h: Likewise.
9924         * lib/unictype/scripts_byname.gperf: Likewise.
9925         * lib/unictype/sy_java_ident.h: Likewise.
9926         * lib/unigbrk/gbrkprop.h: Likewise.
9927         * lib/unilbrk/lbrkprop1.h: Likewise.
9928         * lib/unilbrk/lbrkprop2.h: Likewise.
9929         * lib/uninorm/decomposition-table2.h: Likewise.
9930         * lib/uniwbrk/wbrkprop.h: Likewise.
9931         * tests/unicase/test-cased.c: Likewise.
9932         * tests/unicase/test-ignorable.c: Likewise.
9933         * tests/unicase/test-uc_tolower.c: Likewise.
9934         * tests/unicase/test-uc_totitle.c: Likewise.
9935         * tests/unicase/test-uc_toupper.c: Likewise.
9936         * tests/unictype/test-categ_C.c: Likewise.
9937         * tests/unictype/test-categ_Cn.c: Likewise.
9938         * tests/unictype/test-categ_L.c: Likewise.
9939         * tests/unictype/test-categ_Ll.c: Likewise.
9940         * tests/unictype/test-categ_Lm.c: Likewise.
9941         * tests/unictype/test-categ_Lo.c: Likewise.
9942         * tests/unictype/test-categ_Lu.c: Likewise.
9943         * tests/unictype/test-categ_M.c: Likewise.
9944         * tests/unictype/test-categ_Mc.c: Likewise.
9945         * tests/unictype/test-categ_Me.c: Likewise.
9946         * tests/unictype/test-categ_Mn.c: Likewise.
9947         * tests/unictype/test-categ_N.c: Likewise.
9948         * tests/unictype/test-categ_Nd.c: Likewise.
9949         * tests/unictype/test-categ_No.c: Likewise.
9950         * tests/unictype/test-categ_P.c: Likewise.
9951         * tests/unictype/test-categ_Po.c: Likewise.
9952         * tests/unictype/test-categ_S.c: Likewise.
9953         * tests/unictype/test-categ_Sc.c: Likewise.
9954         * tests/unictype/test-categ_Sk.c: Likewise.
9955         * tests/unictype/test-categ_Sm.c: Likewise.
9956         * tests/unictype/test-categ_So.c: Likewise.
9957         * tests/unictype/test-ctype_alnum.c: Likewise.
9958         * tests/unictype/test-ctype_alpha.c: Likewise.
9959         * tests/unictype/test-ctype_graph.c: Likewise.
9960         * tests/unictype/test-ctype_lower.c: Likewise.
9961         * tests/unictype/test-ctype_print.c: Likewise.
9962         * tests/unictype/test-ctype_punct.c: Likewise.
9963         * tests/unictype/test-ctype_upper.c: Likewise.
9964         * tests/unictype/test-decdigit.h: Likewise.
9965         * tests/unictype/test-digit.h: Likewise.
9966         * tests/unictype/test-numeric.h: Likewise.
9967         * tests/unictype/test-pr_alphabetic.c: Likewise.
9968         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9969         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9970         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9971         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9972         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9973         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9974         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9975         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9976         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9977         * tests/unictype/test-pr_cased.c: Likewise.
9978         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9979         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9980         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9981         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9982         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9983         * tests/unictype/test-pr_combining.c: Likewise.
9984         * tests/unictype/test-pr_composite.c: Likewise.
9985         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9986         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9987         * tests/unictype/test-pr_deprecated.c: Likewise.
9988         * tests/unictype/test-pr_format_control.c: Likewise.
9989         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9990         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9991         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9992         * tests/unictype/test-pr_id_continue.c: Likewise.
9993         * tests/unictype/test-pr_id_start.c: Likewise.
9994         * tests/unictype/test-pr_ideographic.c: Likewise.
9995         * tests/unictype/test-pr_lowercase.c: Likewise.
9996         * tests/unictype/test-pr_math.c: Likewise.
9997         * tests/unictype/test-pr_numeric.c: Likewise.
9998         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9999         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10000         * tests/unictype/test-pr_other_math.c: Likewise.
10001         * tests/unictype/test-pr_punctuation.c: Likewise.
10002         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10003         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10004         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10005         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10006         * tests/unictype/test-pr_uppercase.c: Likewise.
10007         * tests/unictype/test-pr_xid_continue.c: Likewise.
10008         * tests/unictype/test-pr_xid_start.c: Likewise.
10009         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10010         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10011         changes.
10012         * lib/unictype/categ_Cc.h: Likewise.
10013         * lib/unictype/categ_Cf.h: Likewise.
10014         * lib/unictype/categ_Co.h: Likewise.
10015         * lib/unictype/categ_Cs.h: Likewise.
10016         * lib/unictype/categ_Lt.h: Likewise.
10017         * lib/unictype/categ_Nl.h: Likewise.
10018         * lib/unictype/categ_Pc.h: Likewise.
10019         * lib/unictype/categ_Pd.h: Likewise.
10020         * lib/unictype/categ_Pe.h: Likewise.
10021         * lib/unictype/categ_Pf.h: Likewise.
10022         * lib/unictype/categ_Pi.h: Likewise.
10023         * lib/unictype/categ_Ps.h: Likewise.
10024         * lib/unictype/categ_Z.h: Likewise.
10025         * lib/unictype/categ_Zl.h: Likewise.
10026         * lib/unictype/categ_Zp.h: Likewise.
10027         * lib/unictype/categ_Zs.h: Likewise.
10028         * lib/unictype/ctype_blank.h: Likewise.
10029         * lib/unictype/ctype_cntrl.h: Likewise.
10030         * lib/unictype/ctype_digit.h: Likewise.
10031         * lib/unictype/ctype_space.h: Likewise.
10032         * lib/unictype/ctype_xdigit.h: Likewise.
10033         * lib/unictype/mirror.h: Likewise.
10034         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10035         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10036         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10037         * lib/unictype/pr_bidi_control.h: Likewise.
10038         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10039         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10040         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10041         * lib/unictype/pr_bidi_pdf.h: Likewise.
10042         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10043         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10044         * lib/unictype/pr_dash.h: Likewise.
10045         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10046         * lib/unictype/pr_diacritic.h: Likewise.
10047         * lib/unictype/pr_extender.h: Likewise.
10048         * lib/unictype/pr_hex_digit.h: Likewise.
10049         * lib/unictype/pr_hyphen.h: Likewise.
10050         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10051         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10052         * lib/unictype/pr_ignorable_control.h: Likewise.
10053         * lib/unictype/pr_iso_control.h: Likewise.
10054         * lib/unictype/pr_join_control.h: Likewise.
10055         * lib/unictype/pr_left_of_pair.h: Likewise.
10056         * lib/unictype/pr_line_separator.h: Likewise.
10057         * lib/unictype/pr_logical_order_exception.h: Likewise.
10058         * lib/unictype/pr_non_break.h: Likewise.
10059         * lib/unictype/pr_not_a_character.h: Likewise.
10060         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10061         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10062         * lib/unictype/pr_other_id_start.h: Likewise.
10063         * lib/unictype/pr_other_lowercase.h: Likewise.
10064         * lib/unictype/pr_other_uppercase.h: Likewise.
10065         * lib/unictype/pr_paired_punctuation.h: Likewise.
10066         * lib/unictype/pr_paragraph_separator.h: Likewise.
10067         * lib/unictype/pr_pattern_syntax.h: Likewise.
10068         * lib/unictype/pr_pattern_white_space.h: Likewise.
10069         * lib/unictype/pr_private_use.h: Likewise.
10070         * lib/unictype/pr_quotation_mark.h: Likewise.
10071         * lib/unictype/pr_radical.h: Likewise.
10072         * lib/unictype/pr_soft_dotted.h: Likewise.
10073         * lib/unictype/pr_space.h: Likewise.
10074         * lib/unictype/pr_titlecase.h: Likewise.
10075         * lib/unictype/pr_variation_selector.h: Likewise.
10076         * lib/unictype/pr_white_space.h: Likewise.
10077         * lib/unictype/pr_zero_width.h: Likewise.
10078         * lib/unictype/sy_c_ident.h: Likewise.
10079         * lib/unictype/sy_c_whitespace.h: Likewise.
10080         * lib/unictype/sy_java_whitespace.h: Likewise.
10081         * lib/uninorm/composition-table.gperf: Likewise.
10082         * lib/uninorm/decomposition-table1.h: Likewise.
10083         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10084         LB8.
10085         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10086         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10087         * modules/unictype/*: Bump version number of expected libunistring
10088         version.
10089
10090 2011-01-09  Bruno Haible  <bruno@clisp.org>
10091
10092         Update to Unicode 5.2.0.
10093         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10094         trailing whitespace removed.
10095
10096 2011-01-09  Bruno Haible  <bruno@clisp.org>
10097
10098         New Unicode character properties, from Unicode 5.2.0.
10099         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10100         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10101         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10102         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10103         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10104         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10105         uc_is_property_cased, uc_is_property_case_ignorable,
10106         uc_is_property_changes_when_lowercased,
10107         uc_is_property_changes_when_uppercased,
10108         uc_is_property_changes_when_titlecased,
10109         uc_is_property_changes_when_casefolded,
10110         uc_is_property_changes_when_casemapped): New declarations.
10111         * lib/unictype/pr_byname.gperf: Add the new properties.
10112         * modules/unictype/property-byname (Depends-on): Depend on the new
10113         properties modules.
10114         * modules/unictype/property-all (Depends-on): Likewise.
10115         * MODULES.html.sh (Unicode string functions): Add
10116         unictype/property-case-ignorable, unictype/property-cased,
10117         unictype/property-changes-when-casefolded,
10118         unictype/property-changes-when-casemapped,
10119         unictype/property-changes-when-lowercased,
10120         unictype/property-changes-when-titlecased,
10121         unictype/property-changes-when-uppercased.
10122
10123         New module 'unictype/property-changes-when-casemapped'.
10124         * modules/unictype/property-changes-when-casemapped: New file.
10125         * lib/unictype/pr_changes_when_casemapped.c: New file.
10126         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10127         generated by gen-uni-tables.
10128         * modules/unictype/property-changes-when-casemapped-tests: New file.
10129         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10130         automatically generated by gen-uni-tables.
10131
10132         New module 'unictype/property-changes-when-casefolded'.
10133         * modules/unictype/property-changes-when-casefolded: New file.
10134         * lib/unictype/pr_changes_when_casefolded.c: New file.
10135         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10136         generated by gen-uni-tables.
10137         * modules/unictype/property-changes-when-casefolded-tests: New file.
10138         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10139         automatically generated by gen-uni-tables.
10140
10141         New module 'unictype/property-changes-when-titlecased'.
10142         * modules/unictype/property-changes-when-titlecased: New file.
10143         * lib/unictype/pr_changes_when_titlecased.c: New file.
10144         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10145         generated by gen-uni-tables.
10146         * modules/unictype/property-changes-when-titlecased-tests: New file.
10147         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10148         automatically generated by gen-uni-tables.
10149
10150         New module 'unictype/property-changes-when-uppercased'.
10151         * modules/unictype/property-changes-when-uppercased: New file.
10152         * lib/unictype/pr_changes_when_uppercased.c: New file.
10153         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10154         generated by gen-uni-tables.
10155         * modules/unictype/property-changes-when-uppercased-tests: New file.
10156         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10157         automatically generated by gen-uni-tables.
10158
10159         New module 'unictype/property-changes-when-lowercased'.
10160         * modules/unictype/property-changes-when-lowercased: New file.
10161         * lib/unictype/pr_changes_when_lowercased.c: New file.
10162         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10163         generated by gen-uni-tables.
10164         * modules/unictype/property-changes-when-lowercased-tests: New file.
10165         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10166         automatically generated by gen-uni-tables.
10167
10168         New module 'unictype/property-case-ignorable'.
10169         * modules/unictype/property-case-ignorable: New file.
10170         * lib/unictype/pr_case_ignorable.c: New file.
10171         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10172         by gen-uni-tables.
10173         * modules/unictype/property-case-ignorable-tests: New file.
10174         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10175         generated by gen-uni-tables.
10176
10177         New module 'unictype/property-cased'.
10178         * modules/unictype/property-cased: New file.
10179         * lib/unictype/pr_cased.c: New file.
10180         * lib/unictype/pr_cased.h: New file, automatically generated by
10181         gen-uni-tables.
10182         * modules/unictype/property-cased-tests: New file.
10183         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10184         gen-uni-tables.
10185
10186 2011-01-09  Bruno Haible  <bruno@clisp.org>
10187
10188         Update to Unicode 5.2.0.
10189         * lib/gen-uni-tables.c (output_predicate, output_category,
10190         output_combclass, output_bidi_category, output_decimal_digit_test,
10191         output_decimal_digit, output_digit_test, output_digit,
10192         output_numeric_test, output_numeric, output_mirror, output_scripts,
10193         output_scripts_byname, output_blocks, output_ident_category): Fix
10194         comment header.
10195         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10196         get_wbp.
10197         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10198         items.
10199         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10200         Changes_When_Lowercased, Changes_When_Uppercased,
10201         Changes_When_Titlecased, Changes_When_Casefolded,
10202         Changes_When_Casemapped.
10203         (is_property_alphabetic, is_property_default_ignorable_code_point):
10204         Update for Unicode 5.2.0.
10205         (is_property_cased, is_property_case_ignorable,
10206         is_property_changes_when_lowercased,
10207         is_property_changes_when_uppercased,
10208         is_property_changes_when_titlecased,
10209         is_property_changes_when_casefolded,
10210         is_property_changes_when_casemapped): New functions.
10211         (output_properties): Output also the properties cased, case_ignorable,
10212         changes_when_lowercased, changes_when_uppercased,
10213         changes_when_titlecased, changes_when_casefolded,
10214         changes_when_casemapped.
10215         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10216         Unicode TR#11 revision 17 -> 19.
10217         (LBP_CP): New enumeration value.
10218         (LBP_*): Adjust values accordingly.
10219         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10220         TR#14 revision 22 -> 24.
10221         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10222         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10223         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10224         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10225         is_WBP_MIDLETTER.
10226         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10227         the code1 and code2 of each composition rule.
10228         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10229         * lib/unicase/ignorable.h: Likewise.
10230         * lib/unicase/tocasefold.h: Likewise.
10231         * lib/unicase/tolower.h: Likewise.
10232         * lib/unicase/totitle.h: Likewise.
10233         * lib/unicase/toupper.h: Likewise.
10234         * lib/unictype/bidi_of.h: Likewise.
10235         * lib/unictype/blocks.h: Likewise.
10236         * lib/unictype/categ_C.h: Likewise.
10237         * lib/unictype/categ_Cf.h: Likewise.
10238         * lib/unictype/categ_Cn.h: Likewise.
10239         * lib/unictype/categ_L.h: Likewise.
10240         * lib/unictype/categ_Ll.h: Likewise.
10241         * lib/unictype/categ_Lm.h: Likewise.
10242         * lib/unictype/categ_Lo.h: Likewise.
10243         * lib/unictype/categ_Lu.h: Likewise.
10244         * lib/unictype/categ_M.h: Likewise.
10245         * lib/unictype/categ_Mc.h: Likewise.
10246         * lib/unictype/categ_Mn.h: Likewise.
10247         * lib/unictype/categ_N.h: Likewise.
10248         * lib/unictype/categ_Nd.h: Likewise.
10249         * lib/unictype/categ_Nl.h: Likewise.
10250         * lib/unictype/categ_No.h: Likewise.
10251         * lib/unictype/categ_P.h: Likewise.
10252         * lib/unictype/categ_Pd.h: Likewise.
10253         * lib/unictype/categ_Po.h: Likewise.
10254         * lib/unictype/categ_S.h: Likewise.
10255         * lib/unictype/categ_Sc.h: Likewise.
10256         * lib/unictype/categ_So.h: Likewise.
10257         * lib/unictype/categ_of.h: Likewise.
10258         * lib/unictype/combining.h: Likewise.
10259         * lib/unictype/ctype_alnum.h: Likewise.
10260         * lib/unictype/ctype_alpha.h: Likewise.
10261         * lib/unictype/ctype_graph.h: Likewise.
10262         * lib/unictype/ctype_lower.h: Likewise.
10263         * lib/unictype/ctype_print.h: Likewise.
10264         * lib/unictype/ctype_punct.h: Likewise.
10265         * lib/unictype/ctype_upper.h: Likewise.
10266         * lib/unictype/decdigit.h: Likewise.
10267         * lib/unictype/digit.h: Likewise.
10268         * lib/unictype/numeric.h: Likewise.
10269         * lib/unictype/pr_alphabetic.h: Likewise.
10270         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10271         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10272         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10273         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10274         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10275         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10276         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10277         * lib/unictype/pr_combining.h: Likewise.
10278         * lib/unictype/pr_composite.h: Likewise.
10279         * lib/unictype/pr_currency_symbol.h: Likewise.
10280         * lib/unictype/pr_dash.h: Likewise.
10281         * lib/unictype/pr_decimal_digit.h: Likewise.
10282         * lib/unictype/pr_deprecated.h: Likewise.
10283         * lib/unictype/pr_diacritic.h: Likewise.
10284         * lib/unictype/pr_extender.h: Likewise.
10285         * lib/unictype/pr_grapheme_base.h: Likewise.
10286         * lib/unictype/pr_grapheme_extend.h: Likewise.
10287         * lib/unictype/pr_grapheme_link.h: Likewise.
10288         * lib/unictype/pr_id_continue.h: Likewise.
10289         * lib/unictype/pr_id_start.h: Likewise.
10290         * lib/unictype/pr_ideographic.h: Likewise.
10291         * lib/unictype/pr_ignorable_control.h: Likewise.
10292         * lib/unictype/pr_logical_order_exception.h: Likewise.
10293         * lib/unictype/pr_lowercase.h: Likewise.
10294         * lib/unictype/pr_numeric.h: Likewise.
10295         * lib/unictype/pr_other_alphabetic.h: Likewise.
10296         * lib/unictype/pr_punctuation.h: Likewise.
10297         * lib/unictype/pr_sentence_terminal.h: Likewise.
10298         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10299         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10300         * lib/unictype/pr_unified_ideograph.h: Likewise.
10301         * lib/unictype/pr_uppercase.h: Likewise.
10302         * lib/unictype/pr_xid_continue.h: Likewise.
10303         * lib/unictype/pr_xid_start.h: Likewise.
10304         * lib/unictype/pr_zero_width.h: Likewise.
10305         * lib/unictype/scripts.h: Likewise.
10306         * lib/unictype/scripts_byname.gperf: Likewise.
10307         * lib/unictype/sy_java_ident.h: Likewise.
10308         * lib/unigbrk/gbrkprop.h: Likewise.
10309         * lib/unilbrk/lbrkprop1.h: Likewise.
10310         * lib/unilbrk/lbrkprop2.h: Likewise.
10311         * lib/unilbrk/lbrktables.h: Likewise.
10312         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10313         LBP_CP. Implement rule LB30.
10314         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10315         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10316         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10317         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10318         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10319         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10320         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10321         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10322         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10323         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10324         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10325         bits instead of 16 bits in the code1 and code2 of each composition
10326         rule.
10327         (uc_composition): Update for Unicode 5.2.0.
10328         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10329         * lib/uninorm/decomposition-table2.h: Likewise.
10330         * lib/uniwbrk/wbrkprop.h: Likewise.
10331         * tests/unicase/test-cased.c: Likewise.
10332         * tests/unicase/test-ignorable.c: Likewise.
10333         * tests/unicase/test-uc_tolower.c: Likewise.
10334         * tests/unicase/test-uc_totitle.c: Likewise.
10335         * tests/unicase/test-uc_toupper.c: Likewise.
10336         * tests/unictype/test-categ_C.c: Likewise.
10337         * tests/unictype/test-categ_Cf.c: Likewise.
10338         * tests/unictype/test-categ_Cn.c: Likewise.
10339         * tests/unictype/test-categ_L.c: Likewise.
10340         * tests/unictype/test-categ_Ll.c: Likewise.
10341         * tests/unictype/test-categ_Lm.c: Likewise.
10342         * tests/unictype/test-categ_Lo.c: Likewise.
10343         * tests/unictype/test-categ_Lu.c: Likewise.
10344         * tests/unictype/test-categ_M.c: Likewise.
10345         * tests/unictype/test-categ_Mc.c: Likewise.
10346         * tests/unictype/test-categ_Mn.c: Likewise.
10347         * tests/unictype/test-categ_N.c: Likewise.
10348         * tests/unictype/test-categ_Nd.c: Likewise.
10349         * tests/unictype/test-categ_Nl.c: Likewise.
10350         * tests/unictype/test-categ_No.c: Likewise.
10351         * tests/unictype/test-categ_P.c: Likewise.
10352         * tests/unictype/test-categ_Pd.c: Likewise.
10353         * tests/unictype/test-categ_Po.c: Likewise.
10354         * tests/unictype/test-categ_S.c: Likewise.
10355         * tests/unictype/test-categ_Sc.c: Likewise.
10356         * tests/unictype/test-categ_So.c: Likewise.
10357         * tests/unictype/test-ctype_alnum.c: Likewise.
10358         * tests/unictype/test-ctype_alpha.c: Likewise.
10359         * tests/unictype/test-ctype_graph.c: Likewise.
10360         * tests/unictype/test-ctype_lower.c: Likewise.
10361         * tests/unictype/test-ctype_print.c: Likewise.
10362         * tests/unictype/test-ctype_punct.c: Likewise.
10363         * tests/unictype/test-ctype_upper.c: Likewise.
10364         * tests/unictype/test-decdigit.h: Likewise.
10365         * tests/unictype/test-digit.h: Likewise.
10366         * tests/unictype/test-numeric.h: Likewise.
10367         * tests/unictype/test-pr_alphabetic.c: Likewise.
10368         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10369         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10370         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10371         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10372         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10373         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10374         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10375         * tests/unictype/test-pr_combining.c: Likewise.
10376         * tests/unictype/test-pr_composite.c: Likewise.
10377         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10378         * tests/unictype/test-pr_dash.c: Likewise.
10379         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10380         * tests/unictype/test-pr_deprecated.c: Likewise.
10381         * tests/unictype/test-pr_diacritic.c: Likewise.
10382         * tests/unictype/test-pr_extender.c: Likewise.
10383         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10384         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10385         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10386         * tests/unictype/test-pr_id_continue.c: Likewise.
10387         * tests/unictype/test-pr_id_start.c: Likewise.
10388         * tests/unictype/test-pr_ideographic.c: Likewise.
10389         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10390         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10391         * tests/unictype/test-pr_lowercase.c: Likewise.
10392         * tests/unictype/test-pr_numeric.c: Likewise.
10393         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10394         * tests/unictype/test-pr_punctuation.c: Likewise.
10395         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10396         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10397         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10398         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10399         * tests/unictype/test-pr_uppercase.c: Likewise.
10400         * tests/unictype/test-pr_xid_continue.c: Likewise.
10401         * tests/unictype/test-pr_xid_start.c: Likewise.
10402         * tests/unictype/test-pr_zero_width.c: Likewise.
10403         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10404         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10405         changed behaviour: line breaking is now disallowed between a letter
10406         or '=' and '('.
10407         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10408         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10409         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10410         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10411         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10412         lib/uniwidth/width.c.
10413         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10414         without comments, but with the original copyright notice.
10415         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10416         changes.
10417         * lib/unictype/categ_Cc.h: Likewise.
10418         * lib/unictype/categ_Co.h: Likewise.
10419         * lib/unictype/categ_Cs.h: Likewise.
10420         * lib/unictype/categ_Lt.h: Likewise.
10421         * lib/unictype/categ_Me.h: Likewise.
10422         * lib/unictype/categ_Pc.h: Likewise.
10423         * lib/unictype/categ_Pe.h: Likewise.
10424         * lib/unictype/categ_Pf.h: Likewise.
10425         * lib/unictype/categ_Pi.h: Likewise.
10426         * lib/unictype/categ_Ps.h: Likewise.
10427         * lib/unictype/categ_Sk.h: Likewise.
10428         * lib/unictype/categ_Sm.h: Likewise.
10429         * lib/unictype/categ_Z.h: Likewise.
10430         * lib/unictype/categ_Zl.h: Likewise.
10431         * lib/unictype/categ_Zp.h: Likewise.
10432         * lib/unictype/categ_Zs.h: Likewise.
10433         * lib/unictype/ctype_blank.h: Likewise.
10434         * lib/unictype/ctype_cntrl.h: Likewise.
10435         * lib/unictype/ctype_digit.h: Likewise.
10436         * lib/unictype/ctype_space.h: Likewise.
10437         * lib/unictype/ctype_xdigit.h: Likewise.
10438         * lib/unictype/mirror.h: Likewise.
10439         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10440         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10441         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10442         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10443         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10444         * lib/unictype/pr_bidi_control.h: Likewise.
10445         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10446         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10447         * lib/unictype/pr_bidi_pdf.h: Likewise.
10448         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10449         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10450         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10451         * lib/unictype/pr_format_control.h: Likewise.
10452         * lib/unictype/pr_hex_digit.h: Likewise.
10453         * lib/unictype/pr_hyphen.h: Likewise.
10454         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10455         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10456         * lib/unictype/pr_iso_control.h: Likewise.
10457         * lib/unictype/pr_join_control.h: Likewise.
10458         * lib/unictype/pr_left_of_pair.h: Likewise.
10459         * lib/unictype/pr_line_separator.h: Likewise.
10460         * lib/unictype/pr_math.h: Likewise.
10461         * lib/unictype/pr_non_break.h: Likewise.
10462         * lib/unictype/pr_not_a_character.h: Likewise.
10463         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10464         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10465         * lib/unictype/pr_other_id_continue.h: Likewise.
10466         * lib/unictype/pr_other_id_start.h: Likewise.
10467         * lib/unictype/pr_other_lowercase.h: Likewise.
10468         * lib/unictype/pr_other_math.h: Likewise.
10469         * lib/unictype/pr_other_uppercase.h: Likewise.
10470         * lib/unictype/pr_paired_punctuation.h: Likewise.
10471         * lib/unictype/pr_paragraph_separator.h: Likewise.
10472         * lib/unictype/pr_pattern_syntax.h: Likewise.
10473         * lib/unictype/pr_pattern_white_space.h: Likewise.
10474         * lib/unictype/pr_private_use.h: Likewise.
10475         * lib/unictype/pr_quotation_mark.h: Likewise.
10476         * lib/unictype/pr_radical.h: Likewise.
10477         * lib/unictype/pr_soft_dotted.h: Likewise.
10478         * lib/unictype/pr_space.h: Likewise.
10479         * lib/unictype/pr_titlecase.h: Likewise.
10480         * lib/unictype/pr_variation_selector.h: Likewise.
10481         * lib/unictype/pr_white_space.h: Likewise.
10482         * lib/unictype/sy_c_ident.h: Likewise.
10483         * lib/unictype/sy_c_whitespace.h: Likewise.
10484         * lib/unictype/sy_java_whitespace.h: Likewise.
10485         * modules/uni*/*: Bump version number of expected libunistring version.
10486         Reported by Simon Josefsson.
10487
10488 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10489
10490         useless-if-before-free: fix typo in --help and make the internal,
10491         automatic version date update process work once again.
10492         --help output contained a NUL character instead of the
10493         backslash-zero that was intended.  Also, the "must lie within
10494         the first 8 lines" line is on line 9, and hence not getting
10495         automatically updated.
10496         * build-aux/useless-if-before-free: Fix the former by adding a
10497         backslash, and the latter by condensing the three lines of what-it-does
10498         to a single line, leaving one line of slack for the future.
10499
10500 2011-01-09  Bruno Haible  <bruno@clisp.org>
10501
10502         uniwidth/width: Fix width of U+1D173..U+1D17A.
10503         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10504         symbolic_width, output_width_property_test): New functions.
10505         (main): Invoke output_nonspacing_property, output_width_property_test.
10506         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10507         U+1D173..U+1D17A.
10508         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10509         1.
10510         * modules/uniwidth/*: Bump version number of expected libunistring
10511         version.
10512         * modules/unilbrk/*: Likewise.
10513
10514 2011-01-08  Bruno Haible  <bruno@clisp.org>
10515
10516         uninorm tests: Preserve copyright of Unicode data file.
10517         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10518         Mention modifications.
10519
10520 2011-01-08  Bruno Haible  <bruno@clisp.org>
10521
10522         gen-uni-tables: Prepare for Unicode 5.2.0.
10523         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10524         (debug_output_lbp, output_lbp): Update.
10525
10526 2011-01-08  Bruno Haible  <bruno@clisp.org>
10527
10528         unilbrk: Clarify gen-uni-tables.c code.
10529         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10530         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10531         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10532
10533 2011-01-07  Bruno Haible  <bruno@clisp.org>
10534
10535         strtod: Restore errno when successfully parsing Infinity or NaN.
10536         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10537         restore the original errno.
10538
10539 2011-01-07  Bruno Haible  <bruno@clisp.org>
10540
10541         remove test: Avoid failure on HP-UX 11.
10542         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10543
10544 2011-01-07  Bruno Haible  <bruno@clisp.org>
10545
10546         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10547         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10548         error code.
10549
10550 2011-01-07  Pádraig Brady <P@draigBrady.com>
10551
10552         ignore-value: fixup comments, and add Eric Blake
10553         as an author since he rewrote the macros.
10554         * lib/ignore-value.h (ignore_value):  State that
10555         we now support aggregates.  Also specify exactly
10556         when the GCC warn_unused_result feature was added.
10557
10558 2011-01-06  Eric Blake  <eblake@redhat.com>
10559
10560         ignore-value: support aggregate types
10561         * lib/ignore-value.h (ignore_value): Provide separate gcc
10562         definition.
10563         * modules/ignore-value-tests: New test module.
10564         * tests/test-ignore-value.c: New test.
10565
10566         maint.mk: improve sc_prohibit_strcmp regex
10567         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10568         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10569         definition of STRNEQ.
10570
10571         signal: work around Haiku issue with SIGBUS
10572         * lib/siglist.h: Add comment.
10573         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10574         strsignal's favoring of SIGSEGV.
10575         * tests/test-signal.c (main): Avoid test failure.
10576         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10577         Reported by Scott McCreary.
10578
10579         maint.mk: add pre-release check to ensure submodule commits are public
10580         * top/maint.mk (public-submodule-commit): New rule.
10581         (submodule-checks): New variable.
10582         (alpha beta stable): Depend on the variable.
10583
10584 2011-01-05  Pádraig Brady <P@draigBrady.com>
10585         and Jim Meyering  <meyering@redhat.com>
10586
10587         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10588         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10589         (ATTRIBUTE_DEPRECATED): Define.
10590         (_ignore_case): New function.
10591         (ignore_value): New macro, to replace the old function.
10592         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10593         * modules/ignore-value (Depends-on): Add stdint.
10594
10595 2011-01-04  Eric Blake  <eblake@redhat.com>
10596
10597         doc: regenerate INSTALL
10598         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10599         @firstparagraphindent support, now that autoconf dropped it.
10600         (INSTALL_PRELUDE): Reinstate old macro.
10601         * doc/install.texi: Resync from autoconf.
10602         * doc/INSTALL: Reflect recent autoconf update.
10603         * doc/INSTALL.ISO: Likewise.
10604         * doc/INSTALL.UTF-8: Likewise.
10605         Reported by Karl Berry.
10606
10607 2011-01-04  Bruce Korb  <address@hidden>
10608
10609         git-version-gen: avoid a sub-shell
10610         * build-aux/git-version-gen: Redirect stderr in `...` via
10611         "exec 2>...", rather than via an added sub-shell.
10612
10613 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10614
10615         git-version-gen: use (...) rather than sh -c '...'
10616         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10617         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10618
10619 2011-01-03  Jim Meyering  <meyering@redhat.com>
10620
10621         git-version-gen: convert leading TABs to spaces
10622         * build-aux/git-version-gen: Expand leading TABs.
10623
10624         git-version-gen: handle failed "git rev-list"
10625         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10626         from git and proceeding as if it had succeeded but printed no SHA1
10627         checksums, suppress the diagnostic and handle the failure.
10628         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10629
10630         git-version-gen: include command name in one more diagnostic
10631         * build-aux/git-version-gen: When the required .tarball-version file
10632         was missing or unreadable, you might see the diagnostic from "cat",
10633         but no trace of the name of the invoking script.  Now, you still see
10634         the diagnostic from cat, but also get one from "git-version-gen: ".
10635         Inspired by a patch from Bruce Korb.
10636
10637         update-copyright: adjust test to match changed code
10638         * tests/test-update-copyright.sh: Change test's expected output
10639         to match new actual output.
10640
10641 2011-01-02  Bruno Haible  <bruno@clisp.org>
10642
10643         getlogin_r: Avoid test failure on HP-UX 11.
10644         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10645         ERANGE when the second argument is zero.
10646         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10647         portability problem.
10648
10649 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10650
10651         * build-aux/update-copyright: doc Simon's changes
10652
10653 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10654
10655         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10656         environment variable.
10657
10658 2011-01-02  Bruno Haible  <bruno@clisp.org>
10659
10660         unigbrk: Avoid gcc warnings.
10661         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10662         unused variable.
10663         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10664         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10665         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10666         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10667         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10668         Change type of first argument to 'const char *'.
10669         (main): Remove unused variable.
10670         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10671         type of first argument to 'const char *'.
10672         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10673         Likewise.
10674         (main): Change type of variable 's'.
10675         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10676         to 'int'.
10677
10678 2011-01-02  Bruno Haible  <bruno@clisp.org>
10679
10680         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10681         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10682         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10683         bug.
10684         * lib/pwrite.c: Undo 2010-12-31 patch.
10685         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10686
10687 2011-01-02  Bruno Haible  <bruno@clisp.org>
10688
10689         pread: Fix test whether it works.
10690         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10691
10692 2011-01-02  Bruno Haible  <bruno@clisp.org>
10693
10694         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10695         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10696         ends in "6". Don't require a specific month name. Try also the locale
10697         names found on HP-UX 11 and Solaris 7.
10698
10699 2011-01-02  Bruno Haible  <bruno@clisp.org>
10700
10701         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10702         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10703         C linkage.
10704         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10705
10706 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10707
10708         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10709         for consistency, since the "cluster" term is not used elsewhere.
10710         * lib/unigbrk.in.h: Update name.
10711         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10712         * lib/unigbrk/u16-grapheme-next.c: Update name.
10713         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10714         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10715         * lib/unigbrk/u32-grapheme-next.c: Update name.
10716         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10717         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10718         * lib/unigbrk/u8-grapheme-next.c: Update name.
10719         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10720         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10721         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10722         Suggested by Bruno Haible.
10723
10724 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10725
10726         Remove module 'u8-grapheme-len' as too redundant with
10727         'u8-grapheme-next'.
10728         * modules/unigbrk/u8-grapheme-len: Delete file.
10729         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10730         * lib/unigbrk.in.h: Remove prototype for deleted function.
10731         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10732         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10733
10734         Remove module 'u16-grapheme-len' as too redundant with
10735         'u16-grapheme-next'.
10736         * modules/unigbrk/u16-grapheme-len: Delete file.
10737         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10738         * lib/unigbrk.in.h: Remove prototype for deleted function.
10739         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10740         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10741
10742         Remove module 'u32-grapheme-len' as too redundant with
10743         'u32-grapheme-next'.
10744         * modules/unigbrk/u32-grapheme-len: Delete file.
10745         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10746         * lib/unigbrk.in.h: Remove prototype for deleted function.
10747         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10748         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10749
10750         Suggested by Bruno Haible.
10751
10752 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10753
10754         * unigbrk.in.h: Fix typo: "ben" => "been".
10755         Reported by Bruno Haible.
10756
10757 2011-01-01  Jim Meyering  <meyering@redhat.com>
10758
10759         maint: update almost all copyright ranges to include 2011
10760         Run the new "make update-copyright" rule.
10761
10762 2011-01-01  Jim Meyering  <meyering@redhat.com>
10763
10764         maint: update-copyright: exempt doc/INSTALL*
10765         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10766         since they are generated.  Suggested by Bruno Haible.
10767
10768 2011-01-01  Jim Meyering  <meyering@redhat.com>
10769
10770         maint: refine the update-copyright rule
10771         * Makefile (update-copyright): Also exclude any file that includes
10772         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10773         code that merely generates the comment.
10774
10775 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10776
10777         New module 'u8-grapheme-len'.
10778         * modules/unigbrk/u8-grapheme-len: New file.
10779         * modules/unigbrk/u8-grapheme-len-tests: New file.
10780         * lib/unigbrk.in.h: Add prototype for new function.
10781         * lib/unigbrk/u8-grapheme-len.c: New file.
10782         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10783
10784         New module 'u16-grapheme-len'.
10785         * modules/unigbrk/u16-grapheme-len: New file.
10786         * modules/unigbrk/u16-grapheme-len-tests: New file.
10787         * lib/unigbrk.in.h: Add prototype for new function.
10788         * lib/unigbrk/u16-grapheme-len.c: New file.
10789         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10790
10791         New module 'u32-grapheme-len'.
10792         * modules/unigbrk/u32-grapheme-len: New file.
10793         * modules/unigbrk/u32-grapheme-len-tests: New file.
10794         * lib/unigbrk.in.h: Add prototype for new function.
10795         * lib/unigbrk/u32-grapheme-len.c: New file.
10796         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10797
10798         New module 'u8-grapheme-next'.
10799         * modules/unigbrk/u8-grapheme-next: New file.
10800         * modules/unigbrk/u8-grapheme-next-tests: New file.
10801         * lib/unigbrk.in.h: Add prototype for new function.
10802         * lib/unigbrk/u8-grapheme-next.c: New file.
10803         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10804
10805         New module 'u16-grapheme-next'.
10806         * modules/unigbrk/u16-grapheme-next: New file.
10807         * modules/unigbrk/u16-grapheme-next-tests: New file.
10808         * lib/unigbrk.in.h: Add prototype for new function.
10809         * lib/unigbrk/u16-grapheme-next.c: New file.
10810         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10811
10812         New module 'u32-grapheme-next'.
10813         * modules/unigbrk/u32-grapheme-next: New file.
10814         * modules/unigbrk/u32-grapheme-next-tests: New file.
10815         * lib/unigbrk.in.h: Add prototype for new function.
10816         * lib/unigbrk/u32-grapheme-next.c: New file.
10817         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10818
10819         New module 'u8-grapheme-prev'.
10820         * modules/unigbrk/u8-grapheme-prev: New file.
10821         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10822         * lib/unigbrk.in.h: Add prototype for new function.
10823         * lib/unigbrk/u8-grapheme-prev.c: New file.
10824         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10825
10826         New module 'u16-grapheme-prev'.
10827         * modules/unigbrk/u16-grapheme-prev: New file.
10828         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10829         * lib/unigbrk.in.h: Add prototype for new function.
10830         * lib/unigbrk/u16-grapheme-prev.c: New file.
10831         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10832
10833         New module 'u32-grapheme-prev'.
10834         * modules/unigbrk/u32-grapheme-prev: New file.
10835         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10836         * lib/unigbrk.in.h: Add prototype for new function.
10837         * lib/unigbrk/u32-grapheme-prev.c: New file.
10838         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10839
10840         New module 'u8-grapheme-breaks'.
10841         * modules/unigbrk/u8-grapheme-breaks: New file.
10842         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10843         * lib/unigbrk.in.h: Add prototype for new function.
10844         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10845         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10846
10847         New module 'u16-grapheme-breaks'.
10848         * modules/unigbrk/u16-grapheme-breaks: New file.
10849         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10850         * lib/unigbrk.in.h: Add prototype for new function.
10851         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10852         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10853
10854         New module 'u32-grapheme-breaks'.
10855         * modules/unigbrk/u32-grapheme-breaks: New file.
10856         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10857         * lib/unigbrk.in.h: Add prototype for new function.
10858         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10859         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10860
10861         New module 'ulc-grapheme-breaks'.
10862         * modules/unigbrk/ulc-grapheme-breaks: New file.
10863         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10864         * m4/locale-ar.m4: New file.
10865         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10866         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10867         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10868
10869 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10870
10871         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10872         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10873         modified how this file was generated before I initially submitted
10874         the module, but failed to regenerate it.  This meant that several
10875         of the level2 entries were wrong.
10876         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10877         Remove the division-by-2 that is folded into the table now that
10878         gbrkprop.h has been regenerated properly.  Now -1 entries are
10879         handled correctly.
10880
10881         New module 'unigbrk/uc-gbrk-prop-tests'.
10882         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10883         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10884         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10885         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10886
10887 2011-01-01  Bruno Haible  <bruno@clisp.org>
10888
10889         Avoid use of hexadecimal escapes.
10890         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10891         instead of hexadecimal escapes.
10892
10893 2011-01-01  Jim Meyering  <meyering@redhat.com>
10894
10895         maint: new rule to update copyright year ranges
10896         * Makefile (update-copyright): New rule.
10897
10898         maint: indent with TABs in Makefile
10899         * Makefile: Expand leading sequences of spaces to TABs
10900
10901         version-etc: update the copyright year it reports
10902         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10903
10904 2010-12-31  Bruno Haible  <bruno@clisp.org>
10905
10906         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10907         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10908         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10909         zero.
10910
10911 2010-12-31  Bruno Haible  <bruno@clisp.org>
10912
10913         pwrite: Work around HP-UX 11.11 bug.
10914         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10915         works and set REPLACE_PWRITE if not.
10916         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10917         function.
10918         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10919
10920 2010-12-31  Bruno Haible  <bruno@clisp.org>
10921
10922         pread: Work around HP-UX 11 bugs.
10923         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10924         and set REPLACE_PREAD if not.
10925         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10926
10927 2010-12-31  Eric Blake  <eblake@redhat.com>
10928
10929         nl_langinfo: fix YESEXPR on Irix 6.5
10930         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10931         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10932         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10933         it.
10934
10935 2010-12-31  Bruno Haible  <bruno@clisp.org>
10936
10937         iconv: Document HP-UX 11 bug.
10938         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10939
10940 2010-12-31  Bruno Haible  <bruno@clisp.org>
10941
10942         ldexpl: Fix link error on HP-UX 11.
10943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10944         LDEXPL_LIBM, using $ISNANL_LIBM.
10945
10946 2010-12-31  Eric Blake  <eblake@redhat.com>
10947
10948         ftello: avoid compilation failure with SunStudio c89
10949         * lib/ftello.c (ftello): Use lseek, not llseek.
10950
10951         tests: avoid failing coreutils tests on cygwin
10952         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10953         (create_exe_shims_): Return 0 when skipping.
10954
10955 2010-12-31  Bruno Haible  <bruno@clisp.org>
10956
10957         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10958         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10959
10960 2010-12-31  Bruno Haible  <bruno@clisp.org>
10961
10962         waitpid: Fix link error in C++ mode.
10963         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10964
10965 2010-12-31  Bruno Haible  <bruno@clisp.org>
10966
10967         isnan: Use GCC built-ins when possible.
10968         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10969         __builtin_isnan.
10970         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10971         (isnan): Define using GCC built-ins for GCC >= 4.0.
10972
10973 2010-12-31  Bruno Haible  <bruno@clisp.org>
10974
10975         isnand: Fix mistake.
10976         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10977         __builtin_isnand.
10978
10979 2010-12-31  Bruno Haible  <bruno@clisp.org>
10980
10981         open: Avoid C++ error on HP-UX 11.
10982         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10983
10984 2010-12-31  Bruno Haible  <bruno@clisp.org>
10985
10986         time_r: Add missing declarations on HP-UX 11.
10987         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10988         instead of HAVE_LOCALTIME_R.
10989         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10990         HAVE_LOCALTIME_R always.
10991         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10992         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10993         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10994         HAVE_LOCALTIME_R.
10995         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10996         * doc/posix-functions/localtime_r.texi: Likewise.
10997
10998 2010-12-29  Eric Blake  <eblake@redhat.com>
10999
11000         mountlist: tweak previous commit
11001         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11002         Reported by Paul Eggert.
11003
11004         mountlist: fix local drive detection on cygwin
11005         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11006         that works for cygwin.
11007
11008 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11009
11010         ftoastr, snprintf: ftoastr + snprintf module
11011         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11012         since the snprintf module now should be good enough here.
11013         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11014         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11015         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11016         GNULIB_SNPRINTF only for the test directory, and the latter
11017         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11018         seems to suffice by itself.
11019
11020 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11021
11022         alloca: one step towards thread-safety
11023         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11024         need for a static variable.  All callers changed.  This does not
11025         make the alloca replacement thread-safe, but it's one step.
11026
11027         tests: minor indenting change
11028         * tests/init.sh: Sync from coreutils housekeeping patch
11029         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11030         to keep lines within 80 columns.
11031
11032 2010-12-28  Jim Meyering  <meyering@redhat.com>
11033
11034         regex: don't infloop on persistent failing calloc
11035         * lib/regexec.c (build_trtable): Return failure indication upon
11036         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11037         In glibc, this was fixed for version 2.13:
11038         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11039
11040 2010-12-28  Bruno Haible  <bruno@clisp.org>
11041             Paul Eggert <eggert@cs.ucla.edu>
11042
11043         linkat: Make implementation robust against system behaviour variations.
11044         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11045         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11046         way, and to -2 if it needs a generic runtime test.
11047         * lib/linkat.c (solaris_optimized_link_immediate,
11048         solaris_optimized_link_follow): New functions.
11049         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11050         (check_same_link): Use it.
11051
11052 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11053
11054         New module 'unigbrk/base'.
11055         * modules/unigbrk/base: New file.
11056         * lib/unigbrk.in.h: New file.
11057
11058         New module 'unigbrk/uc-gbrk-prop'.
11059         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11060         * modules/unigbrk/uc-gbrk-prop: New file.
11061         * lib/unigbrk/gbrkprop.h: New file.
11062         * lib/unigbrk/uc-gbrk-prop.c: New file.
11063
11064         New module 'unigbrk/uc-is-grapheme-break'.
11065         * modules/unigbrk/uc-is-grapheme-break: New file.
11066         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11067         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11068         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11069         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11070         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11071
11072         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11073
11074 2010-12-27  Bruno Haible  <bruno@clisp.org>
11075
11076         linkat test: Avoid failure on Solaris 11 2010-11.
11077         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11078
11079 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11080
11081         utimens: work around glibc rounding bug on more platforms
11082         * lib/utimens.c (fdutimens): Work around rounding bug even if
11083         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11084         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11085
11086 2010-12-27  Bruno Haible  <bruno@clisp.org>
11087
11088         select tests: Improve comments.
11089         * tests/test-select.c (do_select): Add comments.
11090
11091 2010-12-27  Bruno Haible  <bruno@clisp.org>
11092
11093         select tests: Safer way of handling timeout.
11094         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11095         at every invocation.
11096
11097 2010-12-27  Bruno Haible  <bruno@clisp.org>
11098
11099         select tests: Use 'bool' where appropriate.
11100         * tests/test-select.c (connect_to_socket): Change argument type to
11101         'bool'.
11102
11103 2010-12-27  Bruno Haible  <bruno@clisp.org>
11104
11105         select tests: Use existing modules.
11106         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11107         (configure.ac): Don't test for unistd.h.
11108         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11109         declared in <unistd.h>.
11110
11111 2010-12-27  Bruno Haible  <bruno@clisp.org>
11112
11113         mbrtowc: Work around a Solaris 7 bug.
11114         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11115         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11116         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11117         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11118         MBRTOWC_NULL_ARG1_BUG.
11119         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11120         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11121         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11122         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11123
11124 2010-12-27  Jim Meyering  <meyering@redhat.com>
11125
11126         read-file.c: tweak syntax
11127         * lib/read-file.c (fread_file): Remove space after "*" in function
11128         definitions.
11129
11130 2010-12-27  Bruno Haible  <bruno@clisp.org>
11131
11132         times test: Avoid gcc warnings on OSF/1.
11133         * tests/test-times.c (main): Cast printf arguments from clock_t to
11134         'long int'.
11135
11136 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11137
11138         utimens: work around glibc rounding bug on older Linux kernels
11139         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11140         on Linux with a glibc whose utimes might not work, then work
11141         around a longstanding glibc bug involving rounding rather than
11142         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11143         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11144
11145 2010-12-26  Bruno Haible  <bruno@clisp.org>
11146
11147         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11148         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11149         _GL_CXXALIAS_SYS.
11150         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11151
11152 2010-12-26  Bruno Haible  <bruno@clisp.org>
11153
11154         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11155         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11156         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11157         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11158         looking for the declaration.
11159         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11160         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11161         problem.
11162         * doc/posix-functions/inet_pton.texi: Likewise.
11163
11164 2010-12-26  Bruno Haible  <bruno@clisp.org>
11165
11166         arpa_inet: Use the common idioms with C++ support.
11167         * lib/arpa_inet.in.h: Include c++defs.h.
11168         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11169         support.
11170         * modules/arpa_inet (Depends-on): Add c++defs.
11171         (Makefile.am): Substitute the contents of c++defs.h.
11172         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11173         * modules/arpa_inet-c++-tests: New file.
11174         * tests/test-arpa_inet-c++.cc: New file.
11175
11176 2010-12-25  Bruno Haible  <bruno@clisp.org>
11177
11178         Fix more C++ link errors on Solaris 8.
11179         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11180         $(LIB_EACCESS).
11181         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11182         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11183         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11184         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11185         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11186
11187 2010-12-25  Bruno Haible  <bruno@clisp.org>
11188
11189         printf-posix: Fix link error when a non-GCC compiler is used.
11190         * lib/stdio.in.h (printf): When not using GCC, override printf
11191         correctly.
11192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11193
11194 2010-12-25  Bruno Haible  <bruno@clisp.org>
11195
11196         strerror_r-posix: Update doc.
11197         * doc/posix-functions/strerror_r.texi: Update doc about the return
11198         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11199
11200 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11201
11202         utimens: simplify the logic of the previous change
11203         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11204         This should not affect whether the test succeeds or fails.
11205
11206         utimens: configure better on hosts with NFS clock skew
11207         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11208         uses the clock of the local host.  It might use the clock of the
11209         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11210         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11211
11212 2010-12-25  Bruno Haible  <bruno@clisp.org>
11213
11214         ptsname test: Avoid failure on Solaris.
11215         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11216         open a pseudo-terminal; don't use BSD-style ptys.
11217         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11218
11219 2010-12-25  Bruno Haible  <bruno@clisp.org>
11220
11221         ptsname: Avoid ERANGE failure on some systems.
11222         * lib/ptsname.c (buffer): Increase size.
11223
11224 2010-12-25  Bruno Haible  <bruno@clisp.org>
11225
11226         rename, renameat: Avoid test failures at NFS mounted locations.
11227         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11228         so that subsequent mkdir calls succeed.
11229
11230 2010-12-25  Bruno Haible  <bruno@clisp.org>
11231
11232         iswblank: Fix C++ link error on Solaris 8.
11233         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11234         _GL_FUNCDECL_SYS.
11235
11236 2010-12-25  Bruno Haible  <bruno@clisp.org>
11237
11238         unistd: Fix C++ link error on Solaris 8.
11239         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11240
11241 2010-12-25  Bruno Haible  <bruno@clisp.org>
11242
11243         readlink doc: Mention an old glibc bug.
11244         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11245
11246 2010-12-25  Bruno Haible  <bruno@clisp.org>
11247
11248         fcntl-h: Fix for use of C++ on glibc systems.
11249         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11250         also on glibc systems in C++ mode.
11251         Reported by Gary V. Vaughan <gary@gnu.org>.
11252
11253 2010-12-25  Bruno Haible  <bruno@clisp.org>
11254
11255         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11256         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11257
11258 2010-12-25  Bruno Haible  <bruno@clisp.org>
11259
11260         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11261         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11262         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11263         test whether truncl works according to ISO C 99 with IEC 60559.
11264         * m4/truncl-ieee.m4: New file.
11265         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11266         m4/signbit.m4.
11267         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11268
11269 2010-12-25  Bruno Haible  <bruno@clisp.org>
11270
11271         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11272         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11273         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11274         test whether ceill works according to ISO C 99 with IEC 60559.
11275         * m4/ceill-ieee.m4: New file.
11276         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11277         m4/signbit.m4.
11278         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11279
11280 2010-12-25  Bruno Haible  <bruno@clisp.org>
11281
11282         Ensure all prerequisites of <wchar.h> are included.
11283         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11284         before <wchar.h>.
11285         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11286         gl_MBRLEN_NUL_RETVAL): Likewise.
11287         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11288         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11289         AC_FUNC_MBRTOWC): Likewise.
11290         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11291         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11292         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11293         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11294         Likewise.
11295         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11296         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11297         (gl_WCHAR_H): Improve comments.
11298         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11299
11300 2010-12-25  Bruno Haible  <bruno@clisp.org>
11301
11302         strtok_r: Fix C syntax error in autoconf macro.
11303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11304         characters in test program.
11305
11306 2010-12-24  Bruno Haible  <bruno@clisp.org>
11307
11308         ceil, trunc, round: Fix gcc warnings.
11309         * lib/ceil.c (MIN): Undefine before redefining.
11310         * lib/trunc.c (MIN): Likewise.
11311         * lib/round.c (MIN): Likewise.
11312         Include <math.h> first.
11313
11314 2010-12-24  Bruno Haible  <bruno@clisp.org>
11315
11316         select tests: Avoid failures on OSF/1 5.1.
11317         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11318         failure of closing the last socket; it may fail with ECONNRESET.
11319
11320 2010-12-24  Eric Blake  <eblake@redhat.com>
11321
11322         stdint: avoid HP-UX 10.20 preprocessor bug
11323         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11324         than #if.
11325         * tests/test-floor2.c (main): Likewise.
11326         Reported by Peter O'Gorman.
11327
11328         pipe: make obsoletion transition easier
11329         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11330         * modules/pipe (Files): Include revived file.
11331         (Include): Drop reference, to mirror getdate's behavior.
11332
11333 2010-12-24  Bruno Haible  <bruno@clisp.org>
11334
11335         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11336         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11337         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11338         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11339
11340 2010-12-24  Bruno Haible  <bruno@clisp.org>
11341
11342         gethostname: Ensure declaration on NonStop Kernel.
11343         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11344         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11345
11346 2010-12-24  Bruno Haible  <bruno@clisp.org>
11347
11348         sys_select: Ensure all necessary types on NonStop Kernel.
11349         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11350         include <sys/time.h>.
11351         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11352         NonStop Kernel.
11353         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11354
11355 2010-12-24  Bruno Haible  <bruno@clisp.org>
11356
11357         sys_select: Remove unneeded include.
11358         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11359         have <sys/select.h>.
11360
11361 2010-12-24  Bruno Haible  <bruno@clisp.org>
11362
11363         gethostname: Provide a fallback for HOST_NAME_MAX.
11364         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11365         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11366         instead.
11367         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11368
11369 2010-12-24  Bruno Haible  <bruno@clisp.org>
11370
11371         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11372         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11373         (SA_RESTART): Likewise.
11374         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11375
11376 2010-12-24  Bruno Haible  <bruno@clisp.org>
11377
11378         signal: Define NSIG.
11379         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11380         * tests/test-signal.c (nsig): New variable.
11381         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11382
11383 2010-12-24  Bruno Haible  <bruno@clisp.org>
11384
11385         rename, renameat: Avoid test failures on OSF/1 5.1.
11386         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11387         alternative error codes.
11388         * tests/test-renameat.c (main): Likewise.
11389
11390 2010-12-24  Bruno Haible  <bruno@clisp.org>
11391
11392         *printf: Detect large precisions bug on Solaris 10/SPARC.
11393         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11394         by Paul Eggert.
11395         * tests/test-snprintf-posix.h (test_function): Add this test code here
11396         too.
11397         * tests/test-sprintf-posix.h (test_function): Likewise.
11398         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11399         * tests/test-vasprintf-posix.c (test_function): Likewise.
11400         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11401         around by gnulib.
11402         * doc/posix-functions/printf.texi: Likewise.
11403         * doc/posix-functions/snprintf.texi: Likewise.
11404         * doc/posix-functions/sprintf.texi: Likewise.
11405         * doc/posix-functions/vfprintf.texi: Likewise.
11406         * doc/posix-functions/vprintf.texi: Likewise.
11407         * doc/posix-functions/vsnprintf.texi: Likewise.
11408         * doc/posix-functions/vsprintf.texi: Likewise.
11409         * doc/posix-functions/dprintf.texi: Undo last commit.
11410         * doc/posix-functions/vdprintf.texi: Likewise.
11411
11412 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11413
11414         tests: port test-fdutimensat.c to Solaris 8
11415         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11416         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11417         On Solaris 8, it fails with errno == ENOSYS, because there is no
11418         futimens (so it can't use the fd), and there is no lutimens (so it
11419         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11420
11421         vsnprintf: make more consistent with snprintf; doc fixes
11422
11423         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11424         the byte count return problem was promoted from the snprintf-posix
11425         to the snprintf module.
11426         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11428         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11429         * tests/test-snprintf.c (main): Check the byte count returned.
11430         * tests/test-vsnprintf.c (main): Likewise.
11431
11432 2010-12-23  Eric Blake  <eblake@redhat.com>
11433
11434         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11435         * modules/sigpipe (License): Relax license.
11436
11437 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11438
11439         doc: document Solaris printf bug with large float precisions
11440         * doc/posix-functions/dprintf.texi (dprintf):
11441         * doc/posix-functions/fprintf.texi (fprintf):
11442         * doc/posix-functions/printf.texi (printf):
11443         * doc/posix-functions/snprintf.texi (snprintf):
11444         * doc/posix-functions/sprintf.texi (sprintf):
11445         * doc/posix-functions/vdprintf.texi (vdprintf):
11446         * doc/posix-functions/vfprintf.texi (vfprintf):
11447         * doc/posix-functions/vprintf.texi (vprintf):
11448         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11449         * doc/posix-functions/vsprintf.texi (vsprintf):
11450         Mention that these functions mishandle large floating point
11451         precisions on Solaris 10.  The same bug is also present in Solaris
11452         8, and I assume earlier.  This causes "cd gnulib-tests; make
11453         check" to fail on Solaris 8 (and I assume, later) when building
11454         the latest coreutils, in test-vasprintf-posix's call to
11455         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11456         the wide flavors (e.g., wprintf) so this patch just updates the
11457         documentation for the narrow ones.
11458
11459         test-posixtm.c: add two tests
11460         * tests/test-posixtm.c: Add two tests, to highlight the
11461         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11462         around this bug; this is merely to document it.
11463
11464 2010-12-22  Bruno Haible  <bruno@clisp.org>
11465
11466         getlogin_r: Work around portability problem on OSF/1.
11467         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11468         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11469         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11470         test for a truncated result.
11471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11472         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11473         * modules/getlogin_r (Depends-on): Add memchr.
11474         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11475
11476 2010-12-22  Bruno Haible  <bruno@clisp.org>
11477
11478         ptsname: Avoid test failure on OSF/1 5.1.
11479         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11480         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11481         (same_slave): New function.
11482         (main): Use it to compare ptsname's result with the expected file name.
11483
11484 2010-12-22  Bruno Haible  <bruno@clisp.org>
11485
11486         Port extended stdio modules to HP NonStop Kernel.
11487         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11488         macros.
11489         * lib/fbufmode.c: Update comments.
11490         * lib/fflush.c: Likewise.
11491         * lib/fpurge.c: Likewise.
11492         * lib/freadable.c: Likewise.
11493         * lib/freadahead.c: Likewise.
11494         * lib/freading.c: Likewise.
11495         * lib/freadptr.c: Likewise.
11496         * lib/freadseek.c: Likewise.
11497         * lib/fseeko.c: Likewise.
11498         * lib/fseterr.c: Likewise.
11499         * lib/fwritable.c: Likewise.
11500         * lib/fwriting.c: Likewise.
11501         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11502
11503 2010-12-22  Bruno Haible  <bruno@clisp.org>
11504
11505         ttyname_r: Work around bug on OSF/1 5.1.
11506         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11507         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11508         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11509         present.
11510         * lib/ttyname_r.c (ttyname_r): Update comments.
11511
11512 2010-12-22  Bruno Haible  <bruno@clisp.org>
11513
11514         round: Implement result sign according to IEEE 754.
11515         * lib/round.c (MIN, MINUS_ZERO): New macros.
11516         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11517         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11518         * tests/test-round-ieee.c (main): Likewise.
11519         * tests/test-roundl-ieee.c (main): Likewise.
11520
11521         trunc: Implement result sign according to IEEE 754.
11522         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11523         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11524         * tests/test-trunc2.c: Include minus-zero.h.
11525         (MINUS_ZERO): New macro.
11526         (trunc_reference): Keep in sync with lib/trunc.c.
11527         * tests/test-truncf2.c: Include minus-zero.h.
11528         (MINUS_ZERO): New macro.
11529         (truncf_reference): Keep in sync with lib/trunc.c.
11530         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11531         * tests/test-trunc-ieee.c (main): Likewise.
11532         * tests/test-truncl-ieee.c (main): Likewise.
11533
11534         ceil: Implement result sign according to IEEE 754.
11535         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11536         (FUNC): Return -0.0 for -1 < x < 0.
11537         * tests/test-ceil2.c: Include minus-zero.h.
11538         (MINUS_ZERO): New macro.
11539         (ceil_reference): Keep in sync with lib/ceil.c.
11540         * tests/test-ceilf2.c: Include minus-zero.h.
11541         (MINUS_ZERO): New macro.
11542         (ceilf_reference): Keep in sync with lib/ceil.c.
11543         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11544         * tests/test-ceil-ieee.c (main): Likewise.
11545         * tests/test-ceill-ieee.c (main): Likewise.
11546
11547         floor: Implement result sign according to IEEE 754.
11548         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11549         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11550         * tests/test-floorf2.c (floorf_reference): Likewise.
11551         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11552         * tests/test-floor-ieee.c (main): Likewise.
11553         * tests/test-floorl-ieee.c (main): Likewise.
11554
11555 2010-12-22  Bruno Haible  <bruno@clisp.org>
11556
11557         getaddrinfo: Update doc.
11558         * doc/posix-functions/gai_strerror.texi: Return type is also different
11559         on AIX and HP-UX.
11560
11561 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11562
11563         getaddrinfo, inet_ntop: Update doc for Solaris.
11564         * doc/posix-functions/gai_strerror.texi: Return type is also an
11565         issue on Solaris 9 and earlier.
11566         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11567         on Solaris 10 and earlier.
11568
11569 2010-12-21  Bruno Haible  <bruno@clisp.org>
11570
11571         New module 'roundl-ieee'.
11572         * modules/roundl-ieee: New file.
11573         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11574         test whether roundl works according to ISO C 99 with IEC 60559.
11575         * m4/roundl-ieee.m4: New file.
11576         * modules/roundl-ieee-tests: New file.
11577         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11578         * tests/test-roundl.c (main): Remove signbit tests.
11579         * modules/roundl-tests (Depends-on): Remove signbit.
11580         * doc/posix-functions/roundl.texi: Mention the new module.
11581
11582 2010-12-21  Bruno Haible  <bruno@clisp.org>
11583
11584         New module 'truncl-ieee'.
11585         * modules/truncl-ieee: New file.
11586         * modules/truncl-ieee-tests: New file.
11587         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11588         * tests/test-truncl.c (main): Remove signbit tests.
11589         * modules/truncl-tests (Depends-on): Remove signbit.
11590         * doc/posix-functions/truncl.texi: Mention the new module.
11591
11592 2010-12-21  Bruno Haible  <bruno@clisp.org>
11593
11594         New module 'ceill-ieee'.
11595         * modules/ceill-ieee: New file.
11596         * modules/ceill-ieee-tests: New file.
11597         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11598         * tests/test-ceill.c (main): Remove signbit tests.
11599         * modules/ceill-tests (Depends-on): Remove signbit.
11600         * doc/posix-functions/ceill.texi: Mention the new module.
11601
11602 2010-12-21  Bruno Haible  <bruno@clisp.org>
11603
11604         New module 'floorl-ieee'.
11605         * modules/floorl-ieee: New file.
11606         * modules/floorl-ieee-tests: New file.
11607         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11608         * tests/test-floorl.c (main): Remove signbit tests.
11609         * modules/floorl-tests (Depends-on): Remove signbit.
11610         * doc/posix-functions/floorl.texi: Mention the new module.
11611
11612 2010-12-21  Bruno Haible  <bruno@clisp.org>
11613
11614         New module 'round-ieee'.
11615         * modules/round-ieee: New file.
11616         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11617         whether round works according to ISO C 99 with IEC 60559.
11618         * m4/round-ieee.m4: New file.
11619         * modules/round-ieee-tests: New file.
11620         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11621         * tests/test-round1.c (main): Remove signbit tests.
11622         * modules/round-tests (Depends-on): Remove 'signbit'.
11623         * doc/posix-functions/round.texi: Mention the new module.
11624
11625 2010-12-21  Bruno Haible  <bruno@clisp.org>
11626
11627         New module 'trunc-ieee'.
11628         * modules/trunc-ieee: New file.
11629         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11630         whether trunc works according to ISO C 99 with IEC 60559.
11631         * m4/trunc-ieee.m4: New file.
11632         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11634         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11635         * modules/trunc-ieee-tests: New file.
11636         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11637         * tests/test-trunc1.c (main): Remove signbit tests.
11638         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11639         * doc/posix-functions/trunc.texi: Mention the new module.
11640
11641 2010-12-21  Bruno Haible  <bruno@clisp.org>
11642
11643         New module 'ceil-ieee'.
11644         * modules/ceil-ieee: New file.
11645         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11646         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11647         ISO C 99 with IEC 60559.
11648         * m4/ceil-ieee.m4: New file.
11649         * modules/ceil (Files): Add lib/ceil.c.
11650         (Depends-on): Add 'float'.
11651         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11652         * lib/math.in.h (ceil): New declaration.
11653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11654         REPLACE_CEIL.
11655         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11656         * modules/ceil-ieee-tests: New file.
11657         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11658         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11659         * doc/posix-functions/ceil.texi: Mention the new module.
11660
11661 2010-12-21  Bruno Haible  <bruno@clisp.org>
11662
11663         New module 'floor-ieee'.
11664         * modules/floor-ieee: New file.
11665         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11666         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11667         ISO C 99 with IEC 60559.
11668         * m4/floor-ieee.m4: New file.
11669         * modules/floor (Files): Add lib/floor.c.
11670         (Depends-on): Add 'float'.
11671         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11672         * lib/math.in.h (floor): New declaration.
11673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11674         REPLACE_FLOOR.
11675         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11676         * modules/floor-ieee-tests: New file.
11677         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11678         * tests/test-math-c++.cc: Check the signature of 'floor'.
11679         * doc/posix-functions/floor.texi: Mention the new module.
11680
11681 2010-12-21  Bruno Haible  <bruno@clisp.org>
11682
11683         New module 'roundf-ieee'.
11684         * modules/roundf-ieee: New file.
11685         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11686         test whether roundf works according to ISO C 99 with IEC 60559.
11687         * m4/roundf-ieee.m4: New file.
11688         * modules/roundf-ieee-tests: New file.
11689         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11690         * tests/test-roundf1.c (main): Remove signbit tests.
11691         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11692         * doc/posix-functions/roundf.texi: Mention the new module.
11693
11694 2010-12-21  Bruno Haible  <bruno@clisp.org>
11695
11696         New module 'truncf-ieee'.
11697         * modules/truncf-ieee: New file.
11698         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11699         test whether truncf works according to ISO C 99 with IEC 60559.
11700         * m4/truncf-ieee.m4: New file.
11701         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11703         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11704         * modules/truncf-ieee-tests: New file.
11705         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11706         * tests/test-truncf1.c (main): Remove signbit tests.
11707         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11708         * doc/posix-functions/truncf.texi: Mention the new module.
11709
11710 2010-12-21  Bruno Haible  <bruno@clisp.org>
11711
11712         New module 'ceilf-ieee'.
11713         * modules/ceilf-ieee: New file.
11714         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11715         test whether ceilf works according to ISO C 99 with IEC 60559.
11716         * m4/ceilf-ieee.m4: New file.
11717         * modules/ceilf-ieee-tests: New file.
11718         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11719         * tests/test-ceilf1.c (main): Remove signbit tests.
11720         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11721         * doc/posix-functions/ceilf.texi: Mention the new module.
11722
11723 2010-12-21  Bruno Haible  <bruno@clisp.org>
11724
11725         New module 'floorf-ieee'.
11726         * modules/floorf-ieee: New file.
11727         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11728         test whether floorf works according to ISO C 99 with IEC 60559.
11729         * m4/floorf-ieee.m4: New file.
11730         * modules/floorf-ieee-tests: New file.
11731         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11732         * tests/test-floorf1.c (main): Remove signbit tests.
11733         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11734         * doc/posix-functions/floorf.texi: Mention the new module.
11735
11736 2010-12-21  Bruno Haible  <bruno@clisp.org>
11737
11738         Support for minus zero in autoconf macros.
11739         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11740         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11741         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11742         * tests/minus-zero.h: Update comments.
11743
11744 2010-12-21  Bruno Haible  <bruno@clisp.org>
11745
11746         Tests for module 'ceil'.
11747         * modules/ceil-tests: New file.
11748         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11749         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11750
11751 2010-12-21  Bruno Haible  <bruno@clisp.org>
11752
11753         Tests for module 'floor'.
11754         * modules/floor-tests: New file.
11755         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11756         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11757
11758 2010-12-21  Bruno Haible  <bruno@clisp.org>
11759
11760         math: Fix indentation.
11761         * lib/math.in.h (floorf): Fix indentation.
11762
11763 2010-12-21  Bruno Haible  <bruno@clisp.org>
11764
11765         Fix cross-compilation guesses on Solaris.
11766         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11767         not match "solaris2.10".
11768         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11769         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11770         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11771
11772 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11773
11774         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11775         This fixes a problem observed with the latest coreutils snapshot
11776         that caused a test to fail on Solaris 8.  src/csplit.c's call
11777         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11778         earlier, instead of returning the number of bytes that would have
11779         been generated; this causes csplit to incorrectly report memory
11780         exhaustion.
11781         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11782         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11783         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11784         comments to match.
11785         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11786         Fix typo in matching older versions of Solaris: "solaris2.10"
11787         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11788         only for guessing while cross-compiling.
11789         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11790
11791 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11792
11793         ftoastr: fix comment again
11794         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11795         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11796         Also, simplify example a bit by using flags = 0.
11797
11798 2010-12-20  Bruno Haible  <bruno@clisp.org>
11799
11800         round*, trunc*: Update documentation regarding glibc.
11801         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11802         * doc/posix-functions/round.texi: Likewise.
11803         * doc/posix-functions/roundl.texi: Likewise.
11804         * doc/posix-functions/truncf.texi: Likewise.
11805         * doc/posix-functions/trunc.texi: Likewise.
11806         * doc/posix-functions/truncl.texi: Likewise.
11807
11808 2010-12-20  Bruno Haible  <bruno@clisp.org>
11809
11810         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11811         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11812         * doc/posix-functions/round.texi: Likewise.
11813         * doc/posix-functions/roundl.texi: Likewise.
11814
11815 2010-12-20  Bruno Haible  <bruno@clisp.org>
11816
11817         ttyname_r: Add missing declaration on HP-UX 11.
11818         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11819         HAVE_TTYNAME_R.
11820         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11821         declared. Set HAVE_TTYNAME_R always.
11822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11823         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11824         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11825         HAVE_TTYNAME_R.
11826         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11827
11828 2010-12-20  Bruno Haible  <bruno@clisp.org>
11829
11830         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11831         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11832         * doc/posix-functions/getlogin_r.texi: Likewise.
11833         * tests/test-getlogin.c: Include <errno.h>.
11834         (main): Avoid test failure on HP-UX 11.11.
11835         * tests/test-getlogin_r.c (main): Likewise.
11836
11837 2010-12-20  Bruno Haible  <bruno@clisp.org>
11838
11839         getlogin_r: Add missing declaration on HP-UX 11.
11840         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11841         declared also when it exists as a function.
11842         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11843
11844 2010-12-20  Bruno Haible  <bruno@clisp.org>
11845
11846         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11847         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11848         through wcrtomb.
11849
11850 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11851
11852         ftoastr: fix comment
11853         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11854         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11855
11856 2010-12-19  Bruno Haible  <bruno@clisp.org>
11857
11858         isnan: Ensure it is a macro.
11859         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11860         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11861         Solaris.
11862
11863 2010-12-19  Bruno Haible  <bruno@clisp.org>
11864
11865         ldexpl test: Fix link error on OSF/1 5.1.
11866         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11867
11868 2010-12-19  Bruno Haible  <bruno@clisp.org>
11869
11870         wctype: Make it work in C++ mode on OSF/1 5.1.
11871         * lib/wctype.in.h (iswblank): Declare but not define here.
11872         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11873         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11874         * modules/wctype (Files): Add lib/iswblank.c.
11875
11876 2010-12-19  Bruno Haible  <bruno@clisp.org>
11877
11878         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11879         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11880         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11881
11882 2010-12-19  Bruno Haible  <bruno@clisp.org>
11883
11884         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11886         _POSIX_PII_SOCKET.
11887         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11888         * doc/posix-functions/recvfrom.texi: Likewise.
11889         * doc/posix-functions/send.texi: Likewise.
11890         * doc/posix-functions/sendto.texi: Likewise.
11891
11892 2010-12-19  Bruno Haible  <bruno@clisp.org>
11893
11894         tcgetsid: Add missing declaration on OSF/1 5.1.
11895         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11896         HAVE_TCGETSID.
11897         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11898         Don't set HAVE_TCGETSID.
11899         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11900         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11901         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11902         HAVE_TCGETSID.
11903         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11904
11905 2010-12-19  Bruno Haible  <bruno@clisp.org>
11906
11907         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11908         * lib/stdio.in.h: During the include_next statement, let recursive
11909         includes of this file include only the system header file.
11910
11911 2010-12-19  Bruno Haible  <bruno@clisp.org>
11912
11913         iconv_open: Fix regression from 2010-12-04.
11914         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11915         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11916
11917 2010-12-19  Bruno Haible  <bruno@clisp.org>
11918
11919         stdbool test: Avoid a gcc warning.
11920         * tests/test-stdbool.c (main): Fail if e1 is false.
11921         Reported by Jim Meyering.
11922
11923 2010-12-19  Jim Meyering  <meyering@redhat.com>
11924
11925         setenv: restore to working order
11926         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11927         mistakenly removed.
11928         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11929         HAVE_SETENV.
11930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11931         HAVE_SETENV.
11932
11933 2010-12-19  Bruno Haible  <bruno@clisp.org>
11934
11935         Document some different function declarations on OSF/1 5.1.
11936         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11937         * doc/posix-functions/inet_ntop.texi: Likewise.
11938         * doc/posix-functions/gethostname.texi: Likewise.
11939         * lib/unistd.in.h (gethostname): Update comment.
11940
11941 2010-12-19  Bruno Haible  <bruno@clisp.org>
11942
11943         doc: Mention vasprintf-posix module.
11944         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11945         the 'vasprintf-posix' module.
11946         * doc/glibc-functions/vasprintf.texi: Likewise.
11947
11948 2010-12-19  Bruno Haible  <bruno@clisp.org>
11949
11950         unsetenv: Add missing declaration on OSF/1 5.1.
11951         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11952         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11953         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11955         not HAVE_UNSETENV.
11956         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11957         HAVE_UNSETENV.
11958         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11959
11960 2010-12-19  Bruno Haible  <bruno@clisp.org>
11961
11962         setenv: Add missing declaration on OSF/1 5.1.
11963         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11965         declared. Don't set HAVE_SETENV.
11966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11967         not HAVE_SETENV.
11968         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11969         HAVE_SETENV.
11970         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11971
11972 2010-12-19  Bruno Haible  <bruno@clisp.org>
11973
11974         nl_langinfo tests: Avoid gcc warning.
11975         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11976
11977 2010-12-19  Bruno Haible  <bruno@clisp.org>
11978
11979         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11980         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11981         _GL_CXXALIAS_SYS.
11982
11983 2010-12-19  Bruno Haible  <bruno@clisp.org>
11984
11985         stdbool: Relax test.
11986         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11987         address to 'bool' work in static initializer, for compilers other than
11988         GCC.
11989
11990 2010-12-19  Bruno Haible  <bruno@clisp.org>
11991
11992         ftello: Add missing declaration on OSF/1 5.1.
11993         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11994         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11996         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11997         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11998
11999 2010-12-19  Bruno Haible  <bruno@clisp.org>
12000
12001         fseeko: Add missing declaration on OSF/1 5.1.
12002         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12005         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12006         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12007
12008 2010-12-19  Bruno Haible  <bruno@clisp.org>
12009
12010         fchdir: Add missing declaration on OSF/1 5.1.
12011         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12014         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12015         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12016
12017 2010-12-19  Bruno Haible  <bruno@clisp.org>
12018
12019         relocatable-prog-wrapper: Separate from relocatable-prog.
12020         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12021         uninstall-relocwrapper rule here.
12022         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12023         Reported by Ian Beckwith <ianb@erislabs.net>.
12024
12025 2010-12-19  Bruno Haible  <bruno@clisp.org>
12026
12027         unistr/u8-mbsnlen: Add missing dependency.
12028         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12029         Reported by Ian Beckwith <ianb@erislabs.net>.
12030
12031 2010-12-19  Bruno Haible  <bruno@clisp.org>
12032
12033         iconv: Make it possible again to use this module without 'iconv-h'.
12034         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12035         if it is not defined.
12036         Reported by Ian Beckwith <ianb@erislabs.net>.
12037
12038 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12039
12040         acl: port to Solaris 8 when copying from tmpfs to ufs
12041         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12042         error number.  Problem observed on Solaris 8 with latest
12043         coreutils, with "mv A B", where A is on a tmpfs file system and B
12044         is on a ufs file system.  This caused coreutils' mv/part-symlink
12045         test to fail.
12046
12047         tests: set fail=0 at start
12048         * tests/init.sh (setup_): Move fail=0 initialization here ...
12049         (mktempd_): ... from here, so that tests can rely on fail being
12050         set to 0 initially.  This fixes a problem in coreutils; see:
12051         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12052
12053 2010-12-18  Bruno Haible  <bruno@clisp.org>
12054
12055         memmem-simple: Stylistic changes.
12056         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12057         Fix preprocessor directive indentation.
12058
12059 2010-12-15  Pádraig Brady <P@draigBrady.com>
12060
12061         memmem, memmem-simple: reorganize and expand empty needle check
12062         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12063         functional checks to memmem-simple so that one has a fully functional
12064         memmem by using just this module.
12065         Restrict the performance only check to the memmem module.
12066         Also expand the empty needle check to ensure the correct
12067         pointer is returned, not just a non NULL pointer.
12068         * doc/glibc-functions/memmem.texi: Rearrange the portability
12069         documentation to correlate with the rearranged checks.
12070         Clarify exactly how the memmem and memmem-simple modules
12071         relate to each other.
12072
12073 2010-12-15  Pádraig Brady <P@draigBrady.com>
12074             Bruno Haible  <bruno@clisp.org>
12075
12076         Improve cross-compilation guesses for uClibc.
12077         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12078         that uClibc does not have the glibc bug.
12079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12080         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12081
12082 2010-12-14  Eric Blake  <eblake@redhat.com>
12083
12084         configmake: provide fallbacks for oldest supported autotools
12085         * m4/configmake.m4: New file.
12086         * modules/configmake (Files): Ship it.
12087         (configure.ac): Use it to guarantee fallbacks.
12088
12089 2010-12-13  Pádraig Brady <P@draigBrady.com>
12090
12091         read-file: Improve handling of large files
12092         * lib/read-file.c (fread_file): Minimize realloc()s
12093         for regular files, and better manage sizes around SIZE_MAX.
12094
12095 2010-12-13  Eric Blake  <eblake@redhat.com>
12096
12097         cloexec, fcntl: relax license
12098         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12099         consent from all contributors.
12100         * modules/fcntl (License): Likewise.
12101
12102 2010-12-10  Bruno Haible  <bruno@clisp.org>
12103
12104         Tests for module 'pipe-posix'.
12105         * modules/pipe-posix-tests: New file.
12106         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12107
12108 2010-12-10  Bruno Haible  <bruno@clisp.org>
12109
12110         pipe-posix: Make it work in C++ mode.
12111         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12112         (pipe): Use common idiom, not a macro definition.
12113         * lib/pipe.c: New file.
12114         * m4/pipe.m4: New file.
12115         * modules/pipe-posix (Description): Enhance.
12116         (Files): Add lib/pipe.c, m4/pipe.m4.
12117         (configure.ac): Invoke gl_FUNC_PIPE.
12118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12119         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12120         * tests/test-unistd-c++.cc: Check the signature of pipe.
12121
12122 2010-12-10  Bruno Haible  <bruno@clisp.org>
12123
12124         Rename module 'pipe' to 'spawn-pipe'.
12125         * modules/spawn-pipe: New file, renamed from modules/pipe.
12126         (Files, configure.ac, Makefile.am): Update.
12127         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12128         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12129         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12130         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12131         "spawn-pipe.h" instead of "pipe.h".
12132         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12133         to gl_SPAWN_PIPE.
12134         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12135         (Files, Makefile.am): Update.
12136         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12137         Update.
12138         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12139         Include "spawn-pipe.h" instead of "pipe.h".
12140         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12141         * lib/javacomp.c: Likewise.
12142         * lib/javaversion.c: Likewise.
12143         * lib/pipe-filter-gi.c: Likewise.
12144         * lib/pipe-filter-ii.c: Likewise.
12145         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12146         * modules/javacomp (Depends-on): Likewise.
12147         * modules/javaversion (Depends-on): Likewise.
12148         * modules/pipe-filter-gi (Depends-on): Likewise.
12149         * modules/pipe-filter-ii (Depends-on): Likewise.
12150         * MODULES.html.sh (Executing programs): Update.
12151         * NEWS: Mention the change.
12152
12153 2010-12-10  Eric Blake  <eblake@redhat.com>
12154
12155         pipe-posix: new module
12156         * modules/pipe-posix: New file.
12157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12158         (gl_UNISTD_H): Check for declaration.
12159         * modules/unistd (Makefile.am): Substitute it.
12160         * lib/unistd.in.h (pipe): Provide it for mingw.
12161         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12162         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12163
12164 2010-12-07  Bruno Haible  <bruno@clisp.org>
12165
12166         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12167         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12168         u8_strcmp_gnu.
12169         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12170
12171 2010-12-06  Bruno Haible  <bruno@clisp.org>
12172
12173         Update internal documentation.
12174         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12175
12176 2010-12-04  Bruno Haible  <bruno@clisp.org>
12177
12178         Put more information about failed tests into the test return codes.
12179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12180         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12181         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12182         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12183         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12185         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12186         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12187         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12189         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12190         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12191         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12192         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12193         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12194         returns a bit mask.
12195         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12196         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12197         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12198         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12199         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12200         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12201         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12203         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12204         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12205         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12206         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12207         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12209         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12210         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12211         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12212         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12213         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12214         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12215         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12216         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12217         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12218         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12219         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12220         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12221         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12222         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12223         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12224         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12225         gl_PRINTF_PRECISION): Likewise.
12226         * m4/regex.m4 (gl_REGEX): Likewise.
12227         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12228         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12229         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12230         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12233         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12234         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12235         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12236         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12237         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12238         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12240         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12241         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12242         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12243         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12244         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12246         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12247         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12248         enumerated value.
12249         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12250
12251 2010-12-04  Bruno Haible  <bruno@clisp.org>
12252
12253         Update for Solaris 11 2010-11.
12254         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12255         Express, released in November 2010.
12256
12257 2010-12-04  Bruno Haible  <bruno@clisp.org>
12258
12259         nproc: Relax license.
12260         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12261         and Paul Eggert.
12262         Requested by Ludovic Courtès <ludo@gnu.org>.
12263
12264 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12265
12266         utimecmp: fine-grained src to nearby coarse-grained dest
12267
12268         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12269         and the source is on a file system with higher-resolution time
12270         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12271         not work, and the time stamps are close together, the algorithm to
12272         determine the exact resolution from the read-back mtime was buggy:
12273         it had a "!=" where it should have had an "==".  This bug has been
12274         in the code ever since it was introduced to gnulib.
12275         Problem reported by Dan Jacobson in
12276         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12277
12278 2010-11-30  Bruno Haible  <bruno@clisp.org>
12279
12280         strerror_r-posix: Fix autoconf test.
12281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12282
12283 2010-11-28  Bruno Haible  <bruno@clisp.org>
12284             Paul Eggert  <eggert@cs.ucla.edu>
12285
12286         Tests for module 'getdomainname'.
12287         * modules/getdomainname-tests: New file.
12288         * tests/test-getdomainname.c: New file, based on
12289         tests/test-gethostname.c.
12290
12291 2010-11-28  Bruno Haible  <bruno@clisp.org>
12292             Paul Eggert  <eggert@cs.ucla.edu>
12293
12294         getdomainname: Use the system function when possible.
12295         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12296         (getdomainname): Replace if needed. Provide the declaration if it is
12297         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12298         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12299         (getdomainname): When the system has getdomainname, call the system
12300         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12301         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12302         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12303         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12304         the function if its second argument is of type 'int' or if it is found
12305         in libnsl.
12306         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12307         <sys/systeminfo.h> and sysinfo().
12308         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12310         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12311         HAVE_GETDOMAINNAME.
12312         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12313         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12314         * doc/glibc-functions/getdomainname.texi: Document the problems with
12315         the getdomainname declaration.
12316
12317 2010-11-28  Bruno Haible  <bruno@clisp.org>
12318
12319         sys_socket: Ensure ss_family field on AIX.
12320         * lib/sys_socket.in.h (ss_family): New macro definition.
12321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12322         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12323         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12324         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12325         * modules/sys_socket (Makefile.am): Substitute
12326         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12327         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12328
12329 2010-11-27  Bruno Haible  <bruno@clisp.org>
12330
12331         readline: Improve configure output.
12332         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12333         "checking for readline..." result understandable.
12334
12335 2010-11-27  Bruno Haible  <bruno@clisp.org>
12336
12337         *printf-posix: Detect a bug on Solaris 10/x86.
12338         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12339         for floating-point output.
12340         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12341         directive.
12342         * tests/test-snprintf-posix.h (test_function): Likewise.
12343         * tests/test-sprintf-posix.h (test_function): Likewise.
12344         * tests/test-vasprintf-posix.c (test_function): Likewise.
12345         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12346         * doc/posix-functions/printf.texi: Likewise.
12347         * doc/posix-functions/snprintf.texi: Likewise.
12348         * doc/posix-functions/sprintf.texi: Likewise.
12349         * doc/posix-functions/vfprintf.texi: Likewise.
12350         * doc/posix-functions/vprintf.texi: Likewise.
12351         * doc/posix-functions/vsnprintf.texi: Likewise.
12352         * doc/posix-functions/vsprintf.texi: Likewise.
12353         * doc/glibc-functions/obstack_printf.texi: Likewise.
12354         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12355
12356 2010-11-27  Bruno Haible  <bruno@clisp.org>
12357
12358         Fix link error when module libunistring-optional is in use.
12359         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12360         * modules/striconveha-tests (Makefile.am): Likewise.
12361
12362 2010-11-27  Bruno Haible  <bruno@clisp.org>
12363
12364         regex: Mention link dependencies.
12365         * modules/regex (Link): New section.
12366         * modules/rpmatch (Link): Likewise.
12367         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12368
12369 2010-11-27  Bruno Haible  <bruno@clisp.org>
12370
12371         ftoastr: Fix compilation error on Solaris.
12372         * lib/ftoastr.c: Include <config.h>.
12373
12374 2010-11-27  Bruno Haible  <bruno@clisp.org>
12375
12376         getloadavg: Update documentation.
12377         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12378
12379 2010-11-27  Bruno Haible  <bruno@clisp.org>
12380
12381         sys_socket: Fix test whether the functions are declared.
12382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12383         not <sys/select.h>.
12384
12385 2010-11-27  Bruno Haible  <bruno@clisp.org>
12386
12387         getpass: Make sure to get system declaration on some platforms.
12388         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12389         gl_USE_SYSTEM_EXTENSIONS.
12390         * modules/getpass (Depends-on): Add extensions.
12391
12392 2010-11-26  Bruno Haible  <bruno@clisp.org>
12393
12394         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12395         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12396         'iconv' module is present.
12397         (ICONV_CONST): New macro.
12398         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12399         ICONV_CONST.
12400         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12401         set ICONV_CONST.
12402         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12403         here.
12404         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12405         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12406         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12407         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12408         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12409         present.
12410
12411 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12412
12413         ftoastr: comment fix
12414         * lib/ftoastr.c: "little" -> "little or no" in comment
12415
12416 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         stdint: port to GCC 4.3 + OSX + Octave
12419         On this platform, stdint.h is buggy and defines int64_t to long
12420         long int.  The replacement defined it to long int, causing
12421         problems with C++ style name mangling.  Instead, trust the system
12422         definition if INT64_MAX is defined, and likewise for the unsigned
12423         variant.   Problem reported by Jarno Rajahalme in
12424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12425         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12426         and don't mess with int64_t and INT64_MAX in this case.
12427         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12428
12429 2010-11-24  Bruno Haible  <bruno@clisp.org>
12430
12431         doc: Corrections regarding MacOS X 10.4 and 10.5.
12432         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12433         MacOS X.
12434         Reported by Simon Josefsson.
12435
12436 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12437
12438         Uninstall ".bin" files installed by relocwrapper.
12439         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12440         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12441         unless it is already there.
12442
12443 2010-11-21  Bruno Haible  <bruno@clisp.org>
12444
12445         Update for NetBSD 5.0.
12446         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12447         NetBSD; the test fails on NetBSD 5.0.
12448         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12449         about NetBSD.
12450
12451 2010-11-21  Bruno Haible  <bruno@clisp.org>
12452
12453         Update for HP-UX 11.23 and HP-UX 11.31.
12454         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12455         HP-UX.
12456
12457 2010-11-21  Bruno Haible  <bruno@clisp.org>
12458
12459         Update for MacOS X 10.5.
12460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12461         MacOS X; the test fails on MacOS X 10.5.8.
12462         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12463         about MacOS X.
12464
12465 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12466
12467         bootstrap: add bootstrap_sync option.
12468         See discussion at
12469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12471         * build-aux/bootstrap: Accept --bootstrap-sync to update
12472         bootstrap if it is not identical to the local gnulib's
12473         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12474         enable this by default.  Accept --no-bootstrap-sync to disable
12475         it.
12476
12477 2010-11-20  Bruno Haible  <bruno@clisp.org>
12478
12479         Ensure that <features.h> is included before __GLIBC__ is tested.
12480         * lib/printf-parse.h: Include <features.h>.
12481         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12482         Reported by Mike Frysinger <vapier@gentoo.org>.
12483
12484         Ensure that <features.h> is included before __GLIBC__ is tested.
12485         * lib/wchar.in.h: Include <features.h>.
12486         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12487         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12488         Reported by Mike Frysinger <vapier@gentoo.org>.
12489
12490         Ensure that <features.h> is included before __GLIBC__ is tested.
12491         * lib/arpa_inet.in.h: Include <features.h>.
12492         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12493         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12494         Reported by Mike Frysinger <vapier@gentoo.org>.
12495
12496         Ensure that <features.h> is included before __GLIBC__ is tested.
12497         * build-aux/link-warning.h: Include <features.h>.
12498         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12499         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12500         Reported by Mike Frysinger <vapier@gentoo.org>.
12501
12502         Ensure that <features.h> is included before __GLIBC__ is tested.
12503         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12504         Reported by Mike Frysinger <vapier@gentoo.org>.
12505
12506 2010-11-20  Bruno Haible  <bruno@clisp.org>
12507
12508         memmem: Fix autoconf test.
12509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12510
12511 2010-11-20  Bruno Haible  <bruno@clisp.org>
12512
12513         Port to uClibc.
12514         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12515         * lib/fcntl.in.h: Likewise.
12516         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12517         * lib/mbrtowc.c (mbrtowc): Likewise.
12518         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12519         * lib/strerror_r.c: Likewise.
12520         * lib/unistr/u8-strnlen.c: Likewise.
12521         * lib/vasnprintf.c (decimal_point_char): Likewise.
12522         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12523         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12525         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12526         * tests/test-sigaction.c (handler, main): Likewise.
12527         * lib/freading.h: Treat uClibc like a non-glibc platform.
12528         * lib/freading.c: Likewise.
12529         * lib/gettext.h: Likewise.
12530         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12531         Likewise.
12532         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12533         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12534         * lib/propername.c (proper_name_utf8): Likewise.
12535         * lib/spawn.in.h: Likewise.
12536         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12537         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12538         mem_cd_iconveh_internal): Likewise.
12539         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12540         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12541         strstr, strcasestr): Likewise.
12542         * lib/unicodeio.c (unicode_to_mb): Likewise.
12543         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12544         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12545         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12546         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12547         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12548         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12549         * lib/unistr/u8-stpncpy.c: Likewise.
12550         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12551         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12552         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12553         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12554         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12555         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12556         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12559         Likewise.
12560         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12561         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12562         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12565         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12566         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12567         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12568         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12569         * tests/test-striconveha.c (main): Likewise.
12570         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12571         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12572         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12573         * doc/posix-functions/getline.texi: Likewise.
12574         Reported by Mike Frysinger <vapier@gentoo.org>.
12575
12576 2010-11-20  Bruno Haible  <bruno@clisp.org>
12577
12578         nproc: Fix condition.
12579         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12580         HAVE_PTHREAD_AFFINITY_NP.
12581
12582 2010-11-20  Bruno Haible  <bruno@clisp.org>
12583
12584         Fix a comment.
12585         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12586
12587 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12588
12589         ftoastr: don't assume snprintf
12590         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12591         Implement a subset of snprintf here, by using sprintf safely.
12592         * modules/ftoastr (Depends-on): Remove snprintf.
12593
12594 2010-11-19  Jim Meyering  <meyering@redhat.com>
12595
12596         test-rename.h: fix compilation failure
12597         * tests/test-rename.h (test_rename): Add omitted "}".
12598
12599 2010-11-17  Jim Meyering  <meyering@redhat.com>
12600
12601         maint.mk: add a URL discussing the no-@acronym policy
12602         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12603
12604 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12605
12606         ftoastr: depend on snprintf, improve comments
12607         * lib/ftoastr.c: Also mention Loitsch's draft.
12608         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12609         needed in the current implementation, but it might simplify
12610         speeding up the code later.
12611         * modules/ftoastr: Depend on snprintf; this improves portability.
12612         Suggested by Bruno Haible in the same email.
12613
12614         ftoastr: port to hosts lacking strtof and strtold
12615         Problem reported by Bruno Haible in
12616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12617         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12618         environment and strtold (and presumably strtof) are not available.
12619         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12620         (configure.ac): Require gl_C99_STRTOLD.
12621
12622 2010-11-18  Bruno Haible  <bruno@clisp.org>
12623
12624         c-strtold: Avoid link error on AIX 7.
12625         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12626         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12627         (gl_C_STRTOLD): Test whether strtold_l exists.
12628         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12629
12630 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12631
12632         intprops: new macro INT_BITS_STRLEN_BOUND
12633         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12634         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12635         not exposed.  Also, it uses a slightly tighter bound than before;
12636         though this makes no practical difference, we might as well be as
12637         tight as we easily can.
12638
12639         ftoastr: new module, for lossless conversion of floats to short strings
12640         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12641         * modules/ftoastr: New files.
12642
12643 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12644
12645         bootstrap: port to Solaris sed
12646         * build-aux/bootstrap (get_version): Port to Solaris sed.
12647         See Ralf Wildenhues's note in
12648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12649
12650 2010-11-14  Jim Meyering  <meyering@redhat.com>
12651
12652         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12653         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12654         and move definition closer to sole use.
12655
12656 2010-11-13  Jim Meyering  <meyering@redhat.com>
12657
12658         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12659         Now we require at least autoconf-2.59, which means the work-around
12660         is no longer needed.
12661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12662         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12663         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12664         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12665         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12666
12667 2010-11-13  Bruno Haible  <bruno@clisp.org>
12668
12669         rename, renameat: Avoid test failures at NFS mounted locations.
12670         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12671         functions.
12672         (test_rename): Use assert_nonexistent.
12673         * tests/test-rename.c: Include <dirent.h>.
12674         * tests/test-renameat.c: Likewise.
12675         Reported by Gary V. Vaughan <gary@gnu.org>.
12676
12677         rename, renameat: Document Linux bug with NFS
12678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12679         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12680         * doc/posix-functions/renameat.texi: Likewise.
12681         Suggested by Eric Blake.
12682
12683 2010-11-13  Bruno Haible  <bruno@clisp.org>
12684
12685         rename test: Add comments.
12686         * tests/test-rename.h (test_rename): Add structure and comments.
12687
12688 2010-11-13  Eric Blake  <eblake@redhat.com>
12689
12690         maintainer-makefile: cover a few more files
12691         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12692         scripts generated within C files, for libvirt.
12693
12694 2010-11-13  Bruno Haible  <bruno@clisp.org>
12695
12696         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12697         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12698         character, return the number of bytes that belong together, not always
12699         1.
12700         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12701         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12702         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12703         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12704         number of bytes of an invalid character.
12705         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12706         (main): Invoke it.
12707         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12708         results.
12709         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12710         malformed byte sequences.
12711         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12712         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12713         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12714         Reported by Ben Pfaff and Paolo Bonzini.
12715
12716 2010-11-13  Bruno Haible  <bruno@clisp.org>
12717
12718         openat: Work around glibc bug with fchownat() and empty file names.
12719         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12720         (gl_FUNC_FCHOWNAT): Invoke it.
12721         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12722         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12723         Reported by Gary V. Vaughan <gary@gnu.org>.
12724
12725 2010-11-13  Bruno Haible  <bruno@clisp.org>
12726
12727         openat: Ensure autoconf macro ordering.
12728         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12729         gl_USE_SYSTEM_EXTENSIONS.
12730         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12731
12732 2010-11-13  Bruno Haible  <bruno@clisp.org>
12733
12734         Update comments.
12735         * lib/unistr/u8-check.c: Update file name in comments.
12736         * lib/unistr/u8-mblen.c: Likewise.
12737         * lib/unistr/u8-prev.c: Likewise.
12738         * lib/unistr/u8-strmblen.c: Likewise.
12739         * lib/unistr/u8-strmbtouc.c: Likewise.
12740
12741 2010-11-13  Jim Meyering  <meyering@redhat.com>
12742
12743         tests: avoid test failure on Solaris 10 due to lack of PATH export
12744         * tests/test-update-copyright.sh: Don't forget to export PATH.
12745
12746         init.sh: ensure that IFS is defined, just in case...
12747         * tests/init.sh (setup_): Ensure that IFS is defined,
12748         so that saving and restoring it works as expected.  This
12749         appears to be useful at least for an old version of dash
12750         from a long time ago (RH 6).  See here for details:
12751         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12752
12753         maint.mk: tighten "test a == b" check
12754         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12755         test to files that contain something like #!/bin/sh.
12756         Without this, coreutils would get two false positives in
12757         the comments of C source files.
12758
12759 2010-11-12  Eric Blake  <eblake@redhat.com>
12760
12761         bootstrap: fix typo in previous attempt
12762         * build-aux/bootstrap (buildreq): Correct the grouping.
12763         Reported by Paul Eggert.
12764
12765         maintainer-makefile: prohibit test x == x
12766         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12767         Based on a report by Matthias Bolte.
12768
12769         bootstrap: allow FreeBSD gzip
12770         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12771         which has no '.' and goes to stderr.
12772         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12773         Reported by Matthias Bolte.
12774
12775         maintainer-makefile: check for i18n setup
12776         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12777         will likely work.
12778
12779 2010-11-12  Bruno Haible  <bruno@clisp.org>
12780
12781         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12782         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12783         * lib/nanosleep.c (nanosleep): Likewise.
12784
12785 2010-11-11  Bruno Haible  <bruno@clisp.org>
12786
12787         fcntl-h: Fix for use of C++ on glibc systems.
12788         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12789         also on glibc systems in C++ mode.
12790         Reported by Gary V. Vaughan <gary@gnu.org>.
12791
12792 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12793
12794         mknod: avoid false failure with dash
12795         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12796
12797 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12798
12799         unlink: Fix "is it should" typo in diagnostic.
12800         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12801         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12802
12803 2010-11-11  Bruno Haible  <bruno@clisp.org>
12804
12805         Tests for module 'strerror_r-posix'.
12806         * modules/strerror_r-posix-tests: New file.
12807         * tests/test-strerror_r.c: New file.
12808         * tests/test-string-c++.cc: Check the signature of strerror_r.
12809
12810         New module 'strerror_r-posix'.
12811         * lib/string.in.h (strerror_r): New declaration.
12812         * lib/strerror_r.c: New file.
12813         * m4/strerror_r.m4: New file.
12814         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12815         of strerror_r.
12816         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12817         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12818         * modules/strerror_r-posix: New file.
12819         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12820         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12821         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12822         portability problems.
12823
12824 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12825
12826         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12827         line is also considered for output. Quoted function name in shell
12828         command, so temporary files for functions like MyClass::operator()
12829         are removed correctly without errors.
12830
12831 2010-11-09  Bruno Haible  <bruno@clisp.org>
12832
12833         * doc/posix-functions/strerror.texi: List more failing platforms.
12834
12835         * doc/posix-functions/strerror.texi: Add a comment.
12836
12837 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12838
12839         fdopendir: fix bug on MacOS X when low on file descriptors
12840
12841         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12842         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12843         All callers changed.
12844         (fdopendir): Invoke save_cwd at the top level, not after using
12845         multiple dup() calls to use up file descriptors.  Then retry
12846         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12847         less than the maximum number of open file descriptors, because
12848         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12849         on Mac OS X 10.6.4 for tar 1.24
12850         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12851         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12852         and for tar 1.25
12853         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12854
12855 2010-11-07  Bruno Haible  <bruno@clisp.org>
12856
12857         vasnprintf: Support I flag on glibc systems.
12858         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12859         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12860         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12861         snprintf function.
12862         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12863         glibc systems.
12864         * tests/test-vasnprintf-posix3.c: New file.
12865         * modules/vasnprintf-posix-tests (Files): Add it.
12866         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12867
12868 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12869
12870         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12871         * MODULES.html.sh: For compiler warnings, use name
12872         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12873
12874 2010-11-05  Eric Blake  <eblake@redhat.com>
12875
12876         ceil, floor: avoid spurious failure with icc
12877         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12878         [denormals-as-zero] when optimizing without -mieee-fp option.
12879         * tests/test-floorf2.c (floorf_reference): Likewise.
12880         * tests/test-ceilf1.c (dummy): New function.
12881         (main): Use it to outsmart icc's optimization.
12882         * tests/test-floorf1.c (dummy, main): Likewise.
12883
12884         tests: require working signbit
12885         * modules/ceilf-tests (Depends-on): Add signbit.
12886         * modules/ceill-tests (Depends-on): Likewise.
12887         * modules/floorf-tests (Depends-on): Likewise.
12888         * modules/floorl-tests (Depends-on): Likewise.
12889         * modules/round-tests (Depends-on): Likewise.
12890         * modules/roundf-tests (Depends-on): Likewise.
12891         * modules/roundl-tests (Depends-on): Likewise.
12892         * modules/trunc-tests (Depends-on): Likewise.
12893         * modules/truncf-tests (Depends-on): Likewise.
12894         * modules/truncl-tests (Depends-on): Likewise.
12895
12896         strtod: work around icc bug
12897         * lib/strtod.c (minus_zero): Define to working value.
12898         (strtod): Use it to avoid icc bug.
12899
12900         copysign: enhance tests
12901         * modules/copysign-tests (Files): Add minus-zero.h.
12902         * tests/test-copysign.c (main): Also test zeros.
12903
12904 2010-11-04  Eric Blake  <eblake@redhat.com>
12905
12906         ceil, floor, round, trunc: enhance tests of -0
12907         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12908         * tests/test-ceill.c (main): Likewise.
12909         * tests/test-floorf1.c (main): Likewise.
12910         * tests/test-floorl.c (main): Likewise.
12911         * tests/test-round1.c (main): Likewise.
12912         * tests/test-roundf1.c (main): Likewise.
12913         * tests/test-roundl.c (main): Likewise.
12914         * tests/test-trunc1.c (main): Likewise.
12915         * tests/test-truncf1.c (main): Likewise.
12916         * tests/test-truncl.c (main): Likewise.
12917
12918 2010-11-04  Eric Blake  <eblake@redhat.com>
12919
12920         frexp, tests: work around ICC bug with -zero
12921         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12922         works with more compilers.
12923         * tests/minus-zero.h: New file.
12924         * modules/ceilf-tests (Files): Include it.
12925         * modules/ceill-tests (Files): Likewise.
12926         * modules/floorf-tests (Files): Likewise.
12927         * modules/floorl-tests (Files): Likewise.
12928         * modules/frexp-nolibm-tests (Files): Likewise.
12929         * modules/frexp-tests (Files): Likewise.
12930         * modules/frexpl-nolibm-tests (Files): Likewise.
12931         * modules/frexpl-tests (Files): Likewise.
12932         * modules/isnan-tests (Files): Likewise.
12933         * modules/isnand-nolibm-tests (Files): Likewise.
12934         * modules/isnand-tests (Files): Likewise.
12935         * modules/isnanf-nolibm-tests (Files): Likewise.
12936         * modules/isnanf-tests (Files): Likewise.
12937         * modules/isnanl-nolibm-tests (Files): Likewise.
12938         * modules/isnanl-tests (Files): Likewise.
12939         * modules/round-tests (Files): Likewise.
12940         * modules/roundf-tests (Files): Likewise.
12941         * modules/roundl-tests (Files): Likewise.
12942         * modules/ldexpl-tests (Files): Likewise.
12943         * modules/signbit-tests (Files): Likewise.
12944         * modules/snprintf-posix-tests (Files): Likewise.
12945         * modules/sprintf-posix-tests (Files): Likewise.
12946         * modules/strtod-tests (Files): Likewise.
12947         * modules/trunc-tests (Files): Likewise.
12948         * modules/truncf-tests (Files): Likewise.
12949         * modules/truncl-tests (Files): Likewise.
12950         * modules/vsnprintf-posix-tests (Files): Likewise.
12951         * modules/vsprintf-posix-tests (Files): Likewise.
12952         * modules/vasnprintf-posix-tests (Files): Likewise.
12953         * modules/vasprintf-posix-tests (Files): Likewise.
12954         * tests/test-ceilf1.c (main): Use it.
12955         * tests/test-ceill.c (main): Likewise.
12956         * tests/test-floorf1.c (main): Likewise.
12957         * tests/test-floorl.c (main): Likewise.
12958         * tests/test-frexp.c (main): Likewise.
12959         * tests/test-frexpl.c (main): Likewise.
12960         * tests/test-isnan.c (main): Likewise.
12961         * tests/test-isnand.h (main): Likewise.
12962         * tests/test-isnanf.h (main): Likewise.
12963         * tests/test-isnanl.h (main): Likewise.
12964         * tests/test-ldexpl.c (main): Likewise.
12965         * tests/test-round.c (main): Likewise.
12966         * tests/test-roundf.c (main): Likewise.
12967         * tests/test-roundl.c (main): Likewise.
12968         * tests/test-signbit.c (test_signbitf, test_signbitd)
12969         (test_signbitl): Likewise.
12970         * tests/test-snprintf-posix.h (test_function): Likewise.
12971         * tests/test-sprintf-posix.h (test_function): Likewise.
12972         * tests/test-strtod.c (main): Likewise.
12973         * tests/test-trunc1.c (main): Likewise.
12974         * tests/test-truncf1.c (main): Likewise.
12975         * tests/test-truncl.c (main): Likewise.
12976
12977         isnanl: work around icc bug
12978         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12979
12980 2010-11-03  Eric Blake  <eblake@redhat.com>
12981
12982         tests: fix compiler warnings
12983         * tests/test-getopt.h (test_getopt): Fix condition.
12984         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12985         * tests/test-pipe2.c (main): Likewise.
12986         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12987
12988         utimens: fix broken m4 test
12989         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12990
12991 2010-10-28  Bruno Haible  <bruno@clisp.org>
12992
12993         posix_spawn*, getdtablesize: Relax license.
12994         * modules/posix_spawn (License): Change to LGPLv2+.
12995         * modules/posix_spawnp (License): Likewise.
12996         * modules/posix_spawn-internal (License): Likewise.
12997         * modules/posix_spawnattr_init (License): Likewise.
12998         * modules/posix_spawnattr_getflags (License): Likewise.
12999         * modules/posix_spawnattr_setflags (License): Likewise.
13000         * modules/posix_spawnattr_getpgroup (License): Likewise.
13001         * modules/posix_spawnattr_setpgroup (License): Likewise.
13002         * modules/posix_spawnattr_getschedparam (License): Likewise.
13003         * modules/posix_spawnattr_setschedparam (License): Likewise.
13004         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13005         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13006         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13007         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13008         * modules/posix_spawnattr_getsigmask (License): Likewise.
13009         * modules/posix_spawnattr_setsigmask (License): Likewise.
13010         * modules/posix_spawnattr_destroy (License): Likewise.
13011         * modules/posix_spawn_file_actions_init (License): Likewise.
13012         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13013         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13014         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13015         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13016         * modules/getdtablesize (License): Likewise.
13017         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13018
13019 2010-10-26  Bruno Haible  <bruno@clisp.org>
13020
13021         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13022         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13023         Cygwin and mingw.
13024         Suggested by Eric Blake.
13025
13026 2010-10-26  Bruno Haible  <bruno@clisp.org>
13027
13028         stdio: Work around compilation error due to renameat() on Solaris 10.
13029         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13030         * lib/renameat.c: Don't include <unistd.h> here.
13031         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13032         Reported by Paul Eggert and Eric Blake.
13033
13034 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13035
13036         renameat: port to Solaris 10, which declares renameat in unistd.h
13037
13038         * lib/renameat.c: Include unistd.h before stdio.h, because
13039         Solaris 10 declares renameat in unistd.h.  Problem encountered
13040         when building GNU tar 1.24 on Solaris 10.
13041
13042 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13043
13044         fdopendir: fix C89 compilation
13045         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13046         compilers.
13047
13048 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13049
13050         inttostr: simplify by removing unnecessary redundancy
13051         * lib/anytostr.c: Don't include verify.h.
13052         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13053         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13054         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13055         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13056         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13057         Likewise.
13058         * modules/inttostr (Depends-on): Remove 'verify'.
13059
13060 2010-10-23  Bruno Haible  <bruno@clisp.org>
13061
13062         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13063         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13064         Reported by Eric Blake.
13065
13066 2010-10-23  Bruno Haible  <bruno@clisp.org>
13067
13068         Tests: Fix LOCALE_JA on MirBSD 10.
13069         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13070         to an UTF-8 locale.
13071         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13073         Reported by Eric Blake.
13074
13075 2010-10-21  Bruno Haible  <bruno@clisp.org>
13076
13077         nl_langinfo test: Avoid test failure on NetBSD 5.
13078         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13079         Reported by Eric Blake.
13080
13081 2010-10-21  Eric Blake  <eblake@redhat.com>
13082
13083         c-stack: work around libsigsegv 2.8 bug
13084         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13085         overflow on at least PowerPC64.
13086
13087 2010-10-17  Bruno Haible  <bruno@clisp.org>
13088
13089         userspec: Drop redundant file.
13090         * modules/userspec (Files): Remove lib/inttostr.h.
13091
13092 2010-10-17  Bruno Haible  <bruno@clisp.org>
13093
13094         nl_langinfo tests: Silence some warnings.
13095         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13096         Reported by Jim Meyering.
13097
13098 2010-10-17  Bruno Haible  <bruno@clisp.org>
13099
13100         Make use of GCC's attribute __alloc_size__.
13101         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13102         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13103         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13104         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13105         __alloc_size__.
13106         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13107         Suggested by Jim Meyering.
13108
13109 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13110
13111         bootstrap: anchor .gitignore entries.
13112         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13113         with...
13114         (insert_vc_ignore): ... this new function, which prepends `/' to
13115         all .gitignore entries before passing them to
13116         insert_sorted_if_absent.
13117
13118 2010-10-16  Bruno Haible  <bruno@clisp.org>
13119
13120         nextafter: Fix configure check.
13121         * modules/nextafter (configure.ac): Correct expected prototype.
13122
13123 2010-10-16  Bruno Haible  <bruno@clisp.org>
13124
13125         termios: Update documentation.
13126         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13127
13128 2010-10-16  Bruno Haible  <bruno@clisp.org>
13129
13130         tests: Make them compile with TinyCC.
13131         * tests/test-strstr.c (main): Remove parentheses around array
13132         initializer.
13133
13134 2010-10-15  Eric Blake  <eblake@redhat.com>
13135
13136         ignore-value: make header idempotent
13137         * lib/ignore-value.h: Add double-inclusion guards.
13138         Reported by Stefan Berger.
13139
13140 2010-10-15  Jim Meyering  <meyering@redhat.com>
13141
13142         GNUmakefile: handle "stable" target, not "major"
13143         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13144         lists in maint.mk and announce-gen.  Without this, "make stable"
13145         would fail to ensure that $(VERSION) is up to date.
13146
13147 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13148
13149         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13150         & co.
13151
13152 2010-10-14  Bruno Haible  <bruno@clisp.org>
13153
13154         vasnprintf: Don't set errno to 0.
13155         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13156         block that sets it to 0.
13157         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13158
13159 2010-10-14  Bruno Haible  <bruno@clisp.org>
13160
13161         socketlib: Fix.
13162         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13163         gl_PREREQ_SYS_H_WINSOCK2.
13164         Reported by Ian Beckwith <ianb@erislabs.net>.
13165
13166 2010-10-13  Jim Meyering  <meyering@redhat.com>
13167
13168         test-select-stdin.c: avoid warn_unused_result warnings
13169         * tests/test-select-stdin.c: Include "macros.h".
13170         ASSERT that read and fflush succeed.
13171
13172 2010-10-13  Jim Meyering  <meyering@redhat.com>
13173
13174         git-version-gen: do require git-VC'd files in cwd
13175         * build-aux/git-version-gen: Reject a git version string
13176         if there are no commits associated with the current directory.
13177         This avoids an unlikely false-positive (unrelated dir whose parent
13178         repository also contains a tag matching v*), as pointed out
13179         by Giuseppe Scrivano in
13180         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13181
13182 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13183
13184         argv-iter: omit nonconforming declaration
13185         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13186         enum arg_iter_err declaration, which doesn't conform to C99.
13187         Solaris 10 cc warns about this.
13188
13189 2010-10-13  Eric Blake  <eblake@redhat.com>
13190
13191         termios: fix compilation on mingw
13192         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13193         (gl_TERMIOS_H): Adjust it on mingw.
13194         * modules/termios (Makefile.am): Substitute new key.
13195         * lib/termios.in.h (includes): Make include_next conditional.
13196         * doc/posix-headers/termios.texi (termios.h): Update
13197         documentation.
13198         Reported by Daniel P. Berrange.
13199
13200 2010-10-13  Jim Meyering  <meyering@redhat.com>
13201
13202         git-version-gen: don't require that .git/ be in the current dir
13203         * build-aux/git-version-gen: Adjust this script so that it works
13204         when run from any working directory beneath the top-level .git/-
13205         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13206         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13207
13208         test-select: avoid warn_unused_result warnings
13209         * tests/test-select.c: Include "macros.h".
13210         ASSERT that each call to read, write, and pipe succeeds.
13211         While not technically required, also check each "close".
13212         * modules/select-tests (Files): Add tests/macros.h.
13213
13214         test-symlinkat: remove declaration of unused local
13215         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13216
13217         test-inttostr: avoid shadowing warnings
13218         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13219         and use malloc rather than the stack for the same reason as
13220         mentioned in the comment justifying the other allocation.
13221
13222 2010-10-11  Bruno Haible  <bruno@clisp.org>
13223
13224         stdlib: Allow multiple gnulib generated replacements to coexist.
13225         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13226         Reported by Sam Steingold <sds@gnu.org>.
13227
13228 2010-10-11  Jim Meyering  <meyering@redhat.com>
13229
13230         fix a documentation typo
13231         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13232
13233 2010-10-11  Eric Blake  <eblake@redhat.com>
13234
13235         futimens: work around Solaris 11 bug
13236         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13237         * tests/test-futimens.h (test_futimens): Enhance, rather than
13238         weaken test.
13239         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13240
13241 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13242
13243         Indentation.
13244         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13245         higher-level operators more to the left.
13246
13247 2010-10-11  Jim Meyering  <meyering@redhat.com>
13248
13249         test-futimens: avoid unwarranted test failure on Solaris 5.11
13250         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13251         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13252         because it tries to dereference the NULL name argument.
13253
13254 2010-10-11  Bruno Haible  <bruno@clisp.org>
13255
13256         Indentation.
13257         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13258         indentation.
13259
13260 2010-10-11  Jim Meyering  <meyering@redhat.com>
13261
13262         spawn.in.h: make indentation consistent with parentheses
13263         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13264         Make indentation consistent with parentheses.
13265
13266 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13267
13268         Fix mismatched parens in previous commit
13269         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13270         parens.
13271
13272 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13273
13274         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13275
13276         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13277         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13278         * lib/malloca.c: Include "verify.h".
13279         (verify1): Remove, replacing with a verify call.
13280         * lib/relocwrapper.c (verify1): Likewise.
13281         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13282         Likewise.
13283         * modules/malloca (Depends-on): Add 'verify'.
13284         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13285         * modules/vasnprintf (Depends-on): Add 'verify'.
13286         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13287         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13288         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13289         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13290         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13291         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13292         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13293
13294         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13295
13296         Formerly the style was sometimes 2*X - 1, because the C standard
13297         was wrongly thought to disallow ?: in integral constant expressions.
13298         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13299         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13300         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13301         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13302         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13303         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13304         verify that time_t cannot be floating.
13305
13306 2010-10-08  Eric Blake  <eblake@redhat.com>
13307
13308         time: enforce recent POSIX ruling that time_t is integral
13309         * lib/time.in.h (__time_t_must_be_integral): Detect any
13310         problematic systems, allowing the rest of gnulib to assume POSIX.
13311
13312 2010-10-08  Jim Meyering  <meyering@redhat.com>
13313
13314         fdopendir: fix a bug on systems lacking openat and /proc support
13315         OpenBSD 4.7 is one such system.  The most noticeable effect was
13316         failure of any application making nontrivial use of fts: rm, du,
13317         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13318           ./rm: traversal failed: `a': Bad file descriptor
13319         Debugging that, you see that even though FD 6 was closed just
13320         prior to the opendir call in fd_clone_opendir, its resulting
13321         dir->dd_fd was 8, rather than the expected value of 6:
13322
13323         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13324         93                close (fd);
13325         (gdb) n
13326         94                dir = fd_clone_opendir (dupfd);
13327         (gdb) n
13328         95                saved_errno = errno;
13329         (gdb) p dir->dd_fd
13330         $11 = 8
13331
13332         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13333         The problem is that on OpenBSD, fd_clone_opendir has to resort
13334         to using the old-style save/restore CWD mechanism, due to its
13335         lack of openat/proc support, and *that* would steal the FD (6)
13336         that opendir was supposed to use.
13337
13338         The fix is to squirrel away the desired FD so that save_cwd uses a
13339         different one, and then free the dest FD right before calling opendir.
13340         That guarantees opendir will use the required file descriptor.
13341
13342         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13343
13344 2010-10-08  Bruno Haible  <bruno@clisp.org>
13345
13346         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13347         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13348
13349 2010-10-08  Bruno Haible  <bruno@clisp.org>
13350
13351         nanosleep: Make replacement POSIX compliant.
13352         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13353         is out of range.
13354         Reported by Jim Meyering.
13355
13356 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13357
13358         bootstrap: add hook for altering gnulib.mk, for Bison
13359         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13360         the Bison bootstrapping process can rewrite file names and variables
13361         in this file before later parts of 'bootstrap' use the file.
13362         Bison wants to include lib/gnulib.mk from the top-level makefile,
13363         so it needs the file names in this file to be relative to the top
13364         level, not relative to lib; plus it needs variable names to be
13365         rewritten.
13366         (slurp): Use the new function.
13367
13368         bootstrap: reformat for readability
13369         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13370
13371 2010-10-08  Eric Blake  <eblake@redhat.com>
13372
13373         docs: update cygwin progress
13374         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13375         1.7.7.
13376         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13377         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13378         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13379         * doc/posix-functions/carg.texi (carg): Likewise.
13380         * doc/posix-functions/cargf.texi (cargf): Likewise.
13381         * doc/posix-functions/casin.texi (casin): Likewise.
13382         * doc/posix-functions/casinf.texi (casinf): Likewise.
13383         * doc/posix-functions/casinh.texi (casinh): Likewise.
13384         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13385         * doc/posix-functions/catan.texi (catan): Likewise.
13386         * doc/posix-functions/catanf.texi (catanf): Likewise.
13387         * doc/posix-functions/catanh.texi (catanh): Likewise.
13388         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13389         * doc/posix-functions/ccos.texi (ccos): Likewise.
13390         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13391         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13392         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13393         * doc/posix-functions/cexp.texi (cexp): Likewise.
13394         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13395         * doc/posix-functions/cimag.texi (cimag): Likewise.
13396         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13397         * doc/posix-functions/clog.texi (clog): Likewise.
13398         * doc/posix-functions/clogf.texi (clogf): Likewise.
13399         * doc/posix-functions/conj.texi (conj): Likewise.
13400         * doc/posix-functions/conjf.texi (conjf): Likewise.
13401         * doc/posix-functions/cpow.texi (cpow): Likewise.
13402         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13403         * doc/posix-functions/cproj.texi (cproj): Likewise.
13404         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13405         * doc/posix-functions/creal.texi (creal): Likewise.
13406         * doc/posix-functions/crealf.texi (crealf): Likewise.
13407         * doc/posix-functions/csin.texi (csin): Likewise.
13408         * doc/posix-functions/csinf.texi (csinf): Likewise.
13409         * doc/posix-functions/csinh.texi (csinh): Likewise.
13410         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13411         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13412         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13413         * doc/posix-functions/ctan.texi (ctan): Likewise.
13414         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13415         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13416         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13417         * doc/posix-headers/complex.texi (complex.h): Likewise.
13418
13419 2010-10-07  Jim Meyering  <meyering@redhat.com>
13420
13421         parse-datetime: avoid compilation failure on OpenBSD 4.7
13422         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13423         This works around a compilation failure on OpenBSD 4.7:
13424         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13425
13426 2010-10-07  Eric Blake  <eblake@redhat.com>
13427
13428         docs: update cygwin progress
13429         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13430         1.7.6.
13431         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13432         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13433         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13434         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13435         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13436         Likewise.
13437         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13438         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13439         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13440         Likewise.
13441         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13442         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13443         Likewise.
13444         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13445         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13446         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13447         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13448         Likewise.
13449         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13450         Likewise.
13451         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13452
13453         docs: update parse-datetime history
13454         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13455         documentation of this function's history and alternatives.
13456
13457         cygwin: use more robust version check
13458         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13459         exclude an eventual cygwin 1.9.1.
13460         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13461         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13462         (gl_FUNC_STRCASESTR): Likewise.
13463         Reported by Bruno Haible.
13464
13465 2010-10-06  Bruno Haible  <bruno@clisp.org>
13466
13467         string, sys_select: Avoid #including large headers unless necessary.
13468         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13469         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13470         OSF/1, BeOS, Haiku.
13471         Reported by Jim Meyering.
13472
13473 2010-10-05  Eric Blake  <eblake@redhat.com>
13474
13475         memmem, strstr, strcasestr: fix bug with long periodic needle
13476         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13477         periodic needle having false positive.
13478         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13479         and cygwin 1.7.7.
13480         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13482         (gl_FUNC_STRCASESTR): Likewise.
13483         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13484         * tests/test-memmem.c (main): Expose the bug.
13485         * tests/test-strcasestr.c (main): Likewise.
13486         * tests/test-strstr.c (main): Likewise.
13487         * tests/test-c-strcasestr.c (main): Likewise.
13488         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13489         * doc/posix-functions/strstr.texi (strstr): Likewise.
13490         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13491         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13492
13493 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13494
13495         parse-datetime: do some more renaming
13496         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13497         parse_datetime, not get_date.  Mention the renaming.
13498         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13499         in comments.
13500         * m4/bison.m4: Likewise.
13501
13502 2010-10-05  Eric Blake  <eblake@redhat.com>
13503
13504         parse-datetime: better name than get_date
13505         * NEWS: Reword the deprecation notice.
13506         * modules/get_date: Rename to modules/parse-datetime.
13507         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13508         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13509         * lib/get_date.y: Rename to lib/parse-datetime.y.
13510         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13511         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13512         * doc/getdate.texi: Provide fallback wrapper.
13513         * lib/getdate.h: Move guts, and wrap...
13514         * lib/parse-datetime.h: ...new file.
13515         * lib/parse-datetime.y (get_date): Rename...
13516         (parse_datetime): ...to this.
13517         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13518         (gl_PARSE_DATETIME): ...to this.
13519         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13520         documentation.
13521         * modules/getdate (Files): Provide fallback docs and header.
13522         (Notice, Depends-on): Update references.
13523         * tests/test-parse-datetime.c: Likewise.
13524         * DEPENDENCIES: Likewise.
13525         * MODULES.html.sh (Date and time <time.h>): Likewise.
13526         * doc/parse-datetime.texi (Date input formats)
13527         (Authors of parse_datetime): Likewise.
13528         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13529         (Include): Likewise.
13530         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13531         * gnulib-tool: Likewise.
13532         * m4/bison.m4 (gl_BISON): Likewise.
13533         Suggested by Bruno Haible.
13534
13535 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13536
13537         more ports to Solaris tr, which needs [] around ranges
13538         * gnulib-tool: Solaris tr needs [] around ranges.
13539         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13540         * tests/test-pipe-filter-gi1.c (main): Likewise.
13541         * tests/test-pipe-filter-ii1.c (main): Likewise.
13542
13543 2010-10-05  Eric Blake  <eblake@redhat.com>
13544
13545         bootstrap: fix Solaris regression
13546         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13547         around ranges.
13548         Reported by Pádraig Brady.
13549
13550         bootstrap: work with pkg-config
13551         * build-aux/bootstrap (check_versions): Also transliterate - in
13552         prerequisite name.
13553         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13554         prerequisites that were already found, to avoid confusion.
13555         Reported by Justin Clift.
13556
13557         faccessat: remove unused wrappers
13558         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13559         presence of these wrappers dragged in -lgen on Solaris.
13560         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13561
13562 2010-10-05  Jim Meyering  <meyering@redhat.com>
13563
13564         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13565         * Makefile (sc_pragma_columns): New syntax-check rule.
13566
13567 2010-10-04  Bruno Haible  <bruno@clisp.org>
13568
13569         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13570         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13571         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13572         Reported by Bruce Korb and Eric Blake.
13573
13574 2010-10-04  Bruno Haible  <bruno@clisp.org>
13575
13576         threadlib: Make option --with-libpth-prefix work.
13577         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13578         use $LIBPTH, not just -lpth.
13579
13580 2010-10-04  Bruno Haible  <bruno@clisp.org>
13581
13582         Avoid line length limitation from HP NonStop system header files.
13583         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13584         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13585         * lib/ctype.in.h: Likewise.
13586         * lib/dirent.in.h: Likewise.
13587         * lib/errno.in.h: Likewise.
13588         * lib/fcntl.in.h: Likewise.
13589         * lib/float.in.h: Likewise.
13590         * lib/getopt.in.h: Likewise.
13591         * lib/iconv.in.h: Likewise.
13592         * lib/inttypes.in.h: Likewise.
13593         * lib/langinfo.in.h: Likewise.
13594         * lib/locale.in.h: Likewise.
13595         * lib/math.in.h: Likewise.
13596         * lib/netdb.in.h: Likewise.
13597         * lib/netinet_in.in.h: Likewise.
13598         * lib/poll.in.h: Likewise.
13599         * lib/pthread.in.h: Likewise.
13600         * lib/pty.in.h: Likewise.
13601         * lib/sched.in.h: Likewise.
13602         * lib/se-selinux.in.h: Likewise.
13603         * lib/search.in.h: Likewise.
13604         * lib/signal.in.h: Likewise.
13605         * lib/spawn.in.h: Likewise.
13606         * lib/stdarg.in.h: Likewise.
13607         * lib/stddef.in.h: Likewise.
13608         * lib/stdint.in.h: Likewise.
13609         * lib/stdio.in.h: Likewise.
13610         * lib/stdlib.in.h: Likewise.
13611         * lib/string.in.h: Likewise.
13612         * lib/strings.in.h: Likewise.
13613         * lib/sys_file.in.h: Likewise.
13614         * lib/sys_ioctl.in.h: Likewise.
13615         * lib/sys_select.in.h: Likewise.
13616         * lib/sys_socket.in.h: Likewise.
13617         * lib/sys_stat.in.h: Likewise.
13618         * lib/sys_time.in.h: Likewise.
13619         * lib/sys_times.in.h: Likewise.
13620         * lib/sys_utsname.in.h: Likewise.
13621         * lib/sys_wait.in.h: Likewise.
13622         * lib/sysexits.in.h: Likewise.
13623         * lib/termios.in.h: Likewise.
13624         * lib/time.in.h: Likewise.
13625         * lib/unistd.in.h: Likewise.
13626         * lib/wchar.in.h: Likewise.
13627         * lib/wctype.in.h: Likewise.
13628         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13629         * modules/ctype (Makefile.am): Likewise.
13630         * modules/dirent (Makefile.am): Likewise.
13631         * modules/errno (Makefile.am): Likewise.
13632         * modules/fcntl-h (Makefile.am): Likewise.
13633         * modules/float (Makefile.am): Likewise.
13634         * modules/getopt-posix (Makefile.am): Likewise.
13635         * modules/iconv-h (Makefile.am): Likewise.
13636         * modules/inttypes (Makefile.am): Likewise.
13637         * modules/langinfo (Makefile.am): Likewise.
13638         * modules/locale (Makefile.am): Likewise.
13639         * modules/math (Makefile.am): Likewise.
13640         * modules/netdb (Makefile.am): Likewise.
13641         * modules/netinet_in (Makefile.am): Likewise.
13642         * modules/poll-h (Makefile.am): Likewise.
13643         * modules/pthread (Makefile.am): Likewise.
13644         * modules/pty (Makefile.am): Likewise.
13645         * modules/sched (Makefile.am): Likewise.
13646         * modules/search (Makefile.am): Likewise.
13647         * modules/selinux-h (Makefile.am): Likewise.
13648         * modules/signal (Makefile.am): Likewise.
13649         * modules/spawn (Makefile.am): Likewise.
13650         * modules/stdarg (Makefile.am): Likewise.
13651         * modules/stddef (Makefile.am): Likewise.
13652         * modules/stdint (Makefile.am): Likewise.
13653         * modules/stdio (Makefile.am): Likewise.
13654         * modules/stdlib (Makefile.am): Likewise.
13655         * modules/string (Makefile.am): Likewise.
13656         * modules/strings (Makefile.am): Likewise.
13657         * modules/sys_file (Makefile.am): Likewise.
13658         * modules/sys_ioctl (Makefile.am): Likewise.
13659         * modules/sys_select (Makefile.am): Likewise.
13660         * modules/sys_socket (Makefile.am): Likewise.
13661         * modules/sys_stat (Makefile.am): Likewise.
13662         * modules/sys_time (Makefile.am): Likewise.
13663         * modules/sys_times (Makefile.am): Likewise.
13664         * modules/sys_utsname (Makefile.am): Likewise.
13665         * modules/sys_wait (Makefile.am): Likewise.
13666         * modules/sysexits (Makefile.am): Likewise.
13667         * modules/termios (Makefile.am): Likewise.
13668         * modules/time (Makefile.am): Likewise.
13669         * modules/unistd (Makefile.am): Likewise.
13670         * modules/wchar (Makefile.am): Likewise.
13671         * modules/wctype (Makefile.am): Likewise.
13672
13673 2010-10-04  Bruno Haible  <bruno@clisp.org>
13674
13675         read-file tests: Avoid a test failure on NonStop Kernel.
13676         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13677         a regular file.
13678         Reported by Joachim Schmitz <schmitz@hp.com>.
13679
13680 2010-10-03  Bruno Haible  <bruno@clisp.org>
13681
13682         gnulib-tool: Fixes for --create-testdir with --libtool.
13683         * gnulib-tool (func_get_automake_snippet): Don't augment
13684         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13685         an executable.
13686         (func_create_testdir): Handle module 'alloca' like func_import.
13687         Reported by Bruce Korb <bruce.korb@gmail.com>.
13688
13689 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13690
13691         Avoid some lines longer than 80 characters.
13692         * lib/stdint.in.h: Break long comment lines.
13693         * lib/math.in.h: Likewise.
13694         (_GL_NUM_UINT_WORDS): New macro, for readability.
13695         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13696         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13697         * lib/stdlib.in.h: Likewise.
13698         * lib/spawn.in.h: Likewise.
13699         * lib/sys_socket.in.h: Update an URL.
13700         * lib/sys_stat.in.h: Break long line.
13701
13702 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13703
13704         Improve pmccabe2html.
13705         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13706         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13707         when the sources change. Remove the line in the HTML about "Used
13708         ranges" (which implied that there might be other unused ranges),
13709         rename "Resume" to "Summary" (easier to understand for more users).
13710         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13711         styles, and some unnecessary blank lines.
13712
13713 2010-10-03  Bruno Haible  <bruno@clisp.org>
13714             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13715
13716         acl: Add support for ACLs on NonStop Kernel.
13717         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13718         Check whether the function aclsort() exists.
13719         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13720         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13721         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13722         (acl_nontrivial [HAVE_ACLSORT]: New function.
13723         (file_has_acl): Implement for NonStop Kernel.
13724         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13725         (qset_acl): Implement for NonStop Kernel.
13726         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13727         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13728         (main): Implement for NonStop Kernel.
13729         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13730         Kernel. Handle this flavor.
13731         * tests/test-set-mode-acl.sh: Likewise.
13732         * tests/test-copy-acl.sh: Likewise.
13733         * tests/test-copy-file.sh: Likewise.
13734
13735 2010-10-03  Bruno Haible  <bruno@clisp.org>
13736
13737         Info about ACLs on NonStop Kernel.
13738         * doc/acl-resources.txt: Add info about NonStop Kernel.
13739         References by Joachim Schmitz <schmitz@hp.com>.
13740
13741 2010-10-02  Bruno Haible  <bruno@clisp.org>
13742
13743         Define missing EDQUOT on NonStop Kernel.
13744         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13745         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13747         missing.
13748         * doc/posix-headers/errno.texi: Mention the NSK bug.
13749         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13750         Reported by Joachim Schmitz <schmitz@hp.com>.
13751
13752 2010-10-02  Bruno Haible  <bruno@clisp.org>
13753
13754         Update doc for POSIX:2008.
13755         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13756         Update URL of POSIX specification.
13757
13758 2010-10-02  Bruno Haible  <bruno@clisp.org>
13759
13760         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13761         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13762         from gnulib, not from Automake.
13763
13764 2010-10-02  Bruno Haible  <bruno@clisp.org>
13765
13766         New module 'system-posix'.
13767         * modules/system-posix: New file.
13768         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13769         module is present.
13770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13771         GNULIB_SYSTEM_POSIX.
13772         * modules/stdlib (Depends-on): Remove sys_wait.
13773         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13774         * doc/posix-functions/system.texi: Mention the new module.
13775         * doc/posix-headers/stdlib.texi: Likewise.
13776         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13777         define test_sys_wait_macros to a no-op.
13778         Reported by Sam Steingold <sds@gnu.org>.
13779
13780 2010-09-30  Bruno Haible  <bruno@clisp.org>
13781
13782         More renaming from 'getdate' to 'get_date'.
13783         * doc/get_date.texi: Renamed from doc/getdate.texi.
13784         * modules/get_date (Files): Update.
13785         * MODULES.html.sh (Date and time <time.h>): Update.
13786         * DEPENDENCIES: Update.
13787         * gnulib-tool: Update comment.
13788         * m4/bison.m4 (gl_BISON): Likewise.
13789         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13790
13791 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13792
13793         bootstrap: support ACLOCAL_FLAGS during aclocal
13794         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13795         can add additional -I dir for third-party .m4 files.
13796
13797 2010-09-30  Eric Blake  <eblake@redhat.com>
13798
13799         bootstrap: use glibtoolize on MacOS
13800         * build-aux/bootstrap (check_versions): Convert libtool into
13801         libtoolize.
13802         (tool search): Move libtool check earlier, and look for
13803         glibtoolize for MacOS.
13804         (gnulib_tool_options): Auto-add --libtool when appropriate.
13805         Reported by Justin Clift.
13806
13807         poll: fix typo that broke test on MacOS
13808         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13809         Reported by Justin Clift.
13810
13811         getdate: rename to get_date
13812         Note: getdate.h is not renamed, to minimize client impact.
13813         * modules/getdate: Mark obsolete.  Move old contents...
13814         * modules/get_date: ...to new module name.
13815         * modules/getdate-tests: Move...
13816         * modules/get_date-tests: ...here.
13817         * m4/getdate.m4: Move...
13818         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13819         * lib/getdate.y: Move...
13820         * lib/get_date.y: ...here.
13821         * tests/test-getdate.c: Move...
13822         * tests/test-get_date.c: ...here.
13823         * doc/posix-functions/getdate.texi (getdate): Update name.
13824         * NEWS: Mention the change.
13825
13826 2010-09-29  Bruno Haible  <bruno@clisp.org>
13827
13828         Separate the module 'waitpid' from the module 'sys_wait'.
13829         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13830         present.
13831         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13832         gl_MODULE_INDICATOR_FOR_TESTS.
13833         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13834         * modules/sys_wait (Depends-on): Remove waitpid.
13835         (Makefile.am): Substitute GNULIB_WAITPID.
13836         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13837         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13838         signature only if the 'waitpid' module is present.
13839         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13840         * NEWS: Mention the change.
13841         * modules/grantpt (Depends-on): Add waitpid.
13842         * modules/wait-process (Depends-on): Likewise.
13843
13844 2010-09-29  Bruno Haible  <bruno@clisp.org>
13845
13846         More tests for module 'sys_wait'.
13847         * modules/sys_wait-c++-tests: New file.
13848         * tests/test-sys_wait-c++.cc: New file.
13849         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13850         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13851
13852 2010-09-29  Bruno Haible  <bruno@clisp.org>
13853
13854         New module 'waitpid'.
13855         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13856         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13857         Don't include <process.h>.
13858         (waitpid): Declare only, using modern idiom.
13859         * m4/waitpid.m4: New file.
13860         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13861         * modules/waitpid: New file.
13862         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13863         (Makefile.am): Update.
13864         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13865
13866 2010-09-28  Bruno Haible  <bruno@clisp.org>
13867
13868         poll: Assume ANSI C.
13869         * lib/poll.c (poll): Use an ANSI C declaration.
13870
13871 2010-09-28  Bruno Haible  <bruno@clisp.org>
13872
13873         poll-h: Create poll.h on all platforms.
13874         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13875         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13876         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13877         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13878         (gl_REPLACE_POLL_H): Don't set POLL_H.
13879         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13880         * modules/poll-h (Depends-on): Add include_next.
13881         (Makefile.am): Create poll.h unconditionally. Substitute also
13882         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13883
13884 2010-09-28  Bruno Haible  <bruno@clisp.org>
13885
13886         Tests for module 'poll-h'.
13887         * modules/poll-h-c++-tests: New file.
13888         * tests/test-poll-h-c++.cc: New file.
13889
13890         Tests for module 'poll-h'.
13891         * modules/poll-h-tests: New file.
13892         * tests/test-poll-h.c: New file.
13893
13894 2010-09-28  Bruno Haible  <bruno@clisp.org>
13895
13896         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13897         * modules/poll-h (Depends-on): Add 'extensions'.
13898
13899 2010-09-28  Bruno Haible  <bruno@clisp.org>
13900
13901         New module 'poll-h'.
13902         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13903         (poll): Use modern idiom.
13904         * modules/poll-h: New file.
13905         * modules/poll (Files): Remove lib/poll.in.h.
13906         (Depends-on): Add poll-h.
13907         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13908         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13909         * m4/poll_h.m4: New file.
13910         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13911         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13912         and invoke gl_REPLACE_POLL_H.
13913         * lib/poll.c: Use common idiom.
13914         * tests/test-poll.c: Likewise.
13915         * doc/posix-headers/poll.texi: Mention the poll-h module.
13916         Suggested by Eric Blake.
13917
13918 2010-09-26  Bruno Haible  <bruno@clisp.org>
13919
13920         sys_wait: Implement WSTOPSIG.
13921         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13922         Reported by Simon Josefsson.
13923
13924 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13925
13926         stdlib, sys_wait: Avoid compilation error on mingw.
13927         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13928
13929 2010-09-26  Bruno Haible  <bruno@clisp.org>
13930
13931         stdlib tests: Avoid code duplication.
13932         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13933         * modules/sys_wait-tests (Files): Likewise.
13934         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13935         * tests/test-stdlib.c: Include test-sys_wait.h.
13936         (main): Invoke test_sys_wait_macros.
13937         * tests/test-sys_wait.c: Include test-sys_wait.h.
13938         (main): Invoke test_sys_wait_macros.
13939
13940 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13941
13942         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13943         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13944         sure Windows sockets are working before calling getaddrinfo.
13945         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13946         * doc/gnulib.texi (Windows sockets): Fix typo.
13947
13948 2010-09-25  Bruno Haible  <bruno@clisp.org>
13949
13950         Tests for module 'regex-quote'.
13951         * modules/regex-quote-tests: New file.
13952         * tests/test-regex-quote.c: New file.
13953
13954         New module 'regex-quote'.
13955         * lib/regex-quote.h: New file.
13956         * lib/regex-quote.c: New file.
13957         * modules/regex-quote: New file.
13958         Suggested by Reuben Thomas <rrt@sc3d.org>.
13959
13960 2010-09-24  Bruno Haible  <bruno@clisp.org>
13961
13962         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13963         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13964
13965 2010-09-23  Bruno Haible  <bruno@clisp.org>
13966
13967         setenv: Relax license.
13968         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13969         Blake.
13970         Requested by Eric Blake.
13971
13972 2010-09-22  Bruno Haible  <bruno@clisp.org>
13973
13974         termios: Relax license.
13975         * modules/termios (License): Change to LGPLv2+.
13976         Requested by Eric Blake.
13977
13978 2010-09-22  Bruno Haible  <bruno@clisp.org>
13979
13980         threadlib: Allow the package to change the default to 'no'.
13981         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13982         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13983         Reported by Paul Eggert.
13984
13985 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13986             Bruno Haible  <bruno@clisp.org>
13987
13988         Fix endless loop in mbmemcasecoll.
13989         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13990         byte.
13991         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13992
13993 2010-09-22  Bruno Haible  <bruno@clisp.org>
13994
13995         Tests for module 'memcoll'.
13996         * modules/memcoll-tests: New file.
13997         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13998
13999         memcoll, xmemcoll: Clarify size vs. length.
14000         * modules/memcoll.c (memcoll0): Clarify specification.
14001         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14002         passed to collate_error.
14003
14004 2010-09-22  Bruno Haible  <bruno@clisp.org>
14005
14006         Tests for module 'memcasecmp'.
14007         * modules/memcasecmp-tests: New file.
14008         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14009
14010 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14011
14012         * lib/pthread.in.h: Add split double-inclusion guard, and include
14013         system <pthread.h> if there is one.  Use @@-style as in other
14014         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14015         pthread.h doesn't.
14016         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14017         (pthread_mutexattr_settype, pthread_mutex_trylock):
14018         New static inline functions, if there's no system <pthread.h>.
14019         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14020         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14021         Approximate with mutexes if the system lacks spinlocks, as in
14022         MacOS.
14023         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14024         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14025         @@-style.  Check for spinlocks separately.
14026         (gl_PTHREAD_DEFAULTS): New macro.
14027         * modules/pthread: Redo to use a more typical style for in.h files.
14028
14029 2010-09-21  Eric Blake  <eblake@redhat.com>
14030
14031         net_if: enhance tests
14032         * tests/test-net_if.c (main): Move signature checks earlier.
14033         Print failures to stderr.
14034         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14035         Document the bug that we do not yet fix.
14036
14037 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14038
14039         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14040         about gnulib, not GSS.
14041
14042 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14043
14044         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14045         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14046         for Emacs.
14047         * build-aux/pmccabe2html: Make Makefile.am example code more
14048         cut-and-paste friendly.
14049
14050 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14051
14052         * tests/test-net_if.c: New file.
14053         * modules/net_if-tests: New file.
14054
14055 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14056
14057         pthread: add pthread_spin_destroy
14058         * lib/pthread.in.h (pthread_spin_destroy): New function.
14059
14060 2010-09-19  Bruno Haible  <bruno@clisp.org>
14061
14062         gnulib-tool: Fix --help output.
14063         * gnulib-tool (func_usage): Fix help message.
14064         Reported by Reuben Thomas <rrt@sc3d.org>.
14065
14066 2010-09-18  Jim Meyering  <meyering@redhat.com>
14067
14068         maint.mk: avoid unexpanded \n in two diagnostics
14069         * top/maint.mk (sc_prohibit_always_true_header_tests):
14070         Don't use a literal \n in a halt=... assignment.  It would not be
14071         expanded, and the two \n bytes would appear in the diagnostic output
14072         rather than the desired newline.  Use halt=$$(printf ... instead.
14073         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14074
14075 2010-09-18  Bruno Haible  <bruno@clisp.org>
14076
14077         netinet_in: Doc tweak.
14078         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14079         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14080
14081 2010-09-18  Jim Meyering  <meyering@redhat.com>
14082
14083         init.sh: correct an outdated comment
14084         * tests/init.sh (create_exe_shims_):  s/function/alias/
14085
14086         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14087         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14088         a file named "*.exe" is removed between the glob expansion and the
14089         processing of that oddly named file.
14090
14091 2010-09-17  Eric Blake  <eblake@redhat.com>
14092
14093         mirbsd: add some more support
14094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14095         in BSD family.
14096         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14097         devices as OpenBSD.
14098         * m4/host-os.m4 (mirbsd): Add MirBSD.
14099
14100         tests: fix unportable assumption on sys/wait.h
14101         * tests/test-sys_wait.c (main): Relax test.
14102         * tests/test-stdlib.c (main): Likewise.
14103
14104         init.sh: accomodate directory with no .exes
14105         * tests/init.sh: Accomodate directory containing only scripts.
14106
14107         tests: avoid compiler warning
14108         * tests/test-stdlib.c (main): Use the variable.
14109
14110         fdutimens, fdutimensat: update signature, again
14111         * lib/utimens.h (gl_futimens): Delete, and move signature...
14112         (fdutimens): ...here.
14113         (fdutimensat): Rearrange signature.
14114         (lutimensat): Rename variable for clarity.
14115         * lib/fdutimensat.c (fdutimensat): Update signature.
14116         * lib/utimens.c (fdutimens): Likewise.
14117         (gl_futimens): Delete.
14118         (utimens, lutimens): Update callers.
14119         * lib/futimens.c (futimens): Likewise.
14120         * tests/test-fdutimensat.c: Likewise.
14121         * tests/test-utimens.c: Likewise.
14122         * tests/test-futimens.h: Update comment.
14123         * NEWS: Mention this.
14124         Suggested by Paul Eggert.
14125
14126 2010-09-17  Bruno Haible  <bruno@clisp.org>
14127
14128         Take over the maintenance of some older macros from Autoconf.
14129         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14130         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14131         GNU Autoconf.
14132         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14133         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14134
14135 2010-09-17  Eric Blake  <eblake@redhat.com>
14136
14137         fdutimensat: drop atflag validation
14138         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14139         with valid fd, to close a race scenario where futimens is
14140         unsupported and FILE was replaced by a symlink.
14141         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14142         accordingly.
14143         Suggested by Paul Eggert.
14144
14145 2010-09-16  Bruno Haible  <bruno@clisp.org>
14146
14147         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14148         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14149
14150 2010-09-16  Bruno Haible  <bruno@clisp.org>
14151
14152         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14153         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14154         login_tty exists.
14155         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14156
14157 2010-09-16  Bruno Haible  <bruno@clisp.org>
14158
14159         login_tty: Make the replacement code work on BSD systems.
14160         * lib/login_tty.c: Include <sys/ioctl.h>.
14161         (login_tty): Use ioctl TIOCSCTTY when available.
14162         * modules/login_tty (Depends-on): Add sys_ioctl.
14163         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14164
14165 2010-09-16  Bruno Haible  <bruno@clisp.org>
14166
14167         login_tty: Stricter unit test.
14168         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14169         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14170         and tcgetsid() after login_tty.
14171         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14172
14173 2010-09-16  Bruno Haible  <bruno@clisp.org>
14174
14175         New module 'tcgetsid'.
14176         * lib/tcgetsid.c: New file.
14177         * m4/tcgetsid.m4: New file.
14178         * modules/tcgetsid: New file.
14179         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14180         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14181         GNULIB_TCGETSID, HAVE_TCGETSID.
14182         * lib/termios.in.h: Include <sys/types.h>.
14183         (tcgetsid): New declaration.
14184         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14185         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14186         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14187         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14188
14189 2010-09-16  Bruno Haible  <bruno@clisp.org>
14190
14191         Tests for module 'termios'.
14192         * modules/termios-c++-tests: New file.
14193         * modules/termios-tests: New file.
14194         * tests/test-termios-c++.cc: New file.
14195         * tests/test-termios.c: New file.
14196
14197         New module 'termios'.
14198         * modules/termios: New file.
14199         * lib/termios.in.h: New file.
14200         * m4/termios_h.m4: New file.
14201         * doc/posix-headers/termios.texi: Mention the new module.
14202
14203 2010-09-16  Eric Blake  <eblake@redhat.com>
14204
14205         fdutimensat: add an atflag parameter
14206         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14207         * lib/utimens.h (fdutimensat): Update prototype.
14208         * tests/test-fdutimensat.c: Adjust test to match.
14209         * NEWS: Document the change.
14210         Suggested by Paul Eggert.
14211
14212 2010-09-16  Bruno Haible  <bruno@clisp.org>
14213
14214         Fix typos in comments.
14215         * lib/striconveh.h: Fix typo in comment.
14216         * lib/login_tty.c (login_tty): Likewise.
14217
14218 2010-09-15  Bruno Haible  <bruno@clisp.org>
14219
14220         stdlib: clarify MirBSD WEXITSTATUS bug
14221         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14222         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14223
14224 2010-09-15  Eric Blake  <eblake@redhat.com>
14225
14226         stdlib: work around MirBSD WEXITSTATUS bug
14227         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14228         * modules/stdlib (Depends-on): Add sys_wait.
14229         * tests/test-sys_wait.c (main): Enhance test.
14230         * tests/test-stdlib.c (main): Likewise.
14231         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14232
14233         docs: mention MacOS issue with WEXITSTATUS(constant)
14234         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14235         issue.
14236         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14237
14238         strnlen: add tests
14239         * modules/strnlen-tests: New file.
14240         * tests/test-strnlen.c: Likewise.
14241
14242 2010-09-14  Bruno Haible  <bruno@clisp.org>
14243
14244         unistr/base: Avoid link errors when module 'libunistring' is also used.
14245         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14246         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14247         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14248         Declare also when HAVE_LIBUNISTRING is set.
14249         Reported by Pádraig Brady <P@draigbrady.com>.
14250
14251 2010-09-14  Eric Blake  <eblake@redhat.com>
14252
14253         test-rawmemchr: make more robust
14254         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14255         (Depends-on, configure.ac): Add needed prerequisites to use it.
14256         * modules/memchr-tests (Files, Depends-on, configure.ac):
14257         Likewise, to avoid implicit reliance on memchr module prereqs.
14258         * tests/test-memchr.c (main): Ensure proper masking.
14259         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14260         reads.
14261
14262         memchr: detect glibc Alpha bug
14263         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14264         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14265         Alpha.
14266         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14267         * tests/test-memchr.c (main): Enhance test.
14268         Reported by Nelson H. F. Beebe.
14269
14270 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14271
14272         fts, getcwd, glob: audit for dirfd returning -1
14273         * lib/fts.c (opendir): Remove #define; no longer used.
14274         (opendirat): New arg PDIR_FD.  All callers changed.
14275         (fts_build, _opendir2): Use new opendirat to avoid the need for
14276         dirfd, or for checking whether dirfd returns a negative value.
14277         Don't use opendir; always use openat followed by fdopendir.
14278         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14279         it.
14280         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14281         returns -1 here.
14282         * modules/fts (Depends-on): Remove dirfd.
14283         * modules/getcwd (Depends-on): Likewise.
14284
14285 2010-09-13  Eric Blake  <eblake@redhat.com>
14286
14287         float: fix broken MirBSD header
14288         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14289         * doc/posix-headers/float.texi (float.h): Document it.
14290
14291 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14292
14293         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14294         * lib/fts.c (opendirat): New arg extra_flags.
14295         (__opendir2): Use it to avoid following symlinks when opening
14296         a directory, if symlinks are not supposed to be followed.  See
14297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14298
14299         fdopendir: preserve argument fd before returning
14300         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14301         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14302         (fdopendir): Use them, arranging for FD to be open to the same
14303         directory that it was when it started.  (It might be temporarily
14304         closed while fdopendir is running, so this not thread- or
14305         signal-safe.)  Be careful to do the right thing even when file
14306         descriptors are scarce and dup fails with errno == EMFILE.  See
14307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14308
14309 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14310
14311         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14312         * NEWS: Document change.
14313         * m4/regex.m4: Disable test for regoff_t size.
14314
14315 2010-09-13  Jim Meyering  <meyering@redhat.com>
14316
14317         fts: don't operate on an invalid file descriptor after failed dup
14318         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14319         negative file descriptor.
14320
14321 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14322
14323         savedir: add streamsavedir, deprecate fdsavedir
14324         * NEWS: Mention deprecation of fdsavedir.
14325         * lib/savedir.c (streamsavedir): New extern function, whose name
14326         ends in "savedir" to be consistent with the others.  This differs
14327         from savedirstream in that it doesn't close its argument.  The
14328         next version of GNU tar will use this instead of fdsavedir, to
14329         avoid some race conditions and conserve file descriptors.
14330         (savedirstream): Reimplement as a wrapper around streamsavedir.
14331         (fdsavedir): Add a comment deprecating this function.  As far as
14332         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14333         * lib/savedir.h (streamsavedir): New decl.
14334         (fdsavedir): Add a comment deprecating this.
14335
14336 2010-09-10  Bruno Haible  <bruno@clisp.org>
14337
14338         langinfo: Fix last commit.
14339         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14340         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14342
14343 2010-09-10  Bruno Haible  <bruno@clisp.org>
14344
14345         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14346         * lib/progreloc.c (O_EXEC): Define fallback.
14347
14348 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14349
14350         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14351         * NEWS: Document recent changes to fcntl-h.
14352         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14353         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14354         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14355         Similarly for O_SEARCH; this last was already true, but not documented.
14356         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14357         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14358         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14359         Likewise.
14360         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14361         is zero, not whether it is defined.
14362         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14363         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14364         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14365
14366 2010-09-10  Bruno Haible  <bruno@clisp.org>
14367
14368         langinfo, nl_langinfo: Fix for IRIX 5.3.
14369         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14370         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14371         HAVE_LANGINFO_YESEXPR.
14372         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14373         HAVE_LANGINFO_YESEXPR.
14374         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14375         HAVE_LANGINFO_T_FMT_AMPM is 0.
14376         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14377         HAVE_LANGINFO_YESEXPR is 0.
14378         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14379         NOEXPR.
14380         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14381         * doc/posix-functions/nl_langinfo.texi: Likewise.
14382         Reported by Eric Blake.
14383
14384 2010-09-10  Bruno Haible  <bruno@clisp.org>
14385
14386         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14387         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14388         on FreeBSD 8.0 and OpenBSD 4.6.
14389         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14390         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14391         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14392         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14393         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14394         ac_includes_default.
14395         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14396
14397 2010-09-09  Eric Blake  <eblake@redhat.com>
14398
14399         strsignal: work around NetBSD bug
14400         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14401         * lib/string.in.h (includes): Likewise.
14402         * doc/posix-functions/strsignal.texi (strsignal): Document the
14403         bug.
14404         Reported by Nelson H. F. Beebe.
14405
14406         gnulib-tool: work with NetBSD /bin/sh
14407         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14408         (func_get_description, func_get_comment, func_get_status)
14409         (func_get_notice, func_get_applicability, func_get_filelist)
14410         (func_get_dependencies, func_get_autoconf_early_snippet)
14411         (func_get_autoconf_snippet, func_get_automake_snippet)
14412         (func_get_include_directive, func_get_link_directive)
14413         (func_get_license, func_get_maintainer, func_import): Avoid
14414         shell syntax errors from parsing syntax extensions.
14415
14416 2010-09-09  Bruno Haible  <bruno@clisp.org>
14417
14418         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14419         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14420         a reliable way to determine whether the 'alias' command works.
14421
14422 2010-09-08  Jim Meyering  <meyering@redhat.com>
14423
14424         init.sh: penalize a set-x-impaired shell; don't disqualify it
14425         * tests/init.sh: Too many shells corrupt application stderr when
14426         you set -x, so we can't afford to disqualify them, since at least
14427         on Irix-6.5, that would disqualify all bourne shells.
14428         Instead, use a two-pass approach.
14429         On the first pass, try to find a shell that meets the stricter
14430         condition that set -x does not corrupt stderr.
14431         If no shell meets the stricter condition, retest each candidate
14432         shell, but without that extra condition.  Finally, when
14433         VERBOSE=yes is requested and set -x might cause trouble, simply
14434         issue a warning and refrain from enabling debug output.
14435
14436 2010-09-08  Eric Blake  <eblake@redhat.com>
14437
14438         unsetenv: fix OpenBSD bug
14439         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14440         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14441         documentation.
14442         Reported by Jim Meyering.
14443
14444         strtod: work around IRIX 6.5 bug
14445         * lib/strtod.c (strtod): Reparse number on shorter string if
14446         exponent parse was invalid.
14447         * tests/test-strtod.c (main): Add check for "0x1p 2".
14448         Reported by Tom G. Christensen.
14449
14450         getopt: optimize previous patch
14451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14452         empty variable.  Speed up awk script.
14453         Reported by Paolo Bonzini.
14454
14455 2010-09-08  Jim Meyering  <meyering@redhat.com>
14456
14457         test.sh: disqualify shells for which set -x corrupts stderr
14458         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14459         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14460         appear in stderr output.  For example, this command:
14461             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14462         prints "P=1" on those two systems:
14463
14464 2010-09-08  Bruno Haible  <bruno@clisp.org>
14465
14466         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14467         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14468         commands, because some shells ignore redirections when there is an
14469         error in the command lookup.
14470         Reported by Eric Blake.
14471
14472 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14473
14474         * lib/regex.h: Fix a mention of `regex_compile' (should be
14475         `re_compile_pattern').
14476         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14477         (re_set_registers): Correct name of parameter in comment.
14478
14479         * doc/regex.texi: Add documentation for missing syntax flags.
14480         Remove commented-out documentation of defunct syntax option
14481         RE_NO_EMPTY_ALTS.
14482         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14483         Add documentation of re_set_registers.
14484         Document trick to re-use a pattern buffer by setting fastmap manually.
14485         Update documentation of struct re_pattern_buffer per public members.
14486         Uncomment documentation of equivalence class operators and
14487         collating symbol operators, since they are now implemented,
14488         Explain leftmost-longest matching in relation to alternatives.
14489         Tidy documentation of substring matching.
14490         Remove POSIX documentation, which is done better in
14491         glibc, and refer the reader there. Keep BSD API documentation, as
14492         that is not readily available elsewhere.
14493
14494 2010-09-07  Eric Blake  <eblake@redhat.com>
14495
14496         getopt: handle POSIXLY_CORRECT set but not exported
14497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14498         export state of POSIXLY_CORRECT, due to bash set -o posix.
14499         Reported by Dustin J. Mitchell.
14500
14501 2010-09-05  Bruno Haible  <bruno@clisp.org>
14502
14503         gnulib-tool: Highlight the changed options.
14504         * gnulib-tool (func_usage): Display the --import, --add-import,
14505         --remove-import explanations in bold font.
14506
14507 2010-09-06  Karl Berry  <karl@gnu.org>
14508
14509         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14510
14511 2010-09-05  Bruno Haible  <bruno@clisp.org>
14512
14513         uniwidth/width: Update comment.
14514         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14515         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14516
14517 2010-09-05  Bruno Haible  <bruno@clisp.org>
14518
14519         isinf, isnan: Relax license.
14520         * modules/isinf (License): Change from GPL to LGPL, with consent from
14521         Ben Pfaff.
14522         * modules/isnan (License): Likewise.
14523         Requested by Ludovic Courtès.
14524
14525 2010-09-04  Bruno Haible  <bruno@clisp.org>
14526
14527         gnulib-tool: Help migration from --import to --add-import or --update.
14528         * gnulib-tool: Emit a verbose error message when --import is used
14529         without any module name.
14530
14531 2010-09-04  Bruno Haible  <bruno@clisp.org>
14532
14533         Update doc about gnulib-tool.
14534         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14535         'gnulib-tool --update' in more detail.
14536         Reported by Eric Blake.
14537
14538 2010-09-04  Bruno Haible  <bruno@clisp.org>
14539
14540         gnulib-tool: Change --import. New options --add/remove-import.
14541         * gnulib-tool: New options --add-import, --remove-import.
14542         (func_usage): Document them.
14543         (have_associative): Define always.
14544         (func_import): In import mode, don't merge the specified settings with
14545         the cached settings. Implement remove-import mode.
14546         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14547         Explain when to use them versus --import.
14548         (Simple update): Use --add-import instead of --import.
14549         * NEWS: Mention the change.
14550
14551 2010-09-04  Bruno Haible  <bruno@clisp.org>
14552
14553         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14554         separate gnulib.mk.
14555
14556 2010-09-04  Bruno Haible  <bruno@clisp.org>
14557
14558         gnulib-tool: Don't talk about CVS any more.
14559         * gnulib-tool (func_usage, func_import): Write "version control"
14560         instead of CVS.
14561
14562 2010-09-04  Jim Meyering  <meyering@redhat.com>
14563
14564         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14565         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14566         false positives (whose names may be ill-chosen) when searching
14567         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14568         would cause a false-positive.
14569
14570         avoid coreutils "make distcheck" failure
14571         Coreutils tests with an absolute build directory name that contains
14572         a space.  Not quoting this directory name caused a failure.
14573         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14574         * tests/test-vc-list-files-cvs.sh: Likewise.
14575
14576 2010-09-04  Bruno Haible  <bruno@clisp.org>
14577
14578         gnulib-tool: Avoid error when run in a package without Makefile.am.
14579         * gnulib-tool: When collecting the m4dirs in a package that does not
14580         have a Makefile.am, eliminate those directories that contain no
14581         gnulib-cache.m4. Fix expression that counts these directories.
14582
14583 2010-09-04  Bruno Haible  <bruno@clisp.org>
14584
14585         update-copyright test: Improve output when perl is missing or too old.
14586         * tests/test-update-copyright.sh: Move test of Perl version down after
14587         the test whether Perl exists. Provide an explanation relating Perl's
14588         error message to Automake's SKIP: message.
14589
14590 2010-09-04  Bruno Haible  <bruno@clisp.org>
14591
14592         Don't augment PATH in TESTS_ENVIRONMENT.
14593         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14594         set abs_aux_dir instead of augmenting PATH.
14595         * modules/vc-list-files-tests (Makefile.am): Likewise.
14596         * tests/test-update-copyright.sh: Augment PATH here.
14597         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14598         path_prepend_.
14599         * tests/test-vc-list-files-git.sh: Likewise.
14600
14601 2010-09-04  Jim Meyering  <meyering@redhat.com>
14602
14603         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14604         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14605
14606 2010-09-04  Bruno Haible  <bruno@clisp.org>
14607
14608         strdup: Fix compilation error in C++ mode.
14609         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14610         the macro.
14611
14612 2010-09-04  Bruno Haible  <bruno@clisp.org>
14613
14614         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14615         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14616         macro into a function.
14617         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14618
14619 2010-09-04  Bruno Haible  <bruno@clisp.org>
14620
14621         Set PATH_SEPARATOR the same way autoconf does.
14622         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14623         the value of PATH_SEPARATOR the same way autoconf-generated configure
14624         scripts do.
14625         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14626         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14627
14628 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14629
14630         Set PATH_SEPARATOR the same way autoconf does.
14631         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14632         the same way autoconf-generated configure scripts do.
14633         * posix-modules: Likewise.
14634
14635 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14636
14637         hash: fix safe_hasher const typo
14638         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14639         const; otherwise, there is a type error later.
14640
14641 2010-09-02  Jim Meyering  <meyering@redhat.com>
14642
14643         test-update-copyright.sh: require perl 5.8.0
14644         * tests/test-update-copyright.sh: Require 5.8.0,
14645         which Tom G. Christensen has confirmed is adequate,
14646         while 5.6.1 is not.
14647
14648 2010-09-02  Eric Blake  <eblake@redhat.com>
14649
14650         tests: init.sh improvements for re-exec'ing with zsh
14651         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14652         -vx through shell re-exec.
14653         Reported by Tom G. Christensen.
14654
14655         wctype: fix typo in previous commit
14656         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14657         Reported by Ludovic Courtès.
14658
14659 2010-09-02  Jim Meyering  <meyering@redhat.com>
14660
14661         test-update-copyright.sh: skip test if Perl is too old
14662         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14663         Reported by Tom G. Christensen.
14664
14665 2010-09-02  Bruno Haible  <bruno@clisp.org>
14666
14667         wctype: Avoid compilation error on IRIX 6.5.30.
14668         * lib/wctype.in.h (iswblank): Declare with a replacement if
14669         REPLACE_ISWBLANK is set.
14670         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14671         declared. Set REPLACE_ISWBLANK.
14672         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14673         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14674         * doc/posix-headers/wctype.texi: Likewise.
14675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14676
14677 2010-09-01  Bruno Haible  <bruno@clisp.org>
14678
14679         New module 'socketlib'.
14680         * modules/socketlib: New file.
14681         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14682         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14683         * modules/sockets (Depends-on): Add socketlib.
14684         Suggested by Sam Steingold <sds@gnu.org>.
14685
14686 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14687
14688         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14689
14690         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14691         when one needs search access to a directory but not read access.
14692         On systems where it is available, it works in some cases where
14693         O_RDONLY does not, namely on directories that are searchable but
14694         not readable, and which need only to be searchable.  If O_SEARCH
14695         is not available, fall back to the traditional method of using
14696         O_RDONLY.
14697
14698         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14699         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14700         when opening a directory that needs only to be searchable.
14701         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14702         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14703         * lib/openat-proc.c (openat_proc_name): Likewise.
14704         * lib/openat.c (openat_needs_fchdir): Likewise.
14705         * lib/save-cwd.c (save_cwd): Likewise.
14706         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14707
14708 2010-08-28  Bruno Haible  <bruno@clisp.org>
14709
14710         New module 'host-cpu-c-abi'.
14711         * modules/host-cpu-c-abi: New file.
14712         * m4/host-cpu-c-abi.m4: New file, based on part of
14713         clisp/src/m4/general.m4.
14714         Requested by Sam Steingold <sds@gnu.org>.
14715
14716 2010-08-31  Eric Blake  <eblake@redhat.com>
14717         and Jim Meyering  <meyering@redhat.com>
14718
14719         hash: factor, and guard against misbehaving hasher function
14720         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14721         of table->hasher's return value.  Also protect against a hash value
14722         so large that adding it to table->bucket results in a NULL pointer.
14723         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14724         Use it in place of open-coded check-and-abort.
14725
14726 2010-08-30  Bruno Haible  <bruno@clisp.org>
14727
14728         hash: silence spurious clang warning
14729         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14730         Reported by Eric Blake.
14731
14732 2010-08-30  Eric Blake  <eblake@redhat.com>
14733
14734         strstr, memmem, strcasestr: avoid leaked shell message
14735         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14736         FreeBSD.
14737         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14739
14740         tests: silence clang warning
14741         * tests/test-malloca.c (do_allocation): Avoid dead store.
14742
14743 2010-08-29  Bruno Haible  <bruno@clisp.org>
14744
14745         gettext: Fix recent mistake.
14746         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14747
14748 2010-08-29  Bruno Haible  <bruno@clisp.org>
14749
14750         selinux-h: Offer a --without-selinux option.
14751         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14752         --without-selinux was specified, skip all tests and define
14753         HAVE_SELINUX_SELINUX_H to 0.
14754         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14755         set LIB_SELINUX to empty.
14756         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14757         gl_LIBSELINUX. If --without-selinux was specified, replace
14758         selinux/context.h.
14759         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14760
14761 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14762             Bruno Haible  <bruno@clisp.org>
14763
14764         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14765         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14766         of HAVE_REALLOC.
14767         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14768         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14769         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14770         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14771
14772 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14773             Bruno Haible  <bruno@clisp.org>
14774
14775         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14776         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14777         HAVE_CALLOC.
14778         * lib/xmalloc.c: Update accordingly.
14779         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14780         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14781         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14782
14783 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14784             Bruno Haible  <bruno@clisp.org>
14785
14786         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14787         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14788         HAVE_MALLOC.
14789         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14790         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14791         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14792
14793 2010-08-29  Bruno Haible  <bruno@clisp.org>
14794
14795         Update modules list.
14796         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14797         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14798         (String handling <string.h>): Add astrxfrm.
14799         (File system functions): Add readlinkat.
14800
14801 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14802
14803         Tests for module 'realloc-gnu'.
14804         * modules/realloc-gnu-tests: New file.
14805         * tests/test-realloc-gnu.c: New file.
14806
14807         Tests for module 'calloc-gnu'.
14808         * modules/calloc-gnu-tests: New file.
14809         * tests/test-calloc-gnu.c: New file.
14810
14811         Tests for module 'malloc-gnu'.
14812         * modules/malloc-gnu-tests: New file.
14813         * tests/test-malloc-gnu.c: New file.
14814
14815 2010-08-28  Bruno Haible  <bruno@clisp.org>
14816
14817         Rename module 'realloc' -> 'realloc-gnu'.
14818         * modules/realloc-gnu: New file, copied from modules/realloc.
14819         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14820         obsolete.
14821         * modules/mgetgroups (Depends-on): Update.
14822         * doc/posix-functions/realloc.texi: Update.
14823         * NEWS: Mention the change.
14824
14825         Rename module 'calloc' -> 'calloc-gnu'.
14826         * modules/calloc-gnu: New file, copied from modules/calloc.
14827         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14828         obsolete.
14829         * doc/posix-functions/calloc.texi: Update.
14830         * NEWS: Mention the change.
14831
14832         Rename module 'malloc' -> 'malloc-gnu'.
14833         * modules/malloc-gnu: New file, copied from modules/malloc.
14834         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14835         obsolete.
14836         * modules/argp (Depends-on): Update.
14837         * modules/regex (Depends-on): Update.
14838         * doc/posix-functions/malloc.texi: Update.
14839         * NEWS: Mention the change.
14840
14841 2010-08-28  Eric Blake  <eblake@redhat.com>
14842
14843         pread, pwrite: add missing dependency
14844         * modules/pread (Depends-on): Add extensions.
14845         * modules/pwrite (Depends-on): Likewise.
14846
14847 2010-08-28  Bruno Haible  <bruno@clisp.org>
14848
14849         unistr/u*-strchr: Fix tests dependencies.
14850         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14851         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14852         Reported by Ian Beckwith <ianb@erislabs.net>.
14853
14854 2010-08-28  Bruno Haible  <bruno@clisp.org>
14855
14856         read-file: Don't occupy too much unused memory.
14857         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14858
14859 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14860             Eric Blake  <eblake@redhat.com>
14861             Bruno Haible  <bruno@clisp.org>
14862
14863         read-file: Avoid memory reallocations with regular files.
14864         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14865         (fread_file): With regular files, use the remaining length as the
14866         initial buffer size.  Check against overflow.
14867         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14868         sys_stat.
14869
14870 2010-08-28  Bruno Haible  <bruno@clisp.org>
14871
14872         ftello: Relax license.
14873         * modules/ftello (License): Relax to LGPLv2+.
14874         Reported by Eric Blake.
14875
14876 2010-08-28  Bruno Haible  <bruno@clisp.org>
14877
14878         Avoid relocwrapper link errors due to gnulib replacement functions.
14879         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14880         function.
14881         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14882
14883 2010-08-28  Bruno Haible  <bruno@clisp.org>
14884
14885         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14886         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14887         defined.
14888         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14889         Suggested by Eric Blake.
14890
14891 2010-08-28  Bruno Haible  <bruno@clisp.org>
14892
14893         sys_socket, netdb: Ensure socklen_t gets defined.
14894         * modules/sys_socket (Depends-on): Add socklen.
14895         * modules/netdb (Depends-on): Likewise.
14896         * modules/getaddrinfo (Depends-on): Remove socklen.
14897         * modules/getsockopt (Depends-on): Likewise.
14898         * modules/setsockopt (Depends-on): Likewise.
14899         * tests/test-sys_socket.c: Check that socklen_t is defined.
14900         * tests/test-netdb.c: Likewise.
14901         * m4/socklen.m4: Update comments.
14902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14903
14904 2010-08-27  Eric Blake  <eblake@redhat.com>
14905
14906         login_tty: add missing dependency
14907         * modules/login_tty (Depends-on): Add pty.
14908
14909 2010-08-26  Eric Blake  <eblake@redhat.com>
14910
14911         lib-symbol-versions: fix m4 quoting
14912         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14913         format for AC_LINK_IFELSE.
14914
14915         glob: fix compile test
14916         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14917
14918         btowc: fix missing file
14919         * modules/btowc (Files): Also ship locale-fr.m4.
14920
14921         lseek: fix link test
14922         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14923         AC_LINK_IFELSE.
14924
14925         include_next: silence autoconf 2.68 warning
14926         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14927         AC_COMPILE_IFELSE as special.
14928         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14929         autoconf < 2.68.
14930
14931         acl: fix compilation test
14932         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14933         AC_COMPILE_IFELSE.
14934
14935 2010-08-26  Bruno Haible  <bruno@clisp.org>
14936
14937         Modernize AC_TRY_RUN invocations.
14938         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14939         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14940         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14941         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14942         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14943         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14946         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14947         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14948         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14949         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14950         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14951         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14953         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14954         gl_MBRLEN_NUL_RETVAL): Likewise.
14955         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14956         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14957         Likewise.
14958         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14959         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14960         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14961         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14962         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14963         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14964         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14965         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14966         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14967         Likewise.
14968         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14969         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14971         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14973         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14974         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14975         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14976         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14978
14979 2010-08-26  Bruno Haible  <bruno@clisp.org>
14980
14981         Modernize AC_TRY_LINK invocations.
14982         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14983         AC_TRY_LINK.
14984         * m4/argp.m4 (gl_ARGP): Likewise.
14985         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14986         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14987         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14988         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14989         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14990         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14991         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14992         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14993         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14994         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14995         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14996         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14997         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14998         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14999         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15000         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15001         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15002         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15003         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15004         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15005         Likewise.
15006         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15007         Likewise.
15008         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15009         Likewise.
15010         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15012         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15013         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15014         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15015         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15016         * m4/servent.m4 (gl_SERVENT): Likewise.
15017         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15018         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15019         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15020         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15021         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15022         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15023         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15024         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15025         * modules/tsearch-tests (configure.ac): Likewise.
15026
15027 2010-08-26  Bruno Haible  <bruno@clisp.org>
15028
15029         Modernize AC_TRY_COMPILE invocations.
15030         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15031         AC_TRY_COMPILE.
15032         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15033         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15034         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15035         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15036         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15037         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15038         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15039         * m4/lock.m4 (gl_LOCK): Likewise.
15040         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15041         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15042         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15043         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15044         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15045         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15046         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15048         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15049         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15050         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15051         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15052         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15053         extraneous semicolon.
15054
15055 2010-08-26  Jim Meyering  <meyering@redhat.com>
15056
15057         stat-time: relax license LGPL
15058         * modules/stat-time (License): Change from GPL to LGPL,
15059         with consent from all contributors, for use in libguile.
15060         Requested by Ludovic Courtès.
15061
15062 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15063
15064         poll: return immediately on POLLHUP.
15065         * lib/poll.c (poll): Always set timeout before wait_timeout is
15066         computed.
15067
15068 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15069
15070         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15071         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15072         rmdir ("dir/.//"), unlinkat.
15073
15074 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15075
15076         stdbool: avoid spurious failure with modern xlc
15077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15078
15079 2010-08-24  Bruno Haible  <bruno@clisp.org>
15080
15081         getloadavg: simplify code
15082         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15083         gl_have_func. Update comments.
15084
15085 2010-08-24  Eric Blake  <eblake@redhat.com>
15086
15087         getloadavg: don't define SVR4 on cygwin
15088         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15089         only define SVR4 when -lkvm is required.
15090         Reported by Yaakov Selkowitz.
15091
15092 2010-08-24  Bruno Haible  <bruno@clisp.org>
15093
15094         priv-set: fix comment
15095         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15096
15097 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15098
15099         priv-set: fix comments
15100         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15101         to match code, as suggested by David Bartley in:
15102         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15103
15104 2010-08-23  Eric Blake  <eblake@redhat.com>
15105
15106         stdbool: avoid rejecting clang
15107         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15108         * tests/test-stdbool.c: Enable more tests if using the system
15109         <stdbool.h> instead of the gnulib replacement.
15110         (main): Move xlc bug test to a runtime test for all compilers.
15111         Reported by Anders Kaseorg.
15112
15113         argz: fix shell quoting issue
15114         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15115         Reported by Charles Wilson.
15116
15117 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15118             Erik Faye-Lund <kusmabite@gmail.com>
15119
15120         poll, select: handle ERROR_BROKEN_PIPE.
15121         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15122         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15123         * lib/select.c (win32_compute_revents): Do not mark a pipe
15124         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15125
15126 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15127
15128         fts: allow compilation with C++
15129         * lib/fts_.h: Specify extern "C" linkage with C++.
15130
15131 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15132
15133         Fix gnulib-tool sed script de-commentation for AIX sed.
15134         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15135         sed.
15136
15137 2010-08-17  Eric Blake  <eblake@redhat.com>
15138
15139         test-stddef: test for (some) offsetof bugs
15140         * tests/test-stddef.c: Enhance test to ensure correct type of
15141         offsetof.
15142         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15143         that we are not fixing at this time.
15144
15145 2010-08-15  Bruno Haible  <bruno@clisp.org>
15146
15147         stpncpy: Allow stpncpy to be defined as a macro.
15148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15149         if it's already correctly declared.
15150         * lib/string.in.h (stpncpy): Undefine before redefining.
15151         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15152
15153 2010-08-14  Bruno Haible  <bruno@clisp.org>
15154
15155         Rename module 'memxfrm' to 'amemxfrm'.
15156         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15157         (amemxfrm): Renamed from memxfrm.
15158         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15159         (amemxfrm): Renamed from memxfrm.
15160         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15161         * NEWS: Mention the change.
15162         * MODULES.html.sh (String handling <string.h>): Update.
15163         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15164         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15165         * lib/unicase/u16-casexfrm.c: Likewise.
15166         * lib/unicase/u32-casexfrm.c: Likewise.
15167         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15168         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15169         * lib/uninorm/u16-normxfrm.c: Likewise.
15170         * lib/uninorm/u32-normxfrm.c: Likewise.
15171         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15172         memxfrm.
15173         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15174         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15175         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15176         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15177         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15178         Suggested by Paul Eggert.
15179
15180 2010-08-14  Bruno Haible  <bruno@clisp.org>
15181
15182         Tests for module 'astrxfrm'.
15183         * modules/astrxfrm-tests: New file.
15184         * tests/test-astrxfrm.c: New file.
15185
15186         New module 'astrxfrm'.
15187         * lib/astrxfrm.h: New file.
15188         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15189         * modules/astrxfrm: New file.
15190
15191 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15192
15193         regex: Tweak doc.
15194         * doc/regex.texi (Overview): Don't mention regex.c.
15195         (GNU Regular Expression Compiling): Likewise.
15196         (Match-end-of-line Operator): Mention 'not_eol'.
15197
15198 2010-08-14  Brian Gough  <bjg@gnu.org>
15199             Bruno Haible  <bruno@clisp.org>
15200
15201         git-merge-changelog: add doc relating to use with bzr and hg.
15202         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15203
15204 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15205
15206         pthread: fix pthread.h creation for srcdir != builddir
15207         * modules/pthread (Makefile.am): Fix the rule to work also in a
15208         non-srcdir build.
15209
15210 2010-08-13  Karl Berry  <karl@gnu.org>
15211
15212         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15213         * doc/posix-*/*: force line break before @url of POSIX
15214         specifications.
15215         Suggested by Werner Lemberg.
15216
15217 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15218
15219         strtod: fix const diagnostic
15220         * lib/strtod.c (strtod): Don't assign const char * to char *,
15221         as this elicits a warning from GCC when warnings are enabled.
15222
15223 2010-08-10  Pádraig Brady <P@draigbrady.com>
15224         and Eric Blake  <eblake@redhat.com>
15225
15226         copy-acl: ignore ENOTSUP on HP-UX
15227         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15228         so that it is available for HP-UX.
15229         * lib/copy-acl.c (qcopy_acl): Use it.
15230         Reported by Patrick M. Callahan.
15231
15232 2010-08-10  Eric Blake  <eblake@redhat.com>
15233
15234         open, chown: relax license
15235         * modules/open (License): Change to LGPLv2+, with consent by all
15236         authors, for use in augeas.
15237         * modules/chown (License): Likewise.
15238         * modules/lchown (Likewise): Likewise.
15239         Requested by Adam Stokes.
15240
15241 2010-08-09  Karl Berry  <karl@gnu.org>
15242
15243         * build-aux/ar-lib: new file, import from Automake.
15244         * config/srclist.txt: autocheck for updates.
15245
15246 2010-08-09  Eric Blake  <eblake@redhat.com>
15247
15248         readlinkat: adjust client modules
15249         * modules/areadlinkat (Depends-on): Use readlinkat, not
15250         symlinkat.
15251         * modules/areadlinkat-with-size (Depends-on): Likewise.
15252
15253         mknod: be more vocal about danger of running tests as root
15254         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15255         root, since that is just asking for problems.
15256         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15257
15258         readlinkat: split into its own module
15259         * modules/symlinkat: Split readlinkat...
15260         * modules/readlinkat: ...into separate module.
15261         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15262         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15263         * lib/symlinkat.c (readlinkat): Move...
15264         * lib/readlinkat.c: ...into new file.
15265         * modules/symlinkat-tests: Split readlinkat test...
15266         * modules/readlinkat-tests: ...into separate module.
15267         * tests/test-symlinkat.c: Split...
15268         * tests/test-readlinkat.c: ...into new file.
15269         * NEWS: Document the split.
15270         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15271         * lib/unistd.in.h (readlinkat): Likewise.
15272         Suggested by Bruno Haible.
15273
15274 2010-08-08  Bruno Haible  <bruno@clisp.org>
15275
15276         memxfrm: Speed up.
15277         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15278         that usually only one call to strxfrm is necessary for each string
15279         part.
15280         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15281
15282 2010-08-07  Karl Berry  <karl@gnu.org>
15283
15284         * doc/posix-headers/limits.texi,
15285         * doc/posix-functions/malloc.texi,
15286         * doc/posix-functions/strsignal.texi: missing @item.
15287         * doc/ld-version-script.texi: spurious leading i.
15288         * doc/regex.texi (Interval Operators): no commas inside @var.
15289
15290 2010-08-01  Bruno Haible  <bruno@clisp.org>
15291
15292         Integrate the regex documentation.
15293         * doc/gnulib.texi: Define 'cn' index.
15294         (Regular expressions): New a chapter that includes regex.texi and
15295         regexprops-generic.texi.
15296         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15297         syntax.
15298
15299         Whitespace cleanup.
15300         * doc/regex.texi: Remove trailing spaces.
15301
15302         Add regex documentation.
15303         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15304         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15305         Written by Kathy A. Hargreaves and Karl Berry.
15306
15307 2010-08-01  Bruno Haible  <bruno@clisp.org>
15308
15309         link: Update documentation.
15310         * doc/posix-functions/link.texi: Update regarding Solaris.
15311
15312 2010-07-31  Bruno Haible  <bruno@clisp.org>
15313
15314         Update modules list.
15315         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15316         (String handling <string.h>): Add memcmp2, memxfrm.
15317         (Container data structures): Add xlist, xsublist, xoset.
15318         (Core language properties): Add alignof, unused-parameter.
15319         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15320         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15321         (Unibyte characters <ctype.h>): New section.
15322         (String handling <string.h>): New section.
15323         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15324         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15325         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15326         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15327         tan, tanh, tanl, y0, y1, yn.
15328         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15329         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15330         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15331         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15332         unlockpt, vdprintf, vdprintf-posix.
15333         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15334         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15335         xconcat-filename.
15336         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15337         getdtablesize, pipe2, pipe2-safer.
15338         (Security): New section.
15339         (Networking functions): Add accept4.
15340         (Signal handling): Add sigpipe.
15341         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15342         mbmemcasecoll.
15343         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15344         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15345         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15346         pipe-filter-ii.
15347         (Misc): Add argp-version-etc, login_tty, parse-duration.
15348
15349 2010-07-31  Bruno Haible  <bruno@clisp.org>
15350
15351         Improve doc in MODULES.html.
15352         * modules/linkat (Description): Add the word "function".
15353         * modules/mkfifo (Description): Likewise.
15354         * modules/mknod (Description): Likewise.
15355         * modules/remove (Description): Likewise.
15356         * modules/renameat (Description): Likewise.
15357         * modules/stat (Description): Likewise.
15358         * modules/symlink (Description): Likewise.
15359         * modules/unlink (Description): Likewise.
15360
15361 2010-07-31  Bruno Haible  <bruno@clisp.org>
15362
15363         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15364         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15365         option --enable/disable-c++ instead of --enable/disable-cxx.
15366         * NEWS: Mention the change.
15367
15368 2010-07-31  Bruno Haible  <bruno@clisp.org>
15369
15370         readlink, areadlink: Relax test a bit.
15371         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15372         alternative to ENOTDIR.
15373         * tests/test-areadlink.h (test_areadlink): Likewise.
15374         Reported by Rainer Tammer.
15375
15376 2010-07-31  Bruno Haible  <bruno@clisp.org>
15377
15378         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15379         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15380         character, perform the search using U_STRCHR.
15381         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15382         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15383         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15384         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15385         Suggested by Paolo Bonzini.
15386
15387 2010-07-31  Bruno Haible  <bruno@clisp.org>
15388
15389         unistr/u*-strstr: Fix dependencies.
15390         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15391         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15392         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15393
15394 2010-07-31  Bruno Haible  <bruno@clisp.org>
15395
15396         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15397         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15398         the beginning of the loop.
15399         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15400         cases in 'switch' statement.
15401
15402         unistr/u8-strchr: Fix several bugs.
15403         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15404         the string. When not found, return NULL, not a pointer near the end.
15405
15406         More tests for unistr/u8-strchr.
15407         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15408         that the function does not read past the first occurrence of the byte
15409         being searched.
15410         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15411         * tests/unistr/test-u16-strchr.c (main): New function.
15412         * tests/unistr/test-u32-strchr.c (main): New function.
15413
15414 2010-07-31  Bruno Haible  <bruno@clisp.org>
15415
15416         posix-modules: Ignore backup files of documentation files.
15417         * posix-modules: grep only through files named *.texi.
15418
15419 2010-07-31  Bruno Haible  <bruno@clisp.org>
15420
15421         symlinkat: Fix documentation.
15422         * doc/posix-functions/readlinkat.texi: Fix module name.
15423
15424 2010-07-31  Bruno Haible  <bruno@clisp.org>
15425
15426         fchownat: Replace also when chown has the trailing slash bug.
15427         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15428         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15429         introduced on 2010-04-10.
15430         Reported by Rainer Tammer.
15431
15432 2010-07-31  Bruno Haible  <bruno@clisp.org>
15433
15434         linkat: Work around AIX 7.1 bug.
15435         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15436         whether linkat handles trailing slash correctly. If not, replace linkat
15437         and define LINKAT_TRAILING_SLASH_BUG.
15438         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15439         check whether (fd1,file1) points to a directory if file1 or file2 ends
15440         in a slash. Code taken from lib/link.c.
15441         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15442         Reported by Rainer Tammer.
15443
15444 2010-07-31  Bruno Haible  <bruno@clisp.org>
15445
15446         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15447         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15448         This disables an xlc optimization that was causing wrong test results.
15449         Reported by Rainer Tammer.
15450
15451 2010-07-31  Bruno Haible  <bruno@clisp.org>
15452
15453         iconv: Work around AIX 6.1..7.1 bug.
15454         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15455         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15456         cross-compiling, guess no on all versions of AIX.
15457         Reported by Rainer Tammer.
15458
15459 2010-07-31  Bruno Haible  <bruno@clisp.org>
15460
15461         readlink: Relax test a bit.
15462         * tests/test-readlink.h (test_readlink): Allow different errno value
15463         when readlink is called with a file name that ends in / and refers to
15464         a file.
15465         Suggested by Eric Blake.
15466         Reported by Rainer Tammer.
15467
15468 2010-07-31  Bruno Haible  <bruno@clisp.org>
15469
15470         copysign: Does not require -lm on glibc systems.
15471         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15472         gl_COMMON_DOUBLE_MATHFUNC.
15473         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15474
15475 2010-07-31  Bruno Haible  <bruno@clisp.org>
15476
15477         duplocale: Work around AIX 7.1 bug.
15478         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15479         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15480         * lib/duplocale.c (rpl_duplocale): Update comment.
15481         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15482         Reported by Rainer Tammer.
15483
15484 2010-07-30  Bruno Haible  <bruno@clisp.org>
15485
15486         dirfd: Avoid link error on AIX 7.1.
15487         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15488         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15489         exist, set REPLACE_DIRFD.
15490         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15491         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15492         * doc/posix-functions/dirfd.texi: Update.
15493         Reported by Rainer Tammer.
15494
15495 2010-07-30  Eric Blake  <eblake@redhat.com>
15496
15497         strtod: next round of AIX fixes
15498         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15499         exponent.
15500         * tests/test-strtod.c (main): Enhance tests.
15501         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15502         Reported by Rainer Tammer.
15503
15504         futimens: fix configure check
15505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15506         Reported by Bruno Haible.
15507
15508 2010-07-30  Bruno Haible  <bruno@clisp.org>
15509
15510         getline: Update regarding AIX.
15511         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15512         Reported by Rainer Tammer.
15513
15514 2010-07-30  Bruno Haible  <bruno@clisp.org>
15515
15516         wcwidth: Drop replacement on AIX 7.
15517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15518         AIX 7.
15519         Reported by Rainer Tammer.
15520
15521 2010-07-30  Bruno Haible  <bruno@clisp.org>
15522
15523         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15524         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15525         a 'char *'.
15526         Reported by Rainer Tammer.
15527
15528 2010-07-30  Bruno Haible  <bruno@clisp.org>
15529
15530         unlink: Update regarding AIX.
15531         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15532         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15533         Reported by Rainer Tammer.
15534
15535 2010-07-30  Bruno Haible  <bruno@clisp.org>
15536
15537         symlink: Update regarding AIX.
15538         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15539         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15540         Reported by Rainer Tammer.
15541
15542 2010-07-30  Bruno Haible  <bruno@clisp.org>
15543
15544         strndup: Update regarding AIX.
15545         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15546         AIX 7.
15547         Reported by Rainer Tammer.
15548
15549 2010-07-30  Bruno Haible  <bruno@clisp.org>
15550
15551         stat: Update regarding AIX.
15552         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15553         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15554         Reported by Rainer Tammer.
15555
15556 2010-07-30  Bruno Haible  <bruno@clisp.org>
15557
15558         truncl: Fix autoconf test.
15559         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15560         whether truncl works.
15561         Reported by Rainer Tammer.
15562
15563 2010-07-30  Bruno Haible  <bruno@clisp.org>
15564
15565         round: Update regarding AIX.
15566         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15567         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15568         Reported by Rainer Tammer.
15569
15570 2010-07-30  Bruno Haible  <bruno@clisp.org>
15571
15572         rename: Update regarding AIX.
15573         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15574         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15575         Reported by Rainer Tammer.
15576
15577 2010-07-30  Bruno Haible  <bruno@clisp.org>
15578
15579         printf.m4: Update regarding AIX.
15580         * m4/printf.m4: Update comments regarding AIX.
15581         Reported by Rainer Tammer.
15582
15583 2010-07-30  Bruno Haible  <bruno@clisp.org>
15584
15585         iconv: Update regarding AIX.
15586         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15587         AIX 7.
15588         Reported by Rainer Tammer.
15589
15590 2010-07-30  Bruno Haible  <bruno@clisp.org>
15591
15592         getopt: Update regarding AIX.
15593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15594         no on AIX.
15595         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15596         Reported by Rainer Tammer.
15597
15598 2010-07-30  Bruno Haible  <bruno@clisp.org>
15599
15600         ldexpl; Update regarding AIX.
15601         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15602         on AIX 7.
15603         Reported by Rainer Tammer.
15604
15605 2010-07-30  Bruno Haible  <bruno@clisp.org>
15606
15607         frexpl: Update regarding AIX.
15608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15609         on AIX 7.
15610         Reported by Rainer Tammer.
15611
15612 2010-07-30  Bruno Haible  <bruno@clisp.org>
15613
15614         open, fopen: Update regarding AIX.
15615         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15616         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15617         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15618         * doc/posix-functions/fopen.texi: Likewise.
15619         Reported by Rainer Tammer.
15620
15621 2010-07-30  Bruno Haible  <bruno@clisp.org>
15622
15623         chown: Update doc regarding AIX.
15624         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15625         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15626         Reported by Rainer Tammer.
15627
15628 2010-07-30  Eric Blake  <eblake@redhat.com>
15629
15630         strtod: fix bug in replacement function on AIX
15631         * lib/strtod.c (strtod): Special case broken "0x" parse in
15632         underlying strtod.
15633         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15634         * doc/posix-functions/strtod.texi (strtod): Likewise.
15635         Reported by Rainer Tammer.
15636
15637 2010-07-30  Bruno Haible  <bruno@clisp.org>
15638
15639         mbrlen: Fix cross-compilation guess for AIX.
15640         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15641         guess. Leftover from 2008-12-22.
15642
15643 2010-07-30  Bruno Haible  <bruno@clisp.org>
15644
15645         mbrtowc: Fix cross-compilation guess for AIX.
15646         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15647         guess. Leftover from 2008-12-21.
15648
15649 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15650
15651         init.sh: work around trap limitation of some shells
15652         * tests/init.sh (setup_): Move exit trap outside of shell function.
15653
15654 2010-07-29  Eric Blake  <eblake@redhat.com>
15655
15656         strtod: aid debugging
15657         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15658         understanding why strtod is rejected.
15659
15660 2010-07-28  Bruno Haible  <bruno@clisp.org>
15661
15662         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15663         * lib/unistr/u8-chr.c: Include <string.h>.
15664         * tests/unistr/test-u8-chr.c: Likewise.
15665         * tests/unistr/test-u16-chr.c: Likewise.
15666         * tests/unistr/test-u32-chr.c: Likewise.
15667         * tests/unistr/test-u8-strchr.c: Likewise.
15668         * tests/unistr/test-u16-strchr.c: Likewise.
15669         * tests/unistr/test-u32-strchr.c: Likewise.
15670         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15671         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15672         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15673         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15674
15675 2010-07-28  Bruno Haible  <bruno@clisp.org>
15676
15677         Use spaces for indentation, not tabs.
15678         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15679
15680 2010-07-27  Bruno Haible  <bruno@clisp.org>
15681
15682         mbspcasecmp: Fix function specification.
15683         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15684         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15685         Reported by Eric Blake <eblake@redhat.com>.
15686
15687 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15688
15689         timespec: use cast and not conditional, as truncation isn't possible
15690         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15691         instead of a conditional.  Comment about the situation in more detail.
15692         This undoes most of the 2009-10-29 patch.
15693
15694 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15695
15696         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15697         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15698         * lib/unistr/u8-strchr.c: Likewise.
15699         * modules/unistr/u8-chr: Depend on memchr.
15700
15701         unistr/u*-strchr: add tests
15702         * modules/unistr/u8-strchr-tests: New file.
15703         * modules/unistr/u16-strchr-tests: New file.
15704         * modules/unistr/u32-strchr-tests: New file.
15705         * tests/unistr/test-strchr.h: New file.
15706         * tests/unistr/test-u8-strchr.c: New file.
15707         * tests/unistr/test-u16-strchr.c: New file.
15708         * tests/unistr/test-u32-strchr.c: New file.
15709
15710         unistr/u*-chr: test multibyte sequences more
15711         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15712         test vector.
15713         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15714         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15715         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15716
15717         unistr/u*-chr: test multibyte sequences
15718         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15719
15720         unistr/u*-chr: prepare for multibyte tests
15721         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15722         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15723         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15724         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15725         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15726         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15727
15728 2010-07-18  Bruno Haible  <bruno@clisp.org>
15729
15730         unistr/u8-strchr: Optimize non-ASCII argument case.
15731         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15732         because the first byte often matches anyway.
15733         Reported by Pádraig Brady <P@draigbrady.com>.
15734
15735 2010-07-15  Karl Berry  <karl@gnu.org>
15736
15737         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15738
15739 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15740
15741         getcwd: on Solaris, work better if ancestors are inaccessible
15742         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15743         buffer and size, try again with a large buffer.  This works better
15744         on Solaris, since its getcwd succeeds even if the path to the root
15745         is inaccessible, and this is helpful in common cases such as .zfs
15746         hidden directories.  Problem reported by J Chapman Flack in
15747         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15748         Use system getcwd if it's declared, not merely if it's partly
15749         working; use the partly-working test only to avoid needless effort
15750         if the system getcwd fails.
15751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15752         comment that was already obsolete and is now even more obsolete.
15753         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15754         now might call strdup.
15755
15756 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15757
15758         pthread: Add enough so that coreutils/src/sort.c compiles.
15759         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15760         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15761         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15762         Include <sys/types.h>, in case it defines pthread_t.
15763         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15764         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15765         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15766         (pthread_rwlockattr_t, pthread_spinlock_t):
15767         New typedefs, if HAVE_PTHREAD_T is not defined.
15768         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15769         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15770         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15771         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15772         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15773         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15774         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15775         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15776         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15777         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15778         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15779         New macros.
15780         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15781         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15782         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15783         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15784         (pthread_spin_unlock): New dummy functions.
15785         (pthread_create): Return EAGAIN; don't set errno.
15786         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15787         require AC_C_INLINE.
15788         * modules/pthread (Depends-on): Add sched, time.
15789         (pthread.h): Use AM_V_GEN.
15790
15791 2010-07-13  Bruno Haible  <bruno@clisp.org>
15792
15793         striconveh: Don't malloc memory if the result buffer is sufficient.
15794         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15795         buffer if its size is sufficient.
15796         Reported by Ludovic Courtès <ludo@gnu.org>.
15797
15798 2010-07-13  Bruno Haible  <bruno@clisp.org>
15799
15800         strtod: Add safety check.
15801         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15802
15803 2010-07-12  Bruno Haible  <bruno@clisp.org>
15804
15805         Unify tests that set gl_cv_func_ldexpl_no_libm.
15806         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15807         gl_FUNC_LDEXPL.
15808         (gl_FUNC_LDEXPL): Invoke it.
15809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15810
15811 2010-07-12  Bruno Haible  <bruno@clisp.org>
15812
15813         Unify tests that set gl_cv_func_ldexp_no_libm.
15814         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15815         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15816         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15817         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15818         * modules/strtod (Files): Add m4/ldexp.m4.
15819
15820 2010-07-12  Bruno Haible  <bruno@clisp.org>
15821
15822         Unify tests that set gl_cv_func_frexpl_no_libm.
15823         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15824         gl_FUNC_FREXPL_NO_LIBM.
15825         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15826         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15827
15828 2010-07-12  Bruno Haible  <bruno@clisp.org>
15829
15830         Unify tests that set gl_cv_func_frexp_no_libm.
15831         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15832         gl_FUNC_FREXP_NO_LIBM.
15833         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15834         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15835
15836 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15837
15838         memcoll: clarify sizes versus lengths, document better, and tweak perf
15839         * lib/memcoll.c (strcoll_loop, memcoll0):
15840         Improve quality of descriptive comments.  Name variables
15841         consistently as to whether they are lengths (which do not include
15842         terminating null) versus sizes (which do).
15843         * lib/xmemcoll.c (xmemcoll0): Likewise.
15844         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15845         returned when s1size == 0; this is easier to compile and saves
15846         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15847
15848 2010-07-12  Bruno Haible  <bruno@clisp.org>
15849
15850         Tests for module '_Exit'.
15851         * modules/_Exit-tests: New file.
15852         * tests/test-_Exit.sh: New file.
15853         * tests/test-_Exit.c: New file.
15854
15855         New module '_Exit'.
15856         * lib/stdlib.in.h (__attribute__): New macro.
15857         (_Exit): New declaration.
15858         * lib/_Exit.c: New file.
15859         * m4/_Exit.m4: New file.
15860         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15861         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15862         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15863         * modules/_Exit: New file.
15864         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15865         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15866
15867 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15868
15869         strtod: make it more-accurate typically, and don't require libm
15870         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15871         Include limits.h.  Don't include string.h.
15872         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15873         (locale_isspace): New function, so that no casts are needed to
15874         check whether *s is a space.
15875         (ldexp): Provide an unused dummy if not available.
15876         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15877         (strtod): Use them.  This implementation prefers to use the
15878         underlying strtod if available, falling back on our own code
15879         only to fix known bugs.  This is more likely to produce an
15880         accurate result.  Also, it avoids the use of libm functions.
15881         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15882         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15883         was absent, but it caused a test failure with coreutils.
15884         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15885         with libm.
15886         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15887         * modules/strtod-tests (Makefile.am): Likewise.
15888
15889 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15890             Bruno Haible  <bruno@clisp.org>
15891
15892         unistr/u8-strchr: Optimize ASCII argument case.
15893         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15894
15895 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15896
15897         (x)memcoll: minor tweaks
15898         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15899         is after the type that it qualifies.
15900         (memcoll0): Likewise.
15901         * lib/memcoll.h (memcoll0): Likewise.
15902         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15903         * lib/xmemcoll.h (xmemcoll0): Likewise.
15904         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15905         differs from memcoll in that the NUL byte is part of the argument.
15906         Omit the abort-checks, as performance is a real issue here.  Plus,
15907         the checks were wrong anyway (an off-by-one error).  Omit local
15908         variable 'diff', as it's a bit clearer that way.
15909         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15910         no longer needed.
15911
15912 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15913
15914         (x)memcoll: speedup when input is known to be NUL delimited
15915         * lib/memcoll.c: Include stdlib.
15916         (memcoll0): New function.
15917         (strcoll_loop): New function, refactored for use in both memcoll
15918         and memcoll0.
15919         * lib/memcoll.h (memcoll0): Add prototype.
15920         * lib/xmemcoll.c (xmemcoll0): New function.
15921         (collate_error): New function, refactored for use in both xmemcoll
15922         and xmemcoll0.
15923         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15924         * m4/memcoll.m4: add inline invocation.
15925
15926 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15927
15928         * build-aux/bootstrap: Remove any local translations
15929         from the translation project synchronization directory,
15930         so that local only translations are not distributed.
15931
15932 2010-07-04  Bruno Haible  <bruno@clisp.org>
15933
15934         fsusage: Clarify which code applies to which platforms.
15935         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15936         platform.
15937         * lib/fsusage.c (get_fs_usage): Likewise.
15938
15939 2010-07-04  Bruno Haible  <bruno@clisp.org>
15940
15941         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15942         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15943         Reported by Martin Lambers <marlam@marlam.de>.
15944
15945 2010-07-04  Jim Meyering  <meyering@redhat.com>
15946
15947         hash: once again explicitly disallow insertion of NULL
15948         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15949         inserting a NULL pointer cannot work with these functions.
15950         Add a comment with details.
15951         This reverts part of the 2010-07-01 commit, 5bef1a35
15952         "hash: extend module to deal with non-pointer keys".
15953
15954 2010-07-01  Bruno Haible  <bruno@clisp.org>
15955
15956         stdbool: Update doc.
15957         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15958         Info from Christian Weisgerber <naddy@mips.inka.de>.
15959
15960 2010-07-01  Jim Meyering  <meyering@redhat.com>
15961
15962         hash: extend module to deal with non-pointer keys
15963         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15964         but that allows insertion of non-pointer entries.
15965         Do not disallow an ENTRY value of NULL.
15966         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15967         * lib/hash.h (hash_insert0): Declare.
15968
15969 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15970
15971         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15972         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15973         not present (i.e. with autoconf 2.59 and when using gettextize, not
15974         gnulib), require AC_GNU_SOURCE instead.
15975
15976 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15977
15978         idpriv-drop: Fix tests.
15979         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15980         not to the test-idpriv-droptemp program.
15981
15982 2010-06-29  Bruno Haible  <bruno@clisp.org>
15983
15984         string: Fix syntax error with g++ 2.96.
15985         * lib/string.in.h (__pure__): Remove definition.
15986         (_GL_ATTRIBUTE_PURE): New macro.
15987         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15988         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15989         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15990
15991 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15992
15993         unitypes: Fix bug introduced on 2010-05-18.
15994         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15995
15996 2010-06-22  Eric Blake  <eblake@redhat.com>
15997
15998         memmem: slight optimization
15999         * lib/str-two-way.h (critical_factorization): Update comments.
16000         Reduce work during factorization phase.
16001         Reported by Carlos Bueno <carlos@bueno.org>.
16002
16003 2010-06-21  Bruno Haible  <bruno@clisp.org>
16004
16005         Fix HAVE_CALLOC_POSIX misnomer.
16006         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16007         !HAVE_CALLOC_POSIX.
16008         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16009         HAVE_CALLOC_POSIX.
16010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16011         instead of HAVE_CALLOC_POSIX.
16012         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16013         HAVE_CALLOC_POSIX.
16014
16015         Use modern idiom for calloc() replacement.
16016         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16017         AC_FUNC_CALLOC.
16018         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16019         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16020         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16021         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16022         (gl_REPLACE_CALLOC): New macro.
16023
16024 2010-06-21  Bruno Haible  <bruno@clisp.org>
16025
16026         Fix HAVE_REALLOC_POSIX misnomer.
16027         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16028         !HAVE_REALLOC_POSIX.
16029         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16030         HAVE_REALLOC_POSIX.
16031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16032         instead of HAVE_REALLOC_POSIX.
16033         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16034         HAVE_REALLOC_POSIX.
16035
16036         Use modern idiom for realloc() replacement.
16037         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16038         AC_FUNC_REALLOC.
16039         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16040         Autoconf's AC_FUNC_REALLOC.
16041         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16042         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16043         (gl_REPLACE_REALLOC): New macro.
16044         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16045
16046 2010-06-21  Bruno Haible  <bruno@clisp.org>
16047
16048         Fix HAVE_MALLOC_POSIX misnomer.
16049         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16050         !HAVE_MALLOC_POSIX.
16051         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16052         HAVE_MALLOC_POSIX.
16053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16054         instead of HAVE_MALLOC_POSIX.
16055         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16056         HAVE_MALLOC_POSIX.
16057
16058         Use modern idiom for malloc() replacement.
16059         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16060         AC_FUNC_MALLOC.
16061         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16062         Autoconf's AC_FUNC_MALLOC.
16063         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16064         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16065         (gl_REPLACE_MALLOC): New macro.
16066         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16067
16068 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16069
16070         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16071         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16072         This macro takes 3 arguments, not 4.
16073
16074 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16075
16076         ipv6: fix detection under mingw
16077         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16078         in6_addr.
16079
16080 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16081
16082         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16083         that strtod() works when cross-compiling to a glibc version known
16084         to work.
16085
16086 2010-06-15  Bruno Haible  <bruno@clisp.org>
16087
16088         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16089
16090 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16091
16092         select: Correct timeout.
16093         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16094
16095 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16096
16097         git-version-gen: init shell var to avoid env var influence
16098         * build-aux/git-version-gen (v): Init shell var to empty.
16099
16100 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16101
16102         priv-set: Don't assume that priv.h exists merely because getppriv does.
16103         See Jan Andersen's bug report about AIX 5L in
16104         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16105         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16106         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16107         * lib/priv-set.h: Likewise.
16108         * tests/test-priv-set.c: Likewise.
16109
16110 2010-06-13  Bruno Haible  <bruno@clisp.org>
16111
16112         relocatable: Make it easier to test whether to install wrappers.
16113         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16114         RELOCATABLE_VIA_WRAPPER.
16115
16116 2010-06-13  Bruno Haible  <bruno@clisp.org>
16117
16118         gnulib-tool: Display specified modules and dependencies differently.
16119         * gnulib-tool (func_show_module_list): New function.
16120         (func_import, func_create_testdir): Invoke it.
16121         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16122
16123 2010-06-13  Bruno Haible  <bruno@clisp.org>
16124
16125         gnulib-tool: Align code of func_import and func_create_testdir.
16126         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16127         specified_modules.
16128
16129 2010-06-12  Jim Meyering  <meyering@redhat.com>
16130
16131         test-inttostr: avoid spurious failure on Solaris 9
16132         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16133         to accept "%ju".  Reported by Bruno Haible.
16134
16135 2010-06-11  Jim Meyering  <meyering@redhat.com>
16136
16137         test-sys_socket: mark variables as used more readably
16138         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16139         as "used" explicitly via (void) statement casts.  This is more
16140         readable than using them in an artificial return expression.
16141         Suggestion from Bruno Haible.
16142
16143 2010-06-11  Bruno Haible  <bruno@clisp.org>
16144
16145         Avoid some more warnings from "gcc -Wwrite-strings".
16146         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16147         to 'const char *'.
16148         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16149         * tests/test-c-strcasestr.c (main): Likewise.
16150         * tests/test-mbscasestr1.c (main): Likewise.
16151         * tests/test-mbscasestr2.c (main): Likewise.
16152         * tests/test-memmem.c (main): Likewise.
16153         * tests/test-strstr.c (main): Likewise.
16154         * tests/test-strcasestr.c (main): Likewise.
16155
16156 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16157
16158         init.sh: change framework_failure_ to fail with status 99, not 1
16159         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16160         automake's parallel-tests rule that this is an unexpected failure,
16161         even if the test is listed in XFAIL_TESTS.
16162
16163 2010-06-11  Jim Meyering  <meyering@redhat.com>
16164
16165         test-inttostr: avoid warnings about 4-6KB literal strings
16166         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16167         Include "macros.h", for its definition of ASSERT.
16168         (CK): s/assert/ASSERT/
16169         * modules/inttostr-tests (Files): Add macros.h.
16170
16171         init.sh: don't use $ME_ or skip_ before they are defined
16172         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16173         their first uses.  Also hoist their companions: warn_, fail_,
16174         framework_failure_, $stderr_fileno.  Prompted by a patch from
16175         Stefano Lattarini.
16176
16177         test-sys_socket: avoid set-but-not-used warnings from gcc
16178         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16179         avoid warning about set-but-not-used variables.
16180
16181         test-xvasprintf: avoid 'const' discard warnings
16182         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16183         "const" when assigning from literal strings.
16184         (test_xasprintf): Add "void" in function argument list to placate
16185         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16186
16187         tests: avoid compilation warnings in argmatch and exclude tests...
16188         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16189         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16190         Since it always exits, declare with the "noreturn" attribute.
16191         * tests/test-argmatch.c: Likewise.
16192
16193         tests: avoid 'const' discard warnings in mbsstr tests
16194         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16195         * tests/test-mbsstr2.c (main): Likewise.
16196
16197         test-verify: avoid warning from gcc's -Wmissing-declarations
16198         * tests/test-verify.c (function): Declare to be static.
16199
16200         test-inttostr.c: include <string.h> for use of strcmp
16201         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16202
16203         test-linkat: avoid failed assertion on "other" architectures
16204         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16205         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16206         sparc: https://bugs.launchpad.net/bugs/591968
16207
16208 2010-06-11  Jim Meyering  <meyering@redhat.com>
16209
16210         printf.m4: avoid autoconf's "Expanded Before Required" warning
16211         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16212         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16213         autoconf warning.
16214
16215 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16216
16217         Replacement header templates are now named with ".in", not "_".
16218         * doc/gnulib-intro.texi: Correct.
16219
16220 2010-06-10  Jim Meyering  <meyering@redhat.com>
16221
16222         inttostr-tests: depend on snprintf, not snprintf-posix
16223         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16224         snprintf-posix, to avoid this aclocal failure:
16225           missing file gnulib-tests/vasnprintf.c
16226           configure.ac:45: error: expected source file, required through \
16227           AC_LIBSOURCES, not found
16228
16229 2010-06-10  Jim Meyering  <meyering@redhat.com>
16230
16231         inttostr: add a new function, inttostr, and tests
16232         The namesake function was not available.  The existence of the
16233         template file, inttostr.c makes its addition nontrivial.
16234         * lib/anytostr.c: Rename from inttostr.c.
16235         (anytostr): Rename from inttostr.
16236         * lib/inttostr.c: New file.
16237         * modules/inttostr (Files): Add anytostr.c.
16238         (Makefile.am): Set lib_SOURCES instead of ...
16239         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16240         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16241         * lib/offtostr.c: Likewise.
16242         * lib/uinttostr.c: Likewise.
16243         * lib/umaxtostr.c: Likewise.
16244         * modules/inttostr-tests: New file.
16245         * tests/test-inttostr.c: New file.  Test these functions.
16246
16247 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16248             Bruno Haible  <bruno@clisp.org>
16249
16250         Add "Extending Gnulib" chapter to manual.
16251         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16252         chapter.
16253         (Extending Gnulib): New chapter.
16254         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16255         chapter.
16256
16257 2010-06-09  Bruno Haible  <bruno@clisp.org>
16258
16259         Avoid relocwrapper link errors due to gnulib replacement functions.
16260         * lib/areadlink.c: Use the system's malloc, realloc functions.
16261         (areadlink): Set errno to ENOMEM explicitly.
16262         * modules/areadlink (Depends-on): Remove malloc-posix.
16263         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16264
16265 2010-06-09  Bruno Haible  <bruno@clisp.org>
16266
16267         Avoid relocwrapper link errors due to gnulib replacement functions.
16268         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16269         * lib/malloca.c: Likewise.
16270         * lib/relocatable.c: Likewise.
16271         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16272         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16273         * lib/setenv.c: Use the system's malloc, realloc functions.
16274         * lib/strerror.c: Use the system's sprintf function.
16275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16276
16277 2010-06-04  Bruno Haible  <bruno@clisp.org>
16278
16279         Prefer documented low-level autoconf macro names.
16280         * m4/lib-link.m4: Use m4_translit instead of translit.
16281         * m4/environ.m4: Likewise.
16282         * m4/mathfunc.m4: Likewise.
16283         * m4/onceonly.m4: Likewise.
16284         * m4/stdint.m4: Likewise.
16285         Suggested by Eric Blake.
16286
16287 2010-06-04  Martin Lambers  <marlam@marlam.de>
16288             Bruno Haible  <bruno@clisp.org>
16289
16290         havelib: Allow library names with '+' characters.
16291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16292         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16293
16294 2010-06-09  Bruno Haible  <bruno@clisp.org>
16295
16296         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16297         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16298         realloc failed.
16299
16300 2010-06-08  Peter Simons  <simons@cryp.to>
16301
16302         maint.mk: make the news-check rule more configurable
16303         * top/maint.mk (news-check-lines-spec): New variable.
16304         (news-check): Use "sed -n 1,10p" in place of "head".
16305
16306 2010-06-07  Jim Meyering  <meyering@redhat.com>
16307
16308         do-release-commit-and-tag: fix typo in --help
16309         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16310
16311         regex: avoid new dead-code warning with gcc-4.6.0
16312         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16313         if-block containing a while-loop.  It's been unused for at least
16314         5 years.
16315
16316 2010-06-05  Bruno Haible  <bruno@clisp.org>
16317
16318         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16319         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16320
16321 2010-06-04  Bruno Haible  <bruno@clisp.org>
16322
16323         Update to GNU gettext 0.18.1.
16324         * modules/gettext (configure.ac): Require gettext infrastructure from
16325         version 0.18.1.
16326
16327 2010-06-03  Bruno Haible  <bruno@clisp.org>
16328
16329         Don't use AC_LIBOBJ with file names in subdirectories.
16330         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16331         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16332         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16333         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16334         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16335         gl_LIBUNISTRING_LIBSOURCE.
16336         (Makefile.am): Augment lib_SOURCES here, conditionally.
16337         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16338
16339 2010-06-03  Bruno Haible  <bruno@clisp.org>
16340
16341         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16342         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16343         expansion does not end with a newline.
16344         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16345         unnecessary newline.
16346
16347 2010-06-03  Bruno Haible  <bruno@clisp.org>
16348
16349         Reduce dependencies.
16350         * tests/test-quotearg.h: New file, extracted from
16351         tests/test-quotearg.c.
16352         * tests/test-quotearg-simple.c: New file, extracted from
16353         tests/test-quotearg.c.
16354         * tests/test-quotearg.c: Don't include <ctype.h>.
16355         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16356         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16357         use_quote_double_quotes, use_quotearg_colon): Moved to
16358         tests/test-quotearg.h.
16359         (results_g, flag_results, custom_quotes, custom_results): Moved
16360         to tests/test-quotearg-simple.c.
16361         (main): Moved the part that does not depend on gettext to
16362         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16363         performed.
16364         * modules/quotearg-simple: New file.
16365         * modules/quotearg-simple-tests: New file.
16366         * modules/quotearg (Depends-on): Add quotearg-simple.
16367         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16368         (Files): Add tests/test-quotearg.h.
16369         Reported by Paolo Bonzini.
16370
16371 2010-06-03  Bruno Haible  <bruno@clisp.org>
16372
16373         Reduce dependencies.
16374         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16375
16376 2010-06-03  Bruno Haible  <bruno@clisp.org>
16377
16378         time: Undefine more broken macros.
16379         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16380         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16381         Reported by Eric Blake.
16382
16383 2010-06-03  Bruno Haible  <bruno@clisp.org>
16384
16385         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16386         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16387         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16388         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16389         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16390         Reported by Ludovic Courtès <ludo@gnu.org>.
16391
16392 2010-06-02  Eric Blake  <eblake@redhat.com>
16393
16394         time: work with mingw + pthreads-win32 library
16395         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16396         if timespec is defined only in pthread.h.
16397         * modules/time (Makefile.am): Substitute it.
16398         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16399         <pthread.h>, when needed.
16400         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16401         from the library.
16402
16403 2010-05-31  Bruno Haible  <bruno@clisp.org>
16404
16405         Avoid expanding two macros in the wrong order.
16406         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16407         gl_LIBUNISTRING if it is defined.
16408         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16409         autoconf >= 2.64.
16410         Reported by Ludovic Courtès <ludo@gnu.org>.
16411
16412 2010-05-27  Jim Meyering  <meyering@redhat.com>
16413
16414         maint.mk: also prohibit "#undef" of always-defined symbols
16415         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16416         Allow more than one space before the symbol name.
16417         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16418         the regexp uses alternation.
16419
16420 2010-05-26  Eric Blake  <eblake@redhat.com>
16421
16422         maint.mk: avoid echo -e
16423         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16424         Convert all uses of echo -* to printf.
16425         Reported by Matthias Bolte.
16426
16427 2010-05-25  Bruno Haible  <bruno@clisp.org>
16428
16429         Update to GNU gettext 0.18, part 2.
16430         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16431         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16432
16433 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16434
16435         Add missing include in test-pwrite.c.
16436         * tests/test-pwrite.c: Include string.h, for strcmp.
16437
16438 2010-05-24  Bruno Haible  <bruno@clisp.org>
16439
16440         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16441
16442 2010-05-24  Bruno Haible  <bruno@clisp.org>
16443
16444         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16445         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16446         iconveh_error argument.
16447         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16448         U_STRCONV_TO_LOCALE.
16449         * lib/unistr/u16-strcoll.c: Likewise.
16450         * lib/unistr/u32-strcoll.c: Likewise.
16451         * modules/unistr/u8-strcoll (Depends-on): Add
16452         uniconv/u8-strconv-to-enc, localcharset. Remove
16453         uniconv/u8-strconv-to-locale.
16454         (configure.ac): Bump version number.
16455         * modules/unistr/u16-strcoll (Depends-on): Add
16456         uniconv/u16-strconv-to-enc, localcharset. Remove
16457         uniconv/u16-strconv-to-locale.
16458         (configure.ac): Bump version number.
16459         * modules/unistr/u32-strcoll (Depends-on): Add
16460         uniconv/u32-strconv-to-enc, localcharset. Remove
16461         uniconv/u32-strconv-to-locale.
16462         (configure.ac): Bump version number.
16463
16464 2010-05-24  Bruno Haible  <bruno@clisp.org>
16465
16466         Avoid a test failure on NetBSD 5.0.
16467         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16468         an iconv() bug.
16469
16470 2010-05-24  Bruno Haible  <bruno@clisp.org>
16471
16472         Adjust #include directive style.
16473         * modules/regex (Includes): Recommend to write <regex.h>.
16474
16475 2010-05-24  Bruno Haible  <bruno@clisp.org>
16476
16477         regex: Don't require alloca.
16478         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16479         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16480         only inside if (0).
16481
16482 2010-05-23  Jim Meyering  <meyering@redhat.com>
16483
16484         test-renameat.c: include <sys/stat.h>
16485         * tests/test-renameat.c: Include <sys/stat.h>; required for
16486         definition of S_IS* macros.
16487
16488 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16489
16490         Update maintainer documentation for 'relocatable-prog' module.
16491         * doc/relocatable-maint.texi: Update.
16492         Comments by Bruno Haible.
16493
16494 2010-05-23  Bruno Haible  <bruno@clisp.org>
16495
16496         git-merge-changelog: Enable --split-merged-entry by default.
16497         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16498         (usage): Don't mention this option any more.
16499         Reported by Ralf Wildenhues.
16500
16501 2010-05-23  Jim Meyering  <meyering@redhat.com>
16502
16503         test-pwrite: do not leave behind a test file named "out"
16504         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16505         The trivial-looking use of init.sh is really necessary.
16506         It ensures that the temporary file, "out", is created in
16507         a temporary directory, and removed upon termination.
16508         * tests/test-pwrite.sh: Re-add file.
16509         * modules/pwrite-tests: Reference it.
16510
16511 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16512
16513         Fix output redirection buglet in init.sh.
16514         * tests/init.sh: Fix redirection of stderr.
16515
16516 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16517
16518         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16519
16520 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16521
16522         * modules/valgrind-tests: New file.
16523         * m4/valgrind-tests.m4: New file.
16524         * doc/valgrind-tests.texi: New file.
16525         * doc/gnulib.texi (Running self-tests under valgrind): New
16526         section.
16527
16528 2010-05-19  Bruno Haible  <bruno@clisp.org>
16529
16530         Clean up dead code in recent commit.
16531         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16532         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16533         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16534         Suggested by Paolo Bonzini.
16535
16536 2010-05-19  Bruno Haible  <bruno@clisp.org>
16537
16538         Avoid valgrind error reports from libunistring.
16539         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16540         * modules/libunistring (Files): Add it.
16541         * modules/libunistring-optional (Files): Likewise.
16542
16543 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16544             Bruno Haible  <bruno@clisp.org>
16545
16546         New module 'libunistring-optional'.
16547         * modules/libunistring-optional: New file.
16548         * m4/libunistring-base.m4: New file.
16549         * m4/libunistring-optional.m4: New file.
16550         * lib/unicase.in.h: Renamed from lib/unicase.h.
16551         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16552         * lib/unictype.in.h: Renamed from lib/unictype.h.
16553         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16554         * lib/uniname.in.h: Renamed from lib/uniname.h.
16555         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16556         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16557         * lib/unistr.in.h: Renamed from lib/unistr.h.
16558         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16559         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16560         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16561         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16562         gl_LIBUNISTRING. If the library was found, determine the installed
16563         version and set LIBUNISTRING_VERSION.
16564         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16565         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16566         handle a configuration option --with-included-libunistring.
16567         * modules/libunistring (Files): Add m4/absolute-header.m4.
16568         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16569         Add m4/libunistring-base.m4.
16570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16571         (Makefile.am): Build unicase.h from unicase.in.h.
16572         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16573         Add m4/libunistring-base.m4.
16574         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16575         (Makefile.am): Build uniconv.h from uniconv.in.h.
16576         * modules/unictype/base (Files): Use unictype.in.h instead of
16577         unictype.h. Add m4/libunistring-base.m4.
16578         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16579         (Makefile.am): Build unictype.h from unictype.in.h.
16580         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16581         Add m4/libunistring-base.m4.
16582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16583         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16584         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16585         Add m4/libunistring-base.m4.
16586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16587         (Makefile.am): Build uniname.h from uniname.in.h.
16588         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16589         Add m4/libunistring-base.m4.
16590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16591         (Makefile.am): Build uninorm.h from uninorm.in.h.
16592         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16593         unistdio.h. Add m4/libunistring-base.m4.
16594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16595         (Makefile.am): Build unistdio.h from unistdio.in.h.
16596         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16597         Add m4/libunistring-base.m4.
16598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16599         (Makefile.am): Build unistr.h from unistr.in.h.
16600         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16601         Add m4/libunistring-base.m4.
16602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16603         (Makefile.am): Build unitypes.h from unitypes.in.h.
16604         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16605         Add m4/libunistring-base.m4.
16606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16607         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16608         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16609         uniwidth.h. Add m4/libunistring-base.m4.
16610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16611         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16612         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16613         instead of augmenting lib_SOURCES.
16614         * modules/unicase/empty-suffix-context: Likewise.
16615         * modules/unicase/locale-language: Likewise.
16616         * modules/unicase/tolower: Likewise.
16617         * modules/unicase/totitle: Likewise.
16618         * modules/unicase/toupper: Likewise.
16619         * modules/unicase/u8-casecmp: Likewise.
16620         * modules/unicase/u8-casecoll: Likewise.
16621         * modules/unicase/u8-casefold: Likewise.
16622         * modules/unicase/u8-casexfrm: Likewise.
16623         * modules/unicase/u8-ct-casefold: Likewise.
16624         * modules/unicase/u8-ct-tolower: Likewise.
16625         * modules/unicase/u8-ct-totitle: Likewise.
16626         * modules/unicase/u8-ct-toupper: Likewise.
16627         * modules/unicase/u8-is-cased: Likewise.
16628         * modules/unicase/u8-is-casefolded: Likewise.
16629         * modules/unicase/u8-is-lowercase: Likewise.
16630         * modules/unicase/u8-is-titlecase: Likewise.
16631         * modules/unicase/u8-is-uppercase: Likewise.
16632         * modules/unicase/u8-prefix-context: Likewise.
16633         * modules/unicase/u8-suffix-context: Likewise.
16634         * modules/unicase/u8-tolower: Likewise.
16635         * modules/unicase/u8-totitle: Likewise.
16636         * modules/unicase/u8-toupper: Likewise.
16637         * modules/unicase/u16-casecmp: Likewise.
16638         * modules/unicase/u16-casecoll: Likewise.
16639         * modules/unicase/u16-casefold: Likewise.
16640         * modules/unicase/u16-casexfrm: Likewise.
16641         * modules/unicase/u16-ct-casefold: Likewise.
16642         * modules/unicase/u16-ct-tolower: Likewise.
16643         * modules/unicase/u16-ct-totitle: Likewise.
16644         * modules/unicase/u16-ct-toupper: Likewise.
16645         * modules/unicase/u16-is-cased: Likewise.
16646         * modules/unicase/u16-is-casefolded: Likewise.
16647         * modules/unicase/u16-is-lowercase: Likewise.
16648         * modules/unicase/u16-is-titlecase: Likewise.
16649         * modules/unicase/u16-is-uppercase: Likewise.
16650         * modules/unicase/u16-prefix-context: Likewise.
16651         * modules/unicase/u16-suffix-context: Likewise.
16652         * modules/unicase/u16-tolower: Likewise.
16653         * modules/unicase/u16-totitle: Likewise.
16654         * modules/unicase/u16-toupper: Likewise.
16655         * modules/unicase/u32-casecmp: Likewise.
16656         * modules/unicase/u32-casecoll: Likewise.
16657         * modules/unicase/u32-casefold: Likewise.
16658         * modules/unicase/u32-casexfrm: Likewise.
16659         * modules/unicase/u32-ct-casefold: Likewise.
16660         * modules/unicase/u32-ct-tolower: Likewise.
16661         * modules/unicase/u32-ct-totitle: Likewise.
16662         * modules/unicase/u32-ct-toupper: Likewise.
16663         * modules/unicase/u32-is-cased: Likewise.
16664         * modules/unicase/u32-is-casefolded: Likewise.
16665         * modules/unicase/u32-is-lowercase: Likewise.
16666         * modules/unicase/u32-is-titlecase: Likewise.
16667         * modules/unicase/u32-is-uppercase: Likewise.
16668         * modules/unicase/u32-prefix-context: Likewise.
16669         * modules/unicase/u32-suffix-context: Likewise.
16670         * modules/unicase/u32-tolower: Likewise.
16671         * modules/unicase/u32-totitle: Likewise.
16672         * modules/unicase/u32-toupper: Likewise.
16673         * modules/unicase/ulc-casecmp: Likewise.
16674         * modules/unicase/ulc-casecoll: Likewise.
16675         * modules/unicase/ulc-casexfrm: Likewise.
16676         * modules/uniconv/u8-conv-from-enc: Likewise.
16677         * modules/uniconv/u8-conv-to-enc: Likewise.
16678         * modules/uniconv/u8-strconv-from-enc: Likewise.
16679         * modules/uniconv/u8-strconv-from-locale: Likewise.
16680         * modules/uniconv/u8-strconv-to-enc: Likewise.
16681         * modules/uniconv/u8-strconv-to-locale: Likewise.
16682         * modules/uniconv/u16-conv-from-enc: Likewise.
16683         * modules/uniconv/u16-conv-to-enc: Likewise.
16684         * modules/uniconv/u16-strconv-from-enc: Likewise.
16685         * modules/uniconv/u16-strconv-from-locale: Likewise.
16686         * modules/uniconv/u16-strconv-to-enc: Likewise.
16687         * modules/uniconv/u16-strconv-to-locale: Likewise.
16688         * modules/uniconv/u32-conv-from-enc: Likewise.
16689         * modules/uniconv/u32-conv-to-enc: Likewise.
16690         * modules/uniconv/u32-strconv-from-enc: Likewise.
16691         * modules/uniconv/u32-strconv-from-locale: Likewise.
16692         * modules/uniconv/u32-strconv-to-enc: Likewise.
16693         * modules/uniconv/u32-strconv-to-locale: Likewise.
16694         * modules/unictype/bidicategory-byname: Likewise.
16695         * modules/unictype/bidicategory-name: Likewise.
16696         * modules/unictype/bidicategory-of: Likewise.
16697         * modules/unictype/bidicategory-test: Likewise.
16698         * modules/unictype/block-list: Likewise.
16699         * modules/unictype/block-test: Likewise.
16700         * modules/unictype/category-C: Likewise.
16701         * modules/unictype/category-Cc: Likewise.
16702         * modules/unictype/category-Cf: Likewise.
16703         * modules/unictype/category-Cn: Likewise.
16704         * modules/unictype/category-Co: Likewise.
16705         * modules/unictype/category-Cs: Likewise.
16706         * modules/unictype/category-L: Likewise.
16707         * modules/unictype/category-Ll: Likewise.
16708         * modules/unictype/category-Lm: Likewise.
16709         * modules/unictype/category-Lo: Likewise.
16710         * modules/unictype/category-Lt: Likewise.
16711         * modules/unictype/category-Lu: Likewise.
16712         * modules/unictype/category-M: Likewise.
16713         * modules/unictype/category-Mc: Likewise.
16714         * modules/unictype/category-Me: Likewise.
16715         * modules/unictype/category-Mn: Likewise.
16716         * modules/unictype/category-N: Likewise.
16717         * modules/unictype/category-Nd: Likewise.
16718         * modules/unictype/category-Nl: Likewise.
16719         * modules/unictype/category-No: Likewise.
16720         * modules/unictype/category-P: Likewise.
16721         * modules/unictype/category-Pc: Likewise.
16722         * modules/unictype/category-Pd: Likewise.
16723         * modules/unictype/category-Pe: Likewise.
16724         * modules/unictype/category-Pf: Likewise.
16725         * modules/unictype/category-Pi: Likewise.
16726         * modules/unictype/category-Po: Likewise.
16727         * modules/unictype/category-Ps: Likewise.
16728         * modules/unictype/category-S: Likewise.
16729         * modules/unictype/category-Sc: Likewise.
16730         * modules/unictype/category-Sk: Likewise.
16731         * modules/unictype/category-Sm: Likewise.
16732         * modules/unictype/category-So: Likewise.
16733         * modules/unictype/category-Z: Likewise.
16734         * modules/unictype/category-Zl: Likewise.
16735         * modules/unictype/category-Zp: Likewise.
16736         * modules/unictype/category-Zs: Likewise.
16737         * modules/unictype/category-and: Likewise.
16738         * modules/unictype/category-and-not: Likewise.
16739         * modules/unictype/category-byname: Likewise.
16740         * modules/unictype/category-name: Likewise.
16741         * modules/unictype/category-none: Likewise.
16742         * modules/unictype/category-of: Likewise.
16743         * modules/unictype/category-or: Likewise.
16744         * modules/unictype/category-test: Likewise.
16745         * modules/unictype/combining-class: Likewise.
16746         * modules/unictype/ctype-alnum: Likewise.
16747         * modules/unictype/ctype-alpha: Likewise.
16748         * modules/unictype/ctype-blank: Likewise.
16749         * modules/unictype/ctype-cntrl: Likewise.
16750         * modules/unictype/ctype-digit: Likewise.
16751         * modules/unictype/ctype-graph: Likewise.
16752         * modules/unictype/ctype-lower: Likewise.
16753         * modules/unictype/ctype-print: Likewise.
16754         * modules/unictype/ctype-punct: Likewise.
16755         * modules/unictype/ctype-space: Likewise.
16756         * modules/unictype/ctype-upper: Likewise.
16757         * modules/unictype/ctype-xdigit: Likewise.
16758         * modules/unictype/decimal-digit: Likewise.
16759         * modules/unictype/digit: Likewise.
16760         * modules/unictype/mirror: Likewise.
16761         * modules/unictype/numeric: Likewise.
16762         * modules/unictype/property-alphabetic: Likewise.
16763         * modules/unictype/property-ascii-hex-digit: Likewise.
16764         * modules/unictype/property-bidi-arabic-digit: Likewise.
16765         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16766         * modules/unictype/property-bidi-block-separator: Likewise.
16767         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16768         * modules/unictype/property-bidi-common-separator: Likewise.
16769         * modules/unictype/property-bidi-control: Likewise.
16770         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16771         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16772         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16773         * modules/unictype/property-bidi-european-digit: Likewise.
16774         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16775         * modules/unictype/property-bidi-left-to-right: Likewise.
16776         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16777         * modules/unictype/property-bidi-other-neutral: Likewise.
16778         * modules/unictype/property-bidi-pdf: Likewise.
16779         * modules/unictype/property-bidi-segment-separator: Likewise.
16780         * modules/unictype/property-bidi-whitespace: Likewise.
16781         * modules/unictype/property-byname: Likewise.
16782         * modules/unictype/property-combining: Likewise.
16783         * modules/unictype/property-composite: Likewise.
16784         * modules/unictype/property-currency-symbol: Likewise.
16785         * modules/unictype/property-dash: Likewise.
16786         * modules/unictype/property-decimal-digit: Likewise.
16787         * modules/unictype/property-default-ignorable-code-point: Likewise.
16788         * modules/unictype/property-deprecated: Likewise.
16789         * modules/unictype/property-diacritic: Likewise.
16790         * modules/unictype/property-extender: Likewise.
16791         * modules/unictype/property-format-control: Likewise.
16792         * modules/unictype/property-grapheme-base: Likewise.
16793         * modules/unictype/property-grapheme-extend: Likewise.
16794         * modules/unictype/property-grapheme-link: Likewise.
16795         * modules/unictype/property-hex-digit: Likewise.
16796         * modules/unictype/property-hyphen: Likewise.
16797         * modules/unictype/property-id-continue: Likewise.
16798         * modules/unictype/property-id-start: Likewise.
16799         * modules/unictype/property-ideographic: Likewise.
16800         * modules/unictype/property-ids-binary-operator: Likewise.
16801         * modules/unictype/property-ids-trinary-operator: Likewise.
16802         * modules/unictype/property-ignorable-control: Likewise.
16803         * modules/unictype/property-iso-control: Likewise.
16804         * modules/unictype/property-join-control: Likewise.
16805         * modules/unictype/property-left-of-pair: Likewise.
16806         * modules/unictype/property-line-separator: Likewise.
16807         * modules/unictype/property-logical-order-exception: Likewise.
16808         * modules/unictype/property-lowercase: Likewise.
16809         * modules/unictype/property-math: Likewise.
16810         * modules/unictype/property-non-break: Likewise.
16811         * modules/unictype/property-not-a-character: Likewise.
16812         * modules/unictype/property-numeric: Likewise.
16813         * modules/unictype/property-other-alphabetic: Likewise.
16814         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16815         * modules/unictype/property-other-grapheme-extend: Likewise.
16816         * modules/unictype/property-other-id-continue: Likewise.
16817         * modules/unictype/property-other-id-start: Likewise.
16818         * modules/unictype/property-other-lowercase: Likewise.
16819         * modules/unictype/property-other-math: Likewise.
16820         * modules/unictype/property-other-uppercase: Likewise.
16821         * modules/unictype/property-paired-punctuation: Likewise.
16822         * modules/unictype/property-paragraph-separator: Likewise.
16823         * modules/unictype/property-pattern-syntax: Likewise.
16824         * modules/unictype/property-pattern-white-space: Likewise.
16825         * modules/unictype/property-private-use: Likewise.
16826         * modules/unictype/property-punctuation: Likewise.
16827         * modules/unictype/property-quotation-mark: Likewise.
16828         * modules/unictype/property-radical: Likewise.
16829         * modules/unictype/property-sentence-terminal: Likewise.
16830         * modules/unictype/property-soft-dotted: Likewise.
16831         * modules/unictype/property-space: Likewise.
16832         * modules/unictype/property-terminal-punctuation: Likewise.
16833         * modules/unictype/property-test: Likewise.
16834         * modules/unictype/property-titlecase: Likewise.
16835         * modules/unictype/property-unassigned-code-value: Likewise.
16836         * modules/unictype/property-unified-ideograph: Likewise.
16837         * modules/unictype/property-uppercase: Likewise.
16838         * modules/unictype/property-variation-selector: Likewise.
16839         * modules/unictype/property-white-space: Likewise.
16840         * modules/unictype/property-xid-continue: Likewise.
16841         * modules/unictype/property-xid-start: Likewise.
16842         * modules/unictype/property-zero-width: Likewise.
16843         * modules/unictype/scripts: Likewise.
16844         * modules/unictype/syntax-c-ident: Likewise.
16845         * modules/unictype/syntax-c-whitespace: Likewise.
16846         * modules/unictype/syntax-java-ident: Likewise.
16847         * modules/unictype/syntax-java-whitespace: Likewise.
16848         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16849         * modules/unilbrk/u8-width-linebreaks: Likewise.
16850         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16851         * modules/unilbrk/u16-width-linebreaks: Likewise.
16852         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16853         * modules/unilbrk/u32-width-linebreaks: Likewise.
16854         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16855         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16856         * modules/uniname/uniname: Likewise.
16857         * modules/uninorm/canonical-decomposition: Likewise.
16858         * modules/uninorm/composition: Likewise.
16859         * modules/uninorm/decomposing-form: Likewise.
16860         * modules/uninorm/decomposition: Likewise.
16861         * modules/uninorm/filter: Likewise.
16862         * modules/uninorm/nfc: Likewise.
16863         * modules/uninorm/nfd: Likewise.
16864         * modules/uninorm/nfkc: Likewise.
16865         * modules/uninorm/nfkd: Likewise.
16866         * modules/uninorm/u8-normalize: Likewise.
16867         * modules/uninorm/u8-normcmp: Likewise.
16868         * modules/uninorm/u8-normcoll: Likewise.
16869         * modules/uninorm/u8-normxfrm: Likewise.
16870         * modules/uninorm/u16-normalize: Likewise.
16871         * modules/uninorm/u16-normcmp: Likewise.
16872         * modules/uninorm/u16-normcoll: Likewise.
16873         * modules/uninorm/u16-normxfrm: Likewise.
16874         * modules/uninorm/u32-normalize: Likewise.
16875         * modules/uninorm/u32-normcmp: Likewise.
16876         * modules/uninorm/u32-normcoll: Likewise.
16877         * modules/uninorm/u32-normxfrm: Likewise.
16878         * modules/unistdio/u8-asnprintf: Likewise.
16879         * modules/unistdio/u8-asprintf: Likewise.
16880         * modules/unistdio/u8-snprintf: Likewise.
16881         * modules/unistdio/u8-sprintf: Likewise.
16882         * modules/unistdio/u8-u8-asnprintf: Likewise.
16883         * modules/unistdio/u8-u8-asprintf: Likewise.
16884         * modules/unistdio/u8-u8-snprintf: Likewise.
16885         * modules/unistdio/u8-u8-sprintf: Likewise.
16886         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16887         * modules/unistdio/u8-u8-vasprintf: Likewise.
16888         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16889         * modules/unistdio/u8-u8-vsprintf: Likewise.
16890         * modules/unistdio/u8-vasnprintf: Likewise.
16891         * modules/unistdio/u8-vasprintf: Likewise.
16892         * modules/unistdio/u8-vsnprintf: Likewise.
16893         * modules/unistdio/u8-vsprintf: Likewise.
16894         * modules/unistdio/u16-asnprintf: Likewise.
16895         * modules/unistdio/u16-asprintf: Likewise.
16896         * modules/unistdio/u16-snprintf: Likewise.
16897         * modules/unistdio/u16-sprintf: Likewise.
16898         * modules/unistdio/u16-u16-asnprintf: Likewise.
16899         * modules/unistdio/u16-u16-asprintf: Likewise.
16900         * modules/unistdio/u16-u16-snprintf: Likewise.
16901         * modules/unistdio/u16-u16-sprintf: Likewise.
16902         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16903         * modules/unistdio/u16-u16-vasprintf: Likewise.
16904         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16905         * modules/unistdio/u16-u16-vsprintf: Likewise.
16906         * modules/unistdio/u16-vasnprintf: Likewise.
16907         * modules/unistdio/u16-vasprintf: Likewise.
16908         * modules/unistdio/u16-vsnprintf: Likewise.
16909         * modules/unistdio/u16-vsprintf: Likewise.
16910         * modules/unistdio/u32-asnprintf: Likewise.
16911         * modules/unistdio/u32-asprintf: Likewise.
16912         * modules/unistdio/u32-snprintf: Likewise.
16913         * modules/unistdio/u32-sprintf: Likewise.
16914         * modules/unistdio/u32-u32-asnprintf: Likewise.
16915         * modules/unistdio/u32-u32-asprintf: Likewise.
16916         * modules/unistdio/u32-u32-snprintf: Likewise.
16917         * modules/unistdio/u32-u32-sprintf: Likewise.
16918         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16919         * modules/unistdio/u32-u32-vasprintf: Likewise.
16920         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16921         * modules/unistdio/u32-u32-vsprintf: Likewise.
16922         * modules/unistdio/u32-vasnprintf: Likewise.
16923         * modules/unistdio/u32-vasprintf: Likewise.
16924         * modules/unistdio/u32-vsnprintf: Likewise.
16925         * modules/unistdio/u32-vsprintf: Likewise.
16926         * modules/unistdio/ulc-asnprintf: Likewise.
16927         * modules/unistdio/ulc-asprintf: Likewise.
16928         * modules/unistdio/ulc-fprintf: Likewise.
16929         * modules/unistdio/ulc-snprintf: Likewise.
16930         * modules/unistdio/ulc-sprintf: Likewise.
16931         * modules/unistdio/ulc-vasnprintf: Likewise.
16932         * modules/unistdio/ulc-vasprintf: Likewise.
16933         * modules/unistdio/ulc-vfprintf: Likewise.
16934         * modules/unistdio/ulc-vsnprintf: Likewise.
16935         * modules/unistdio/ulc-vsprintf: Likewise.
16936         * modules/unistr/u8-check: Likewise.
16937         * modules/unistr/u8-chr: Likewise.
16938         * modules/unistr/u8-cmp: Likewise.
16939         * modules/unistr/u8-cmp2: Likewise.
16940         * modules/unistr/u8-cpy: Likewise.
16941         * modules/unistr/u8-cpy-alloc: Likewise.
16942         * modules/unistr/u8-endswith: Likewise.
16943         * modules/unistr/u8-mblen: Likewise.
16944         * modules/unistr/u8-mbsnlen: Likewise.
16945         * modules/unistr/u8-mbtouc: Likewise.
16946         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16947         * modules/unistr/u8-mbtoucr: Likewise.
16948         * modules/unistr/u8-move: Likewise.
16949         * modules/unistr/u8-next: Likewise.
16950         * modules/unistr/u8-prev: Likewise.
16951         * modules/unistr/u8-set: Likewise.
16952         * modules/unistr/u8-startswith: Likewise.
16953         * modules/unistr/u8-stpcpy: Likewise.
16954         * modules/unistr/u8-stpncpy: Likewise.
16955         * modules/unistr/u8-strcat: Likewise.
16956         * modules/unistr/u8-strchr: Likewise.
16957         * modules/unistr/u8-strcmp: Likewise.
16958         * modules/unistr/u8-strcoll: Likewise.
16959         * modules/unistr/u8-strcpy: Likewise.
16960         * modules/unistr/u8-strcspn: Likewise.
16961         * modules/unistr/u8-strdup: Likewise.
16962         * modules/unistr/u8-strlen: Likewise.
16963         * modules/unistr/u8-strmblen: Likewise.
16964         * modules/unistr/u8-strmbtouc: Likewise.
16965         * modules/unistr/u8-strncat: Likewise.
16966         * modules/unistr/u8-strncmp: Likewise.
16967         * modules/unistr/u8-strncpy: Likewise.
16968         * modules/unistr/u8-strnlen: Likewise.
16969         * modules/unistr/u8-strpbrk: Likewise.
16970         * modules/unistr/u8-strrchr: Likewise.
16971         * modules/unistr/u8-strspn: Likewise.
16972         * modules/unistr/u8-strstr: Likewise.
16973         * modules/unistr/u8-strtok: Likewise.
16974         * modules/unistr/u8-to-u16: Likewise.
16975         * modules/unistr/u8-to-u32: Likewise.
16976         * modules/unistr/u8-uctomb: Likewise.
16977         * modules/unistr/u16-check: Likewise.
16978         * modules/unistr/u16-chr: Likewise.
16979         * modules/unistr/u16-cmp: Likewise.
16980         * modules/unistr/u16-cmp2: Likewise.
16981         * modules/unistr/u16-cpy: Likewise.
16982         * modules/unistr/u16-cpy-alloc: Likewise.
16983         * modules/unistr/u16-endswith: Likewise.
16984         * modules/unistr/u16-mblen: Likewise.
16985         * modules/unistr/u16-mbsnlen: Likewise.
16986         * modules/unistr/u16-mbtouc: Likewise.
16987         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16988         * modules/unistr/u16-mbtoucr: Likewise.
16989         * modules/unistr/u16-move: Likewise.
16990         * modules/unistr/u16-next: Likewise.
16991         * modules/unistr/u16-prev: Likewise.
16992         * modules/unistr/u16-set: Likewise.
16993         * modules/unistr/u16-startswith: Likewise.
16994         * modules/unistr/u16-stpcpy: Likewise.
16995         * modules/unistr/u16-stpncpy: Likewise.
16996         * modules/unistr/u16-strcat: Likewise.
16997         * modules/unistr/u16-strchr: Likewise.
16998         * modules/unistr/u16-strcmp: Likewise.
16999         * modules/unistr/u16-strcoll: Likewise.
17000         * modules/unistr/u16-strcpy: Likewise.
17001         * modules/unistr/u16-strcspn: Likewise.
17002         * modules/unistr/u16-strdup: Likewise.
17003         * modules/unistr/u16-strlen: Likewise.
17004         * modules/unistr/u16-strmblen: Likewise.
17005         * modules/unistr/u16-strmbtouc: Likewise.
17006         * modules/unistr/u16-strncat: Likewise.
17007         * modules/unistr/u16-strncmp: Likewise.
17008         * modules/unistr/u16-strncpy: Likewise.
17009         * modules/unistr/u16-strnlen: Likewise.
17010         * modules/unistr/u16-strpbrk: Likewise.
17011         * modules/unistr/u16-strrchr: Likewise.
17012         * modules/unistr/u16-strspn: Likewise.
17013         * modules/unistr/u16-strstr: Likewise.
17014         * modules/unistr/u16-strtok: Likewise.
17015         * modules/unistr/u16-to-u32: Likewise.
17016         * modules/unistr/u16-to-u8: Likewise.
17017         * modules/unistr/u16-uctomb: Likewise.
17018         * modules/unistr/u32-check: Likewise.
17019         * modules/unistr/u32-chr: Likewise.
17020         * modules/unistr/u32-cmp: Likewise.
17021         * modules/unistr/u32-cmp2: Likewise.
17022         * modules/unistr/u32-cpy: Likewise.
17023         * modules/unistr/u32-cpy-alloc: Likewise.
17024         * modules/unistr/u32-endswith: Likewise.
17025         * modules/unistr/u32-mblen: Likewise.
17026         * modules/unistr/u32-mbsnlen: Likewise.
17027         * modules/unistr/u32-mbtouc: Likewise.
17028         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17029         * modules/unistr/u32-mbtoucr: Likewise.
17030         * modules/unistr/u32-move: Likewise.
17031         * modules/unistr/u32-next: Likewise.
17032         * modules/unistr/u32-prev: Likewise.
17033         * modules/unistr/u32-set: Likewise.
17034         * modules/unistr/u32-startswith: Likewise.
17035         * modules/unistr/u32-stpcpy: Likewise.
17036         * modules/unistr/u32-stpncpy: Likewise.
17037         * modules/unistr/u32-strcat: Likewise.
17038         * modules/unistr/u32-strchr: Likewise.
17039         * modules/unistr/u32-strcmp: Likewise.
17040         * modules/unistr/u32-strcoll: Likewise.
17041         * modules/unistr/u32-strcpy: Likewise.
17042         * modules/unistr/u32-strcspn: Likewise.
17043         * modules/unistr/u32-strdup: Likewise.
17044         * modules/unistr/u32-strlen: Likewise.
17045         * modules/unistr/u32-strmblen: Likewise.
17046         * modules/unistr/u32-strmbtouc: Likewise.
17047         * modules/unistr/u32-strncat: Likewise.
17048         * modules/unistr/u32-strncmp: Likewise.
17049         * modules/unistr/u32-strncpy: Likewise.
17050         * modules/unistr/u32-strnlen: Likewise.
17051         * modules/unistr/u32-strpbrk: Likewise.
17052         * modules/unistr/u32-strrchr: Likewise.
17053         * modules/unistr/u32-strspn: Likewise.
17054         * modules/unistr/u32-strstr: Likewise.
17055         * modules/unistr/u32-strtok: Likewise.
17056         * modules/unistr/u32-to-u16: Likewise.
17057         * modules/unistr/u32-to-u8: Likewise.
17058         * modules/unistr/u32-uctomb: Likewise.
17059         * modules/uniwbrk/u8-wordbreaks: Likewise.
17060         * modules/uniwbrk/u16-wordbreaks: Likewise.
17061         * modules/uniwbrk/u32-wordbreaks: Likewise.
17062         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17063         * modules/uniwbrk/wordbreak-property: Likewise.
17064         * modules/uniwidth/u8-strwidth: Likewise.
17065         * modules/uniwidth/u8-width: Likewise.
17066         * modules/uniwidth/u16-strwidth: Likewise.
17067         * modules/uniwidth/u16-width: Likewise.
17068         * modules/uniwidth/u32-strwidth: Likewise.
17069         * modules/uniwidth/u32-width: Likewise.
17070         * modules/uniwidth/width: Likewise.
17071         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17072         with $(LIBUNISTRING).
17073         * modules/unicase/ignorable-tests: Likewise.
17074         * modules/unicase/locale-language-tests: Likewise.
17075         * modules/unicase/tolower-tests: Likewise.
17076         * modules/unicase/totitle-tests: Likewise.
17077         * modules/unicase/toupper-tests: Likewise.
17078         * modules/unicase/u8-casecmp-tests: Likewise.
17079         * modules/unicase/u8-casecoll-tests: Likewise.
17080         * modules/unicase/u8-casefold-tests: Likewise.
17081         * modules/unicase/u8-is-cased-tests: Likewise.
17082         * modules/unicase/u8-is-casefolded-tests: Likewise.
17083         * modules/unicase/u8-is-lowercase-tests: Likewise.
17084         * modules/unicase/u8-is-titlecase-tests: Likewise.
17085         * modules/unicase/u8-is-uppercase-tests: Likewise.
17086         * modules/unicase/u8-tolower-tests: Likewise.
17087         * modules/unicase/u8-totitle-tests: Likewise.
17088         * modules/unicase/u8-toupper-tests: Likewise.
17089         * modules/unicase/u16-casecmp-tests: Likewise.
17090         * modules/unicase/u16-casecoll-tests: Likewise.
17091         * modules/unicase/u16-casefold-tests: Likewise.
17092         * modules/unicase/u16-is-cased-tests: Likewise.
17093         * modules/unicase/u16-is-casefolded-tests: Likewise.
17094         * modules/unicase/u16-is-lowercase-tests: Likewise.
17095         * modules/unicase/u16-is-titlecase-tests: Likewise.
17096         * modules/unicase/u16-is-uppercase-tests: Likewise.
17097         * modules/unicase/u16-tolower-tests: Likewise.
17098         * modules/unicase/u16-totitle-tests: Likewise.
17099         * modules/unicase/u16-toupper-tests: Likewise.
17100         * modules/unicase/u32-casecmp-tests: Likewise.
17101         * modules/unicase/u32-casecoll-tests: Likewise.
17102         * modules/unicase/u32-casefold-tests: Likewise.
17103         * modules/unicase/u32-is-cased-tests: Likewise.
17104         * modules/unicase/u32-is-casefolded-tests: Likewise.
17105         * modules/unicase/u32-is-lowercase-tests: Likewise.
17106         * modules/unicase/u32-is-titlecase-tests: Likewise.
17107         * modules/unicase/u32-is-uppercase-tests: Likewise.
17108         * modules/unicase/u32-tolower-tests: Likewise.
17109         * modules/unicase/u32-totitle-tests: Likewise.
17110         * modules/unicase/u32-toupper-tests: Likewise.
17111         * modules/unicase/ulc-casecmp-tests: Likewise.
17112         * modules/unicase/ulc-casecoll-tests: Likewise.
17113         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17114         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17115         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17116         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17117         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17118         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17119         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17120         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17121         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17122         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17123         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17124         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17125         * modules/unictype/bidicategory-byname-tests: Likewise.
17126         * modules/unictype/bidicategory-name-tests: Likewise.
17127         * modules/unictype/bidicategory-of-tests: Likewise.
17128         * modules/unictype/bidicategory-test-tests: Likewise.
17129         * modules/unictype/block-list-tests: Likewise.
17130         * modules/unictype/block-of-tests: Likewise.
17131         * modules/unictype/block-test-tests: Likewise.
17132         * modules/unictype/category-C-tests: Likewise.
17133         * modules/unictype/category-Cc-tests: Likewise.
17134         * modules/unictype/category-Cf-tests: Likewise.
17135         * modules/unictype/category-Cn-tests: Likewise.
17136         * modules/unictype/category-Co-tests: Likewise.
17137         * modules/unictype/category-Cs-tests: Likewise.
17138         * modules/unictype/category-L-tests: Likewise.
17139         * modules/unictype/category-Ll-tests: Likewise.
17140         * modules/unictype/category-Lm-tests: Likewise.
17141         * modules/unictype/category-Lo-tests: Likewise.
17142         * modules/unictype/category-Lt-tests: Likewise.
17143         * modules/unictype/category-Lu-tests: Likewise.
17144         * modules/unictype/category-M-tests: Likewise.
17145         * modules/unictype/category-Mc-tests: Likewise.
17146         * modules/unictype/category-Me-tests: Likewise.
17147         * modules/unictype/category-Mn-tests: Likewise.
17148         * modules/unictype/category-N-tests: Likewise.
17149         * modules/unictype/category-Nd-tests: Likewise.
17150         * modules/unictype/category-Nl-tests: Likewise.
17151         * modules/unictype/category-No-tests: Likewise.
17152         * modules/unictype/category-P-tests: Likewise.
17153         * modules/unictype/category-Pc-tests: Likewise.
17154         * modules/unictype/category-Pd-tests: Likewise.
17155         * modules/unictype/category-Pe-tests: Likewise.
17156         * modules/unictype/category-Pf-tests: Likewise.
17157         * modules/unictype/category-Pi-tests: Likewise.
17158         * modules/unictype/category-Po-tests: Likewise.
17159         * modules/unictype/category-Ps-tests: Likewise.
17160         * modules/unictype/category-S-tests: Likewise.
17161         * modules/unictype/category-Sc-tests: Likewise.
17162         * modules/unictype/category-Sk-tests: Likewise.
17163         * modules/unictype/category-Sm-tests: Likewise.
17164         * modules/unictype/category-So-tests: Likewise.
17165         * modules/unictype/category-Z-tests: Likewise.
17166         * modules/unictype/category-Zl-tests: Likewise.
17167         * modules/unictype/category-Zp-tests: Likewise.
17168         * modules/unictype/category-Zs-tests: Likewise.
17169         * modules/unictype/category-and-not-tests: Likewise.
17170         * modules/unictype/category-and-tests: Likewise.
17171         * modules/unictype/category-byname-tests: Likewise.
17172         * modules/unictype/category-name-tests: Likewise.
17173         * modules/unictype/category-none-tests: Likewise.
17174         * modules/unictype/category-of-tests: Likewise.
17175         * modules/unictype/category-or-tests: Likewise.
17176         * modules/unictype/category-test-withtable-tests: Likewise.
17177         * modules/unictype/combining-class-tests: Likewise.
17178         * modules/unictype/ctype-alnum-tests: Likewise.
17179         * modules/unictype/ctype-alpha-tests: Likewise.
17180         * modules/unictype/ctype-blank-tests: Likewise.
17181         * modules/unictype/ctype-cntrl-tests: Likewise.
17182         * modules/unictype/ctype-digit-tests: Likewise.
17183         * modules/unictype/ctype-graph-tests: Likewise.
17184         * modules/unictype/ctype-lower-tests: Likewise.
17185         * modules/unictype/ctype-print-tests: Likewise.
17186         * modules/unictype/ctype-punct-tests: Likewise.
17187         * modules/unictype/ctype-space-tests: Likewise.
17188         * modules/unictype/ctype-upper-tests: Likewise.
17189         * modules/unictype/ctype-xdigit-tests: Likewise.
17190         * modules/unictype/decimal-digit-tests: Likewise.
17191         * modules/unictype/digit-tests: Likewise.
17192         * modules/unictype/mirror-tests: Likewise.
17193         * modules/unictype/numeric-tests: Likewise.
17194         * modules/unictype/property-alphabetic-tests: Likewise.
17195         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17196         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17197         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17198         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17199         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17200         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17201         * modules/unictype/property-bidi-control-tests: Likewise.
17202         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17203         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17204         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17205         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17206         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17207         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17208         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17209         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17210         * modules/unictype/property-bidi-pdf-tests: Likewise.
17211         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17212         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17213         * modules/unictype/property-byname-tests: Likewise.
17214         * modules/unictype/property-combining-tests: Likewise.
17215         * modules/unictype/property-composite-tests: Likewise.
17216         * modules/unictype/property-currency-symbol-tests: Likewise.
17217         * modules/unictype/property-dash-tests: Likewise.
17218         * modules/unictype/property-decimal-digit-tests: Likewise.
17219         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17220         * modules/unictype/property-deprecated-tests: Likewise.
17221         * modules/unictype/property-diacritic-tests: Likewise.
17222         * modules/unictype/property-extender-tests: Likewise.
17223         * modules/unictype/property-format-control-tests: Likewise.
17224         * modules/unictype/property-grapheme-base-tests: Likewise.
17225         * modules/unictype/property-grapheme-extend-tests: Likewise.
17226         * modules/unictype/property-grapheme-link-tests: Likewise.
17227         * modules/unictype/property-hex-digit-tests: Likewise.
17228         * modules/unictype/property-hyphen-tests: Likewise.
17229         * modules/unictype/property-id-continue-tests: Likewise.
17230         * modules/unictype/property-id-start-tests: Likewise.
17231         * modules/unictype/property-ideographic-tests: Likewise.
17232         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17233         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17234         * modules/unictype/property-ignorable-control-tests: Likewise.
17235         * modules/unictype/property-iso-control-tests: Likewise.
17236         * modules/unictype/property-join-control-tests: Likewise.
17237         * modules/unictype/property-left-of-pair-tests: Likewise.
17238         * modules/unictype/property-line-separator-tests: Likewise.
17239         * modules/unictype/property-logical-order-exception-tests: Likewise.
17240         * modules/unictype/property-lowercase-tests: Likewise.
17241         * modules/unictype/property-math-tests: Likewise.
17242         * modules/unictype/property-non-break-tests: Likewise.
17243         * modules/unictype/property-not-a-character-tests: Likewise.
17244         * modules/unictype/property-numeric-tests: Likewise.
17245         * modules/unictype/property-other-alphabetic-tests: Likewise.
17246         * modules/unictype/property-other-default-ignorable-code-point-tests:
17247         Likewise.
17248         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17249         * modules/unictype/property-other-id-continue-tests: Likewise.
17250         * modules/unictype/property-other-id-start-tests: Likewise.
17251         * modules/unictype/property-other-lowercase-tests: Likewise.
17252         * modules/unictype/property-other-math-tests: Likewise.
17253         * modules/unictype/property-other-uppercase-tests: Likewise.
17254         * modules/unictype/property-paired-punctuation-tests: Likewise.
17255         * modules/unictype/property-paragraph-separator-tests: Likewise.
17256         * modules/unictype/property-pattern-syntax-tests: Likewise.
17257         * modules/unictype/property-pattern-white-space-tests: Likewise.
17258         * modules/unictype/property-private-use-tests: Likewise.
17259         * modules/unictype/property-punctuation-tests: Likewise.
17260         * modules/unictype/property-quotation-mark-tests: Likewise.
17261         * modules/unictype/property-radical-tests: Likewise.
17262         * modules/unictype/property-sentence-terminal-tests: Likewise.
17263         * modules/unictype/property-soft-dotted-tests: Likewise.
17264         * modules/unictype/property-space-tests: Likewise.
17265         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17266         * modules/unictype/property-test-tests: Likewise.
17267         * modules/unictype/property-titlecase-tests: Likewise.
17268         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17269         * modules/unictype/property-unified-ideograph-tests: Likewise.
17270         * modules/unictype/property-uppercase-tests: Likewise.
17271         * modules/unictype/property-variation-selector-tests: Likewise.
17272         * modules/unictype/property-white-space-tests: Likewise.
17273         * modules/unictype/property-xid-continue-tests: Likewise.
17274         * modules/unictype/property-xid-start-tests: Likewise.
17275         * modules/unictype/property-zero-width-tests: Likewise.
17276         * modules/unictype/scripts-tests: Likewise.
17277         * modules/unictype/syntax-c-ident-tests: Likewise.
17278         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17279         * modules/unictype/syntax-java-ident-tests: Likewise.
17280         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17281         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17282         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17283         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17284         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17285         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17286         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17287         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17288         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17289         * modules/uniname/uniname-tests: Likewise.
17290         * modules/uninorm/canonical-decomposition-tests: Likewise.
17291         * modules/uninorm/compat-decomposition-tests: Likewise.
17292         * modules/uninorm/composition-tests: Likewise.
17293         * modules/uninorm/decomposing-form-tests: Likewise.
17294         * modules/uninorm/decomposition-tests: Likewise.
17295         * modules/uninorm/filter-tests: Likewise.
17296         * modules/uninorm/nfc-tests: Likewise.
17297         * modules/uninorm/nfd-tests: Likewise.
17298         * modules/uninorm/nfkc-tests: Likewise.
17299         * modules/uninorm/nfkd-tests: Likewise.
17300         * modules/uninorm/u8-normcmp-tests: Likewise.
17301         * modules/uninorm/u8-normcoll-tests: Likewise.
17302         * modules/uninorm/u16-normcmp-tests: Likewise.
17303         * modules/uninorm/u16-normcoll-tests: Likewise.
17304         * modules/uninorm/u32-normcmp-tests: Likewise.
17305         * modules/uninorm/u32-normcoll-tests: Likewise.
17306         * modules/unistdio/u8-asnprintf-tests: Likewise.
17307         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17308         * modules/unistdio/u8-vasprintf-tests: Likewise.
17309         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17310         * modules/unistdio/u8-vsprintf-tests: Likewise.
17311         * modules/unistdio/u16-asnprintf-tests: Likewise.
17312         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17313         * modules/unistdio/u16-vasprintf-tests: Likewise.
17314         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17315         * modules/unistdio/u16-vsprintf-tests: Likewise.
17316         * modules/unistdio/u32-asnprintf-tests: Likewise.
17317         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17318         * modules/unistdio/u32-vasprintf-tests: Likewise.
17319         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17320         * modules/unistdio/u32-vsprintf-tests: Likewise.
17321         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17322         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17323         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17324         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17325         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17326         * modules/unistr/u8-check-tests: Likewise.
17327         * modules/unistr/u8-chr-tests: Likewise.
17328         * modules/unistr/u8-cmp-tests: Likewise.
17329         * modules/unistr/u8-cmp2-tests: Likewise.
17330         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17331         * modules/unistr/u8-cpy-tests: Likewise.
17332         * modules/unistr/u8-mblen-tests: Likewise.
17333         * modules/unistr/u8-mbsnlen-tests: Likewise.
17334         * modules/unistr/u8-mbtouc-tests: Likewise.
17335         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17336         * modules/unistr/u8-mbtoucr-tests: Likewise.
17337         * modules/unistr/u8-move-tests: Likewise.
17338         * modules/unistr/u8-next-tests: Likewise.
17339         * modules/unistr/u8-prev-tests: Likewise.
17340         * modules/unistr/u8-set-tests: Likewise.
17341         * modules/unistr/u8-stpcpy-tests: Likewise.
17342         * modules/unistr/u8-stpncpy-tests: Likewise.
17343         * modules/unistr/u8-strcat-tests: Likewise.
17344         * modules/unistr/u8-strcmp-tests: Likewise.
17345         * modules/unistr/u8-strcoll-tests: Likewise.
17346         * modules/unistr/u8-strcpy-tests: Likewise.
17347         * modules/unistr/u8-strdup-tests: Likewise.
17348         * modules/unistr/u8-strlen-tests: Likewise.
17349         * modules/unistr/u8-strmblen-tests: Likewise.
17350         * modules/unistr/u8-strmbtouc-tests: Likewise.
17351         * modules/unistr/u8-strncat-tests: Likewise.
17352         * modules/unistr/u8-strncmp-tests: Likewise.
17353         * modules/unistr/u8-strncpy-tests: Likewise.
17354         * modules/unistr/u8-strnlen-tests: Likewise.
17355         * modules/unistr/u8-to-u16-tests: Likewise.
17356         * modules/unistr/u8-to-u32-tests: Likewise.
17357         * modules/unistr/u8-uctomb-tests: Likewise.
17358         * modules/unistr/u16-check-tests: Likewise.
17359         * modules/unistr/u16-chr-tests: Likewise.
17360         * modules/unistr/u16-cmp-tests: Likewise.
17361         * modules/unistr/u16-cmp2-tests: Likewise.
17362         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17363         * modules/unistr/u16-cpy-tests: Likewise.
17364         * modules/unistr/u16-mblen-tests: Likewise.
17365         * modules/unistr/u16-mbsnlen-tests: Likewise.
17366         * modules/unistr/u16-mbtouc-tests: Likewise.
17367         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17368         * modules/unistr/u16-mbtoucr-tests: Likewise.
17369         * modules/unistr/u16-move-tests: Likewise.
17370         * modules/unistr/u16-next-tests: Likewise.
17371         * modules/unistr/u16-prev-tests: Likewise.
17372         * modules/unistr/u16-set-tests: Likewise.
17373         * modules/unistr/u16-stpcpy-tests: Likewise.
17374         * modules/unistr/u16-stpncpy-tests: Likewise.
17375         * modules/unistr/u16-strcat-tests: Likewise.
17376         * modules/unistr/u16-strcmp-tests: Likewise.
17377         * modules/unistr/u16-strcoll-tests: Likewise.
17378         * modules/unistr/u16-strcpy-tests: Likewise.
17379         * modules/unistr/u16-strdup-tests: Likewise.
17380         * modules/unistr/u16-strlen-tests: Likewise.
17381         * modules/unistr/u16-strmblen-tests: Likewise.
17382         * modules/unistr/u16-strmbtouc-tests: Likewise.
17383         * modules/unistr/u16-strncat-tests: Likewise.
17384         * modules/unistr/u16-strncmp-tests: Likewise.
17385         * modules/unistr/u16-strncpy-tests: Likewise.
17386         * modules/unistr/u16-strnlen-tests: Likewise.
17387         * modules/unistr/u16-to-u32-tests: Likewise.
17388         * modules/unistr/u16-to-u8-tests: Likewise.
17389         * modules/unistr/u16-uctomb-tests: Likewise.
17390         * modules/unistr/u32-check-tests: Likewise.
17391         * modules/unistr/u32-chr-tests: Likewise.
17392         * modules/unistr/u32-cmp-tests: Likewise.
17393         * modules/unistr/u32-cmp2-tests: Likewise.
17394         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17395         * modules/unistr/u32-cpy-tests: Likewise.
17396         * modules/unistr/u32-mblen-tests: Likewise.
17397         * modules/unistr/u32-mbsnlen-tests: Likewise.
17398         * modules/unistr/u32-mbtouc-tests: Likewise.
17399         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17400         * modules/unistr/u32-mbtoucr-tests: Likewise.
17401         * modules/unistr/u32-move-tests: Likewise.
17402         * modules/unistr/u32-next-tests: Likewise.
17403         * modules/unistr/u32-prev-tests: Likewise.
17404         * modules/unistr/u32-set-tests: Likewise.
17405         * modules/unistr/u32-stpcpy-tests: Likewise.
17406         * modules/unistr/u32-stpncpy-tests: Likewise.
17407         * modules/unistr/u32-strcat-tests: Likewise.
17408         * modules/unistr/u32-strcmp-tests: Likewise.
17409         * modules/unistr/u32-strcoll-tests: Likewise.
17410         * modules/unistr/u32-strcpy-tests: Likewise.
17411         * modules/unistr/u32-strdup-tests: Likewise.
17412         * modules/unistr/u32-strlen-tests: Likewise.
17413         * modules/unistr/u32-strmblen-tests: Likewise.
17414         * modules/unistr/u32-strmbtouc-tests: Likewise.
17415         * modules/unistr/u32-strncat-tests: Likewise.
17416         * modules/unistr/u32-strncmp-tests: Likewise.
17417         * modules/unistr/u32-strncpy-tests: Likewise.
17418         * modules/unistr/u32-strnlen-tests: Likewise.
17419         * modules/unistr/u32-to-u16-tests: Likewise.
17420         * modules/unistr/u32-to-u8-tests: Likewise.
17421         * modules/unistr/u32-uctomb-tests: Likewise.
17422         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17423         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17424         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17425         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17426         * modules/uniwidth/u8-strwidth-tests: Likewise.
17427         * modules/uniwidth/u8-width-tests: Likewise.
17428         * modules/uniwidth/u16-strwidth-tests: Likewise.
17429         * modules/uniwidth/u16-width-tests: Likewise.
17430         * modules/uniwidth/u32-strwidth-tests: Likewise.
17431         * modules/uniwidth/u32-width-tests: Likewise.
17432         * modules/uniwidth/width-tests: Likewise.
17433
17434 2010-05-18  Richard Jones  <rjones@redhat.com>
17435
17436         doc: users.txt: list hivex
17437         * users.txt: Add hivex.
17438
17439 2010-05-18  Richard Jones  <rjones@redhat.com>
17440
17441         doc: users.txt: list febootstrap
17442         * users.txt: Add febootstrap.
17443
17444 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17445
17446         bootstrap: fix an error when gnulib is not used as a git submodule
17447         * build-aux/bootstrap (gnulib_path): If its length is zero then
17448         assign "gnulib" to it.
17449         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17450
17451 2010-05-16  Bruno Haible  <bruno@clisp.org>
17452
17453         Avoid autoconf warnings about AM_ICONV.
17454         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17455         2.64.
17456
17457 2010-05-16  Bruno Haible  <bruno@clisp.org>
17458
17459         absolute-header: Make the macro usable in more situations.
17460         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17461         from gl_ABSOLUTE_HEADER.
17462         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17463
17464 2010-05-16  James Youngman  <jay@gnu.org>
17465
17466         doc: update users.txt
17467         * users.txt: Add CSSC.
17468
17469 2010-05-16  Jim Meyering  <meyering@redhat.com>
17470
17471         init.sh: fix an error in the previous change; add more comments
17472         * tests/init.sh: Compare exit code in loop against 9, not 2.
17473         Patch by Bruno Haible.
17474         Make the two tests more similar by adding an empty "then" clause.
17475         Add comments.
17476
17477         init.sh: avoid unnecessary shell re-exec
17478         * tests/init.sh: Improve the re-exec-required check to first test the
17479         current shell.  If it passes the test, do not search for a shell that
17480         does pass, and do not re-exec.  This test is particularly contorted to
17481         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17482         of $(...) evokes a syntax error and causes immediate shell exit with
17483         status 2.  Bruno Haible reported that the re-exec made it impossible
17484         to single-step through any init.sh-using script.
17485
17486 2010-05-16  Bruno Haible  <bruno@clisp.org>
17487
17488         Fix collision between gnulib's and libintl's printf replacements.
17489         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17490         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17491         (printf): When using GNU C, map the __printf__ function to rpl_printf
17492         via __asm__. When not using GNU C, define rpl_printf instead of
17493         __printf__.
17494         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17495         commit.
17496         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17497         commit.
17498         * m4/asm-underscore.m4: New file.
17499         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17500         * modules/stdio (Files): Add m4/asm-underscore.m4.
17501         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17502         Reported by Ben Pfaff.
17503
17504 2010-05-16  Bruno Haible  <bruno@clisp.org>
17505
17506         verify: Avoid skipping the test on openSUSE 11.0.
17507         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17508
17509 2010-05-13  Bruno Haible  <bruno@clisp.org>
17510
17511         Avoid useless warnings from G++.
17512         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17513         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17514         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17515
17516 2010-05-11  Jim Meyering  <meyering@redhat.com>
17517
17518         maint.mk: tweak preceding change
17519         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17520         regexps tighter by anchoring at EOL, and make the new group "shy"
17521         for slightly decreased overhead.
17522
17523 2010-05-11  Eric Blake  <eblake@redhat.com>
17524
17525         maint.mk: gnulib doesn't guarantee NSIG
17526         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17527
17528 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17529
17530         test-pwrite.c: Remove unused variable declaration.
17531         * tests/test-pwrite.c (main): Remove read_buf declaration.
17532
17533         Remove useless test-pwrite.sh file.
17534         * tests/test-pwrite.sh: Delete file.
17535         * modules/pwrite-tests: Remove references.
17536         Reported by Bruno Haible.
17537
17538 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17539
17540         init.sh: fix a typo
17541         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17542
17543 2010-05-10  Jim Meyering  <meyering@redhat.com>
17544
17545         maint.mk: avoid using a temporary file in the always-defined-macros check
17546         * top/maint.mk (.re-defmac): Remove rule.
17547         (gl_trap_): Remove definition.
17548         (sc_prohibit_always-defined_macros): Rewrite not to create and
17549         depend on a temporary file.  Instead, depend on GNU grep's ability
17550         to read a list of regular expressions from stdin when given "-f -".
17551
17552 2010-05-09  Bruno Haible  <bruno@clisp.org>
17553
17554         Update to GNU gettext 0.18, part 1.
17555         * m4/gettext.m4: Update to GNU gettext 0.18.
17556         * m4/intl.m4: Likewise.
17557         * m4/po.m4: Likewise.
17558         * modules/gettext (Files): Add m4/fcntl-o.m4.
17559         (configure.ac): Require gettext infrastructure from version 0.18.
17560
17561 2010-05-09  Jim Meyering  <meyering@redhat.com>
17562
17563         init.sh: enable MALLOC_PERTURB_
17564         * tests/init.sh: Enable glibc's malloc-perturbing option.
17565
17566         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17567         With my recent change in init.sh from the two-line form:
17568             -#   : ${srcdir=.}
17569             -#   . "$srcdir/init.sh"; path_prepend_ .
17570             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17571         I noticed that using the one-line form would cause this test
17572         to fail with a false-positive, or to stop working altogether,
17573         depending on whether help-version changed or all the tests did.
17574         * top/maint.mk (_hv_regex): Remove this definition.
17575         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17576         (_hv_regex_strong): Use a stronger regex to check for conformance.
17577         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17578         Give a separate diagnostic for lack of conforming use.
17579
17580         maint.mk: prohibit definition of symbols defined by gnulib
17581         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17582         definition of symbols defined by gnulib.
17583
17584 2010-05-09  Bruno Haible  <bruno@clisp.org>
17585
17586         acl: Avoid test failure on Cygwin-hosted mingw.
17587         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17588
17589 2010-05-09  Bruno Haible  <bruno@clisp.org>
17590
17591         error: Use system's fcntl function.
17592         * lib/error.c (fcntl): Undefine.
17593
17594 2010-05-09  Jim Meyering  <meyering@redhat.com>
17595
17596         verify: adjust formatting to be more consistent
17597         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17598         argument-list '('s, and after one comma.
17599
17600 2010-05-09  Bruno Haible  <bruno@clisp.org>
17601
17602         error: More reliable output on mingw.
17603         * lib/error.c: Include <windows.h>.
17604         (is_open): New function.
17605         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17606         defined.
17607
17608 2010-05-09  Bruno Haible  <bruno@clisp.org>
17609
17610         vasnprintf: Fix syntax errors in libintl build on mingw.
17611         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17612         pad_ourselves and prec_ourselves after use.
17613
17614 2010-05-08  Bruno Haible  <bruno@clisp.org>
17615
17616         * lib/config.charset: Update comments for Cygwin 1.7.
17617         * lib/localcharset.c: Likewise.
17618
17619 2010-05-07  Jim Meyering  <meyering@redhat.com>
17620
17621         init.sh: improve comments
17622         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17623         . "${srcdir=.}/init.sh"; path_prepend_ .
17624         Add a note about path_prepend_ and the alternative of using
17625         TESTS_ENVIRONMENT.
17626
17627 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17628
17629         exclude: Unescape hashed patterns in wildcard mode.
17630         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17631         to the hash list.
17632         * tests/test-exclude8.sh: New test case.
17633         * modules/exclude-tests: Add new test.
17634
17635 2010-05-05  Eric Blake  <eblake@redhat.com>
17636
17637         verify: automate tests
17638         * modules/verify-tests: New module.
17639         * tests/test-verify.sh: New file.
17640         * tests/test-verify.c: Guard each negative test with a unique id.
17641         Also avoid warning about unused left hand of comma expressions.
17642
17643 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17644
17645         Further improvements to verify.h, suggested by Eric Blake.
17646         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17647         the GL_* versions, to avoid collision with OpenGL.
17648         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17649         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17650         than testing merely whether it's defined.
17651
17652         Modify verify.h to pacify gcc -Wredundant_decls.
17653         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17654         These use the prefix "GL_" since they're likely to be useful elsewhere.
17655         We may need to break them out into a different .h file.
17656         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17657         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17658         of verify_function__.
17659
17660 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17661
17662         Tests for module pwrite.
17663         * modules/pwrite-tests: New file.
17664         * tests/test-pwrite.sh: New file.
17665         * tests/test-pwrite.c: New file.
17666
17667         New module pwrite.
17668         * lib/unistd.in.h (pwrite): New declaration.
17669         * lib/pwrite.c: New file, from glibc with modifications.
17670         * m4/pwrite.m4: New file.
17671         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17672         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17673         REPLACE_PWRITE.
17674         * modules/pwrite: New file.
17675         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17676         REPLACE_PWRITE.
17677         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17678         * doc/posix-functions/pwrite.texi: Mention the new module.
17679
17680 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17681
17682         pread: Update documentation.
17683         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17684
17685 2010-05-04  Eric Blake  <eblake@redhat.com>
17686
17687         docs: update cygwin progress
17688         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17689         this bug.
17690         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17691         Added in cygwin 1.7.2.
17692         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17693         Likewise.
17694         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17695         Likewise.
17696         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17697         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17698         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17699         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17700         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17701         Mention nproc module.
17702         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17703         bug in cygwin 1.7.5 addition.
17704         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17705         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17706         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17707         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17708         1.7.5.
17709         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17710         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17711         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17712         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17713         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17714         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17715         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17716         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17717         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17718         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17719         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17720         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17721         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17722         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17723         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17724         Likewise.
17725         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17726         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17727         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17728         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17729         Likewise.
17730         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17731         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17732         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17733         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17734         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17735         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17736         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17737         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17738         Likewise.
17739         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17740         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17741         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17742         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17743         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17744         Likewise.
17745         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17746         Likewise.
17747         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17748         Likewise.
17749         * doc/glibc-functions/xdrrec_endofrecord.texi
17750         (xdrrec_endofrecord): Likewise.
17751         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17752         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17753         Likewise.
17754         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17755         Likewise.
17756
17757 2010-05-04  Jim Meyering  <meyering@redhat.com>
17758
17759         gendocs.sh: make its "-s FILE" option more useful
17760         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17761         $PACKAGE to reflect the probably-different basename of "FILE".
17762
17763 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17764
17765         bootstrap: don't ignore download_po_files failure
17766         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17767         failure.
17768
17769 2010-05-03  Jim Meyering  <meyering@redhat.com>
17770
17771         maint.mk: allow to pass options to gendocs.sh
17772         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17773         (gendocs_options_): New overridable variable.
17774
17775         gnu-web-doc-update: don't ignore configure or build failure
17776         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17777
17778         announce-gen: backslash-escape '@'s in --help output
17779         * build-aux/announce-gen: Fix syntax errors.
17780
17781         maint.mk, announce-gen: allow project-specific announcement mail headers
17782         * top/maint.mk (translation_project_): Define default.
17783         (announcement_Cc_, announcement_mail_headers_): Likewise.
17784         (announcement): Invoke announce-gen with new --mail-headers option.
17785         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17786
17787         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17788         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17789         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17790         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17791         line in the "err2" output file when running "make check" in verbose
17792         mode (i.e., with set -x enabled).
17793
17794 2010-05-03  Bruno Haible  <bruno@clisp.org>
17795
17796         wctob: Fix for weird platforms.
17797         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17798         argument value.
17799
17800 2010-05-03  Jim Meyering  <meyering@redhat.com>
17801
17802         maint.mk: prohibit unwarranted use of <strings.h>
17803         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17804         strings.h in a file that does not also use strcasecmp, strncasecmp,
17805         ffs or ffsll.
17806
17807         maint.mk: remove obsolete comments
17808         * top/maint.mk: Remove stale, commented-out rules.
17809
17810 2010-05-02  Bruno Haible  <bruno@clisp.org>
17811
17812         wcwidth: Declare also when it's aliased.
17813         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17814         macro.
17815
17816 2010-05-02  Bruno Haible  <bruno@clisp.org>
17817
17818         Fix regression from 2010-04-25.
17819         * gnulib-tool (func_modules_transitive_closure): Check the status of
17820         all modules, not only of the tests that are of the form foo-tests where
17821         foo is a module.
17822
17823 2010-05-02  Bruno Haible  <bruno@clisp.org>
17824
17825         wctob: Work around nasty Cygwin 1.7.2 bug.
17826         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17827         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17828
17829 2010-05-01  Bruno Haible  <bruno@clisp.org>
17830
17831         fpurge: Sharper test.
17832         * tests/test-fpurge.c (main): Add one more ftell check.
17833         * modules/fpurge-tests (Depends-on): Add ftell.
17834         Suggested by Eric Blake.
17835
17836 2010-05-01  Bruno Haible  <bruno@clisp.org>
17837
17838         ftello: Another test.
17839         * tests/test-ftello3.c: New file.
17840         * modules/ftello-tests (Files): Add it.
17841         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17842         MOSTLYCLEANFILES.
17843
17844         ftell: Another test.
17845         * tests/test-ftell3.c: New file.
17846         * modules/ftell-tests (Files): Add it.
17847         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17848         MOSTLYCLEANFILES.
17849
17850 2010-05-01  Bruno Haible  <bruno@clisp.org>
17851
17852         ftell, ftello: Work around Solaris bug.
17853         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17854         * lib/ftello.c: Include stdio-impl.h.
17855         (ftello): On Solaris, when _IOWRT is set, compute the result without
17856         looking at _IOREAD.
17857         * modules/ftello (Files): Add lib/stdio-impl.h.
17858         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17859         * doc/posix-functions/ftello.texi: Likewise.
17860         Reported by Eric Blake.
17861
17862 2010-05-01  Bruno Haible  <bruno@clisp.org>
17863
17864         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17865         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17866         the _IOWRT flag is also set.
17867
17868 2010-05-01  Bruno Haible  <bruno@clisp.org>
17869
17870         Fix doc about a HP-UX stdio bug.
17871         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17872         * doc/posix-functions/ftello.texi: Likewise.
17873
17874 2010-05-01  Bruno Haible  <bruno@clisp.org>
17875
17876         lseek test: Fix failure on Solaris.
17877         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17878         output.
17879
17880 2010-04-30  Jim Meyering  <meyering@redhat.com>
17881
17882         bootstrap: don't ignore failure to generate po*/Makevars
17883         * build-aux/bootstrap (with_gettext): Don't ignore failure
17884         to create po/Makevars or runtime-po/Makevars.
17885
17886 2010-04-29  Eric Blake  <eblake@redhat.com>
17887
17888         headers: relax license to LGPLv2+
17889         * modules/fcntl-h (License): Relax license.
17890         * modules/getopt-posix (License): Likewise.
17891         * modules/locale (License): Likewise.
17892         * modules/math (License): Likewise.
17893         * modules/pty (License): Likewise.
17894         * modules/sched (License): Likewise.
17895         * modules/search (License): Likewise.
17896         * modules/spawn (License): Likewise.
17897         * modules/stdarg (License): Likewise.
17898         * modules/sysexits (License): Likewise.
17899
17900 2010-04-29  Jim Meyering  <meyering@redhat.com>
17901
17902         inttypes: relax license to LGPLv2+
17903         * modules/inttypes (License): Relax license.
17904
17905 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17906
17907         * top/maint.mk (indent): Run twice to produce idempotent results.
17908
17909 2010-04-28  Bruno Haible  <bruno@clisp.org>
17910
17911         getdate: Generate getdate.c in the source directory.
17912         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17913         MOSTLYCLEANFILES.
17914         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17915
17916 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17917
17918         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17919         is not declared as a const *; avoid warnings in that case.
17920
17921 2010-04-28  Eric Blake  <eblake@redhat.com>
17922
17923         canonicalize-lgpl: avoid compiler warning
17924         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17925         declaration' / 'extraneous semicolon' warning with some compilers.
17926         Reported by Andreas Gruenbacher.
17927
17928 2010-04-28  Jim Meyering  <meyering@redhat.com>
17929
17930         init.sh: ensure a more reliable exit status when exiting via trap
17931         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17932         Inspired by patches from Dmitry V. Levin.
17933         Also trap on signal 3 (SIGQUIT).
17934
17935 2010-04-27  Bruno Haible  <bruno@clisp.org>
17936
17937         Update doc about utimes().
17938         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17939         'utimens' module.
17940         Reported by Andreas Gruenbacher <agruen@suse.de>.
17941
17942 2010-04-27  Eric Blake  <eblake@redhat.com>
17943
17944         full-read, full-write: relax license
17945         * modules/full-read (License): Drop to LGPLv2+.
17946         * modules/full-write (License): Likewise.
17947         * modules/safe-read (License): Likewise.
17948         * modules/safe-write (License): Likewise.
17949
17950         pthread: mention library for linking
17951         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17952
17953 2010-04-27  Jim Meyering  <meyering@redhat.com>
17954
17955         maint.mk: fix a bug introduced in last change
17956         * top/maint.mk (gl_assured_headers_): Now that all names are on
17957         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17958         is not anchored to end of word, it should be adequate.
17959
17960         maint.mk: avoid side-effect in latest syntax-check
17961         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17962         to run commands via $(shell...), and hence to incur cost only when
17963         the new rule is actually run.
17964
17965         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17966         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17967         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17968         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17969         (gl_assured_headers_, az_, AZ_): Define.
17970         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17971
17972 2010-04-26  Jim Meyering  <jim@meyering.net>
17973             Bruno Haible  <bruno@clisp.org>
17974
17975         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17976         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17977         Prompted by an exchange with Gilles Espinasse.
17978
17979 2010-04-26  Jim Meyering  <meyering@redhat.com>
17980
17981         git-version-gen: aesthetic tweak
17982         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17983         so that the command remains on a single line.
17984
17985 2010-04-26  Eric Blake  <eblake@redhat.com>
17986
17987         git-version-gen: allow use on EBCDIC hosts
17988         * build-aux/git-version-gen (dirty): Use literal rather than tying
17989         ourselves to ascii.
17990         Reported by Steve Goetze.
17991
17992 2010-04-25  Bruno Haible  <bruno@clisp.org>
17993
17994         netdb: Add support for GNULIB_POSIXCHECK.
17995         * lib/netdb.in.h: Include warn-on-use.h.
17996         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17997         functions are used when GNULIB_POSIXCHECK is defined and the
17998         getaddrinfo module is not in use.
17999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18000         freeaddrinfo, gai_strerror, getnameinfo are declared.
18001         * modules/netdb (Depends-on): Add warn-on-use.
18002         (Makefile.am): Include warn-on-use.h in netdb.h.
18003
18004 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18005
18006         build: avoid "make check" failure without .git/ directory
18007         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18008         there is no .git/ directory.
18009
18010 2010-04-25  Bruno Haible  <bruno@clisp.org>
18011
18012         ptsname: Fix misuse of ttyname_r.
18013         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18014         of errno.
18015
18016 2010-04-25  Bruno Haible  <bruno@clisp.org>
18017
18018         ttyname_r: Make it work on Solaris 10.
18019         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18020         if the system function has the POSIX declaration. Test whether the
18021         function fails if the buffer is less than 128 bytes large.
18022         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18023         system's ttyname_r function. Provide a reasonably large buffer.
18024         * modules/ttyname_r (Depends-on): Add extensions.
18025         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18026
18027 2010-04-25  Bruno Haible  <bruno@clisp.org>
18028
18029         Use the 'extensions' module for some more functions on Solaris.
18030         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18031         module.
18032         * doc/posix-functions/ctime_r.texi: Likewise.
18033         * doc/posix-functions/getgrgid_r.texi: Likewise.
18034         * doc/posix-functions/getgrnam_r.texi: Likewise.
18035         * doc/posix-functions/getpwnam_r.texi: Likewise.
18036         * doc/posix-functions/getpwuid_r.texi: Likewise.
18037         * doc/posix-functions/readdir_r.texi: Likewise.
18038         * doc/posix-functions/sigwait.texi: Likewise.
18039         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18040         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18041
18042 2010-04-25  Bruno Haible  <bruno@clisp.org>
18043
18044         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18045         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18046         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18047         * lib/ttyname_r.c: Include <limits.h>.
18048         (ttyname_r): Define using the system's ttyname_r function, if it exists
18049         and not on Solaris.
18050         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18051         set.
18052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18053         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18054         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18055         Reported by Simon Josefsson.
18056
18057 2010-04-25  Bruno Haible  <bruno@clisp.org>
18058
18059         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18060         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18061         * doc/posix-functions/ctime_r.texi: Likewise.
18062         * doc/posix-functions/getgrgid_r.texi: Likewise.
18063         * doc/posix-functions/getgrnam_r.texi: Likewise.
18064         * doc/posix-functions/getlogin_r.texi: Likewise.
18065         * doc/posix-functions/getpwnam_r.texi: Likewise.
18066         * doc/posix-functions/getpwuid_r.texi: Likewise.
18067         * doc/posix-functions/readdir_r.texi: Likewise.
18068         * doc/posix-functions/sigwait.texi: Likewise.
18069         * doc/posix-functions/ttyname_r.texi: Likewise.
18070         Reported by Simon Josefsson.
18071
18072 2010-04-25  Bruno Haible  <bruno@clisp.org>
18073
18074         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18075         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18076         also to --create-testdir.
18077         (func_acceptable): Don't consider the status of *-tests modules here.
18078         (func_modules_transitive_closure): Consider it here, before including a
18079         test module.
18080         (func_import, func_create_testdir): Set inc_all_direct_tests,
18081         inc_all_indirect_tests.
18082         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18083         --create-testdir and --create-megatestdir.
18084
18085 2010-04-25  Bruno Haible  <bruno@clisp.org>
18086
18087         gnulib-tool: Add --without-*-tests options.
18088         * gnulib-tool (func_usage): Document the --without-*-tests options.
18089         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18090         excl_unportable_tests): New variables.
18091         Fail if they are specified with --import or --update.
18092         (func_acceptable): Respect the excl_*_tests variables.
18093         (func_import): Set the excl_*_tests variables to empty.
18094
18095 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18096             Bruno Haible  <bruno@clisp.org>
18097
18098         Work around a MacOS X 10.4 bug with openpty.
18099         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18100         * tests/test-openpty.c (main): Close the master side explicitly.
18101
18102 2010-04-25  Bruno Haible  <bruno@clisp.org>
18103
18104         strnlen: Fix a C++ test error on MacOS X and Solaris.
18105         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18106         the function is not declared.
18107         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18108         Simon Josefsson.
18109
18110 2010-04-24  Bruno Haible  <bruno@clisp.org>
18111
18112         Avoid a gcc warning.
18113         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18114         of correct type for %08lx directive.
18115         Reported by Eric Blake.
18116
18117 2010-04-24  Bruno Haible  <bruno@clisp.org>
18118
18119         vasnprintf: Correct errno value in case of out-of-memory.
18120         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18121         or sprintf. Use the errno value from SNPRINTF or sprintf.
18122         Reported by Ian Beckwith <ianb@erislabs.net>.
18123
18124 2010-04-24  Bruno Haible  <bruno@clisp.org>
18125
18126         ansi-c++-opt: Find correct compiler when cross-compiling.
18127         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18128         AC_CHECK_PROGS.
18129         Reported by Simon Josefsson.
18130
18131 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18132
18133         vc-list-files: Add support for subversion
18134         * build-aux/vc-list-files: Use "svn list" to generate the list of
18135         files controlled by subversion.
18136
18137 2010-04-23  Jim Meyering  <meyering@redhat.com>
18138
18139         vc-list-files tests: convert to use init.sh
18140         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18141         path_prepend_.
18142         Use Exit, not exit.
18143         Use skip_ rather than open coding it.
18144         Remove trap set-up and compare definitions.
18145         * tests/test-vc-list-files-git.sh: Likewise.
18146         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18147
18148 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18149
18150         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18151         backup files.
18152
18153 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18154
18155         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18156
18157 2010-04-20  Eric Blake  <eblake@redhat.com>
18158
18159         tests: be robust to ignored SIGPIPE
18160         * tests/test-select-in.sh: Consume all output.
18161         * tests/test-lseek.sh: Check correct exit status, while avoiding
18162         EPIPE.
18163
18164 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18165             Bruno Haible  <bruno@clisp.org>
18166
18167         visibility: Don't use -fvisibility if it leads to a warning.
18168         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18169         yes, don't pretend that visibility works if it leads to a warning.
18170         Reported by Mike Gran <spk121@yahoo.com>.
18171
18172 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18173
18174         * build-aux/bootstrap: Use "git -h" for testing for supported options
18175         instead of "git --help".  The short-form option only shows a summary,
18176         and doesn't layout the full man page.  Grep for the full option name
18177         in the summary, too.
18178
18179 2010-04-19  Bruno Haible  <bruno@clisp.org>
18180
18181         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18183         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18184         mention of RELOCATABLE_STRIP.
18185         Reported by Sylvain Beucler <beuc@beuc.net>.
18186
18187 2010-04-19  Bruno Haible  <bruno@clisp.org>
18188
18189         * lib/diffseq.h: Fix typo in comment.
18190         Reported by Eric Blake.
18191
18192 2010-04-19  Bruno Haible  <bruno@clisp.org>
18193
18194         ioctl: Move autoconf macro to a .m4 file.
18195         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18196         * modules/ioctl (Files): Add it.
18197         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18198         Reported by Ian Beckwith <ianb@erislabs.net>.
18199
18200 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18201             Bruno Haible  <bruno@clisp.org>
18202
18203         diffseq: Accommodate use-case with abstract arrays.
18204         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18205         is not defined.
18206         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18207         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18208
18209 2010-04-18  Bruno Haible  <bruno@clisp.org>
18210
18211         * doc/posix-headers/stdbool.texi: More precise wording.
18212
18213 2010-04-17  Jim Meyering  <meyering@redhat.com>
18214
18215         maint.mk: use gnu-style indentation in an embedded perl script
18216         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18217         Rename variable: s/two/last_two_bytes/
18218
18219 2010-04-16  Eric Blake  <eblake@redhat.com>
18220
18221         test-stdbool: skip test that fails with Solaris CC
18222         * tests/test-stdbool.c (f): Skip test that causes compilation
18223         error under buggy C++ compiler.
18224         * lib/stdbool.in.h: Document the limitation.
18225         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18226
18227         setenv: allow compilation with C++
18228         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18229         register keyword.
18230
18231         stdint: allow test to pass with C++
18232         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18233
18234         getopt: allow compilation with C++
18235         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18236         struct.
18237         * lib/getopt.c (_getopt_internal_r): Use correct type.
18238         Reported by Dagobert Michelson, via Joel E. Denny.
18239
18240 2010-04-16  Bruno Haible  <bruno@clisp.org>
18241
18242         Override netdb.h always.
18243         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18245         Reported by Ludovic Courtès <ludo@gnu.org>.
18246
18247 2010-04-15  Bruno Haible  <bruno@clisp.org>
18248
18249         openpty: Fix mistake from 2010-03-21.
18250         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18251         Reported by Simon Josefsson.
18252
18253 2010-04-15  Eric Blake  <eblake@redhat.com>
18254
18255         test-forkpty: fix expected signature
18256         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18257         Reported by Simon Josefsson.
18258
18259 2010-04-15  Jim Meyering  <meyering@redhat.com>
18260
18261         maint.mk: texinfo_suffix_re_: correct the default regexp
18262         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18263
18264         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18265         make it configurable via texinfo_suffix_re_.
18266
18267 2010-04-14  Eric Blake  <eblake@redhat.com>
18268
18269         strtok_r: relax license to LGPLv2+
18270         * modules/strtok_r (License): Relax license.
18271         Reported by Matthias Bolte.
18272
18273 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18274
18275         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18276         version 1.4.4 by default instead of requiring the libgcrypt
18277         version used during build.  This makes it possible to use the
18278         application with older but still binary compatible libgcrypt
18279         versions.
18280
18281 2010-04-13  Eric Blake  <eblake@redhat.com>
18282
18283         getopt-gnu: match recent glibc fixes and posix ruling
18284         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18285         '+' handling, when requesting extensions.
18286         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18287         'W;' handling.
18288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18289         * doc/posix-functions/getopt.texi (getopt): Document this.
18290         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18291         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18292         Likewise.
18293
18294         getopt: merge bug fixes from glibc
18295         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18296         diagnostics.  Honor '+:' correctly.  Reject ';'.
18297
18298         getopt-posix: detect MacOS bug
18299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18300         optind when missing a required argument.
18301         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18302         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18303         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18304         Likewise.
18305
18306         getopt-posix: avoid spurious failure on Solaris
18307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18308         an indicator that setting optind=1 is sufficient for reset.
18309
18310         getopt-posix: avoid spurious failure on FreeBSD
18311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18312         in POSIX mode, since the m4 test uses it.
18313
18314         gnulib-tool: silence warning on BSD sh
18315         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18316
18317 2010-04-13  Jim Meyering  <meyering@redhat.com>
18318
18319         doc: users.txt: GNU patch now uses gnulib
18320         * users.txt: Add patch.
18321
18322 2010-04-12  Jim Meyering  <meyering@redhat.com>
18323
18324         maint.mk: generate more concise timing data for syntax-check rules
18325         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18326         " done" from each line that reports a syntax-check test duration.
18327
18328 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18329
18330         git-version-gen: use "git update-index..." rather than "git status"
18331         * build-aux/git-version-gen: Use git update-index --refresh, not
18332         "git status".  With some versions of git, "git status" would fail
18333         to update the index and result in an unwarranted "-dirty" suffix.
18334
18335 2010-04-11  Jim Meyering  <meyering@redhat.com>
18336
18337         openat: correct formatting (no semantic change)
18338         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18339         Suggested by Bruno Haible.
18340
18341 2010-04-11  Bruno Haible  <bruno@clisp.org>
18342
18343         Stricter declaration checking in testdirs.
18344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18345         If for_tests is true, augment AM_CPPFLAGS to define
18346         GNULIB_STRICT_CHECKING.
18347         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18348         GNULIB_STRICT_CHECKING is defined, verify that the function is
18349         declared.
18350
18351 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18352             Bruno Haible  <bruno@clisp.org>
18353
18354         libunistring: Improve configure output.
18355         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18356         Don't say "consider installing GNU libunistring" when checking again
18357         with libiconv.
18358
18359 2010-04-11  Bruno Haible  <bruno@clisp.org>
18360
18361         libunistring: Correct value of $LTLIBUNISTRING.
18362         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18363         correct the value of $LTLIBUNISTRING.
18364
18365 2010-04-11  Bruno Haible  <bruno@clisp.org>
18366
18367         havelib: Add static libraries to LIBS in the right order.
18368         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18369         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18370
18371 2010-04-11  Bruno Haible  <bruno@clisp.org>
18372
18373         libunistring: Detect libunistring also when it depends on libiconv.
18374         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18375         the second AC_LIB_HAVE_LINKFLAGS invocation.
18376
18377 2010-04-11  James Youngman  <jay@gnu.org>
18378
18379         close-stream: declare local scalars to be "const"
18380         * lib/close-stream.c (close_stream): Make boolean variables const
18381         to document the fact that we set but do not change them.
18382
18383 2010-04-11  Bruno Haible  <bruno@clisp.org>
18384
18385         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18386
18387 2010-04-11  Jim Meyering  <meyering@redhat.com>
18388
18389         maint.mk: don't include dist-check.mk
18390         * top/maint.mk: Remove bogus include directive.
18391
18392         maint.mk: improve empty-line-at-EOF check
18393         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18394         solution, rather than tail+Perl-based one.  The latter would read
18395         a few kilobytes from the end of each file, and did not handle empty
18396         files properly.
18397
18398         maint.mk: print the elapsed time for each syntax-check rule
18399         * top/maint.mk (sc_m_rules_): Save start time in a file.
18400         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18401         (local-check): Interpose the .z rules
18402
18403 2010-04-11  Jim Meyering  <meyering@redhat.com>
18404
18405         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18406         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18407         empty file with one that ends in an empty line.
18408
18409 2010-04-10  Bruno Haible  <bruno@clisp.org>
18410
18411         mkdir: Make it work on mingw64.
18412         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18413         * lib/mkdir.c: Update comment.
18414         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18415
18416 2010-04-10  Bruno Haible  <bruno@clisp.org>
18417
18418         Don't override improved macro from newer autoconf.
18419         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18420         autoconf >= 2.62.
18421         Reported by Joel E. Denny <jdenny@clemson.edu>.
18422
18423 2010-04-10  Jim Meyering  <meyering@redhat.com>
18424
18425         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18426         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18427
18428         maint.mk: correct a diagnostic
18429         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18430         in diagnostic; now use $prohibit.
18431
18432 2010-04-10  Bruno Haible  <address@hidden>
18433
18434         fchownat: Fix a C++ test error on Solaris 8.
18435         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18436         the function does not exist.
18437
18438 2010-04-10  Bruno Haible  <bruno@clisp.org>
18439
18440         vasnprintf: Add more tests.
18441         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18442         (test_function): Test converting an invalid wide string.
18443
18444         vasnprintf: Correct handling of unconvertible wide string arguments.
18445         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18446         VASNPRINTF.
18447         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18448         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18449         smaller than the expected maximum need for the directive. Set errno to
18450         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18451         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18453         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18454         * modules/vasnprintf (Files): Add m4/printf.m4.
18455         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18456
18457 2010-04-10  Bruno Haible  <bruno@clisp.org>
18458
18459         vasnprintf: Fix crash in %ls directive.
18460         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18461         string is passed as argument to %ls, with no precision and no width.
18462         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18463
18464 2010-04-10  Bruno Haible  <bruno@clisp.org>
18465
18466         vasnprintf: Fix multiple test failures on mingw.
18467         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18468         _snprintf, or snwprintf, not _snwprintf.
18469
18470 2010-04-10  Bruno Haible  <bruno@clisp.org>
18471
18472         write: Fix a C++ test error on mingw.
18473         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18474
18475 2010-04-10  Bruno Haible  <bruno@clisp.org>
18476
18477         vasnprintf test: Reduce code duplication.
18478         * tests/test-vasnprintf.c (test_function): New function, extracted from
18479         test_vasnprintf.
18480         (test_vasnprintf, test_asnprintf): Invoke it.
18481
18482 2010-04-10  Bruno Haible  <bruno@clisp.org>
18483
18484         strnlen: Fix warning in C++ mode on MacOS X.
18485         * lib/string.in.h (strnlen): Use the modern idiom.
18486         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18487         defining strnlen as a macro already in <config.h>.
18488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18489         REPLACE_STRNLEN.
18490         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18491         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18492
18493 2010-04-08  James Youngman  <jay@gnu.org>
18494
18495         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18496         the example.
18497
18498 2010-04-09  Jim Meyering  <meyering@redhat.com>
18499
18500         maint.mk: print better diagnostic when there is no $(_hv_file)
18501         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18502         announce that when $(_hv_file) (aka help-version) does not exist.
18503
18504         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18505         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18506         not try to interpret its random input bytes.  Jarno Rajahalme reported
18507         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18508         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18509         (mktempd_): Likewise, just in case.
18510
18511         ftruncate: add two years to projected module removal date: 2012
18512         * m4/ftruncate.m4: Adjust comments.
18513
18514         ftruncate: mark module as obsolete; even MinGW provides it, now
18515         * modules/ftruncate (Status): Obsolete.
18516         (Notice): Say that.
18517         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18518         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18519
18520 2010-04-08  Bruno Haible  <bruno@clisp.org>
18521
18522         Fix side effects from tests-related modules.
18523         * modules/dprintf-posix (Comment): New section.
18524         * modules/fprintf-posix (Comment): Likewise.
18525         * modules/obstack-printf-posix (Comment): Likewise.
18526         * modules/printf-posix (Comment): Likewise.
18527         * modules/snprintf-posix (Comment): Likewise.
18528         * modules/sprintf-posix (Comment): Likewise.
18529         * modules/vasnprintf-posix (Comment): Likewise.
18530         * modules/vasprintf-posix (Comment): Likewise.
18531         * modules/vdprintf-posix (Comment): Likewise.
18532         * modules/vfprintf-posix (Comment): Likewise.
18533         * modules/vprintf-posix (Comment): Likewise.
18534         * modules/vsnprintf-posix (Comment): Likewise.
18535         * modules/vsprintf-posix (Comment): Likewise.
18536         * modules/xprintf-posix (Comment): Likewise.
18537         * modules/xvasprintf-posix (Comment): Likewise.
18538         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18539         * modules/floorf-tests (Depends-on): Likewise.
18540         * modules/round-tests (Depends-on): Likewise.
18541         * modules/roundf-tests (Depends-on): Likewise.
18542         * modules/trunc-tests (Depends-on): Likewise.
18543         * modules/truncf-tests (Depends-on): Likewise.
18544         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18545         'fprintf-posix' module is not present.
18546         * tests/test-floorf2.c (check): Likewise.
18547         * tests/test-trunc2.c (check): Likewise.
18548         * tests/test-truncf2.c (check): Likewise.
18549         * tests/test-round2.c (equal): Likewise.
18550         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18551
18552 2010-04-07  Karl Berry  <karl@gnu.org>
18553
18554         * config/srclist.txt,
18555         * config/srclistvars.sh,
18556         * config/srclist-update: doc fixes.
18557
18558 2010-04-07  Jim Meyering  <meyering@redhat.com>
18559
18560         maint.mk: add a PATH crosschecking syntax-check rule
18561         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18562         Useful if you use a test like the one in help-version (coreutils,
18563         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18564         printed by prog --version.
18565
18566 2010-04-06  Bruno Haible  <bruno@clisp.org>
18567
18568         Fix link error on mingw.
18569         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18570         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18571
18572 2010-04-06  Bruno Haible  <bruno@clisp.org>
18573
18574         Assume rmdir exists.
18575         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18576
18577 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18578
18579         doc: update users.txt
18580         * users.txt: Add gcal.
18581
18582 2010-04-06  Jim Meyering  <meyering@redhat.com>
18583
18584         init.sh: simply unset TMPDIR rather than risking env -i
18585         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18586         although it probably works fine on all Unix-based systems, some
18587         systems (Cygwin?) cannot tolerate a totally cleared environment.
18588         Suggestion from Eric Blake.
18589
18590 2010-04-06  Jim Meyering  <meyering@redhat.com>
18591
18592         init.sh: portability fix: use env's POSIX-specified -i option not -u
18593         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18594         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18595
18596 2010-04-05  Bruno Haible  <bruno@clisp.org>
18597
18598         btowc: Work around Cygwin 1.7.2 bug.
18599         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18600         does not map NUL to 0.
18601         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18602
18603 2010-04-05  Bruno Haible  <bruno@clisp.org>
18604
18605         Make the multithread modules work on Cygwin 1.7.2.
18606         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18607         imported symbols can be declared weak, so that it returns "no" on
18608         Cygwin 1.7.2.
18609
18610 2010-04-05  Bruno Haible  <bruno@clisp.org>
18611
18612         Use the module 'strncat'.
18613         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18614
18615         Tests for module 'strncat'.
18616         * modules/strncat-tests: New file.
18617         * tests/test-strncat.c: New file.
18618
18619         New module 'strncat'.
18620         * lib/string.in.h (strncat): New declaration.
18621         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18622         * m4/strncat.m4: New file, based on m4/memchr.m4.
18623         * modules/strncat: New file.
18624         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18625         is declared.
18626         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18627         REPLACE_STRNCAT.
18628         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18629         REPLACE_STRNCAT.
18630         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18631         module.
18632         * tests/test-string-c++.cc: Check signature of strncat.
18633
18634 2010-04-05  Jim Meyering  <meyering@redhat.com>
18635
18636         xstrtoumax-tests: convert to use init.sh
18637         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18638         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18639         Use Exit, not exit.
18640         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18641
18642         xstrtoimax-tests: convert to use init.sh
18643         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18644         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18645         Use Exit, not exit.
18646         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18647
18648 2010-04-05  Bruno Haible  <bruno@clisp.org>
18649
18650         sys_socket: Avoid #define replacements in C++ mode.
18651         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18652         warning to the function if possible, rather than #defining the symbol
18653         to a dysfunctional alias.
18654
18655 2010-04-05  Bruno Haible  <bruno@clisp.org>
18656
18657         fseeko: Fix C++ test error on mingw.
18658         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18659         gl_FUNC_FSEEKO.
18660         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18661         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18662         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18663         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18664
18665 2010-04-05  Bruno Haible  <bruno@clisp.org>
18666
18667         duplocale: Improve test output.
18668         * tests/test-duplocale.c (main): Print reason for skipped test.
18669
18670 2010-04-05  Bruno Haible  <bruno@clisp.org>
18671
18672         Assume rmdir exists.
18673         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18674         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18675
18676 2010-04-05  Bruno Haible  <bruno@clisp.org>
18677
18678         Fix link error on Solaris 8 with cc.
18679         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18680
18681 2010-04-05  Bruno Haible  <bruno@clisp.org>
18682
18683         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18684         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18685
18686 2010-04-05  Bruno Haible  <bruno@clisp.org>
18687
18688         vasprintf: Update documentation.
18689         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18690
18691 2010-04-05  Bruno Haible  <bruno@clisp.org>
18692
18693         ptsname: Improve test.
18694         * tests/test-ptsname.c (main): Also try the various master names of BSD
18695         systems.
18696
18697 2010-04-05  Bruno Haible  <bruno@clisp.org>
18698
18699         memchr: Avoid a possible C++ test error.
18700         * lib/string.in.h (memchr): Provide declaration if function is missing.
18701         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18702         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18704         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18705
18706 2010-04-05  Bruno Haible  <bruno@clisp.org>
18707
18708         strtok_r: Improve idiom.
18709         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18710         AC_LIBOBJ is used.
18711
18712 2010-04-05  Bruno Haible  <bruno@clisp.org>
18713
18714         strdup: Improve idiom.
18715         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18716         AC_LIBOBJ is used.
18717         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18718         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18719         when AC_LIBOBJ is used.
18720
18721 2010-04-05  Bruno Haible  <bruno@clisp.org>
18722
18723         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18724         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18725         don't set REPLACE_MBSINIT to 1.
18726         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18727         don't set REPLACE_MBRTOWC to 1.
18728         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18729         exist, don't set REPLACE_MBSRTOWCS to 1.
18730         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18731         exist, don't set REPLACE_MBSNRTOWCS to 1.
18732         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18733         don't set REPLACE_WCRTOMB to 1.
18734         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18735         exist, don't set REPLACE_WCSRTOMBS to 1.
18736         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18737         exist, don't set REPLACE_WCSNRTOMBS to 1.
18738
18739 2010-04-05  Bruno Haible  <bruno@clisp.org>
18740
18741         ldexpl: Improve idiom.
18742         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18743         make sure to set HAVE_DECL_LDEXPL to 0.
18744
18745 2010-04-05  Jim Meyering  <meyering@redhat.com>
18746
18747         xstrtol-tests: convert to use init.sh
18748         * modules/xstrtol-tests (Files): Add tests/init.sh.
18749         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18750         Use Exit, not exit.
18751         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18752
18753         atexit-tests: convert to use init.sh
18754         * modules/atexit-tests (Files): Add tests/init.sh.
18755         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18756         Use Exit, not exit.
18757         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18758
18759         init.sh: fix typo
18760         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18761
18762         init.sh: make it easier for a test script to write to the tty, ...
18763         when using automake's parallel-tests mode.
18764         * tests/init.sh (stderr_fileno_): Define overridable variable.
18765         (warn_): New function, to use it.
18766         (fail_, skip_, framework_failure_): Use warn_.
18767
18768 2010-04-04  Bruno Haible  <bruno@clisp.org>
18769
18770         btowc: Avoid warning.
18771         * lib/btowc.c: Include <stdlib.h>.
18772         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18773
18774 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18775             Bruno Haible  <bruno@clisp.org>
18776
18777         wchar: Port to NetBSD 1.5.
18778         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18779         * lib/wctype.in.h (WEOF): Likewise.
18780
18781 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18782             Bruno Haible  <bruno@clisp.org>
18783
18784         Port extended stdio to NetBSD 1.5.
18785         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18786         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18787         older.
18788
18789 2010-04-04  Bruno Haible  <bruno@clisp.org>
18790
18791         string: Remove unused substitution.
18792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18793         HAVE_DECL_STRERROR.
18794         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18795
18796 2010-04-04  Bruno Haible  <bruno@clisp.org>
18797
18798         strtod: Avoid a possible C++ test error.
18799         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18800         set REPLACE_STRTOD.
18801
18802 2010-04-04  Bruno Haible  <bruno@clisp.org>
18803
18804         strerror: Update documentation.
18805         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18806
18807 2010-04-04  Bruno Haible  <bruno@clisp.org>
18808
18809         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18810         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18811         _GL_CXXALIAS_SYS_CAST.
18812
18813 2010-04-04  Bruno Haible  <bruno@clisp.org>
18814
18815         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18816         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18817         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18818         REPLACE_FREXPL to 1.
18819         * doc/posix-functions/frexpl.texi: Update documentation.
18820
18821 2010-04-04  Bruno Haible  <bruno@clisp.org>
18822
18823         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18824         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18825
18826 2010-04-04  Bruno Haible  <bruno@clisp.org>
18827
18828         Implement nanosleep for native Windows.
18829         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18830
18831 2010-04-04  Bruno Haible  <bruno@clisp.org>
18832
18833         math: Fix some C++ test errors on Solaris 8.
18834         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18835
18836 2010-04-04  Bruno Haible  <bruno@clisp.org>
18837
18838         math: Fix some C++ test errors on Cygwin.
18839         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18840         truncl): Provide declaration if the system does not have it.
18841         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18842         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18843         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18844         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18845         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18846         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18847         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18848         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18849         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18850         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18851         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18852         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18853         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18854         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18855         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18856         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18858         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18859         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18860         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18861         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18862         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18863
18864 2010-04-04  Bruno Haible  <bruno@clisp.org>
18865
18866         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18867         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18868         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18869         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18870         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18871         * m4/isinf.m4 (gl_ISINF): Likewise.
18872         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18873
18874 2010-04-04  Bruno Haible  <bruno@clisp.org>
18875
18876         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18877         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18878
18879 2010-04-04  Bruno Haible  <bruno@clisp.org>
18880
18881         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18882         * modules/tmpfile (configure.ac): Update.
18883
18884         tmpfile: Fix C++ test error on mingw.
18885         * lib/stdio.in.h (tmpfile): New declaration.
18886         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18887         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18888         * modules/tmpfile (Depends-on): Add stdio.
18889         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18890         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18891         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18892         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18893         REPLACE_TMPFILE.
18894         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18895
18896 2010-04-04  Bruno Haible  <bruno@clisp.org>
18897
18898         ioctl: Fix C++ test error on mingw.
18899         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18900         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18901         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18902
18903 2010-04-03  Bruno Haible  <bruno@clisp.org>
18904
18905         wcwidth: Fix C++ test error on mingw.
18906         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18908         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18909
18910 2010-04-03  Bruno Haible  <bruno@clisp.org>
18911
18912         nanosleep: Fix C++ test error on mingw.
18913         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18914         * lib/time.in.h (nanosleep): Use modern idiom.
18915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18916         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18917         REPLACE_NANOSLEEP to 1.
18918         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18919         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18920
18921 2010-04-03  Bruno Haible  <bruno@clisp.org>
18922
18923         strptime: Fix C++ test error on mingw.
18924         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18925         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18926         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18927         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18928         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18929         not REPLACE_STRPTIME.
18930         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18931         REPLACE_STRPTIME.
18932
18933 2010-04-03  Bruno Haible  <bruno@clisp.org>
18934
18935         timegm: Fix C++ test error on mingw.
18936         * lib/time.in.h (timegm): Use modern idiom.
18937         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18938         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18939         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18940         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18941
18942 2010-04-03  Bruno Haible  <bruno@clisp.org>
18943
18944         timegm: Assume declaration if function exists.
18945         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18946         if it exists. Don't clobber ac_cv_func_timegm.
18947
18948 2010-04-03  Bruno Haible  <bruno@clisp.org>
18949
18950         time_r: Fix C++ test error on mingw.
18951         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18952         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18953         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18954         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18955         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18956
18957 2010-04-03  Bruno Haible  <bruno@clisp.org>
18958
18959         time_r: Minor updates.
18960         * modules/time_r (Description): Mention the provided functions.
18961         * lib/time_r.c: Don't include <string.h>.
18962         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18963         * doc/posix-functions/localtime_r.texi: Likewise.
18964
18965 2010-04-03  Bruno Haible  <bruno@clisp.org>
18966
18967         time: Fix regression introduced on 2010-03-08.
18968         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18969         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18970
18971 2010-04-03  Jim Meyering  <meyering@redhat.com>
18972
18973         maint.mk: don't silently disable project-specific syntax-check rules
18974         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18975         that they need to convert their project-specific syntax-check rules
18976         to use the new _sc_search_regexp.
18977
18978 2010-04-03  Bruno Haible  <bruno@clisp.org>
18979
18980         fchdir: Fix regression introduced on 2010-03-08.
18981         * lib/unistd.in.h (fchdir): Fix declaration.
18982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18984         REPLACE_FCHDIR.
18985         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18986         REPLACE_FCHDIR.
18987
18988 2010-04-03  Bruno Haible  <bruno@clisp.org>
18989
18990         getpagesize: Fix C++ test error on mingw.
18991         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18992         system does not declare the function.
18993         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18994         declared.
18995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18996         HAVE_DECL_GETPAGESIZE.
18997         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18998
18999 2010-04-03  Bruno Haible  <bruno@clisp.org>
19000
19001         stdio: Make C++ tests work on mingw.
19002         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19003         does not declare the function.
19004
19005 2010-04-03  Bruno Haible  <bruno@clisp.org>
19006
19007         ftello: Fix C++ test error on mingw.
19008         * lib/stdio.in.h (ftello): Use modern idiom.
19009         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19010         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19011         is missing and that it needs to be replaced.
19012         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19014         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19015
19016 2010-04-03  Bruno Haible  <bruno@clisp.org>
19017
19018         fseeko: Fix C++ test error on mingw.
19019         * lib/stdio.in.h (fseeko): Use modern idiom.
19020         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19022         is missing and that it needs to be replaced.
19023         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19025         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19026
19027 2010-04-03  Bruno Haible  <bruno@clisp.org>
19028
19029         mkstemp: Fix C++ test error on mingw.
19030         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19031         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19032         function is missing and that it needs to be replaced.
19033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19034         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19035
19036 2010-04-03  Bruno Haible  <bruno@clisp.org>
19037
19038         stpncpy: Fix C++ test error on mingw.
19039         * lib/string.in.h (stpncpy): Use modern idiom.
19040         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19041         function is missing and that it needs to be replaced.
19042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19043         REPLACE_STPNCPY.
19044         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19045
19046 2010-04-03  Bruno Haible  <bruno@clisp.org>
19047
19048         sys_stat: Fix C++ test error on mingw.
19049         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19050         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19051
19052 2010-04-03  Bruno Haible  <bruno@clisp.org>
19053
19054         pty: Update doc.
19055         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19056
19057 2010-04-03  Bruno Haible  <bruno@clisp.org>
19058
19059         unistd: Fix C++ test error on mingw.
19060         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19061
19062 2010-04-03  Bruno Haible  <bruno@clisp.org>
19063
19064         Update doc regarding mingw.
19065         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19066         * doc/glibc-functions/login_tty.texi: Likewise.
19067         * doc/glibc-functions/forkpty.texi: Likewise.
19068
19069 2010-04-03  Bruno Haible  <bruno@clisp.org>
19070
19071         stdlib: Avoid compilation failure of c-strtold on mingw.
19072         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19073
19074 2010-04-03  Bruno Haible  <bruno@clisp.org>
19075
19076         locale: Make C++ tests work on Cygwin and mingw.
19077         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19078         cannot provide the function.
19079         Reported by Simon Josefsson.
19080
19081 2010-04-03  Bruno Haible  <bruno@clisp.org>
19082
19083         localename: Port to MacOS X 10.6.
19084         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19085         memory layout of the locales in MacOS X 10.6 as well.
19086         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19087
19088 2010-04-02  Bruno Haible  <bruno@clisp.org>
19089
19090         gnulib-tool: Ensure that long-running tests are executed last.
19091         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19092         running tests after the one for the other tests.
19093
19094 2010-04-02  Bruno Haible  <bruno@clisp.org>
19095
19096         gnulib-tool: Ensure the tests in the main directory are executed first.
19097         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19098         start with the current directory.
19099
19100 2010-04-02  Bruno Haible  <bruno@clisp.org>
19101
19102         Tests for module 'havelib', moved here from GNU gettext.
19103         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19104         modifications.
19105         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19106         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19107         with modifications.
19108         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19109         modifications.
19110         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19111         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19112         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19113         with modifications.
19114         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19115         with modifications.
19116         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19117         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19118         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19119         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19120         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19121         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19122         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19123         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19124         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19125         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19126         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19127         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19128         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19129         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19130         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19131         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19132         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19133         with modifications.
19134         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19135         with modifications.
19136         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19137         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19138         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19139         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19140         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19141         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19142         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19143         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19144         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19145         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19146         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19147         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19148         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19149         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19150         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19151         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19152         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19153         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19154         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19155         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19156         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19157         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19158         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19159         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19160         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19161         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19162         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19163         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19164         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19165         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19166         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19167         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19168         * tests/havelib/rpathx/rpathx.c: New file, from
19169         gettext/autoconf-lib-link.
19170         * tests/havelib/rpathx/Makefile.am: New file, from
19171         gettext/autoconf-lib-link.
19172         * tests/havelib/rpathx/configure.ac: New file, from
19173         gettext/autoconf-lib-link with modifications.
19174         * tests/havelib/rpathy/rpathy.c: New file, from
19175         gettext/autoconf-lib-link.
19176         * tests/havelib/rpathy/Makefile.am: New file, from
19177         gettext/autoconf-lib-link.
19178         * tests/havelib/rpathy/configure.ac: New file, from
19179         gettext/autoconf-lib-link with modifications.
19180         * tests/havelib/rpathz/rpathz.c: New file, from
19181         gettext/autoconf-lib-link.
19182         * tests/havelib/rpathz/Makefile.am: New file, from
19183         gettext/autoconf-lib-link.
19184         * tests/havelib/rpathz/configure.ac: New file, from
19185         gettext/autoconf-lib-link with modifications.
19186         * tests/havelib/rpathlx/usex.c: New file, from
19187         gettext/autoconf-lib-link.
19188         * tests/havelib/rpathlx/Makefile.am: New file, from
19189         gettext/autoconf-lib-link.
19190         * tests/havelib/rpathlx/configure.ac: New file, from
19191         gettext/autoconf-lib-link with modifications.
19192         * tests/havelib/rpathly/usey.c: New file, from
19193         gettext/autoconf-lib-link.
19194         * tests/havelib/rpathly/Makefile.am: New file, from
19195         gettext/autoconf-lib-link.
19196         * tests/havelib/rpathly/configure.ac: New file, from
19197         gettext/autoconf-lib-link with modifications.
19198         * tests/havelib/rpathlz/usez.c: New file, from
19199         gettext/autoconf-lib-link.
19200         * tests/havelib/rpathlz/Makefile.am: New file, from
19201         gettext/autoconf-lib-link.
19202         * tests/havelib/rpathlz/configure.ac: New file, from
19203         gettext/autoconf-lib-link with modifications.
19204         * tests/havelib/rpathlyx/usey.c: New file, from
19205         gettext/autoconf-lib-link.
19206         * tests/havelib/rpathlyx/Makefile.am: New file, from
19207         gettext/autoconf-lib-link.
19208         * tests/havelib/rpathlyx/configure.ac: New file, from
19209         gettext/autoconf-lib-link with modifications.
19210         * tests/havelib/rpathlzyx/usez.c: New file, from
19211         gettext/autoconf-lib-link.
19212         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19213         gettext/autoconf-lib-link.
19214         * tests/havelib/rpathlzyx/configure.ac: New file, from
19215         gettext/autoconf-lib-link with modifications.
19216         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19217         with modifications.
19218
19219 2010-04-02  Bruno Haible  <bruno@clisp.org>
19220
19221         gnulib-tool: Create distributed built sources also for the tests.
19222         * gnulib-tool (func_create_testdir): Also generate distributed built
19223         sources in the tests directory.
19224
19225 2010-04-02  Bruno Haible  <bruno@clisp.org>
19226
19227         gnulib-tool: Obey user's environment variables.
19228         * gnulib-tool (func_create_testdir): When creating built sources,
19229         respect the environment variables for autoconf, automake, etc. given by
19230         the user.
19231
19232 2010-04-02  Bruno Haible  <bruno@clisp.org>
19233
19234         gnulib-tool: Provide the value of --m4-base to modules.
19235         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19236         of gl_m4_base.
19237
19238 2010-04-02  Eric Blake  <eblake@redhat.com>
19239
19240         maint.mk: fix some fallout
19241         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19242         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19243
19244 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19245
19246         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19247         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19248         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19249         (sc_cast_of_x_alloc_return_value): Likewise.
19250         (sc_cast_of_alloca_return_value): Likewise.
19251         (sc_space_tab): Likewise.
19252         (sc_prohibit_atoi_atof): Likewise.
19253         (sc_prohibit_magic_number_exit): Likewise.
19254         (sc_error_exit_success): Likewise.
19255         (sc_file_system): Likewise.
19256         (sc_prohibit_have_config_h): Likewise.
19257         (sc_require_config_h): Likewise.
19258         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19259         (sc_obsolete_symbols): Likewise.
19260         (sc_changelog): Likewise.
19261         (sc_program_name): Likewise.
19262         (sc_the_the): Likewise.
19263         (sc_trailing_blank): Likewise.
19264         (sc_two_space_separator_in_usage): Likewise.
19265         (sc_useless_cpp_parens): Likewise.
19266         (sc_GPL_version): Likewise.
19267         (sc_GFDL_version): Likewise.
19268         (sc_texinfo_acronym): Likewise.
19269         (sc_prohibit_cvs_keyword): Likewise.
19270         (sc_prohibit_stat_st_blocks): Likewise.
19271         (sc_prohibit_S_IS_definition): Likewise.
19272         (sc_redundant_const): Likewise.
19273         (sc_makefile_TAB_only_indentation): Likewise.
19274         (sc_m4_quote_check): Likewise.
19275         (sc_makefile_path_separator_check): Likewise.
19276         (sc_copyright_check): Likewise.
19277         (sc_Wundef_boolean): Likewise.
19278         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19279
19280         maint.mk: match 0 or more whitespace-before-function-call '('
19281         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19282         that have zero or two-and-more spaces between the function name
19283         and the open parenthesis.
19284         (sc_error_message_warn_fatal): Likewise.
19285         (sc_error_message_uppercase): Likewise.
19286         (sc_error_message_period): Likewise.
19287
19288 2010-03-31  Eric Blake  <eblake@redhat.com>
19289
19290         maint.mk: check for [ as well as test
19291         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19292         Based on a libvirt report by Matthias Bolte.
19293
19294         gnumakefile: don't squelch _version output
19295         * top/GNUmakefile (_version): Create one-shot dependency rather
19296         than using $(shell) when version must be regenerated.
19297         (_autoreconf): Run verbosely, by default.
19298
19299         sys_time: avoid compiler warnings
19300         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19301         unconditional, fixing regression from 2010-03-29.
19302         Reported by Simon Josefsson.
19303
19304 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19305
19306         maint.mk: s/_header_without_use/_sc_header_without_use/
19307         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19308         (sc_prohibit_assert_without_use): Use the new name.
19309         (sc_prohibit_close_stream_without_use): Likewise.
19310         (sc_prohibit_getopt_without_use): Likewise.
19311         (sc_prohibit_quotearg_without_use): Likewise.
19312         (sc_prohibit_quote_without_use): Likewise.
19313         (sc_prohibit_long_options_without_use): Likewise.
19314         (sc_prohibit_inttostr_without_use): Likewise.
19315         (sc_prohibit_ignore_value_without_use): Likewise.
19316         (sc_prohibit_error_without_use): Likewise.
19317         (sc_prohibit_xalloc_without_use): Likewise.
19318         (sc_prohibit_hash_without_use): Likewise.
19319         (sc_prohibit_hash_pjw_without_use): Likewise.
19320         (sc_prohibit_safe_read_without_use): Likewise.
19321         (sc_prohibit_argmatch_without_use): Likewise.
19322         (sc_prohibit_canonicalize_without_use): Likewise.
19323         (sc_prohibit_root_dev_ino_without_use): Likewise.
19324         (sc_prohibit_openat_without_use): Likewise.
19325         (sc_prohibit_c_ctype_without_use): Likewise.
19326         (sc_prohibit_signal_without_use): Likewise.
19327         (sc_prohibit_intprops_without_use): Likewise.
19328
19329 2010-03-30  Eric Blake  <eblake@redhat.com>
19330
19331         maint: improve module indicators
19332         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19333         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19334         columns, and avoid extra macro expansion.
19335
19336         fdopendir: work around FreeBSD bug
19337         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19338         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19339         * modules/dirent (Makefile.am): Substitute it.
19340         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19341         declaration.
19342         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19343         fix.
19344         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19345
19346 2010-03-29  Bruno Haible  <bruno@clisp.org>
19347
19348         Emit #pragma system_header after the inclusion guard, not before.
19349         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19350         guard that spans the entire file, not before. This enables an
19351         optimization in GCC's preprocessor.
19352         * lib/ctype.in.h: Likewise.
19353         * lib/dirent.in.h: Likewise.
19354         * lib/errno.in.h: Likewise.
19355         * lib/float.in.h: Likewise.
19356         * lib/getopt.in.h: Likewise.
19357         * lib/iconv.in.h: Likewise.
19358         * lib/langinfo.in.h: Likewise.
19359         * lib/locale.in.h: Likewise.
19360         * lib/math.in.h: Likewise.
19361         * lib/netdb.in.h: Likewise.
19362         * lib/netinet_in.in.h: Likewise.
19363         * lib/pty.in.h: Likewise.
19364         * lib/sched.in.h: Likewise.
19365         * lib/se-selinux.in.h: Likewise.
19366         * lib/search.in.h: Likewise.
19367         * lib/spawn.in.h: Likewise.
19368         * lib/stdarg.in.h: Likewise.
19369         * lib/stdint.in.h: Likewise.
19370         * lib/string.in.h: Likewise.
19371         * lib/strings.in.h: Likewise.
19372         * lib/sys_file.in.h: Likewise.
19373         * lib/sys_ioctl.in.h: Likewise.
19374         * lib/sys_time.in.h: Likewise.
19375         * lib/sys_times.in.h: Likewise.
19376         * lib/sys_utsname.in.h: Likewise.
19377         * lib/sys_wait.in.h: Likewise.
19378         * lib/sysexits.in.h: Likewise.
19379         * lib/wctype.in.h: Likewise.
19380
19381 2010-03-28  James Youngman  <jay@gnu.org>
19382
19383         save-cwd: don't leak a file descriptor when the caller execs.
19384         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19385         saved file descriptor.
19386         * modules/save-cwd (Depends-on): Depend on cloexec.
19387
19388 2010-03-29  Bruno Haible  <bruno@clisp.org>
19389
19390         Remove vestiges of fts-lgpl module.
19391         * lib/fts_.h: Assume GNULIB_FTS is 1.
19392         * lib/fts.c: Likewise.
19393         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19394
19395 2010-03-28  Bruno Haible  <bruno@clisp.org>
19396
19397         Fix definition of tests witness macro.
19398         * gnulib-tool (func_import): Fix definition of witness macro.
19399
19400 2010-03-28  Bruno Haible  <bruno@clisp.org>
19401
19402         Fix ioctl's protoype on glibc systems.
19403         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19404         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19405         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19406         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19407         signature. If not, arrange to replace the ioctl function.
19408         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19409         REPLACE_IOCTL.
19410         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19411         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19412         Reported by Ludovic Courtès <ludo@gnu.org>.
19413
19414 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19415
19416         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19417         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19418         made it so grep -r --include=GLOB* ... did not work.
19419
19420 2010-03-26  Jim Meyering  <meyering@redhat.com>
19421             Eric Blake  <eblake@redhat.com>
19422
19423         maint.mk: prohibit use of test's -o and -a operators
19424         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19425
19426 2010-03-28  Bruno Haible  <bruno@clisp.org>
19427
19428         Remove unused GNULIB_XYZ macro definitions.
19429         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19430         invocation.
19431
19432 2010-03-28  Bruno Haible  <bruno@clisp.org>
19433
19434         Mark privileged tests modules.
19435         * modules/idpriv-drop-tests (Status): New section.
19436         * modules/idpriv-droptemp-tests (Status): New section.
19437
19438 2010-03-28  Bruno Haible  <bruno@clisp.org>
19439
19440         Split C++ tests into separate tests modules.
19441         * modules/dirent-c++-tests: New file, extracted from
19442         modules/dirent-tests.
19443         * modules/dirent-tests: Depend on it.
19444         * modules/fcntl-h-c++-tests: New file, extracted from
19445         modules/fcntl-h-tests.
19446         * modules/fcntl-h-tests: Depend on it.
19447         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19448         * modules/glob-tests: Depend on it.
19449         * modules/iconv-h-c++-tests: New file, extracted from
19450         modules/iconv-h-tests.
19451         * modules/iconv-h-tests: Depend on it.
19452         * modules/langinfo-c++-tests: New file, extracted from
19453         modules/langinfo-tests.
19454         * modules/langinfo-tests: Depend on it.
19455         * modules/locale-c++-tests: New file, extracted from
19456         modules/locale-tests.
19457         * modules/locale-tests: Depend on it.
19458         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19459         * modules/math-tests: Depend on it.
19460         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19461         * modules/pty-tests: Depend on it.
19462         * modules/search-c++-tests: New file, extracted from
19463         modules/search-tests.
19464         * modules/search-tests: Depend on it.
19465         * modules/signal-c++-tests: New file, extracted from
19466         modules/signal-tests.
19467         * modules/signal-tests: Depend on it.
19468         * modules/spawn-c++-tests: New file, extracted from
19469         modules/spawn-tests.
19470         * modules/spawn-tests: Depend on it.
19471         * modules/stdio-c++-tests: New file, extracted from
19472         modules/stdio-tests.
19473         * modules/stdio-tests: Depend on it.
19474         * modules/stdlib-c++-tests: New file, extracted from
19475         modules/stdlib-tests.
19476         * modules/stdlib-tests: Depend on it.
19477         * modules/string-c++-tests: New file, extracted from
19478         modules/string-tests.
19479         * modules/string-tests: Depend on it.
19480         * modules/sys_ioctl-c++-tests: New file, extracted from
19481         modules/sys_ioctl-tests.
19482         * modules/sys_ioctl-tests: Depend on it.
19483         * modules/sys_select-c++-tests: New file, extracted from
19484         modules/sys_select-tests.
19485         * modules/sys_select-tests: Depend on it.
19486         * modules/sys_socket-c++-tests: New file, extracted from
19487         modules/sys_socket-tests.
19488         * modules/sys_socket-tests: Depend on it.
19489         * modules/sys_stat-c++-tests: New file, extracted from
19490         modules/sys_stat-tests.
19491         * modules/sys_stat-tests: Depend on it.
19492         * modules/sys_time-c++-tests: New file, extracted from
19493         modules/sys_time-tests.
19494         * modules/sys_time-tests: Depend on it.
19495         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19496         * modules/time-tests: Depend on it.
19497         * modules/unistd-c++-tests: New file, extracted from
19498         modules/unistd-tests.
19499         * modules/unistd-tests: Depend on it.
19500         * modules/wchar-c++-tests: New file, extracted from
19501         modules/wchar-tests.
19502         * modules/wchar-tests: Depend on it.
19503         * modules/wctype-c++-tests: New file, extracted from
19504         modules/wctype-tests.
19505         * modules/wctype-tests: Depend on it.
19506         Reported by Simon Josefsson.
19507
19508 2010-03-28  Bruno Haible  <bruno@clisp.org>
19509
19510         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19511         * gnulib-tool (func_exists_module): New function, extracted from
19512         func_verify_module.
19513         (func_verify_module): Use it.
19514         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19515         'foo' only if 'foo' exists.
19516         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19517         module.
19518
19519 2010-03-28  Bruno Haible  <bruno@clisp.org>
19520
19521         gnulib-tool: Add support for special categories of tests.
19522         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19523         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19524         (func_usage): Document them.
19525         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19526         inc_unportable_tests, inc_all_tests): New variables.
19527         (func_acceptable): Consider these variables.
19528         (func_modules_transitive_closure): Make it work when the 'Status' field
19529         consists of multiple words.
19530         (func_import): Store and restore the values of inc_cxx_tests,
19531         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19532         inc_all_tests in gnulib-comp.m4.
19533         (func_create_testdir): Set inc_all_tests to true.
19534         * doc/gnulib.texi (Extra tests modules): New section.
19535         Suggested by Jim Meyering.
19536
19537 2010-03-28  Bruno Haible  <bruno@clisp.org>
19538
19539         ansi-c++-opt: Allow turning off the C++ build by default.
19540         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19541         gl_CXX_CHOICE_DEFAULT_NO is defined.
19542         Requested by Eric Blake.
19543
19544 2010-03-28  Bruno Haible  <bruno@clisp.org>
19545
19546         unistd: Avoid #define replacements in C++ mode.
19547         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19548         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19549         setsockopt, shutdown, select): In C++, attach a warning to the function
19550         if possible, rather than #defining the symbol to a dysfunctional alias.
19551         Reported by John W. Eaton <jwe@gnu.org>.
19552
19553 2010-03-28  Bruno Haible  <bruno@clisp.org>
19554
19555         Fix link errors on mingw.
19556         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19557         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19558         $(LIBSOCKET).
19559         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19560         $(LIBSOCKET).
19561
19562 2010-03-28  Bruno Haible  <bruno@clisp.org>
19563             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19564
19565         lib-ignore: Determine different options for different compilers.
19566         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19567         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19568         Add comments.
19569         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19570         * NEWS: Mention the change.
19571
19572 2010-03-27  Bruno Haible  <bruno@clisp.org>
19573
19574         Remove unused GNULIB_XYZ macro definitions.
19575         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19576         * modules/fseek (configure.ac): Likewise.
19577         * modules/ioctl (configure.ac): Likewise.
19578         * modules/open (configure.ac): Likewise.
19579         * modules/stdlib-safer (configure.ac): Likewise.
19580
19581 2010-03-27  Bruno Haible  <bruno@clisp.org>
19582
19583         Add a remark about certain modules.
19584         * modules/malloc (Comment): New section.
19585         * modules/realloc (Comment): Likewise.
19586         * modules/sigpipe (Comment): Likewise.
19587
19588 2010-03-27  Bruno Haible  <bruno@clisp.org>
19589
19590         Resolve conflict between the two kinds of module indicators.
19591         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19592         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19593         * modules/canonicalize (configure.ac): Invoke
19594         gl_MODULE_INDICATOR_FOR_TESTS.
19595         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19596         GNULIB_XYZ.
19597         * tests/test-dirent-c++.cc: Likewise.
19598         * tests/test-dirent-safer.c: Likewise.
19599         * tests/test-dup2.c: Likewise.
19600         * tests/test-fchdir.c: Likewise.
19601         * tests/test-fcntl-h-c++.cc: Likewise.
19602         * tests/test-getopt.c: Likewise.
19603         * tests/test-getopt.h: Likewise.
19604         * tests/test-langinfo-c++.cc: Likewise.
19605         * tests/test-locale-c++.cc: Likewise.
19606         * tests/test-math-c++.cc: Likewise.
19607         * tests/test-pty-c++.cc: Likewise.
19608         * tests/test-search-c++.cc: Likewise.
19609         * tests/test-signal-c++.cc: Likewise.
19610         * tests/test-spawn-c++.cc: Likewise.
19611         * tests/test-stdio-c++.cc: Likewise.
19612         * tests/test-stdlib-c++.cc: Likewise.
19613         * tests/test-string-c++.cc: Likewise.
19614         * tests/test-sys_ioctl-c++.cc: Likewise.
19615         * tests/test-sys_select-c++.cc: Likewise.
19616         * tests/test-sys_socket-c++.cc: Likewise.
19617         * tests/test-sys_stat-c++.cc: Likewise.
19618         * tests/test-sys_time-c++.cc: Likewise.
19619         * tests/test-time-c++.cc: Likewise.
19620         * tests/test-unistd-c++.cc: Likewise.
19621         * tests/test-wchar-c++.cc: Likewise.
19622         * tests/uninorm/test-u8-nfc.c: Likewise.
19623         * tests/uninorm/test-u8-nfd.c: Likewise.
19624         * tests/uninorm/test-u8-nfkc.c: Likewise.
19625         * tests/uninorm/test-u8-nfkd.c: Likewise.
19626         * tests/uninorm/test-u16-nfc.c: Likewise.
19627         * tests/uninorm/test-u16-nfd.c: Likewise.
19628         * tests/uninorm/test-u16-nfkc.c: Likewise.
19629         * tests/uninorm/test-u16-nfkd.c: Likewise.
19630         * tests/uninorm/test-u32-nfc.c: Likewise.
19631         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19632         * tests/uninorm/test-u32-nfd.c: Likewise.
19633         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19634         * tests/uninorm/test-u32-nfkc.c: Likewise.
19635         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19636         * tests/uninorm/test-u32-nfkd.c: Likewise.
19637         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19638         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19639
19640 2010-03-27  Bruno Haible  <bruno@clisp.org>
19641
19642         Distinguish two kinds of module indicators.
19643         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19644         gl_MODULE_INDICATOR.
19645         (gl_MODULE_INDICATOR): New macro.
19646         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19647         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19648         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19649         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19650         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19651         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19652         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19653         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19654         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19655         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19656         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19657         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19659         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19660         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19661         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19662         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19663         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19664         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19665         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19666         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19667         * modules/cloexec (configure.ac): Likewise.
19668         * modules/getopt-gnu (configure.ac): Likewise.
19669         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19670         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19671         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19672         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19673
19674 2010-03-27  Bruno Haible  <bruno@clisp.org>
19675
19676         New module description field 'Comment'.
19677         * gnulib-tool: New option --extract-comment.
19678         (func_usage): Document it.
19679         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19680         (func_get_comment): New function.
19681         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19682
19683 2010-03-27  Bruno Haible  <bruno@clisp.org>
19684
19685         Addendum to 2010-02-07 commit.
19686         * gnulib-tool (func_usage): Document --extract-applicability option.
19687
19688 2010-03-27  Bruno Haible  <bruno@clisp.org>
19689
19690         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19691         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19692         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19693         rather than link errors.
19694
19695 2010-03-27  Bruno Haible  <bruno@clisp.org>
19696
19697         Avoid side effects from tests-related modules on the compilation of lib.
19698         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19699         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19700         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19701         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19702         macro.
19703         (func_import): Define a witness macro. Assign it a value that depends
19704         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19705         tests-related modules.
19706         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19707         Reported by Jim Meyering.
19708
19709 2010-03-27  Bruno Haible  <bruno@clisp.org>
19710
19711         Factorize common .m4 code.
19712         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19713         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19714         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19715         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19716         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19717         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19718         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19719         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19720         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19721         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19722         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19723         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19724         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19725         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19726         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19727         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19728         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19729         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19731         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19732         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19733         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19734         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19735         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19736         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19737         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19738         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19739         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19740         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19741         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19742         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19743         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19744
19745 2010-03-27  Bruno Haible  <bruno@clisp.org>
19746
19747         Fix a compilation error on Cygwin with g++ >= 4.3.
19748         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19749         if it is undefined or if we alias it to chmod.
19750         (lstat): Don't warn about the use of this function if it is undefined
19751         or if we alias it to stat.
19752         Reported by Simon Josefsson.
19753
19754 2010-03-27  Bruno Haible  <bruno@clisp.org>
19755
19756         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19757         * modules/getlogin (configure.ac): Update.
19758
19759         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19760         * modules/getlogin_r (configure.ac): Update.
19761
19762         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19764         * modules/inet_ntop (configure.ac): Update.
19765
19766         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19767         * modules/inet_pton (configure.ac): Update.
19768
19769         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19770         * modules/mbslen (configure.ac): Update.
19771
19772         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19773         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19774         * modules/forkpty (configure.ac): Update.
19775         * modules/openpty (configure.ac): Update.
19776
19777 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19778
19779         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19780         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19781
19782 2010-03-25  Eric Blake  <eblake@redhat.com>
19783
19784         maint: use pragma consistently across replacement headers
19785         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19786         * lib/dirent.in.h (system_header): Likewise.
19787         * lib/errno.in.h (system_header): Likewise.
19788         * lib/float.in.h (system_header): Likewise.
19789         * lib/getopt.in.h (system_header): Likewise.
19790         * lib/iconv.in.h (system_header): Likewise.
19791         * lib/inttypes.in.h (system_header): Likewise.
19792         * lib/langinfo.in.h (system_header): Likewise.
19793         * lib/locale.in.h (system_header): Likewise.
19794         * lib/math.in.h (system_header): Likewise.
19795         * lib/netdb.in.h (system_header): Likewise.
19796         * lib/netinet_in.in.h (system_header): Likewise.
19797         * lib/pty.in.h (system_header): Likewise.
19798         * lib/sched.in.h (system_header): Likewise.
19799         * lib/se-selinux.in.h (system_header): Likewise.
19800         * lib/search.in.h (system_header): Likewise.
19801         * lib/spawn.in.h (system_header): Likewise.
19802         * lib/stdarg.in.h (system_header): Likewise.
19803         * lib/stdint.in.h (system_header): Likewise.
19804         * lib/string.in.h (system_header): Likewise.
19805         * lib/strings.in.h (system_header): Likewise.
19806         * lib/sys_file.in.h (system_header): Likewise.
19807         * lib/sys_ioctl.in.h (system_header): Likewise.
19808         * lib/sys_socket.in.h (system_header): Likewise.
19809         * lib/sys_times.in.h (system_header): Likewise.
19810         * lib/sys_utsname.in.h (system_header): Likewise.
19811         * lib/sys_wait.in.h (system_header): Likewise.
19812         * lib/sysexits.in.h (system_header): Likewise.
19813         * lib/unistd.in.h (system_header): Likewise.
19814         * lib/wctype.in.h (system_header): Likewise.
19815
19816         arpa/inet: fix mingw compilation warning
19817         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19818         Reported by Matthew Bolte.
19819
19820 2010-03-25  Bruno Haible  <bruno@clisp.org>
19821
19822         Avoid collision between gnulib wrapper and libintl wrapper.
19823         * lib/printf.c (printf): Don't define if a printf wrapper is already
19824         defined in intl/printf.c.
19825         Reported by Michel Boaventura <michel@michelboaventura.com>.
19826
19827 2010-03-25  Bruno Haible  <bruno@clisp.org>
19828
19829         Use ANSI C.
19830         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19831
19832 2010-03-25  Bruno Haible  <bruno@clisp.org>
19833
19834         Minor formatting changes.
19835         * lib/acosl.c: Insert space before function argument list.
19836         * lib/argz.c: Likewise.
19837         * lib/asinl.c: Likewise.
19838         * lib/expl.c: Likewise.
19839         * lib/gen-uni-tables.c: Likewise.
19840         * lib/gettext.h: Likewise.
19841         * lib/glthread/lock.h: Likewise.
19842         * lib/tanl.c: Likewise.
19843         * lib/uniname/uniname.c: Likewise.
19844         * tests/test-idpriv-drop.c: Likewise.
19845         * tests/test-idpriv-droptemp.c: Likewise.
19846         * tests/test-lock.c: Likewise.
19847         * tests/test-tls.c: Likewise.
19848         * lib/argp-help.c: Insert space before function-like macro argument
19849         list.
19850         * lib/memcmp.c: Likewise.
19851         * tests/test-base64.c: Likewise.
19852         * lib/localename.c: Insert space before sizeof's argument list.
19853         * lib/safe-alloc.h: Likewise.
19854         * lib/file-set.h: Insert space before macro argument list.
19855         * tests/test-argp.c: Likewise.
19856         * lib/argp-namefrob.h: Insert space before function parameter list.
19857         * lib/getaddrinfo.c: Likewise.
19858         * lib/netdb.in.h: Likewise.
19859         * lib/parse-duration.h: Likewise.
19860         * lib/parse-duration.c: Likewise.
19861         * lib/poll.c: Likewise.
19862         * lib/select.c: Likewise.
19863         * lib/trim.h: Likewise.
19864         * tests/test-usleep.c: Likewise.
19865         * lib/ldexpl.c: Insert space before function parameter list and before
19866         function argument list.
19867         * lib/logl.c: Likewise.
19868         * lib/sqrtl.c: Likewise.
19869         * lib/trim.c: Likewise.
19870         * lib/cosl.c: Use GNU style indentation. Insert space before function
19871         argument list.
19872         * lib/sinl.c: Likewise.
19873         * lib/tsearch.c: Insert space after 'for'.
19874         Reported by Jim Meyering.
19875
19876 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19877
19878         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19879         config header before grepping, as it's not present before
19880         autoreconf/configure are run.  Reported by Simon Josefsson.
19881
19882 2010-03-23  Bruno Haible  <bruno@clisp.org>
19883
19884         pt_chown: Make it work with automake < 1.11.
19885         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19886         Reported by Simon Josefsson.
19887
19888 2010-03-23  Bruno Haible  <bruno@clisp.org>
19889
19890         pt_chown: Don't depend on GPLed modules.
19891         * lib/pt_chown.c: Don't include idpriv.h.
19892         (main): Don't drop privileges.
19893         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19894         Reported by Simon Josefsson.
19895
19896 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19897
19898         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19899         suggestions from karl@freefriends.org (Karl Berry).
19900
19901 2010-03-22  Eric Blake  <eblake@redhat.com>
19902
19903         gethostname: further tweaks
19904         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19905         are overriding gethostname.
19906         Suggested by Bruno Haible.
19907
19908 2010-03-21  Bruno Haible  <bruno@clisp.org>
19909
19910         Fix comments.
19911         * lib/forkpty.c (rpl_forkpty): Fix comment.
19912         * lib/openpty.c (rpl_openpty): Likewise.
19913         Reported by Eric Blake.
19914
19915 2010-03-22  Eric Blake  <eblake@redhat.com>
19916
19917         gethostname: fix build on mingw
19918         * lib/unistd.in.h (includes): Work around fact that mingw
19919         <winsock2.h> re-includes <unistd.h>, by avoiding any
19920         redeclarations if we are being included by <winsock2.h>.
19921         Reported by Matthias Bolte.
19922
19923 2010-03-21  Bruno Haible  <bruno@clisp.org>
19924
19925         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19926         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19927         modifications.
19928         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19929         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19930         provide the replacement.
19931         * modules/forkpty (Depends-on): Add openpty, login_tty.
19932         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19933         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19934         * doc/glibc-functions/forkpty.texi: More supported platforms.
19935         * config/srclist.txt: Add forkpty.c (commented).
19936
19937 2010-03-21  Bruno Haible  <bruno@clisp.org>
19938
19939         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19940         (Makefile.am): Verify that PTY_LIB is defined.
19941
19942         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19943
19944 2010-03-21  Bruno Haible  <bruno@clisp.org>
19945
19946         Tests for module 'login_tty'.
19947         * modules/login_tty-tests: New file.
19948         * tests/test-login_tty.c: New file.
19949
19950         New module 'login_tty'.
19951         * lib/login_tty.c: New file.
19952         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19953         * modules/login_tty: New file.
19954         * doc/glibc-functions/login_tty.texi: Mention the new module.
19955
19956 2010-03-21  Bruno Haible  <bruno@clisp.org>
19957
19958         login_tty: Documentation.
19959         * doc/glibc-functions/login_tty.texi: New file.
19960         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19961
19962 2010-03-21  Bruno Haible  <bruno@clisp.org>
19963
19964         pty: Consistent macro naming.
19965         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19966         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19967         * modules/pty (configure.ac): Update.
19968
19969 2010-03-21  Bruno Haible  <bruno@clisp.org>
19970
19971         Tests for openpty: Make stricter.
19972         * tests/test-openpty.c (main): Add test of canonical processing and
19973         erase.
19974         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19975
19976         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19977         * lib/openpty.c (openpty): New replacement function.
19978         * lib/pty.in.h: Include <termios.h>.
19979         (openpty): Update declaration. Add comments.
19980         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19981         is not declared, arrange to provide the replacement. Check for _getpty
19982         and posix_openpt.
19983         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19984         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19985         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19986         * modules/pty-tests (test_pty_c___LDADD): New variable.
19987         * doc/glibc-functions/openpty.texi: More supported platforms.
19988
19989 2010-03-21  Bruno Haible  <bruno@clisp.org>
19990
19991         setenv: Tweaks.
19992         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19993         the test program.
19994         * doc/posix-functions/setenv.texi: Update platforms list.
19995
19996 2010-03-21  Bruno Haible  <bruno@clisp.org>
19997
19998         New module 'unlockpt'.
19999         * lib/unlockpt.c: New file, from glibc with modifications.
20000         * m4/unlockpt.m4: New file.
20001         * modules/unlockpt: New file.
20002         * lib/stdlib.in.h (unlockpt): New declaration.
20003         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20004         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20005         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20006         HAVE_UNLOCKPT.
20007         * doc/posix-functions/unlockpt.texi: Mention the new module.
20008         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20009         * config/srclist.txt: Add unlockpt.c (commented).
20010
20011 2010-03-21  Jim Meyering  <meyering@redhat.com>
20012
20013         maint.mk: prohibit inclusion of "intprops.h" without use
20014         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20015
20016 2010-03-21  Bruno Haible  <bruno@clisp.org>
20017
20018         New module 'grantpt'.
20019         * lib/grantpt.c: New file, from glibc with modifications.
20020         * m4/grantpt.m4: New file.
20021         * modules/grantpt: New file.
20022         * lib/stdlib.in.h (grantpt): New declaration.
20023         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20024         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20025         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20026         HAVE_GRANTPT.
20027         * doc/posix-functions/grantpt.texi: Mention the new module.
20028         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20029         * config/srclist.txt: Add grantpt.c (commented).
20030
20031 2010-03-21  Bruno Haible  <bruno@clisp.org>
20032
20033         New module 'pt_chown'.
20034         * lib/pt_chown.c: New file, from glibc with modifications.
20035         * lib/pty-private.h: New file, from glibc with modifications.
20036         * modules/pt_chown: New file.
20037         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20038
20039 2010-03-21  Bruno Haible  <bruno@clisp.org>
20040
20041         Tests for module 'ptsname'.
20042         * modules/ptsname-tests: New file.
20043         * tests/test-ptsname.c: New file.
20044
20045         New module 'ptsname'.
20046         * lib/ptsname.c: New file, from glibc with modifications.
20047         * m4/ptsname.m4: New file.
20048         * modules/ptsname: New file.
20049         * lib/stdlib.in.h (ptsname): New declaration.
20050         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20051         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20052         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20053         HAVE_PTSNAME.
20054         * doc/posix-functions/ptsname.texi: Mention the new module.
20055         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20056         * config/srclist.txt: Add ptsname.c (commented).
20057
20058 2010-03-21  Bruno Haible  <bruno@clisp.org>
20059
20060         Tests for module 'ttyname_r'.
20061         * modules/ttyname_r-tests: New file.
20062         * tests/test-ttyname_r.c: New file.
20063
20064         New module 'ttyname_r'.
20065         * lib/ttyname_r.c: New file.
20066         * m4/ttyname_r.m4: New file.
20067         * modules/ttyname_r: New file.
20068         * lib/unistd.in.h (ttyname_r): New declaration.
20069         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20070         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20071         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20072         HAVE_TTYNAME_R.
20073         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20074         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20075
20076 2010-03-20  Bruno Haible  <bruno@clisp.org>
20077
20078         signal: Undefine macro definitions in C++ mode.
20079         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20080         sigfillset): Undefine macro definitions from the system header in C++
20081         mode.
20082         Reported by John W. Eaton <jwe@gnu.org>.
20083
20084 2010-03-20  Bruno Haible  <bruno@clisp.org>
20085
20086         Ensure no #include statements inside extern "C" { ... }.
20087         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20088         contain #include statements.
20089         * lib/time.in.h: Likewise.
20090
20091 2010-03-20  Bruno Haible  <bruno@clisp.org>
20092
20093         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20094         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20095         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20096         Reported by John W. Eaton <jwe@gnu.org>.
20097
20098 2010-03-20  Bruno Haible  <bruno@clisp.org>
20099
20100         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20101         Reported by Jim Meyering.
20102
20103 2010-03-20  Bruno Haible  <bruno@clisp.org>
20104
20105         pipe: Set errno upon failure.
20106         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20107         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20108         errno value in error message.
20109
20110 2010-03-20  Bruno Haible  <bruno@clisp.org>
20111             Jim Meyering  <meyering@redhat.com>
20112
20113         lchown: Avoid "unused variable" warning.
20114         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20115
20116 2010-03-20  Bruno Haible  <bruno@clisp.org>
20117
20118         Work around unlink() bug on MacOS X 10.5.6.
20119         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20120         attempting to unlink a parent directory.
20121         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20122         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20123         activate for the replacement function.
20124         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20125
20126 2010-03-20  Bruno Haible  <bruno@clisp.org>
20127
20128         Fix link errors on Solaris 8.
20129         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20130         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20131
20132 2010-03-19  Jim Meyering  <meyering@redhat.com>
20133
20134         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20135         The _LIBC implementation of build_range_exp correctly honors the
20136         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20137         However, the non-_LIBC implementation would ignore that syntax-bit
20138         flag and return REG_ERANGE unconditionally.
20139         This change makes it honor that flag.
20140         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20141         Make two pointer parameters "const".
20142         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20143         (parse_bracket_exp): Update caller.
20144
20145         regex.m4: correct the reversed range endpoint ([b-a]) test
20146         * m4/regex.m4: When requiring that [b-a] evoke failure,
20147         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20148         test pass once again for x86-based systems.
20149
20150 2010-03-19  Bruno Haible  <bruno@clisp.org>
20151
20152         scandir: Fix link error on Solaris 8.
20153         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20154         macros.
20155
20156 2010-03-19  Bruno Haible  <bruno@clisp.org>
20157
20158         getusershell: Fix documentation.
20159         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20160         module.
20161         * doc/glibc-functions/setusershell.texi: Likewise.
20162
20163         getusershell: Provide declaration, missing on Solaris 9.
20164         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20165         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20166         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20167         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20169         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20170         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20171         HAVE_GETUSERSHELL.
20172         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20173
20174 2010-03-19  Bruno Haible  <bruno@clisp.org>
20175
20176         wctype: Provide iswblank function.
20177         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20178         exists and is fine.
20179         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20180         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20181         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20182         * doc/posix-functions/iswblank.texi: Update.
20183
20184 2010-03-19  Bruno Haible  <bruno@clisp.org>
20185
20186         Tests of module 'pty' in C++ mode.
20187         * modules/pty-tests: New file.
20188         * tests/test-pty-c++.cc: New file.
20189         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20190
20191 2010-03-19  Eric Blake  <eblake@redhat.com>
20192
20193         logb: fix documentation
20194         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20195         1.5 declaration bug.
20196
20197         forkpty, openpty: prefer glibc's const-safe prototype
20198         * lib/forkpty.c (rpl_forkpty): New file.
20199         * lib/openpty.c (rpl_openpty): Likewise.
20200         * modules/forkpty (Files): Distribute it.
20201         * modules/openpty (Files): Likewise.
20202         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20203         check...
20204         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20205         replacement for for non-const BSD signature.
20206         * modules/pty (Makefile.am): Substitute witnesses.
20207         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20208         * tests/test-forkpty.c: Update signature check.
20209         * tests/test-openpty.c: Likewise.
20210         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20211         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20212
20213         forkpty, openpty: split functions into new modules
20214         * modules/pty (Makefile.am): Substitute new witnesses.
20215         (Libraries): Move library detection...
20216         * modules/forkpty: ...into new module.
20217         * modules/openpty: Another new module.
20218         * modules/pty-tests: Rename and split...
20219         * modules/forkpty-tests: ...to this...
20220         * modules/openpty-tests: ...and this.
20221         * tests/test-pty.c: Rename and split...
20222         * tests/test-forkpty.c: ...to this...
20223         * tests/test-openpty.c: ...and this.
20224         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20225         (gl_PTY): Split library searching...
20226         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20227         (gl_FORKPTY, gl_OPENPTY): New macros.
20228         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20229         * NEWS: Mention the split.
20230         * MODULES.html.sh (Misc): Document the modules.
20231         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20232         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20233
20234         pty: improve replacement header
20235         * lib/pty.in.h: New file.
20236         * modules/pty (Files): Ship it.
20237         (Makefile.am): Always build replacement.
20238         * m4/pty.m4: Rename...
20239         * m4/pty_h.m4: ...to this.
20240         (gl_PTY): Modernize setting of witness macros; update check of
20241         forkpty to take proper advantage of cache.
20242         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20243
20244         getopt: avoid compiler warning
20245         * lib/getopt.c (attribute_hidden): Remove unused macro.
20246
20247 2010-03-18  Bruno Haible  <bruno@clisp.org>
20248
20249         Fix link errors on Solaris 8.
20250         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20251         * modules/search-tests (test_search_c___LDADD): Likewise.
20252         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20253         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20254         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20255         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20256         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20257         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20258         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20259
20260 2010-03-18  Bruno Haible  <bruno@clisp.org>
20261
20262         Fix bug introduced on 2010-03-14.
20263         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20264         (gl_SPAWN_H): Require it.
20265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20266         Reported by Simon Josefsson.
20267
20268 2010-03-18  Bruno Haible  <bruno@clisp.org>
20269
20270         Fix typo introduced on 2009-12-31.
20271         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20272         posix_spawn_file_actions_adddup2.
20273
20274 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20275         and Eric Blake  <eblake@redhat.com>
20276
20277         test-vc-list-files-git: make more robust
20278         * tests/test-vc-list-files-git.sh: Unset problematic environment
20279         variables.  Chain commands together.
20280
20281 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20282
20283         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20284         `AC_CHECK_DECL' invocation.
20285
20286 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20287
20288         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20289         appears before executable statements. Suggested by Petr Sumbera
20290         <Petr.Sumbera@Sun.COM>.
20291
20292 2010-03-14  Bruno Haible  <bruno@clisp.org>
20293
20294         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20295         portability problems. Instead use a simpler test.
20296         (main): Check that invalid arguments are rejected only on Linux.
20297
20298 2010-03-14  Bruno Haible  <bruno@clisp.org>
20299
20300         Fix bug introduced on 2009-12-31.
20301         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20302         gl_PREREQ_SYS_H_WINSOCK2 always.
20303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20304         SYS_SOCKET_H variable.
20305         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20306         Update comments.
20307         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20308         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20310         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20311         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20312
20313 2010-03-14  Bruno Haible  <bruno@clisp.org>
20314
20315         Fix values returned by sinl, cosl.
20316         * lib/trigl.h: Add specification comments.
20317         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20318         that combines the values from the precomputed table with the values of
20319         the Chebyshev polynomials.
20320
20321 2010-03-14  Bruno Haible  <bruno@clisp.org>
20322
20323         Fix compilation error when modules 'posix_spawn[p]' are not used.
20324         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20326
20327 2010-03-14  Bruno Haible  <bruno@clisp.org>
20328
20329         Fix compilation error on mingw when module 'time_r' is not used.
20330         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20331         is 1.
20332         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20333         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20334         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20335         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20336
20337 2010-03-14  Bruno Haible  <bruno@clisp.org>
20338
20339         Fix compilation error with Sun C.
20340         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20341         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20342         instead of GCC specific ULONG_LONG_MAX.
20343         * lib/xstrtoll.c: Likewise.
20344         * lib/xstrtoull.c: Likewise.
20345
20346 2010-03-13  Bruno Haible  <bruno@clisp.org>
20347
20348         Allow the user to disable C++ code and tests.
20349         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20350         (gl_PROG_ANSI_CXX): Require it.
20351
20352 2010-03-13  Bruno Haible  <bruno@clisp.org>
20353
20354         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20355         cases.
20356
20357 2010-03-13  Bruno Haible  <bruno@clisp.org>
20358
20359         Test that gnulib does not break the standard C++ headers.
20360         * tests/test-locale-c++2.cc: New file.
20361         * modules/locale-tests (Files): Add it.
20362         (Makefile.am): Compile it for test-locale-c++.
20363         * tests/test-math-c++2.cc: New file.
20364         * modules/math-tests (Files): Add it.
20365         (Makefile.am): Compile it for test-math-c++.
20366         * tests/test-signal-c++2.cc: New file.
20367         * modules/signal-tests (Files): Add it.
20368         (Makefile.am): Compile it for test-signal-c++.
20369         * tests/test-stdio-c++2.cc: New file.
20370         * modules/stdio-tests (Files): Add it.
20371         (Makefile.am): Compile it for test-stdio-c++.
20372         * tests/test-stdlib-c++2.cc: New file.
20373         * modules/stdlib-tests (Files): Add it.
20374         (Makefile.am): Compile it for test-stdlib-c++.
20375         * tests/test-string-c++2.cc: New file.
20376         * modules/string-tests (Files): Add it.
20377         (Makefile.am): Compile it for test-string-c++.
20378         * tests/test-time-c++2.cc: New file.
20379         * modules/time-tests (Files): Add it.
20380         (Makefile.am): Compile it for test-time-c++.
20381         Reported by John W. Eaton <jwe@gnu.org>.
20382
20383 2010-03-13  Bruno Haible  <bruno@clisp.org>
20384
20385         * gnulib-tool (func_usage): Clarify which options are available for
20386         --create-testdir and --create-megatestdir.
20387
20388 2010-03-13  Bruno Haible  <bruno@clisp.org>
20389
20390         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20391         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20392         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20393         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20394         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20395         when appropriate.
20396         Reported by Jim Meyering.
20397
20398 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20399
20400         * gnulib-tool (func_import): Explain origin of code.
20401
20402 2010-03-12  Bruno Haible  <bruno@clisp.org>
20403
20404         Fix problem with automake's definition of CXXLINK.
20405         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20406         Reported by Simon Josefsson and Ludovic Courtès.
20407
20408 2010-03-12  Bruno Haible  <bruno@clisp.org>
20409
20410         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20411         stable releases.
20412
20413 2010-03-11  Bruno Haible  <bruno@clisp.org>
20414
20415         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20416         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20417         whether the system provides one variant or multiple variants of the
20418         function.
20419         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20420         C++ compilers.
20421         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20422         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20423         Reported by Jim Meyering.
20424
20425 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20426
20427         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20428
20429 2010-03-08  Bruno Haible  <bruno@clisp.org>
20430
20431         gnulib-tool: Add support for --libtool in --create-testdir.
20432         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20433         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20434
20435 2010-03-08  Eric Blake  <eblake@redhat.com>
20436
20437         gnulib-tool.texi: mention possibility of git submodule
20438         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20439         submodules.
20440         * doc/.gitignore: Ignore another generated file.
20441
20442 2010-03-08  Karl Berry  <karl@gnu.org>
20443
20444         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20445         of committing gnulib files while skipping others.
20446
20447 2010-03-07  Bruno Haible  <bruno@clisp.org>
20448
20449         Tests of module 'wctype' in C++ mode.
20450         * tests/test-wctype-c++.cc: New file.
20451         * modules/wctype-tests (Files): Add it and tests/signature.h.
20452         (Depends-on): Add ansi-c++-opt.
20453         (Makefile.am): Arrange to compile and run test-wctype-c++.
20454
20455         Tests of module 'wchar' in C++ mode.
20456         * tests/test-wchar-c++.cc: New file.
20457         * modules/wchar-tests (Files): Add it and tests/signature.h.
20458         (Depends-on): Add ansi-c++-opt.
20459         (Makefile.am): Arrange to compile and run test-wchar-c++.
20460         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20461         gl_MODULE_INDICATOR.
20462
20463         Tests of module 'unistd' in C++ mode.
20464         * tests/test-unistd-c++.cc: New file.
20465         * modules/unistd-tests (Files): Add it and tests/signature.h.
20466         (Depends-on): Add ansi-c++-opt.
20467         (Makefile.am): Arrange to compile and run test-unistd-c++.
20468         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20469         gl_MODULE_INDICATOR.
20470
20471         Tests of module 'time' in C++ mode.
20472         * tests/test-time-c++.cc: New file.
20473         * modules/time-tests (Files): Add it and tests/signature.h.
20474         (Depends-on): Add ansi-c++-opt.
20475         (Makefile.am): Arrange to compile and run test-time-c++.
20476         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20477
20478         Tests of module 'sys_time' in C++ mode.
20479         * tests/test-sys_time-c++.cc: New file.
20480         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20481         (Depends-on): Add ansi-c++-opt.
20482         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20483         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20484         gl_MODULE_INDICATOR.
20485
20486         Tests of module 'sys_stat' in C++ mode.
20487         * tests/test-sys_stat-c++.cc: New file.
20488         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20489         (Depends-on): Add ansi-c++-opt.
20490         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20492         gl_MODULE_INDICATOR.
20493
20494         Tests of module 'sys_socket' in C++ mode.
20495         * tests/test-sys_socket-c++.cc: New file.
20496         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20497         (Depends-on): Add ansi-c++-opt.
20498         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20500         gl_MODULE_INDICATOR.
20501
20502         Tests of module 'sys_select' in C++ mode.
20503         * tests/test-sys_select-c++.cc: New file.
20504         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20505         (Depends-on): Add ansi-c++-opt.
20506         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20507         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20508         gl_MODULE_INDICATOR.
20509
20510         Tests of module 'sys_ioctl' in C++ mode.
20511         * tests/test-sys_ioctl-c++.cc: New file.
20512         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20513         (Depends-on): Add ansi-c++-opt.
20514         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20516         gl_MODULE_INDICATOR.
20517
20518         Tests of module 'string' in C++ mode.
20519         * tests/test-string-c++.cc: New file.
20520         * modules/string-tests (Files): Add it and tests/signature.h.
20521         (Depends-on): Add ansi-c++-opt.
20522         (Makefile.am): Arrange to compile and run test-string-c++.
20523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20524         gl_MODULE_INDICATOR.
20525
20526         Tests of module 'stdlib' in C++ mode.
20527         * tests/test-stdlib-c++.cc: New file.
20528         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20529         (Depends-on): Add ansi-c++-opt.
20530         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20531         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20532         gl_MODULE_INDICATOR.
20533
20534         Tests of module 'stdio' in C++ mode.
20535         * tests/test-stdio-c++.cc: New file.
20536         * modules/stdio-tests (Files): Add it and tests/signature.h.
20537         (Depends-on): Add ansi-c++-opt.
20538         (Makefile.am): Arrange to compile and run test-stdio-c++.
20539         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20540         gl_MODULE_INDICATOR.
20541
20542         Tests of module 'spawn' in C++ mode.
20543         * tests/test-spawn-c++.cc: New file.
20544         * modules/spawn-tests (Files): Add it and tests/signature.h.
20545         (Depends-on): Add ansi-c++-opt.
20546         (Makefile.am): Arrange to compile and run test-spawn-c++.
20547         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20548         gl_MODULE_INDICATOR.
20549
20550         Tests of module 'signal' in C++ mode.
20551         * tests/test-signal-c++.cc: New file.
20552         * modules/signal-tests (Files): Add it and tests/signature.h.
20553         (Depends-on): Add ansi-c++-opt.
20554         (Makefile.am): Arrange to compile and run test-signal-c++.
20555         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20556         gl_MODULE_INDICATOR.
20557
20558         Tests of module 'search' in C++ mode.
20559         * tests/test-search-c++.cc: New file.
20560         * modules/search-tests (Files): Add it and tests/signature.h.
20561         (Depends-on): Add ansi-c++-opt.
20562         (Makefile.am): Arrange to compile and run test-search-c++.
20563         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20564         gl_MODULE_INDICATOR.
20565
20566         Tests of module 'math' in C++ mode.
20567         * tests/test-math-c++.cc: New file.
20568         * modules/math-tests (Files): Add it and tests/signature.h.
20569         (Depends-on): Add ansi-c++-opt.
20570         (Makefile.am): Arrange to compile and run test-math-c++.
20571         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20572
20573         Tests of module 'locale' in C++ mode.
20574         * tests/test-locale-c++.cc: New file.
20575         * modules/locale-tests (Files): Add it and tests/signature.h.
20576         (Depends-on): Add ansi-c++-opt.
20577         (Makefile.am): Arrange to compile and run test-locale-c++.
20578         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20579         gl_MODULE_INDICATOR.
20580
20581         Tests of module 'langinfo' in C++ mode.
20582         * tests/test-langinfo-c++.cc: New file.
20583         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20584         (Depends-on): Add ansi-c++-opt.
20585         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20586         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20587         gl_MODULE_INDICATOR.
20588
20589         Tests of module 'iconv-h' in C++ mode.
20590         * tests/test-iconv-h-c++.cc: New file.
20591         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20592         (Depends-on): Add ansi-c++-opt.
20593         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20594
20595         Tests of module 'glob' in C++ mode.
20596         * tests/test-glob-c++.cc: New file.
20597         * modules/glob-tests (Files): Add it.
20598         (Depends-on): Add ansi-c++-opt.
20599         (Makefile.am): Arrange to compile and run test-glob-c++.
20600
20601         Tests of module 'fcntl-h' in C++ mode.
20602         * tests/test-fcntl-h-c++.cc: New file.
20603         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20604         (Depends-on): Add ansi-c++-opt.
20605         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20606         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20607         gl_MODULE_INDICATOR.
20608
20609         Tests of module 'dirent' in C++ mode.
20610         * tests/test-dirent-c++.cc: New file.
20611         * modules/dirent-tests (Files): Add it and tests/signature.h.
20612         (Depends-on): Add ansi-c++-opt.
20613         (Makefile.am): Arrange to compile and run test-dirent-c++.
20614         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20615         gl_MODULE_INDICATOR.
20616
20617         New module 'ansi-c++-opt'.
20618         * modules/ansi-c++-opt: New file.
20619         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20620
20621         Document C++ namespace mode.
20622         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20623
20624         wctype: Avoid #define replacements in C++ mode.
20625         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20626         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20627         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20628         In C++, define a namespaced alias symbol.
20629         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20630         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20631         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20632         rule.
20633
20634         wchar: Avoid #define replacements in C++ mode.
20635         * lib/wchar.in.h: Include c++defs.h.
20636         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20637         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20638         symbol.
20639         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20640         * modules/wchar (Depends-on): Add c++defs.
20641         (Makefile.am): Update wchar.h rule.
20642
20643         unistd: Avoid #define replacements in C++ mode.
20644         * lib/unistd.in.h: Include c++defs.h.
20645         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20646         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20647         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20648         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20649         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20650         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20651         symbol.
20652         (environ): Update.
20653         * modules/unistd (Depends-on): Add c++defs.
20654         (Makefile.am): Update unistd.h rule.
20655
20656         time: Avoid #define replacements in C++ mode.
20657         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20658         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20659         define a namespaced alias symbol.
20660         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20661         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20662         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20663         * modules/time (Depends-on): Add c++defs, warn-on-use.
20664         (Makefile.am): Update time.h rule.
20665         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20666         * modules/nanosleep (configure.ac): Likewise.
20667         * modules/strptime (configure.ac): Likewise.
20668         * modules/timegm (configure.ac): Likewise.
20669
20670         sys_time: Avoid #define replacements in C++ mode.
20671         * lib/sys_time.in.h: Include c++defs.h.
20672         (gettimeofday): In C++, define a namespaced alias symbol.
20673         * modules/sys_time (Depends-on): Add c++defs.
20674         (Makefile.am): Update sys/time.h rule.
20675
20676         sys_stat: Avoid #define replacements in C++ mode.
20677         * lib/sys_stat.in.h: Include c++defs.h.
20678         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20679         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20680         namespaced alias symbol.
20681         In C++, define a namespaced alias symbol.
20682         * modules/sys_stat (Depends-on): Add c++defs.
20683         (Makefile.am): Update sys/stat.h rule.
20684
20685         sys_socket: Avoid #define replacements in C++ mode.
20686         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20687         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20688         definitions also when the system has a <sys/socket.h>.
20689         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20690         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20691         In C++, define a namespaced alias symbol.
20692         * modules/sys_socket (Depends-on): Add c++defs.
20693         (Makefile.am): Update sys/socket.h rule.
20694
20695         sys_select: Avoid #define replacements in C++ mode.
20696         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20697         definitions also when the system has a <sys/select.h>.
20698         (select): In C++, define a namespaced alias symbol.
20699         * modules/sys_select (Depends-on): Add c++defs.
20700         (Makefile.am): Update sys/select.h rule.
20701
20702         sys_ioctl: Avoid #define replacements in C++ mode.
20703         * lib/sys_ioctl.in.h: Include c++defs.h.
20704         (ioctl): In C++, define a namespaced alias symbol.
20705         * modules/sys_ioctl (Depends-on): Add c++defs.
20706         (Makefile.am): Update sys/ioctl.h rule.
20707
20708         string: Avoid #define replacements in C++ mode.
20709         * lib/string.in.h: Include c++defs.h.
20710         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20711         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20712         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20713         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20714         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20715         * modules/string (Depends-on): Add c++defs.
20716         (Makefile.am): Update string.h rule.
20717
20718         stdlib: Avoid #define replacements in C++ mode.
20719         * lib/stdlib.in.h: Include c++defs.h.
20720         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20721         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20722         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20723         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20724         symbol.
20725         * modules/stdlib (Depends-on): Add c++defs.
20726         (Makefile.am): Update stdlib.h rule.
20727
20728         stdio: Avoid #define replacements in C++ mode.
20729         * lib/stdio.in.h: Include c++defs.h.
20730         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20731         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20732         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20733         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20734         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20735         namespaced alias symbol.
20736         * modules/stdio (Depends-on): Add c++defs.
20737         (Makefile.am): Update stdio.h rule.
20738
20739         spawn: Avoid #define replacements in C++ mode.
20740         * lib/spawn.in.h: Include c++defs.h.
20741         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20742         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20743         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20744         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20745         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20746         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20747         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20748         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20749         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20750         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20751         In C++, define a namespaced alias symbol.
20752         * modules/spawn (Depends-on): Add c++defs.
20753         (Makefile.am): Update spawn.h rule.
20754
20755         signal: Avoid #define replacements in C++ mode.
20756         * lib/signal.in.h: Include c++defs.h.
20757         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20758         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20759         namespaced alias symbol.
20760         * modules/signal (Depends-on): Add c++defs.
20761         (Makefile.am): Update signal.h rule.
20762
20763         search: Avoid #define replacements in C++ mode.
20764         * lib/search.in.h: Include c++defs.h.
20765         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20766         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20767         symbol.
20768         * modules/search (Depends-on): Add c++defs.
20769         (Makefile.am): Update search.h rule.
20770
20771         math: Avoid #define replacements in C++ mode.
20772         * lib/math.in.h: Include c++defs.h.
20773         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20774         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20775         trunc, truncl): In C++, define a namespaced alias symbol.
20776         * modules/math (Depends-on): Add c++defs.
20777         (Makefile.am): Update math.h rule.
20778
20779         locale: Avoid #define replacements in C++ mode.
20780         * lib/locale.in.h: Include c++defs.h.
20781         (duplocale): In C++, define a namespaced alias symbol.
20782         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20783         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20784         * modules/locale (Depends-on): Add c++defs.
20785         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20786
20787         langinfo: Avoid #define replacements in C++ mode.
20788         * lib/langinfo.in.h: Include c++defs.h.
20789         (nl_langinfo): In C++, define a namespaced alias symbol.
20790         * modules/langinfo (Depends-on): Add c++defs.
20791         (Makefile.am): Update langinfo.h rule.
20792
20793         iconv-h: Avoid #define replacements in C++ mode.
20794         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20795         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20796         symbol.
20797         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20798         whenever iconv is present.
20799         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20800         (Makefile.am): Update iconv.h rule.
20801
20802         glob: Avoid #define replacements in C++ mode.
20803         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20804         (_gl_glob_errfunc_fn): New type.
20805         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20806         symbol.
20807         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20808         (Makefile.am): Update glob.h rule.
20809
20810         fcntl-h: Avoid #define replacements in C++ mode.
20811         * lib/fcntl.in.h: Include c++defs.h.
20812         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20813         * modules/fcntl-h (Depends-on): Add c++defs.
20814         (Makefile.am): Update fcntl.h rule.
20815
20816         dirent: Avoid #define replacements in C++ mode.
20817         * lib/dirent.in.h: Include c++defs.h.
20818         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20819         namespaced alias symbol.
20820         (dirfd): Update declaration.
20821         * modules/dirent (Depends-on): Add c++defs.
20822         (Makefile.am): Update dirent.h rule.
20823
20824         ctype: Make it usable in C++ code.
20825         * lib/ctype.in.h: Include c++defs.h.
20826         (isblank): Declare as extern "C".
20827         * modules/ctype (Depends-on): Add c++defs.
20828         (Makefile.am): Update ctype.h rule.
20829
20830         New module 'c++defs'.
20831         * modules/c++defs: New file.
20832         * build-aux/c++defs.h: New file.
20833         Reported by John W. Eaton <jwe@gnu.org>.
20834
20835 2010-03-07  Bruno Haible  <bruno@clisp.org>
20836
20837         logb: Provide missing declaration for Cygwin.
20838         * lib/math.in.h (logb): New declaration.
20839         * m4/logb.m4: New file.
20840         * modules/logb (Files): Add m4/logb.m4.
20841         (Depends-on): Add math.
20842         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20843         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20845         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20846         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20847
20848 2010-03-07  Bruno Haible  <bruno@clisp.org>
20849
20850         Fix test-cond link error.
20851         * tests/test-cond.c: Include <stdio.h>.
20852
20853 2010-03-07  Bruno Haible  <bruno@clisp.org>
20854
20855         Fix test-dirent-safer link error.
20856         * modules/dirent-safer-tests (Makefile.am): Define
20857         test_dirent_safer_LDADD.
20858
20859 2010-03-07  Bruno Haible  <bruno@clisp.org>
20860
20861         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20862         among default module list.
20863
20864 2010-03-07  Bruno Haible  <bruno@clisp.org>
20865
20866         Fix link error on platforms with GNU libiconv.
20867         * modules/unistr/u8-strcoll-tests (Makefile): Define
20868         test_u8_strcoll_LDADD.
20869         * modules/unistr/u16-strcoll-tests (Makefile): Define
20870         test_u16_strcoll_LDADD.
20871         * modules/unistr/u32-strcoll-tests (Makefile): Define
20872         test_u32_strcoll_LDADD.
20873
20874 2010-03-07  Bruno Haible  <bruno@clisp.org>
20875
20876         Use POSIX declarations for socket functions.
20877         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20878         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20879         rpl_sendto): Change declaration to match POSIX.
20880         * lib/connect.c (rpl_connect): Likewise.
20881         * lib/accept.c (rpl_accept): Likewise.
20882         * lib/bind.c (rpl_bind): Likewise.
20883         * lib/getpeername.c (rpl_getpeername): Likewise.
20884         * lib/getsockname.c (rpl_getsockname): Likewise.
20885         * lib/recv.c (rpl_recv): Likewise.
20886         * lib/send.c (rpl_send): Likewise.
20887         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20888         * lib/sendto.c (rpl_sendto): Likewise.
20889
20890 2010-03-06  Bruno Haible  <bruno@clisp.org>
20891
20892         Clarify access, euidaccess, faccessat.
20893         * doc/posix-functions/faccessat.texi: Mention security problem under
20894         "Other problems", not "Portability problems".
20895         * doc/posix-functions/access.texi: Likewise. Mention a related security
20896         problem.
20897         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20898         * lib/euidaccess.c: Add comments about platforms.
20899         * lib/unistd.in.h (access, euidaccess): Add warnings.
20900
20901 2010-03-07  Bruno Haible  <bruno@clisp.org>
20902
20903         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20904         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20905         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20906         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20907         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20908         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20909         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20910         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20911         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20912         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20913         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20914         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20915         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20916         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20917         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20918         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20919         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20920         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20921         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20922         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20923         Likewise.
20924         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20925         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20926         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20927         Likewise.
20928         * tests/test-spawn.c (main): Make it work when
20929         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20930
20931 2010-03-07  Bruno Haible  <bruno@clisp.org>
20932
20933         Fix incorrect Makefile.am generation in German locale.
20934         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20935         Execute sed command with character range in C locale.
20936
20937 2010-03-06  Bruno Haible  <bruno@clisp.org>
20938
20939         Tests for module 'iconv-h'.
20940         * modules/iconv-h-tests: New file.
20941         * tests/test-iconv-h.c: New file.
20942
20943         New module 'iconv-h'.
20944         * modules/iconv-h: New file.
20945         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20946         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20947         (configure.ac): Remove gl_ICONV_H.
20948         (Makefile.am): Remove rule for iconv.h.
20949
20950 2010-03-06  Bruno Haible  <bruno@clisp.org>
20951
20952         More consistent naming of *.m4 files.
20953         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20954         * modules/wctype (Files): Update.
20955
20956         More consistent naming of *.m4 files.
20957         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20958         * modules/wchar (Files): Update.
20959
20960 2010-03-06  Jim Meyering  <meyering@redhat.com>
20961
20962         euidaccess: relax license to LGPLv2+
20963         * modules/euidaccess (License): Relax to LGPLv2+.
20964
20965 2010-03-06  Bruno Haible  <bruno@clisp.org>
20966
20967         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20968         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20969         (Makefile.am): Augment lib_SOURCES instead.
20970
20971 2010-03-04  Jim Meyering  <meyering@redhat.com>
20972
20973         utime: remove obsolete module
20974         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20975         unnecessary for years, and has been marked as obsolete for 10 months.
20976         * modules/utime: Remove file.
20977         * lib/utime.c: Remove file.
20978         * m4/utime.m4: Remove file.
20979         * m4/utimes-null.m4: Remove file.
20980         * doc/posix-functions/utime.texi (utime): Remove reference to
20981         the module.  Move the sole "fixed by gnulib" item into the
20982         "problems not fixed by Gnulib" list.
20983         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20984
20985 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20986
20987         * modules/exit (License): Relax license to LGPLv2+.
20988         (Status): Mark as obsolete.
20989         * NEWS: Mention deprecated 'exit' module.
20990         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20991         of now obsolete 'exit'.
20992
20993 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20994
20995         fts-lgpl: remove unused module
20996         * modules/fts-lgpl: Remove.
20997         * MODULES.html.sh (func_all_modules): Adjust.
20998         * check-module (find_included_lib_files): Adjust.
20999         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21000
21001 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21002
21003         copy-acl: enhance Solaris ACL error handling
21004         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21005         * lib/set-mode-acl.c (qset_acl): Likewise.
21006
21007 2010-03-02  Bruno Haible  <bruno@clisp.org>
21008
21009         spawn: Don't override the system defined values on FreeBSD 8.
21010         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21011         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21012         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21013         if HAVE_POSIX_SPAWN is 1.
21014         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21015
21016 2010-03-01  Bruno Haible  <bruno@clisp.org>
21017
21018         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21019         regarding Automake.
21020
21021 2010-02-25  Bruno Haible  <bruno@clisp.org>
21022
21023         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21024         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21025         setting, not afterwards.
21026         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21027
21028 2010-02-24  Eric Blake  <eblake@redhat.com>
21029
21030         bootstrap, git-version-gen: use timestamp
21031         * build-aux/git-version-gen (scriptversion): Force UTC.
21032         * build-aux/bootstrap (scriptversion): New variable.
21033
21034         bootstrap: allow older git
21035         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21036         older than 1.6.4.  Requested by the libvirt project.
21037
21038 2010-02-23  Eric Blake  <eblake@redhat.com>
21039
21040         warn-on-use: work with old autoconf
21041         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21042         AS_VAR semantics of autoconf 2.60.
21043         Reported by Bruno Haible.
21044
21045         bootstrap: improve some comments
21046         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21047         clarification comments.
21048
21049         gettimeofday: provide correct function
21050         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21051         when replacement is declared, otherwise provide gettimeofday.
21052         Reported by Michael Goffioul.
21053
21054 2010-02-23  Jim Meyering  <meyering@redhat.com>
21055
21056         lib-ignore: relax license to "unlimited", not LGPLv2+
21057         * modules/lib-ignore (License): Relax to "unlimited".
21058
21059 2010-02-23  Jim Meyering  <meyering@redhat.com>
21060
21061         lib-ignore: relax license to LGPLv2+
21062         * modules/lib-ignore (License): Relax to LGPLv2+.
21063
21064 2010-02-22  Eric Blake  <eblake@redhat.com>
21065
21066         lseek: avoid bash 3.2 broken pipe bug
21067         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21068         warning from bash 3.2.
21069         Reported by Ben Pfaff, with analysis from Bruno Haible.
21070
21071         bootstrap: support non-FSF copyright holder
21072         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21073         bootstrap.conf override of COPYRIGHT_HOLDER.
21074         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21075
21076         bootstrap: interoperate with gettext 0.14.1
21077         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21078
21079         bootstrap: allow for alternate submodule location
21080         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21081         hardcoding submodule location.
21082         (gnulib_mk): Allow direct use of Makefile.am.
21083
21084         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21085         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21086         rather than reconfiguring where the submodule points.
21087
21088         gettimeofday: restore support for platforms that lack function
21089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21090         replacement if function is missing.
21091         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21092         * modules/sys_time (Makefile.am): Substitute it.
21093         * lib/sys_time.in.h (gettimeofday): Check it.
21094         Reported by Michael Goffioul.
21095
21096 2010-02-21  Bruno Haible  <bruno@clisp.org>
21097
21098         * lib/stdio.in.h (obstack_printf): Fix typo.
21099
21100 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21101
21102         vc-list-files: use bzr ls's -R option
21103         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21104         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21105
21106 2010-02-21  Jim Meyering  <meyering@redhat.com>
21107
21108         init.sh: fix EXEEXT shims to work also for names like test-prog
21109         * tests/init.sh: Re-exec a better shell, when needed.
21110         If the current shell lacks support for posix $(...), an init.sh-using
21111         test will now try to find a shell that supports that.  If EXEEXT is
21112         nonempty, we also require support for hyphen-in-alias-name and shell
21113         substitutions like ${var#glob}.  Failure to find such a shell results
21114         in a skipped test.
21115
21116 2010-02-21  Bruno Haible  <bruno@clisp.org>
21117
21118         Really work around around "broken pipe" error message from bash 3.2.
21119         * gnulib-tool (func_reset_sigpipe): Remove function.
21120         (echo): In bash 3.2, define to a function that uses printf.
21121         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21122
21123 2010-02-20  Bruno Haible  <bruno@clisp.org>
21124
21125         Restore support for automake 1.9.6 with autoconf 2.61.
21126         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21127         Reported by James Youngman <jay@gnu.org>.
21128
21129 2010-02-20  Bruno Haible  <bruno@clisp.org>
21130
21131         Improve *printf warning condition.
21132         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21133         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21134         and the function is overridden due to SIGPIPE emulation.
21135
21136 2010-02-20  Bruno Haible  <bruno@clisp.org>
21137
21138         * lib/stdio.in.h: Tweak comments.
21139
21140 2010-02-19  Bruno Haible  <bruno@clisp.org>
21141
21142         Make it easier to find modules. New gnulib-tool option '--find'.
21143         * gnulib-tool: New option --find.
21144         (func_usage): Document it.
21145         (func_sanitize_modulelist): New function, extracted from
21146         func_all_modules.
21147         (func_all_modules): Invoke it.
21148         * doc/gnulib-tool.texi (Which modules?): New node.
21149
21150 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21151
21152         * lib/sys_select.in.h: Provide select replacement even if
21153         sys/select.h exists on a system, for Interix.
21154
21155 2010-02-18  Jim Meyering  <meyering@redhat.com>
21156
21157         init.sh: don't use $(...) just yet
21158         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21159         to accommodate e.g., Solaris' /bin/sh.
21160
21161 2010-02-17  Bruno Haible  <bruno@clisp.org>
21162
21163         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21164         Reported by Ludovic Courtès <ludo@gnu.org>.
21165
21166 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21167
21168         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21169         linking with -lintl.
21170
21171 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21172
21173         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21174         if not provided by the system's netdb.h.  Reported by
21175         ludo@gnu.org (Ludovic Courtès).
21176
21177 2010-02-15  Jim Meyering  <meyering@redhat.com>
21178
21179         init.sh: improve portability and efficiency
21180         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21181         "dummy" in a for loop.
21182         Use '!', not '^' to select the complement of a character set used
21183         in a "case" statement.
21184         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21185         Suggestions from Eric Blake.
21186
21187         init.sh: automatically accommodate programs with the .exe suffix
21188         Automatically arrange for an invocation of "prog" to execute the
21189         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21190         may use the simpler "prog", yet still work when built on a system
21191         that requires specifying the added suffix.
21192         Do this by constructing a function named "prog" that invokes
21193         "prog.exe" for each .exe file in selected directories.
21194         * tests/init.sh (find_exe_basenames_): New function.
21195         (create_exe_shim_functions_): New function.
21196         (path_prepend_): Use it.
21197
21198         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21199         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21200         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21201
21202 2010-02-14  Jim Meyering  <meyering@redhat.com>
21203
21204         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21205         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21206         (sc_prohibit_hash_pjw_without_use): New rule.
21207
21208         maint.mk: allow the default upload destination dir to be overridden
21209         * top/maint.mk (upload_dest_dir_): Define with a default that
21210         preserves the status quo.
21211         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21212         Reported by Peter Simons.
21213
21214         maint.mk: prohibit inclusion of "hash.h" without_use
21215         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21216
21217 2010-02-10  Jim Meyering  <meyering@redhat.com>
21218
21219         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21220         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21221
21222 2010-02-09  Eric Blake  <ebb9@byu.net>
21223         and Bruno Haible  <bruno@clisp.org>
21224
21225         obstack-printf-posix: ensure declaration
21226         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21227         extracted from gl_FUNC_OBSTACK_PRINTF.
21228         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21229         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21230         Likewise.
21231         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21232         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21233         0.
21234
21235 2010-02-08  Bruno Haible  <bruno@clisp.org>
21236
21237         gnulib-tool: Fix typo in 2010-02-07 commit.
21238         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21239         Reported by Eric Blake.
21240
21241 2010-02-07  Bruno Haible  <bruno@clisp.org>
21242
21243         gnulib-tool: Fix up caching patches.
21244         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21245         option --no-cache. Use associative arrays when supported by the shell.
21246         (sed_comments): New variable.
21247         (modcache): Renamed from do_cache.
21248         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21249         abbreviate unnecessarily.
21250         (have_associative): New variable.
21251         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21252         way also for ksh and zsh.
21253         (func_init_sed_convert_to_cache_statements): New function, extracted
21254         from func_cache_lookup_module. Add support for associative arrays.
21255         Don't set the c_MODULE_cached variable here. Ignore all lines before
21256         the first field header. Remove only the final newline, not all trailing
21257         newlines. Support empty fields correctly. Limit the use of 'eval' to
21258         assignments.
21259         (func_get_description, func_get_status, func_get_notice,
21260         func_get_applicability, func_get_filelist, func_get_dependencies,
21261         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21262         func_get_automake_snippet, func_get_include_directive,
21263         func_get_link_directive, func_get_license, func_get_maintainer):
21264         Update documentation. List the unoptimized code first. Add support for
21265         associative arrays. Limit the use of 'eval' to assignments.
21266         (func_get_applicability): Undo stylistic pessimisations.
21267         (func_get_automake_snippet, func_get_include_directive): Reduce code
21268         duplication.
21269         (func_modules_transitive_closure, func_modules_add_dummy,
21270         func_modules_notice, func_modules_to_filelist, func_add_file,
21271         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21272         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21273         func_create_testdir, func_create_megatestdir): Update documentation.
21274
21275 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21276
21277         * gnulib-tool (func_cache_lookup_module): Store the module name
21278         belonging to the cache variable; error out if two different
21279         module names map to the same cache variable name.
21280
21281 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21282
21283         gnulib-tool: Make caching optional.
21284         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21285         Update matching short versions of --no-changelog.
21286         (func_usage): Update.
21287         (sed_extract_cache_prog): Renamed from ...
21288         (sed_extract_prog): ... this; revert to old extraction script.
21289         (func_get_description, func_get_status)
21290         (func_get_notice, func_get_applicability, func_get_filelist)
21291         (func_get_dependencies, func_get_autoconf_early_snippet)
21292         (func_get_autoconf_snippet, func_get_automake_snippet)
21293         (func_get_include_directive, func_get_link_directive)
21294         (func_get_license, func_get_maintainer): If $do_cache is false,
21295         use old, non-caching extraction scripts.
21296         Suggestion by Bruno Haible.
21297
21298 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21299
21300         gnulib-tool: cache module metainformation.
21301         * gnulib-tool (sed_extract_prog): Match newline before each
21302         header, and rewrite header to a shell variable suffix.
21303         (func_cache_var, func_cache_lookup_module): New functions,
21304         to turn a module name into a cache variable prefix, and to
21305         look up and cache module metainformation.
21306         (func_get_description, func_get_status)
21307         (func_get_notice, func_get_applicability, func_get_filelist)
21308         (func_get_dependencies, func_get_autoconf_early_snippet)
21309         (func_get_autoconf_snippet, func_get_automake_snippet)
21310         (func_get_include_directive, func_get_link_directive)
21311         (func_get_license, func_get_maintainer): Use
21312         func_cache_lookup_module.
21313
21314 2010-02-07  Bruno Haible  <bruno@clisp.org>
21315
21316         fnctl: Fix missing dependency.
21317         * modules/fcntl (Depends-on): Add getdtablesize.
21318         Reported by John W. Eaton <jwe@gnu.org>.
21319
21320 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21321
21322         Argp: fix recognition of short alias options.
21323
21324         * lib/argp-parse.c (convert_options): Fix improper use of
21325         `|' between character values.
21326         * tests/test-argp.c (group1_option): New alias option
21327         --read (-r).
21328         (group1_parser): Special handling for 'r'.
21329         (test15): New test case.
21330         (test_fun): Add test15.
21331         * tests/test-argp-2.sh: Update expected --help and --usage
21332         outputs.
21333
21334 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21335
21336         * tests/test-argp.c: Fix indentation.
21337
21338 2010-02-04  Eric Blake  <ebb9@byu.net>
21339
21340         gettimeofday: expose type of second argument
21341         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21342         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21343         * tests/test-gettimeofday.c: Use it to silence warning.
21344         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21345         the issue.
21346
21347 2010-02-03  Jim Meyering  <meyering@redhat.com>
21348
21349         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21350         * lib/regcomp.c (TYPE_SIGNED): Define.
21351         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21352
21353         regcomp.c: avoid a new -Wshadow warning
21354         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21355
21356 2010-02-01  Jim Meyering  <meyering@redhat.com>
21357
21358         removing useless parentheses in cpp #define directives
21359         For motivation, see commit c0221df4, "define STREQ(a,b)
21360         consistently, removing useless parentheses"
21361         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21362         * lib/mountlist.c (MNT_IGNORE): Likewise.
21363         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21364
21365 2010-02-01  Eric Blake  <ebb9@byu.net>
21366
21367         sys_time: use link-warning
21368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21369         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21370         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21371         * modules/sys_time (Depends-on): Add warn-on-use.
21372         (Makefile.am): Always build replacement.
21373         (configure.ac): Update substitutions.
21374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21375         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21376         bother with SYS_TIME_H.
21377         * modules/gettimeofday (configure.ac): Declare indicator.
21378         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21379         in use.
21380
21381         closein-tests: silence compiler warning
21382         * tests/test-closein.c (main): Ignore fread result.
21383         * modules/closein-tests (Depends-on): Add ignore-value.
21384
21385         tests: silence warning about system return
21386         * tests/test-areadlink-with-size.c (main): Ignore system result.
21387         * tests/test-areadlink.c (main): Likewise.
21388         * tests/test-areadlinkat-with-size.c (main): Likewise.
21389         * tests/test-areadlinkat.c (main): Likewise.
21390         * tests/test-canonicalize-lgpl.c (main): Likewise.
21391         * tests/test-canonicalize.c (main): Likewise.
21392         * tests/test-chown.c (main): Likewise.
21393         * tests/test-fchownat.c (main): Likewise.
21394         * tests/test-fdutimensat.c (main): Likewise.
21395         * tests/test-fstatat.c (main): Likewise.
21396         * tests/test-futimens.c (main): Likewise.
21397         * tests/test-lchown.c (main): Likewise.
21398         * tests/test-link.c (main): Likewise.
21399         * tests/test-linkat.c (main): Likewise.
21400         * tests/test-lstat.c (main): Likewise.
21401         * tests/test-mkdir.c (main): Likewise.
21402         * tests/test-mkdirat.c (main): Likewise.
21403         * tests/test-mkfifo.c (main): Likewise.
21404         * tests/test-mkfifoat.c (main): Likewise.
21405         * tests/test-mknod.c (main): Likewise.
21406         * tests/test-readlink.c (main): Likewise.
21407         * tests/test-remove.c (main): Likewise.
21408         * tests/test-rename.c (main): Likewise.
21409         * tests/test-renameat.c (main): Likewise.
21410         * tests/test-rmdir.c (main): Likewise.
21411         * tests/test-symlink.c (main): Likewise.
21412         * tests/test-symlinkat.c (main): Likewise.
21413         * tests/test-unlink.c (main): Likewise.
21414         * tests/test-unlinkat.c (main): Likewise.
21415         * tests/test-utimens.c (main): Likewise.
21416         * tests/test-utimensat.c (main): Likewise.
21417         * modules/areadlink-tests (Depends-on): Add ignore-value.
21418         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21419         * modules/areadlinkat-tests (Depends-on): Likewise.
21420         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21421         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21422         * modules/canonicalize-tests (Depends-on): Likewise.
21423         * modules/chown-tests (Depends-on): Likewise.
21424         * modules/fdutimensat-tests (Depends-on): Likewise.
21425         * modules/futimens-tests (Depends-on): Likewise.
21426         * modules/lchown-tests (Depends-on): Likewise.
21427         * modules/link-tests (Depends-on): Likewise.
21428         * modules/linkat-tests (Depends-on): Likewise.
21429         * modules/lstat-tests (Depends-on): Likewise.
21430         * modules/mkdir-tests (Depends-on): Likewise.
21431         * modules/mkfifo-tests (Depends-on): Likewise.
21432         * modules/mkfifoat-tests (Depends-on): Likewise.
21433         * modules/mknod-tests (Depends-on): Likewise.
21434         * modules/openat-tests (Depends-on): Likewise.
21435         * modules/readlink-tests (Depends-on): Likewise.
21436         * modules/remove-tests (Depends-on): Likewise.
21437         * modules/rename-tests (Depends-on): Likewise.
21438         * modules/renameat-tests (Depends-on): Likewise.
21439         * modules/rmdir-tests (Depends-on): Likewise.
21440         * modules/symlink-tests (Depends-on): Likewise.
21441         * modules/symlinkat-tests (Depends-on): Likewise.
21442         * modules/unlink-tests (Depends-on): Likewise.
21443         * modules/utimens-tests (Depends-on): Likewise.
21444         * modules/utimensat-tests (Depends-on): Likewise.
21445
21446 2010-01-31  Bruno Haible  <bruno@clisp.org>
21447
21448         Perform the same test for many <math.h> functions.
21449         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21450         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21451         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21452         of gl_MATHFUNC.
21453         * modules/acos (configure.ac): Likewise.
21454         * modules/asin (configure.ac): Likewise.
21455         * modules/atan (configure.ac): Likewise.
21456         * modules/atan2 (configure.ac): Likewise.
21457         * modules/cbrt (configure.ac): Likewise.
21458         * modules/copysign (configure.ac): Likewise.
21459         * modules/cos (configure.ac): Likewise.
21460         * modules/cosh (configure.ac): Likewise.
21461         * modules/erf (configure.ac): Likewise.
21462         * modules/erfc (configure.ac): Likewise.
21463         * modules/exp (configure.ac): Likewise.
21464         * modules/fmod (configure.ac): Likewise.
21465         * modules/hypot (configure.ac): Likewise.
21466         * modules/j0 (configure.ac): Likewise.
21467         * modules/j1 (configure.ac): Likewise.
21468         * modules/jn (configure.ac): Likewise.
21469         * modules/lgamma (configure.ac): Likewise.
21470         * modules/log (configure.ac): Likewise.
21471         * modules/log10 (configure.ac): Likewise.
21472         * modules/log1p (configure.ac): Likewise.
21473         * modules/pow (configure.ac): Likewise.
21474         * modules/remainder (configure.ac): Likewise.
21475         * modules/sin (configure.ac): Likewise.
21476         * modules/sinh (configure.ac): Likewise.
21477         * modules/tan (configure.ac): Likewise.
21478         * modules/tanh (configure.ac): Likewise.
21479         * modules/y0 (configure.ac): Likewise.
21480         * modules/y1 (configure.ac): Likewise.
21481         * modules/yn (configure.ac): Likewise.
21482         Suggested by Paolo Bonzini.
21483
21484 2010-01-31  Bruno Haible  <bruno@clisp.org>
21485
21486         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21487
21488 2010-01-31  Bruno Haible  <bruno@clisp.org>
21489
21490         Work around getdelim() bug on FreeBSD 8.0.
21491         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21492         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21493         not work.
21494         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21495         is 1.
21496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21497         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21498         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21499         a non-zero size.
21500         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21501
21502 2010-01-31  Bruno Haible  <bruno@clisp.org>
21503
21504         Work around getline() bug on FreeBSD 8.0.
21505         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21506         and a non-zero size.
21507         * tests/test-getline.c (main): Likewise.
21508         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21509         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21510
21511 2010-01-28  Eric Blake  <ebb9@byu.net>
21512
21513         regex: fix build failure
21514         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21515         platforms.
21516
21517 2010-01-28  Jim Meyering  <meyering@redhat.com>
21518
21519         regex: do not ignore memory allocation failure
21520         * lib/regex_internal.c (create_cd_newstate): Detect
21521         re_node_set_init_copy failure.   Extracted from glibc commit
21522         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21523
21524         regex: sync more white-space changes from libc
21525         * lib/regex_internal.c: White-space only changes.
21526         * lib/regexec.c: Likewise.
21527
21528         regex: add many uses of __attribute_warn_unused_result__
21529         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21530         * lib/regexec.c: Likewise.
21531         Extracted from a messy glibc commit.
21532
21533         regcomp.c: spelling and merge-artifact from glibc
21534         * lib/regcomp.c: Merge remainder of glibc's
21535         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21536
21537         regcomp.c: sync white-space changes from glibc
21538         * lib/regcomp.c: Merge to accommodate white space
21539         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21540
21541         regcomp.c: do not ignore internal return values
21542         * lib/regcomp.c: Do not ignore internal return values.
21543         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21544         but without its white-space changes and spelling fixes.
21545
21546         regex_internal.h: define __attribute_warn_unused_result__
21547         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21548
21549         maint: add a syntax-check rule to check for vulnerable Makefile.in
21550         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21551
21552 2010-01-27  Jim Meyering  <meyering@redhat.com>
21553
21554         ncftpput-ftp: clean up spaces
21555         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21556         Remove trailing blanks.
21557
21558 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21559
21560         * build-aux/git-version-gen: Fix copyright statement.
21561         * build-aux/gnupload: Likewise.
21562         * tests/test-arcfour.c: Likewise.
21563         * tests/test-arctwo.c: Likewise.
21564         * tests/test-count-one-bits.c: Likewise.
21565         * tests/test-crc.c: Likewise.
21566         * tests/test-des.c: Likewise.
21567         * tests/test-gc-arcfour.c: Likewise.
21568         * tests/test-gc-arctwo.c: Likewise.
21569         * tests/test-gc-des.c: Likewise.
21570         * tests/test-gc-hmac-md5.c: Likewise.
21571         * tests/test-gc-hmac-sha1.c: Likewise.
21572         * tests/test-gc-md2.c: Likewise.
21573         * tests/test-gc-md4.c: Likewise.
21574         * tests/test-gc-md5.c: Likewise.
21575         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21576         * tests/test-gc-rijndael.c: Likewise.
21577         * tests/test-gc-sha1.c: Likewise.
21578         * tests/test-gc.c: Likewise.
21579         * tests/test-gethostname.c: Likewise.
21580         * tests/test-gettimeofday.c: Likewise.
21581         * tests/test-hash.c: Likewise.
21582         * tests/test-hmac-md5.c: Likewise.
21583         * tests/test-hmac-sha1.c: Likewise.
21584         * tests/test-md2.c: Likewise.
21585         * tests/test-md4.c: Likewise.
21586         * tests/test-md5.c: Likewise.
21587         * tests/test-memchr.c: Likewise.
21588         * tests/test-memchr2.c: Likewise.
21589         * tests/test-memcmp.c: Likewise.
21590         * tests/test-memmem.c: Likewise.
21591         * tests/test-memrchr.c: Likewise.
21592         * tests/test-rawmemchr.c: Likewise.
21593         * tests/test-read-file.c: Likewise.
21594         * tests/test-rijndael.c: Likewise.
21595         * tests/test-sockets.c: Likewise.
21596         * tests/test-strchrnul.c: Likewise.
21597         * tests/test-strstr.c: Likewise.
21598         * tests/test-strtod.c: Likewise.
21599         * build-aux/ncftpput-ftp: Likewise.
21600
21601 2010-01-26  Eric Blake  <ebb9@byu.net>
21602
21603         ignore-value: update recommended header name
21604         * modules/ignore-value (Include): Only use <> for headers that
21605         exist in glibc.
21606
21607 2010-01-26  Jim Meyering  <meyering@redhat.com>
21608
21609         test-userspec.c: avoid compiler warnings
21610         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21611         and "initialization discards qualifiers..." warnings.
21612         Put the first "uid" in its own scope, and make char* members "const".
21613
21614 2010-01-25  Bruno Haible  <bruno@clisp.org>
21615
21616         gnulib-tool: Make warning diagnostics consistent.
21617         * gnulib-tool (func_warning): New function.
21618         Use it everywhere where gnulib-tool produces output to stderr and it is
21619         not a fatal error.
21620
21621 2010-01-25  Bruno Haible  <bruno@clisp.org>
21622
21623         Fix test dependencies.
21624         * modules/xstrtol-tests (Depends-on): Add inttypes.
21625         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21626
21627 2010-01-25 Pádraig Brady <P@draigBrady.com>
21628
21629         syntax-check: detect incorrect boolean macro values in config.h
21630         * modules/maintainer-makefile (configure.ac): Parameterize the location
21631         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21632         The logic is from Eric Blake and the location indicated by Jim Meyering.
21633         Note the more natural CONFIG_HEADER name is prohibited by automake
21634         for backwards compatibility reasons.
21635         * top/maint.mk (sc_Wundef_boolean): New rule.
21636
21637 2010-01-25  Jim Meyering  <meyering@redhat.com>
21638
21639         bootstrap: detect MacOS 10.6's shasum, too
21640         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21641         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21642
21643 2010-01-23  Jim Meyering  <meyering@redhat.com>
21644
21645         xstrtoll: new module
21646         * modules/xstrtoll: New file.
21647         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21648         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21649         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21650         ./configure fails if you use this module and lack "long long".
21651         * modules/xstrtoll-tests: New module.
21652         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21653         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21654         new init.sh-based test framework.
21655
21656 2010-01-24  Bruno Haible  <bruno@clisp.org>
21657
21658         Tests for module 'yn'.
21659         * modules/yn-tests: New file.
21660         * tests/test-yn.c: New file.
21661
21662         Tests for module 'y1'.
21663         * modules/y1-tests: New file.
21664         * tests/test-y1.c: New file.
21665
21666         Tests for module 'y0'.
21667         * modules/y0-tests: New file.
21668         * tests/test-y0.c: New file.
21669
21670         Tests for module 'tanh'.
21671         * modules/tanh-tests: New file.
21672         * tests/test-tanh.c: New file.
21673
21674         Tests for module 'tan'.
21675         * modules/tan-tests: New file.
21676         * tests/test-tan.c: New file.
21677
21678         Tests for module 'sqrt'.
21679         * modules/sqrt-tests: New file.
21680         * tests/test-sqrt.c: New file.
21681
21682         Tests for module 'sinh'.
21683         * modules/sinh-tests: New file.
21684         * tests/test-sinh.c: New file.
21685
21686         Tests for module 'sin'.
21687         * modules/sin-tests: New file.
21688         * tests/test-sin.c: New file.
21689
21690         Tests for module 'rint'.
21691         * modules/rint-tests: New file.
21692         * tests/test-rint.c: New file.
21693
21694         Tests for module 'remainder'.
21695         * modules/remainder-tests: New file.
21696         * tests/test-remainder.c: New file.
21697
21698         Tests for module 'pow'.
21699         * modules/pow-tests: New file.
21700         * tests/test-pow.c: New file.
21701
21702         Tests for module 'nextafter'.
21703         * modules/nextafter-tests: New file.
21704         * tests/test-nextafter.c: New file.
21705
21706         Tests for module 'modf'.
21707         * modules/modf-tests: New file.
21708         * tests/test-modf.c: New file.
21709
21710         Tests for module 'logb'.
21711         * modules/logb-tests: New file.
21712         * tests/test-logb.c: New file.
21713
21714         Tests for module 'log1p'.
21715         * modules/log1p-tests: New file.
21716         * tests/test-log1p.c: New file.
21717
21718         Tests for module 'log10'.
21719         * modules/log10-tests: New file.
21720         * tests/test-log10.c: New file.
21721
21722         Tests for module 'log'.
21723         * modules/log-tests: New file.
21724         * tests/test-log.c: New file.
21725
21726         Tests for module 'lgamma'.
21727         * modules/lgamma-tests: New file.
21728         * tests/test-lgamma.c: New file.
21729
21730         Tests for module 'ldexp'.
21731         * modules/ldexp-tests: New file.
21732         * tests/test-ldexp.c: New file.
21733
21734         Tests for module 'jn'.
21735         * modules/jn-tests: New file.
21736         * tests/test-jn.c: New file.
21737
21738         Tests for module 'j1'.
21739         * modules/j1-tests: New file.
21740         * tests/test-j1.c: New file.
21741
21742         Tests for module 'j0'.
21743         * modules/j0-tests: New file.
21744         * tests/test-j0.c: New file.
21745
21746         Tests for module 'hypot'.
21747         * modules/hypot-tests: New file.
21748         * tests/test-hypot.c: New file.
21749
21750         Tests for module 'fmod'.
21751         * modules/fmod-tests: New file.
21752         * tests/test-fmod.c: New file.
21753
21754         Tests for module 'fabs'.
21755         * modules/fabs-tests: New file.
21756         * tests/test-fabs.c: New file.
21757
21758         Tests for module 'exp'.
21759         * modules/exp-tests: New file.
21760         * tests/test-exp.c: New file.
21761
21762         Tests for module 'erfc'.
21763         * modules/erfc-tests: New file.
21764         * tests/test-erfc.c: New file.
21765
21766         Tests for module 'erf'.
21767         * modules/erf-tests: New file.
21768         * tests/test-erf.c: New file.
21769
21770         Tests for module 'cosh'.
21771         * modules/cosh-tests: New file.
21772         * tests/test-cosh.c: New file.
21773
21774         Tests for module 'cos'.
21775         * modules/cos-tests: New file.
21776         * tests/test-cos.c: New file.
21777
21778         Tests for module 'copysign'.
21779         * modules/copysign-tests: New file.
21780         * tests/test-copysign.c: New file.
21781
21782         Tests for module 'cbrt'.
21783         * modules/cbrt-tests: New file.
21784         * tests/test-cbrt.c: New file.
21785
21786         Tests for module 'atan2'.
21787         * modules/atan2-tests: New file.
21788         * tests/test-atan2.c: New file.
21789
21790         Tests for module 'atan'.
21791         * modules/atan-tests: New file.
21792         * tests/test-atan.c: New file.
21793
21794         Tests for module 'asin'.
21795         * modules/asin-tests: New file.
21796         * tests/test-asin.c: New file.
21797
21798         Tests for module 'acos'.
21799         * modules/acos-tests: New file.
21800         * tests/test-acos.c: New file.
21801
21802 2010-01-24  Bruno Haible  <bruno@clisp.org>
21803
21804         Fix tests for common <math.h> functions.
21805         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21806         code snippet that references the function pointer, rather than merely
21807         calling the function. Substitute the FUNC_LIBM variable.
21808         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21809         * modules/acos (configure.ac): Likewise.
21810         * modules/asin (configure.ac): Likewise.
21811         * modules/atan (configure.ac): Likewise.
21812         * modules/atan2 (configure.ac): Likewise.
21813         * modules/cbrt (configure.ac): Likewise.
21814         * modules/copysign (configure.ac): Likewise.
21815         * modules/cos (configure.ac): Likewise.
21816         * modules/cosh (configure.ac): Likewise.
21817         * modules/erf (configure.ac): Likewise.
21818         * modules/erfc (configure.ac): Likewise.
21819         * modules/exp (configure.ac): Likewise.
21820         * modules/fabs (configure.ac): Likewise.
21821         * modules/fmod (configure.ac): Likewise.
21822         * modules/hypot (configure.ac): Likewise.
21823         * modules/j0 (configure.ac): Likewise.
21824         * modules/j1 (configure.ac): Likewise.
21825         * modules/jn (configure.ac): Likewise.
21826         * modules/ldexp (configure.ac): Likewise.
21827         * modules/lgamma (configure.ac): Likewise.
21828         * modules/log (configure.ac): Likewise.
21829         * modules/log10 (configure.ac): Likewise.
21830         * modules/log1p (configure.ac): Likewise.
21831         * modules/logb (configure.ac): Likewise.
21832         * modules/modf (configure.ac): Likewise.
21833         * modules/nextafter (configure.ac): Likewise.
21834         * modules/pow (configure.ac): Likewise.
21835         * modules/remainder (configure.ac): Likewise.
21836         * modules/rint (configure.ac): Likewise.
21837         * modules/sin (configure.ac): Likewise.
21838         * modules/sinh (configure.ac): Likewise.
21839         * modules/tan (configure.ac): Likewise.
21840         * modules/tanh (configure.ac): Likewise.
21841         * modules/y0 (configure.ac): Likewise.
21842         * modules/y1 (configure.ac): Likewise.
21843         * modules/yn (configure.ac): Likewise.
21844
21845 2010-01-24  Bruno Haible  <bruno@clisp.org>
21846
21847         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21848         * tests/test-acosl.c (x): New variable.
21849         (main): Store argument in x and fetch it from x.
21850         * tests/test-asinl.c (x): New variable.
21851         (main): Store argument in x and fetch it from x.
21852         * tests/test-atanl.c (x): New variable.
21853         (main): Store argument in x and fetch it from x.
21854         * tests/test-cosl.c (x): New variable.
21855         (main): Store argument in x and fetch it from x.
21856         * tests/test-expl.c (x): New variable.
21857         (main): Store argument in x and fetch it from x.
21858         * tests/test-logl.c (x): New variable.
21859         (main): Store argument in x and fetch it from x.
21860         * tests/test-sinl.c (x): New variable.
21861         (main): Store argument in x and fetch it from x.
21862         * tests/test-sqrtl.c (x): New variable.
21863         (main): Store argument in x and fetch it from x.
21864         * tests/test-tanl.c (x): New variable.
21865         (main): Store argument in x and fetch it from x.
21866
21867 2010-01-24  Bruno Haible  <bruno@clisp.org>
21868
21869         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21870         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21871         assignments to the initial TESTS_ENVIRONMENT.
21872         * doc/gnulib.texi (Unit test modules): Document it.
21873         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21874         TESTS_ENVIRONMENT.
21875         * modules/btowc-tests (Makefile.am): Likewise.
21876         * modules/c-stack-tests (Makefile.am): Likewise.
21877         * modules/c-strcase-tests (Makefile.am): Likewise.
21878         * modules/copy-file-tests (Makefile.am): Likewise.
21879         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21880         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21881         * modules/mbrtowc-tests (Makefile.am): Likewise.
21882         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21883         * modules/mbscasestr-tests (Makefile.am): Likewise.
21884         * modules/mbschr-tests (Makefile.am): Likewise.
21885         * modules/mbscspn-tests (Makefile.am): Likewise.
21886         * modules/mbsinit-tests (Makefile.am): Likewise.
21887         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21888         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21889         * modules/mbspbrk-tests (Makefile.am): Likewise.
21890         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21891         * modules/mbsrchr-tests (Makefile.am): Likewise.
21892         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21893         * modules/mbsspn-tests (Makefile.am): Likewise.
21894         * modules/mbsstr-tests (Makefile.am): Likewise.
21895         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21896         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21897         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21898         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21899         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21900         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21901         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21902         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21903         * modules/wcrtomb-tests (Makefile.am): Likewise.
21904         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21905         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21906         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21907         assignments from TESTS_ENVIRONMENT.
21908         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21909         augmentation.
21910         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21911         * modules/atexit-tests (Makefile.am): Likewise.
21912         * modules/binary-io-tests (Makefile.am): Likewise.
21913         * modules/closein-tests (Makefile.am): Likewise.
21914         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21915         * modules/exclude-tests (Makefile.am): Likewise.
21916         * modules/fflush-tests (Makefile.am): Likewise.
21917         * modules/fpending-tests (Makefile.am): Likewise.
21918         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21919         * modules/freadahead-tests (Makefile.am): Likewise.
21920         * modules/freadptr-tests (Makefile.am): Likewise.
21921         * modules/freadseek-tests (Makefile.am): Likewise.
21922         * modules/fseek-tests (Makefile.am): Likewise.
21923         * modules/fseeko-tests (Makefile.am): Likewise.
21924         * modules/ftell-tests (Makefile.am): Likewise.
21925         * modules/ftello-tests (Makefile.am): Likewise.
21926         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21927         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21928         * modules/lseek-tests (Makefile.am): Likewise.
21929         * modules/parse-duration-tests (Makefile.am): Likewise.
21930         * modules/perror-tests (Makefile.am): Likewise.
21931         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21932         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21933         * modules/pipe-tests (Makefile.am): Likewise.
21934         * modules/pread-tests (Makefile.am): Likewise.
21935         * modules/printf-posix-tests (Makefile.am): Likewise.
21936         * modules/select-tests (Makefile.am): Likewise.
21937         * modules/sigpipe-tests (Makefile.am): Likewise.
21938         * modules/tsearch-tests (Makefile.am): Likewise.
21939         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21940         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21941         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21942         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21943         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21944         * modules/version-etc-tests (Makefile.am): Likewise.
21945         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21946         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21947         * modules/xalloc-die-tests (Makefile.am): Likewise.
21948         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21949         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21950         * modules/xstrtol-tests (Makefile.am): Likewise.
21951         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21952         * modules/yesno-tests (Makefile.am): Likewise.
21953         Suggested by Jim Meyering.
21954
21955 2010-01-24  Bruno Haible  <bruno@clisp.org>
21956
21957         More documentation.
21958         * doc/gnulib.texi (Writing modules): New chapter.
21959         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21960         the new chapter.
21961
21962 2010-01-24  Jim Meyering  <meyering@redhat.com>
21963
21964         maint.mk: do not prepend "./" after filtering
21965         * top/maint.mk (_prepend_srcdir_prefix): New variable
21966         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21967         "./" when $(srcdir) is ".".
21968
21969         define STREQ(a,b) consistently, removing useless parentheses
21970         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21971         since the only risk is that "a" or "b" contains an unparenthesized
21972         comma, but if either did that, STREQ would have 3 or more arguments.
21973         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21974         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21975         * lib/hash-triple.c (STREQ): Likewise.
21976         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21977         * lib/getugroups.c (STREQ): Likewise.
21978
21979 2010-01-23  Jim Meyering  <meyering@redhat.com>
21980
21981         maint.mk: fix syntax-check in a non-srcdir build directory
21982         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21983         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21984
21985 2010-01-22  Jim Meyering  <meyering@redhat.com>
21986
21987         userspec: add unit tests
21988         * tests/test-userspec.c: New file.
21989         * modules/userspec-tests: Likewise.
21990
21991 2010-01-21  Jim Meyering  <meyering@redhat.com>
21992
21993         maint.mk: handle source file names containing "." robustly
21994         * top/maint.mk (_dot_escaped_srcdir): Define.
21995         (VC_LIST): Use it in LHS of sed substitution.
21996
21997 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21998
21999         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22000         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22001         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22002         from a non-srcdir build.
22003
22004 2010-01-20  Eric Blake  <ebb9@byu.net>
22005
22006         warn-on-use: use instead of link-warning
22007         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22008         * modules/unistd (Depends-on, Makefile.am): Likewise.
22009         * modules/arpa_inet (Depends-on): Replace link-warning with
22010         warn-on-use.
22011         (Makefile.am): Update rules accordingly.
22012         * modules/ctype (Depends-on, Makefile.am): Likewise.
22013         * modules/dirent (Depends-on, Makefile.am): Likewise.
22014         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22015         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22016         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22017         * modules/locale (Depends-on, Makefile.am): Likewise.
22018         * modules/math (Depends-on, Makefile.am): Likewise.
22019         * modules/search (Depends-on, Makefile.am): Likewise.
22020         * modules/signal (Depends-on, Makefile.am): Likewise.
22021         * modules/spawn (Depends-on, Makefile.am): Likewise.
22022         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22023         * modules/string (Depends-on, Makefile.am): Likewise.
22024         * modules/strings (Depends-on, Makefile.am): Likewise.
22025         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22026         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22027         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22028         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22029         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22030         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22031         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22032         * modules/wchar (Depends-on, Makefile.am): Likewise.
22033         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22034         should be poisoned.
22035         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22036         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22037         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22038         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22039         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22040         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22041         * m4/math_h.m4 (gl_MATH_H): Likewise.
22042         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22043         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22044         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22045         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22046         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22047         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22048         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22049         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22052         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22053         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22054         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22055         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22056         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22057         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22058         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22059         GL_LINK_WARNING.
22060         * lib/ctype.in.h: Likewise.
22061         * lib/dirent.in.h: Likewise.
22062         * lib/fcntl.in.h: Likewise.
22063         * lib/inttypes.in.h: Likewise.
22064         * lib/langinfo.in.h: Likewise.
22065         * lib/locale.in.h: Likewise.
22066         * lib/math.in.h: Likewise.
22067         * lib/search.in.h: Likewise.
22068         * lib/signal.in.h: Likewise.
22069         * lib/spawn.in.h: Likewise.
22070         * lib/stdio.in.h: Likewise.
22071         * lib/stdlib.in.h: Likewise.
22072         * lib/string.in.h: Likewise.
22073         * lib/strings.in.h: Likewise.
22074         * lib/sys_file.in.h: Likewise.
22075         * lib/sys_ioctl.in.h: Likewise.
22076         * lib/sys_select.in.h: Likewise.
22077         * lib/sys_socket.in.h: Likewise.
22078         * lib/sys_stat.in.h: Likewise.
22079         * lib/sys_times.in.h: Likewise.
22080         * lib/sys_utsname.in.h: Likewise.
22081         * lib/unistd.in.h: Likewise.
22082         * lib/wchar.in.h: Likewise.
22083
22084 2010-01-20  Bruno Haible  <bruno@clisp.org>
22085
22086         Avoid duplicate -lm.
22087         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22088         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22090         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22091         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22092         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22093         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22094         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22095         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22096         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22097         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22098         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22099         Reported by Paolo Bonzini.
22100
22101 2010-01-19  Bruno Haible  <bruno@clisp.org>
22102
22103         langinfo, nl_langinfo: Relicense under LGPLv2+.
22104         * modules/langinfo (License): Change to LGPLv2+.
22105         * modules/nl_langinfo (License): Likewise.
22106         Patch by David Lutterkort <lutter@redhat.com>.
22107
22108 2010-01-19  Bruno Haible  <bruno@clisp.org>
22109
22110         Avoid compilation error with cc on OSF/1 5.1.
22111         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22112         statement, not before.
22113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22114
22115 2010-01-18  Bruno Haible  <bruno@clisp.org>
22116
22117         Avoid a link error due to the __printf__ symbol.
22118         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22119         and 2.6.x.
22120         (__format__, __printf__): Remove definitions.
22121         * lib/argp-fmtstream.h: Likewise.
22122         * lib/argp.h: Likewise.
22123         * lib/error.h: Likewise.
22124         * lib/vasnprintf.h: Likewise.
22125         * lib/xprintf.h: Likewise.
22126         * lib/xvasprintf.h: Likewise.
22127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22128
22129 2010-01-18  Bruno Haible  <bruno@clisp.org>
22130
22131         Tests for module 'tanl'.
22132         * modules/tanl-tests: New file.
22133         * tests/test-tanl.c: New file.
22134
22135         Tests for module 'sqrtl'.
22136         * modules/sqrtl-tests: New file.
22137         * tests/test-sqrtl.c: New file.
22138
22139         Tests for module 'sinl'.
22140         * modules/sinl-tests: New file.
22141         * tests/test-sinl.c: New file.
22142
22143         Tests for module 'logl'.
22144         * modules/logl-tests: New file.
22145         * tests/test-logl.c: New file.
22146
22147         Tests for module 'expl'.
22148         * modules/expl-tests: New file.
22149         * tests/test-expl.c: New file.
22150
22151         Tests for module 'cosl'.
22152         * modules/cosl-tests: New file.
22153         * tests/test-cosl.c: New file.
22154
22155         Tests for module 'atanl'.
22156         * modules/atanl-tests: New file.
22157         * tests/test-atanl.c: New file.
22158
22159         Tests for module 'asinl'.
22160         * modules/asinl-tests: New file.
22161         * tests/test-asinl.c: New file.
22162
22163         Tests for module 'acosl'.
22164         * modules/acosl-tests: New file.
22165         * tests/test-acosl.c: New file.
22166
22167         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22168         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22169         tanl): Use the standard gnulib idiom.
22170         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22171         * lib/sinl.c: Likewise.
22172         * lib/tanl.c: Don't include trigl.c.
22173         (kernel_tanl): Make static.
22174         * lib/sincosl.c: Include trigl.h first.
22175         * lib/trigl.c: Likewise.
22176         * m4/acosl.m4: New file.
22177         * m4/asinl.m4: New file.
22178         * m4/atanl.m4: New file.
22179         * m4/cosl.m4: New file.
22180         * m4/expl.m4: New file.
22181         * m4/logl.m4: New file.
22182         * m4/sinl.m4: New file.
22183         * m4/sqrtl.m4: New file.
22184         * m4/tanl.m4: New file.
22185         * m4/mathl.m4: Remove file.
22186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22187         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22188         Don't initialize GNULIB_MATHL.
22189         * modules/acosl: New file.
22190         * modules/asinl: New file.
22191         * modules/atanl: New file.
22192         * modules/cosl: New file.
22193         * modules/expl: New file.
22194         * modules/logl: New file.
22195         * modules/sinl: New file.
22196         * modules/sqrtl: New file.
22197         * modules/tanl: New file.
22198         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22199         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22200         substitute GNULIB_MATHL.
22201         * modules/mathl: Rewritten.
22202         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22203         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22204         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22205         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22206         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22207         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22208         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22209         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22210         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22211
22212 2010-01-18  Bruno Haible  <bruno@clisp.org>
22213
22214         sqrt: Make gl_FUNC_SQRT requirable.
22215         * m4/sqrt.m4: New file.
22216         * modules/sqrt (Files): Add it.
22217         (configure.ac): Invoke gl_FUNC_SQRT.
22218
22219 2010-01-18  Bruno Haible  <bruno@clisp.org>
22220
22221         New modules for common <math.h> functions.
22222         * m4/mathfunc.m4: New file.
22223         * modules/acos: New file.
22224         * modules/asin: New file.
22225         * modules/atan: New file.
22226         * modules/atan2: New file.
22227         * modules/cbrt: New file.
22228         * modules/copysign: New file.
22229         * modules/cos: New file.
22230         * modules/cosh: New file.
22231         * modules/erf: New file.
22232         * modules/erfc: New file.
22233         * modules/exp: New file.
22234         * modules/fabs: New file.
22235         * modules/fmod: New file.
22236         * modules/hypot: New file.
22237         * modules/j0: New file.
22238         * modules/j1: New file.
22239         * modules/jn: New file.
22240         * modules/ldexp: New file.
22241         * modules/lgamma: New file.
22242         * modules/log: New file.
22243         * modules/log10: New file.
22244         * modules/log1p: New file.
22245         * modules/logb: New file.
22246         * modules/modf: New file.
22247         * modules/nextafter: New file.
22248         * modules/pow: New file.
22249         * modules/remainder: New file.
22250         * modules/rint: New file.
22251         * modules/sin: New file.
22252         * modules/sinh: New file.
22253         * modules/sqrt: New file.
22254         * modules/tan: New file.
22255         * modules/tanh: New file.
22256         * modules/y0: New file.
22257         * modules/y1: New file.
22258         * modules/yn: New file.
22259         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22260         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22261         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22262         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22263         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22264         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22265         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22266         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22267         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22268         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22269         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22270         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22271         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22272         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22273         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22274         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22275         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22276         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22277         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22278         * doc/posix-functions/log.texi: Mention the 'log' module.
22279         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22280         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22281         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22282         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22283         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22284         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22285         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22286         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22287         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22288         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22289         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22290         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22291         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22292         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22293         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22294         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22295
22296 2010-01-18  Jim Meyering  <meyering@redhat.com>
22297
22298         ignore-value: relax license to LGPLv2+
22299         * modules/ignore-value (License): Relax to LGPLv2+.
22300
22301         getdate: don't leak when TZ contains two or more '"'s
22302         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22303         double quote in TZ after the first one.
22304
22305         readtokens: do not leak internal token_lengths buffer
22306         * lib/readtokens.c (readtokens): Free the local, lengths,
22307         when the supplied "token_lengths" parameter is NULL.
22308
22309 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22310
22311         Fix a couple of missing LIBTHREAD link failures on AIX.
22312         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22313         $(LIBTHREAD).
22314         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22315
22316         Link test-poll against INET_PTON_LIB.
22317         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22318         for inet_pton on Solaris 10.
22319
22320 2010-01-17  Bruno Haible  <bruno@clisp.org>
22321
22322         unistdio/*-sprintf: Fix typo in module description.
22323         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22324         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22325         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22326         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22327         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22328         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22329         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22330         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22331
22332 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22333
22334         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22335         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22336         variables in shell case patterns, for AIX and HP-UX ksh.
22337
22338         Split large sed scripts, for HP-UX sed.
22339         * modules/stdio: Split sed scripts around 50 sed commands,
22340         to avoid HP-UX limit of 99 commands, in the near future.
22341         * modules/string: Likewise.
22342         * modules/unistd: Likewise.
22343
22344         gnulib-tool: avoid writing in the current directory.
22345         * gnulib-tool (func_emit_lib_Makefile_am)
22346         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22347         not in the current directory, so concurrent gnulib-tool
22348         instances do not interfere.
22349
22350 2010-01-16  Jim Meyering  <meyering@redhat.com>
22351
22352         doc: update users.txt
22353         * users.txt: Add grep.
22354         (diffutils, gzip): Update URLs.
22355
22356 2010-01-12  Bruno Haible  <bruno@clisp.org>
22357
22358         posix_spawn: Avoid test failure on Cygwin.
22359         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22360         characters.
22361         Reported by Simon Josefsson.
22362
22363 2010-01-12  Bruno Haible  <bruno@clisp.org>
22364
22365         * tests/test-cond.c (main): When skipping the test, show the reason.
22366
22367 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22368
22369         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22370
22371 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22372
22373         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22374         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22375
22376 2010-01-12  Eric Blake  <ebb9@byu.net>
22377
22378         build: guarantee AS_VAR_IF
22379         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22380         (gl_AS_VAR_IF): Move...
22381         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22382         Reported by Simon Josefsson.
22383
22384 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22385
22386         * lib/stdio.in.h: Fix typo.
22387
22388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22389
22390         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22391         libgpg-error.
22392
22393 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22394
22395         * tests/test-xalloc-die.sh: Use $EXEEXT.
22396
22397 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22398             Bruno Haible  <bruno@clisp.org>
22399
22400         getlogin, getlogin_r: Avoid test failure.
22401         * tests/test-getlogin.c: Include <stdio.h>.
22402         (main): Skip the test when the function fails because stdin is not a
22403         tty.
22404         * tests/test-getlogin_r.c: Include <stdio.h>.
22405         (main): Skip the test when the function fails because stdin is not a
22406         tty.
22407
22408 2010-01-11  Eric Blake  <ebb9@byu.net>
22409
22410         tests: avoid more large file warnings
22411         * tests/test-fflush.c: Avoid warning about ftell use.
22412         * tests/test-fseek.c: Avoid warning about fseek use.
22413
22414 2010-01-10  Bruno Haible  <bruno@clisp.org>
22415
22416         nproc: Work better on Linux when /proc and /sys are not mounted.
22417         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22418         as lower bound when, on glibc/Linux systems,
22419         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22420         Suggested by Pádraig Brady <P@draigbrady.com>.
22421         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22422
22423         nproc: Refactor.
22424         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22425         extracted from num_processors.
22426         (num_processors): Call it.
22427
22428 2010-01-11  Jim Meyering  <meyering@redhat.com>
22429
22430         utimecmp: avoid new warning from upcoming gcc-4.5.0
22431         * lib/utimecmp.c (BILLION): Define using #define rather than an
22432         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22433
22434 2010-01-11  Eric Blake  <ebb9@byu.net>
22435
22436         math: add portability warnings for classification macros
22437         * modules/math (Depends-on): Add warn-on-use.
22438         (Makefile.am): Provide new substitutions.
22439         * m4/math_h.m4 (gl_MATH_H): Require inline.
22440         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22441         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22442         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22443         implement warnings.
22444
22445         unistd: warn on use of environ without module
22446         * modules/unistd (Depends-on): Add warn-on-use.
22447         (Makefile.am): Provide new substitutions.
22448         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22449         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22450
22451         stdio: warn on suspicious uses
22452         * modules/stdio (Depends-on): Add warn-on-use.
22453         (Makefile.am): Provide new substitutions.
22454         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22455         fseeko.
22456         * lib/stdio.in.h (gets): Always warn on use.
22457         (fseek, ftell): Adjust when warnings are issued, and honor
22458         _GL_NO_LARGE_FILES as a way to silence the warning.
22459         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22460         any warning about large file offsets.
22461         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22462         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22463         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22464         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22465         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22466         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22467         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22468         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22469
22470         warn-on-use: new module
22471         * modules/warn-on-use: New file.
22472         * build-aux/warn-on-use.h: Likewise.
22473         * m4/warn-on-use.m4: Likewise.
22474         * MODULES.html.sh (Support for building): Mention it.
22475
22476 2010-01-10  Bruno Haible  <bruno@clisp.org>
22477
22478         Tests for module 'unistr/u32-strdup'.
22479         * modules/unistr/u32-strdup-tests: New file.
22480         * tests/unistr/test-u32-strdup.c: New file.
22481
22482         Tests for module 'unistr/u16-strdup'.
22483         * modules/unistr/u16-strdup-tests: New file.
22484         * tests/unistr/test-u16-strdup.c: New file.
22485
22486         Tests for module 'unistr/u8-strdup'.
22487         * modules/unistr/u8-strdup-tests: New file.
22488         * tests/unistr/test-u8-strdup.c: New file.
22489         * tests/unistr/test-strdup.h: New file.
22490
22491         Tests for module 'unistr/u32-strncmp'.
22492         * modules/unistr/u32-strncmp-tests: New file.
22493         * tests/unistr/test-u32-strncmp.c: New file.
22494
22495         Tests for module 'unistr/u16-strncmp'.
22496         * modules/unistr/u16-strncmp-tests: New file.
22497         * tests/unistr/test-u16-strncmp.c: New file.
22498
22499         Tests for module 'unistr/u8-strncmp'.
22500         * modules/unistr/u8-strncmp-tests: New file.
22501         * tests/unistr/test-u8-strncmp.c: New file.
22502         * tests/unistr/test-strncmp.h: New file.
22503
22504         Tests for module 'unistr/u32-strcoll'.
22505         * modules/unistr/u32-strcoll-tests: New file.
22506         * tests/unistr/test-u32-strcoll.c: New file.
22507
22508         Tests for module 'unistr/u16-strcoll'.
22509         * modules/unistr/u16-strcoll-tests: New file.
22510         * tests/unistr/test-u16-strcoll.c: New file.
22511
22512         Tests for module 'unistr/u8-strcoll'.
22513         * modules/unistr/u8-strcoll-tests: New file.
22514         * tests/unistr/test-u8-strcoll.c: New file.
22515
22516         Tests for module 'unistr/u32-strcmp'.
22517         * modules/unistr/u32-strcmp-tests: New file.
22518         * tests/unistr/test-u32-strcmp.c: New file.
22519         * tests/unistr/test-u32-strcmp.h: New file.
22520
22521         Tests for module 'unistr/u16-strcmp'.
22522         * modules/unistr/u16-strcmp-tests: New file.
22523         * tests/unistr/test-u16-strcmp.c: New file.
22524         * tests/unistr/test-u16-strcmp.h: New file.
22525
22526         Tests for module 'unistr/u8-strcmp'.
22527         * modules/unistr/u8-strcmp-tests: New file.
22528         * tests/unistr/test-u8-strcmp.c: New file.
22529         * tests/unistr/test-u8-strcmp.h: New file.
22530         * tests/unistr/test-strcmp.h: New file.
22531
22532         Tests for module 'unistr/u32-strncat'.
22533         * modules/unistr/u32-strncat-tests: New file.
22534         * tests/unistr/test-u32-strncat.c: New file.
22535
22536         Tests for module 'unistr/u16-strncat'.
22537         * modules/unistr/u16-strncat-tests: New file.
22538         * tests/unistr/test-u16-strncat.c: New file.
22539
22540         Tests for module 'unistr/u8-strncat'.
22541         * modules/unistr/u8-strncat-tests: New file.
22542         * tests/unistr/test-u8-strncat.c: New file.
22543         * tests/unistr/test-strncat.h: New file.
22544
22545         Tests for module 'unistr/u32-strcat'.
22546         * modules/unistr/u32-strcat-tests: New file.
22547         * tests/unistr/test-u32-strcat.c: New file.
22548
22549         Tests for module 'unistr/u16-strcat'.
22550         * modules/unistr/u16-strcat-tests: New file.
22551         * tests/unistr/test-u16-strcat.c: New file.
22552
22553         Tests for module 'unistr/u8-strcat'.
22554         * modules/unistr/u8-strcat-tests: New file.
22555         * tests/unistr/test-u8-strcat.c: New file.
22556         * tests/unistr/test-strcat.h: New file.
22557
22558         Tests for module 'unistr/u32-stpncpy'.
22559         * modules/unistr/u32-stpncpy-tests: New file.
22560         * tests/unistr/test-u32-stpncpy.c: New file.
22561
22562         Tests for module 'unistr/u16-stpncpy'.
22563         * modules/unistr/u16-stpncpy-tests: New file.
22564         * tests/unistr/test-u16-stpncpy.c: New file.
22565
22566         Tests for module 'unistr/u8-stpncpy'.
22567         * modules/unistr/u8-stpncpy-tests: New file.
22568         * tests/unistr/test-u8-stpncpy.c: New file.
22569         * tests/unistr/test-stpncpy.h: New file.
22570
22571         Tests for module 'unistr/u32-strncpy'.
22572         * modules/unistr/u32-strncpy-tests: New file.
22573         * tests/unistr/test-u32-strncpy.c: New file.
22574
22575         Tests for module 'unistr/u16-strncpy'.
22576         * modules/unistr/u16-strncpy-tests: New file.
22577         * tests/unistr/test-u16-strncpy.c: New file.
22578
22579         Tests for module 'unistr/u8-strncpy'.
22580         * modules/unistr/u8-strncpy-tests: New file.
22581         * tests/unistr/test-u8-strncpy.c: New file.
22582         * tests/unistr/test-strncpy.h: New file.
22583
22584         Tests for module 'unistr/u32-stpcpy'.
22585         * modules/unistr/u32-stpcpy-tests: New file.
22586         * tests/unistr/test-u32-stpcpy.c: New file.
22587
22588         Tests for module 'unistr/u16-stpcpy'.
22589         * modules/unistr/u16-stpcpy-tests: New file.
22590         * tests/unistr/test-u16-stpcpy.c: New file.
22591
22592         Tests for module 'unistr/u8-stpcpy'.
22593         * modules/unistr/u8-stpcpy-tests: New file.
22594         * tests/unistr/test-u8-stpcpy.c: New file.
22595         * tests/unistr/test-stpcpy.h: New file.
22596
22597         Tests for module 'unistr/u32-strcpy'.
22598         * modules/unistr/u32-strcpy-tests: New file.
22599         * tests/unistr/test-u32-strcpy.c: New file.
22600
22601         Tests for module 'unistr/u16-strcpy'.
22602         * modules/unistr/u16-strcpy-tests: New file.
22603         * tests/unistr/test-u16-strcpy.c: New file.
22604
22605         Tests for module 'unistr/u8-strcpy'.
22606         * modules/unistr/u8-strcpy-tests: New file.
22607         * tests/unistr/test-u8-strcpy.c: New file.
22608         * tests/unistr/test-strcpy.h: New file.
22609
22610         Tests for module 'unistr/u32-strnlen'.
22611         * modules/unistr/u32-strnlen-tests: New file.
22612         * tests/unistr/test-u32-strnlen.c: New file.
22613
22614         Tests for module 'unistr/u16-strnlen'.
22615         * modules/unistr/u16-strnlen-tests: New file.
22616         * tests/unistr/test-u16-strnlen.c: New file.
22617
22618         Tests for module 'unistr/u8-strnlen'.
22619         * modules/unistr/u8-strnlen-tests: New file.
22620         * tests/unistr/test-u8-strnlen.c: New file.
22621         * tests/unistr/test-strnlen.h: New file.
22622
22623         Tests for module 'unistr/u32-strlen'.
22624         * modules/unistr/u32-strlen-tests: New file.
22625         * tests/unistr/test-u32-strlen.c: New file.
22626
22627         Tests for module 'unistr/u16-strlen'.
22628         * modules/unistr/u16-strlen-tests: New file.
22629         * tests/unistr/test-u16-strlen.c: New file.
22630
22631         Tests for module 'unistr/u8-strlen'.
22632         * modules/unistr/u8-strlen-tests: New file.
22633         * tests/unistr/test-u8-strlen.c: New file.
22634
22635         Tests for module 'unistr/u32-prev'.
22636         * modules/unistr/u32-prev-tests: New file.
22637         * tests/unistr/test-u32-prev.c: New file.
22638
22639         Tests for module 'unistr/u16-prev'.
22640         * modules/unistr/u16-prev-tests: New file.
22641         * tests/unistr/test-u16-prev.c: New file.
22642
22643         Tests for module 'unistr/u8-prev'.
22644         * modules/unistr/u8-prev-tests: New file.
22645         * tests/unistr/test-u8-prev.c: New file.
22646
22647         Tests for module 'unistr/u32-next'.
22648         * modules/unistr/u32-next-tests: New file.
22649         * tests/unistr/test-u32-next.c: New file.
22650
22651         Tests for module 'unistr/u16-next'.
22652         * modules/unistr/u16-next-tests: New file.
22653         * tests/unistr/test-u16-next.c: New file.
22654
22655         Tests for module 'unistr/u8-next'.
22656         * modules/unistr/u8-next-tests: New file.
22657         * tests/unistr/test-u8-next.c: New file.
22658
22659         Tests for module 'unistr/u32-strmbtouc'.
22660         * modules/unistr/u32-strmbtouc-tests: New file.
22661         * tests/unistr/test-u32-strmbtouc.c: New file.
22662
22663         Tests for module 'unistr/u16-strmbtouc'.
22664         * modules/unistr/u16-strmbtouc-tests: New file.
22665         * tests/unistr/test-u16-strmbtouc.c: New file.
22666
22667         Tests for module 'unistr/u8-strmbtouc'.
22668         * modules/unistr/u8-strmbtouc-tests: New file.
22669         * tests/unistr/test-u8-strmbtouc.c: New file.
22670
22671         Tests for module 'unistr/u32-strmblen'.
22672         * modules/unistr/u32-strmblen-tests: New file.
22673         * tests/unistr/test-u32-strmblen.c: New file.
22674
22675         Tests for module 'unistr/u16-strmblen'.
22676         * modules/unistr/u16-strmblen-tests: New file.
22677         * tests/unistr/test-u16-strmblen.c: New file.
22678
22679         Tests for module 'unistr/u8-strmblen'.
22680         * modules/unistr/u8-strmblen-tests: New file.
22681         * tests/unistr/test-u8-strmblen.c: New file.
22682
22683         Tests for module 'unistr/u32-cpy-alloc'.
22684         * modules/unistr/u32-cpy-alloc-tests: New file.
22685         * tests/unistr/test-u32-cpy-alloc.c: New file.
22686
22687         Tests for module 'unistr/u16-cpy-alloc'.
22688         * modules/unistr/u16-cpy-alloc-tests: New file.
22689         * tests/unistr/test-u16-cpy-alloc.c: New file.
22690
22691         Tests for module 'unistr/u8-cpy-alloc'.
22692         * modules/unistr/u8-cpy-alloc-tests: New file.
22693         * tests/unistr/test-u8-cpy-alloc.c: New file.
22694         * tests/unistr/test-cpy-alloc.h: New file.
22695
22696         Tests for module 'unistr/u32-mbsnlen'.
22697         * modules/unistr/u32-mbsnlen-tests: New file.
22698         * tests/unistr/test-u32-mbsnlen.c: New file.
22699
22700         Tests for module 'unistr/u16-mbsnlen'.
22701         * modules/unistr/u16-mbsnlen-tests: New file.
22702         * tests/unistr/test-u16-mbsnlen.c: New file.
22703
22704         Tests for module 'unistr/u8-mbsnlen'.
22705         * modules/unistr/u8-mbsnlen-tests: New file.
22706         * tests/unistr/test-u8-mbsnlen.c: New file.
22707
22708         Tests for module 'unistr/u32-chr'.
22709         * modules/unistr/u32-chr-tests: New file.
22710         * tests/unistr/test-u32-chr.c: New file.
22711
22712         Tests for module 'unistr/u16-chr'.
22713         * modules/unistr/u16-chr-tests: New file.
22714         * tests/unistr/test-u16-chr.c: New file.
22715
22716         Tests for module 'unistr/u8-chr'.
22717         * modules/unistr/u8-chr-tests: New file.
22718         * tests/unistr/test-u8-chr.c: New file.
22719         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22720
22721         Tests for module 'unistr/u32-cmp2'.
22722         * modules/unistr/u32-cmp2-tests: New file.
22723         * tests/unistr/test-u32-cmp2.c: New file.
22724
22725         Tests for module 'unistr/u16-cmp2'.
22726         * modules/unistr/u16-cmp2-tests: New file.
22727         * tests/unistr/test-u16-cmp2.c: New file.
22728
22729         Tests for module 'unistr/u8-cmp2'.
22730         * modules/unistr/u8-cmp2-tests: New file.
22731         * tests/unistr/test-u8-cmp2.c: New file.
22732         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22733
22734         Tests for module 'unistr/u32-cmp'.
22735         * modules/unistr/u32-cmp-tests: New file.
22736         * tests/unistr/test-u32-cmp.c: New file.
22737
22738         Tests for module 'unistr/u16-cmp'.
22739         * modules/unistr/u16-cmp-tests: New file.
22740         * tests/unistr/test-u16-cmp.c: New file.
22741
22742         Tests for module 'unistr/u8-cmp'.
22743         * modules/unistr/u8-cmp-tests: New file.
22744         * tests/unistr/test-u8-cmp.c: New file.
22745         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22746
22747         Tests for module 'unistr/u32-set'.
22748         * modules/unistr/u32-set-tests: New file.
22749         * tests/unistr/test-u32-set.c: New file.
22750
22751         Tests for module 'unistr/u16-set'.
22752         * modules/unistr/u16-set-tests: New file.
22753         * tests/unistr/test-u16-set.c: New file.
22754
22755         Tests for module 'unistr/u8-set'.
22756         * modules/unistr/u8-set-tests: New file.
22757         * tests/unistr/test-u8-set.c: New file.
22758         * tests/unistr/test-set.h: New file.
22759
22760         Tests for module 'unistr/u32-move'.
22761         * modules/unistr/u32-move-tests: New file.
22762         * tests/unistr/test-u32-move.c: New file.
22763
22764         Tests for module 'unistr/u16-move'.
22765         * modules/unistr/u16-move-tests: New file.
22766         * tests/unistr/test-u16-move.c: New file.
22767
22768         Tests for module 'unistr/u8-move'.
22769         * modules/unistr/u8-move-tests: New file.
22770         * tests/unistr/test-u8-move.c: New file.
22771         * tests/unistr/test-move.h: New file.
22772
22773         Tests for module 'unistr/u32-cpy'.
22774         * modules/unistr/u32-cpy-tests: New file.
22775         * tests/unistr/test-u32-cpy.c: New file.
22776
22777         Tests for module 'unistr/u16-cpy'.
22778         * modules/unistr/u16-cpy-tests: New file.
22779         * tests/unistr/test-u16-cpy.c: New file.
22780
22781         Tests for module 'unistr/u8-cpy'.
22782         * modules/unistr/u8-cpy-tests: New file.
22783         * tests/unistr/test-u8-cpy.c: New file.
22784         * tests/unistr/test-cpy.h: New file.
22785
22786 2010-01-09  Bruno Haible  <bruno@clisp.org>
22787
22788         Tests for module 'unistr/u32-uctomb'.
22789         * modules/unistr/u32-uctomb-tests: New file.
22790         * tests/unistr/test-u32-uctomb.c: New file.
22791
22792         Tests for module 'unistr/u16-uctomb'.
22793         * modules/unistr/u16-uctomb-tests: New file.
22794         * tests/unistr/test-u16-uctomb.c: New file.
22795
22796         Tests for module 'unistr/u8-uctomb'.
22797         * modules/unistr/u8-uctomb-tests: New file.
22798         * tests/unistr/test-u8-uctomb.c: New file.
22799
22800         Tests for module 'unistr/u32-mbtoucr'.
22801         * modules/unistr/u32-mbtoucr-tests: New file.
22802         * tests/unistr/test-u32-mbtoucr.c: New file.
22803
22804         Tests for module 'unistr/u16-mbtoucr'.
22805         * modules/unistr/u16-mbtoucr-tests: New file.
22806         * tests/unistr/test-u16-mbtoucr.c: New file.
22807
22808         Tests for module 'unistr/u8-mbtoucr'.
22809         * modules/unistr/u8-mbtoucr-tests: New file.
22810         * tests/unistr/test-u8-mbtoucr.c: New file.
22811
22812         Tests for module 'unistr/u32-mbtouc'.
22813         * modules/unistr/u32-mbtouc-tests: New file.
22814         * tests/unistr/test-u32-mbtouc.c: New file.
22815
22816         Tests for module 'unistr/u16-mbtouc'.
22817         * modules/unistr/u16-mbtouc-tests: New file.
22818         * tests/unistr/test-u16-mbtouc.c: New file.
22819
22820         Tests for module 'unistr/u8-mbtouc'.
22821         * modules/unistr/u8-mbtouc-tests: New file.
22822         * tests/unistr/test-u8-mbtouc.c: New file.
22823
22824         Tests for module 'unistr/u32-mbtouc-unsafe'.
22825         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22826         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22827         * tests/unistr/test-u32-mbtouc.h: New file.
22828
22829         Tests for module 'unistr/u16-mbtouc-unsafe'.
22830         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22831         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22832         * tests/unistr/test-u16-mbtouc.h: New file.
22833
22834         Tests for module 'unistr/u8-mbtouc-unsafe'.
22835         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22836         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22837         * tests/unistr/test-u8-mbtouc.h: New file.
22838
22839         Tests for module 'unistr/u32-mblen'.
22840         * modules/unistr/u32-mblen-tests: New file.
22841         * tests/unistr/test-u32-mblen.c: New file.
22842
22843         Tests for module 'unistr/u16-mblen'.
22844         * modules/unistr/u16-mblen-tests: New file.
22845         * tests/unistr/test-u16-mblen.c: New file.
22846
22847         Tests for module 'unistr/u8-mblen'.
22848         * modules/unistr/u8-mblen-tests: New file.
22849         * tests/unistr/test-u8-mblen.c: New file.
22850
22851         Tests for module 'unistr/u32-to-u16'.
22852         * modules/unistr/u32-to-u16-tests: New file.
22853         * tests/unistr/test-u32-to-u16.c: New file.
22854
22855         Tests for module 'unistr/u32-to-u8'.
22856         * modules/unistr/u32-to-u8-tests: New file.
22857         * tests/unistr/test-u32-to-u8.c: New file.
22858
22859         Tests for module 'unistr/u16-to-u32'.
22860         * modules/unistr/u16-to-u32-tests: New file.
22861         * tests/unistr/test-u16-to-u32.c: New file.
22862
22863         Tests for module 'unistr/u16-to-u8'.
22864         * modules/unistr/u16-to-u8-tests: New file.
22865         * tests/unistr/test-u16-to-u8.c: New file.
22866
22867         Tests for module 'unistr/u8-to-u32'.
22868         * modules/unistr/u8-to-u32-tests: New file.
22869         * tests/unistr/test-u8-to-u32.c: New file.
22870
22871         Tests for module 'unistr/u8-to-u16'.
22872         * modules/unistr/u8-to-u16-tests: New file.
22873         * tests/unistr/test-u8-to-u16.c: New file.
22874
22875         Tests for module 'unistr/u32-check'.
22876         * modules/unistr/u32-check-tests: New file.
22877         * tests/unistr/test-u32-check.c: New file.
22878
22879         Tests for module 'unistr/u16-check'.
22880         * modules/unistr/u16-check-tests: New file.
22881         * tests/unistr/test-u16-check.c: New file.
22882
22883         Tests for module 'unistr/u8-check'.
22884         * modules/unistr/u8-check-tests: New file.
22885         * tests/unistr/test-u8-check.c: New file.
22886
22887         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22888         (category_equals): New function.
22889         (main): Add more tests.
22890         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22891
22892         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22893
22894 2010-01-10  Bruno Haible  <bruno@clisp.org>
22895
22896         unistr/u*-strcoll: Try harder to distinguish different strings.
22897         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22898         compare s1 and s2 to see if they are different.
22899
22900 2010-01-10  Bruno Haible  <bruno@clisp.org>
22901
22902         unistr/u*-stpncpy: Fix the return value.
22903         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22904         description of the return value consistent with stpncpy in glibc.
22905         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22906         written non-NUL unit.
22907
22908 2010-01-10  Bruno Haible  <bruno@clisp.org>
22909
22910         unistr/u*-next: Add missing dependencies.
22911         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22912         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22913         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22914
22915 2010-01-10  Bruno Haible  <bruno@clisp.org>
22916
22917         unistr/u8-mbsnlen: Fix return value for incomplete character.
22918         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22919         u8_mblen.
22920         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22921         Remove unistr/u8-mblen.
22922         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22923         u16_mblen.
22924         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22925         Remove unistr/u16-mblen.
22926
22927 2010-01-10  Bruno Haible  <bruno@clisp.org>
22928
22929         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22930         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22931         Reported by Brian Gough <bjg@gnu.org> and
22932         Chris Clayton <chris2553@googlemail.com> via
22933         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22934
22935 2010-01-09  Bruno Haible  <bruno@clisp.org>
22936
22937         unistr/u16-to-u32: Reject invalid input.
22938         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22939         u16_mbtouc.
22940         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22941         Remove unistr/u16-mbtouc.
22942
22943         unistr/u16-to-u8: Reject invalid input.
22944         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22945         u16_mbtouc.
22946         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22947         Remove unistr/u16-mbtouc.
22948
22949         unistr/u8-to-u32: Reject invalid input.
22950         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22951         u8_mbtouc.
22952         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22953         Remove unistr/u8-mbtouc.
22954
22955         unistr/u8-to-u16: Reject invalid input.
22956         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22957         u8_mbtouc.
22958         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22959         Remove unistr/u8-mbtouc.
22960
22961 2010-01-09  Bruno Haible  <bruno@clisp.org>
22962
22963         Tests for module 'getlogin'.
22964         * modules/getlogin-tests: New file.
22965         * tests/test-getlogin.c: New file.
22966
22967         New module 'getlogin'.
22968         * lib/unistd.in.h (getlogin): New declaration.
22969         * lib/getlogin.c: New file.
22970         * m4/getlogin.m4: New file.
22971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22972         HAVE_GETLOGIN.
22973         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22974         HAVE_GETLOGIN.
22975         * modules/getlogin: New file.
22976         * doc/posix-functions/getlogin.texi: Mention the new module.
22977         Reported by John W. Eaton <jwe@gnu.org>.
22978
22979 2010-01-09  Bruno Haible  <bruno@clisp.org>
22980
22981         getlogin_r: Support for native Windows.
22982         * lib/getlogin_r.c: Include <windows.h>
22983         (getlogin_r): Implement for native Windows.
22984         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22985         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22986         via John W. Eaton <jwe@gnu.org>.
22987
22988 2010-01-09  Bruno Haible  <bruno@clisp.org>
22989
22990         getlogin_r: Small fixes.
22991         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22992         succeeds.
22993         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22994         before testing whether getlogin_r is declared. No need to set
22995         HAVE_DECL_GETLOGIN_R to 1.
22996         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22997
22998 2010-01-09  Bruno Haible  <bruno@clisp.org>
22999
23000         * lib/unistd.in.h (getlogin_r): Add comment.
23001
23002 2010-01-09  Bruno Haible  <bruno@clisp.org>
23003
23004         Tests for module 'getlogin_r'.
23005         * modules/getlogin_r-tests: New file.
23006         * tests/test-getlogin_r.c: New file.
23007
23008 2010-01-09  Jim Meyering  <meyering@redhat.com>
23009
23010         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23011         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23012         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23013
23014 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23015
23016         * lib/dup2.c (rpl_dup2): Improve comment.
23017
23018 2010-01-08  Eric Blake  <ebb9@byu.net>
23019
23020         maint.mk: allow packages to add makefile @@ exceptions
23021         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23022         (sc_makefile_check): Rename...
23023         (sc_makefile_at_at_check): ...to this, and use hook.
23024
23025         dup2: work around mingw bug
23026         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23027         Reported by Simon Josefsson.
23028
23029 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23030
23031         glob: Fix C++ compilation.
23032         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23033         C++.
23034
23035 2010-01-07  Bruno Haible  <bruno@clisp.org>
23036
23037         Fix indentation of wctype.in.h, broken since 2007-01-06.
23038         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23039
23040 2010-01-07  Bruno Haible  <bruno@clisp.org>
23041
23042         mbslen: Avoid collision with system function.
23043         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23044         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23045         * m4/mbslen.m4: New file.
23046         * modules/mbslen (Files): Add it.
23047         (configure.ac): Invoke gl_MBSLEN.
23048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23049         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23050         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23051         via Ian Beckwith <ianb@erislabs.net>.
23052
23053 2010-01-07  Bruno Haible  <bruno@clisp.org>
23054
23055         dirent: Document the last fix.
23056         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23057
23058 2010-01-07  Bruno Haible  <bruno@clisp.org>
23059
23060         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23061         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23062         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23063         va_list are defined.
23064         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23065         Reported by Eric Blake.
23066
23067 2010-01-07  Bruno Haible  <bruno@clisp.org>
23068
23069         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23070         * modules/xlist (Depends-on): Add 'list',
23071         * modules/xoset (Depends-on): Add 'oset'.
23072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23073
23074 2010-01-07  Bruno Haible  <bruno@clisp.org>
23075
23076         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23077         * doc/posix-functions/strncasecmp.texi: Likewise.
23078
23079 2010-01-07  Bruno Haible  <bruno@clisp.org>
23080
23081         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23082
23083 2010-01-07  John W. Eaton  <jwe@octave.org>
23084
23085         wctype: allow C++ use
23086         * lib/wctype.in.h: Add extern "C" block for C++.
23087
23088 2010-01-06  Eric Blake  <ebb9@byu.net>
23089
23090         maint.mk: detect incorrect GFDL usage
23091         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23092
23093 2010-01-06  Jim Meyering  <meyering@redhat.com>
23094         and Eric Blake  <ebb9@byu.net>
23095
23096         maint.mk: ignore multi-line copyright in NEWS
23097         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23098
23099 2010-01-06  Eric Blake  <ebb9@byu.net>
23100
23101         select: add missing dependency
23102         * modules/select-tests (Depends-on): Move sockets dependency...
23103         * modules/select (Depends-on): ...here.
23104         Reported by Ian Beckwith.
23105
23106         doc: regenerate INSTALL
23107         * doc/INSTALL: Reflect recent autoconf update.
23108         * doc/INSTALL.ISO: Likewise.
23109         * doc/INSTALL.UTF-8: Likewise.
23110
23111         pread: fix compilation on glibc
23112         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23113         Reported by Ralf Wildenhues.
23114
23115         dirent: fix test failure
23116         * lib/dirent.in.h (includes): Guarantee ino_t.
23117         Reported by Ralf Wildenhues.
23118
23119 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23120
23121         linkat, renameat: avoid bad free
23122         * lib/at-func2.c (at_func2): Fix typo.
23123         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23124
23125 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23126
23127         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23128         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23129         to avoid failure of symlink test later.
23130
23131 2010-01-06  Eric Blake  <ebb9@byu.net>
23132
23133         stdio, unistd: guarantee ssize_t
23134         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23135         2008 are exposed when needed.
23136         * lib/stdio.in.h (includes): Likewise.
23137         Reported by Ralf Wildenhues.
23138
23139 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23140
23141         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23142         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23143         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23144
23145 2010-01-06  Jim Meyering  <meyering@redhat.com>
23146
23147         readtokens: this module *does* require xalloc.h
23148         It uses only functions that were omitted by the old syntax-check rule.
23149         * lib/readtokens.c: Include "xalloc.h" once again.
23150         * modules/readtokens (Depends-on): Add xalloc.
23151         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23152
23153 2010-01-05  Eric Blake  <ebb9@byu.net>
23154
23155         maint: support 'make announcement' from a VPATH build
23156         * top/maint.mk (announcement): Look for correct NEWS file.
23157
23158 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23159
23160         utimens (fdutimens): ignore a negative FD, per contract
23161         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23162         when we have a valid file descriptor.  Otherwise, using a brand
23163         new glibc (with just-patched futimens that now fails with EBADF)
23164         would cause this function to fail with ENOSYS.
23165         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23166         See also http://bugzilla.redhat.com/552320.
23167
23168 2010-01-05  Eric Blake  <ebb9@byu.net>
23169
23170         strcase: document what it provides
23171         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23172         gnulib module.
23173         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23174         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23175
23176 2010-01-05  Jim Meyering  <meyering@redhat.com>
23177
23178         maint: remove useless inclusions of "xalloc.h"
23179         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23180         * lib/readtokens.c: Likewise.
23181         * lib/same.c: Likewise.
23182         * modules/getloadavg (Depends-on): Remove xalloc.
23183         * modules/readtokens: Likewise.
23184         * modules/same: Likewise.
23185
23186         maint.mk: include 4 more function names in alloca.h-checking regexp
23187         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23188         regexp.  Before, we would give a false-positive (saying alloca.h
23189         is included unnecessarily) when the only uses involved omitted symbols.
23190
23191         xalloc.h: use consistent formatting
23192         * lib/xalloc.h: Move declarations to start in the first column.
23193
23194 2010-01-05  Eric Blake  <ebb9@byu.net>
23195
23196         mkdir: avoid xalloc
23197         * lib/mkdir.c (includes): Drop unused header.
23198         Reported by John W. Eaton.
23199
23200 2010-01-04  Jim Meyering  <meyering@redhat.com>
23201
23202         nl_langinfo: avoid configure-time syntax error
23203         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23204         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23205         the empty string.  Don't let that provoke a shell syntax error.
23206
23207         regcomp, regexec, fnmatch: avoid array bounds read error
23208         * lib/regcomp.c (build_equiv_class): From glibc:
23209         Use only the low 24 bits of a findidx return value as an index
23210         into the weights array.  Patch by Ulrich Drepper:
23211         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23212         * lib/regexec.c (check_node_accept_bytes): Likewise.
23213         * lib/fnmatch_loop.c (FCT): Likewise.
23214
23215         regcomp: skip collseq lookup when there are no rules
23216         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23217         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23218
23219         regcomp: recognize ill-formed { } expressions
23220         * lib/regcomp.c (parse_dup_op): From glibc:
23221         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23222
23223         regcomp: fix typo in comment
23224         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23225         s/satisfy/satisfies/.
23226
23227         regcomp: sync from glibc: remove dead store
23228         * lib/regcomp.c (duplicate_node_closure): Remove useless
23229         search_duplicated_node call and dead store.
23230
23231         regcomp: sync from glibc; always use nl_langinfo
23232         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23233         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23234         * modules/regex (Depends-on): Add nl_langinfo.
23235
23236 2010-01-04  Eric Blake  <ebb9@byu.net>
23237
23238         fdopendir: fix configure test
23239         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23240
23241 2010-01-01  Bruno Haible  <bruno@clisp.org>
23242
23243         wchar: Remove unused configure check.
23244         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23245
23246 2010-01-01  Eric Blake  <ebb9@byu.net>
23247
23248         headers: make check of system header explicit
23249         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23250         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23251         ourselves.
23252         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23255         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23256         internals.
23257         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23258         missing.
23259         Suggested by Bruno Haible.
23260
23261 2010-01-01  Jim Meyering  <meyering@redhat.com>
23262
23263         ChangeLog: tweak to eliminate unnecessary copyright line
23264         * ChangeLog: Remove a copyright line that was mistakenly updated
23265         by today's update-copyright run.  Reported by Eric Blake.
23266
23267         test-update-copyright: don't let envvar setting cause test failure
23268         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23269
23270 2010-01-01  Bruno Haible  <bruno@clisp.org>
23271
23272         localename: Avoid gcc warning.
23273         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23274         function if it is not used.
23275
23276 2010-01-01  Jim Meyering  <meyering@redhat.com>
23277
23278         update nearly all FSF copyright year lists to include 2010
23279         Use the same procedure as for 2009, outlined in
23280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23281
23282         version-etc: set COPYRIGHT_YEAR to 2010
23283         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23284
23285 2009-12-31  Eric Blake  <ebb9@byu.net>
23286
23287         doc: correct availability of cygwin 1.5.x getopt
23288         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23289         variables.
23290         * doc/posix-functions/opterr.texi (opterr): Likewise.
23291         * doc/posix-functions/optind.texi (optind): Likewise.
23292         * doc/posix-functions/optopt.texi (optopt): Likewise.
23293         * doc/posix-functions/tzname.texi (tzname): Likewise.
23294
23295         openat: update maintainer
23296         * modules/openat (Maintainer): Add myself.
23297
23298         utimens: avoid shadowing warning
23299         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23300         buffers into one, to avoid shadowing, as well as avoiding a
23301         redundant stat.
23302         Reported by Jim Meyering.
23303
23304         test-dup2: avoid compiler warning
23305         * tests/test-dup2.c (is_inheritable): Only define if used.
23306
23307 2010-01-01  Bruno Haible  <bruno@clisp.org>
23308
23309         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23310         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23311         defined, use wctomb instead of wcrtomb.
23312
23313 2010-01-01  Bruno Haible  <bruno@clisp.org>
23314
23315         iconv: Reject native Solaris iconv.
23316         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23317         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23318
23319 2009-12-31  Bruno Haible  <bruno@clisp.org>
23320
23321         * tests/test-signal.c (main): Remove test of 'SIG'.
23322
23323 2009-12-31  Bruno Haible  <bruno@clisp.org>
23324
23325         spawn: Fix incomplete fix.
23326         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23327         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23328         warnings for GNULIB_POSIXCHECK again.
23329         Reported by Eric Blake.
23330
23331 2009-12-31  Bruno Haible  <bruno@clisp.org>
23332
23333         Avoid namespace pollution on glibc systems.
23334         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23335         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23336         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23337         glibc systems.
23338
23339 2009-12-31  Bruno Haible  <bruno@clisp.org>
23340
23341         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23342         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23343         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23344         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23345         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23346         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23347         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23348
23349 2009-12-31  Bruno Haible  <bruno@clisp.org>
23350
23351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23352         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23353         afterwards.
23354
23355 2009-12-31  Bruno Haible  <bruno@clisp.org>
23356
23357         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23358         SYS_UTSNAME_H.
23359
23360 2009-12-31  Bruno Haible  <bruno@clisp.org>
23361
23362         spawn: Fix misapplied patch.
23363         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23364         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23365         warnings for GNULIB_POSIXCHECK.
23366
23367 2009-12-31  Bruno Haible  <bruno@clisp.org>
23368
23369         times: Update after sys_times changed.
23370         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23371         * modules/times (Files): Add it.
23372         (configure.ac): Invoke gl_FUNC_TIMES.
23373
23374 2009-12-31  Bruno Haible  <bruno@clisp.org>
23375
23376         Use AC_C_INLINE where necessary.
23377         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23378         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23380         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23381         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23382         * m4/mbiter.m4 (gl_MBITER): Likewise.
23383         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23384         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23385         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23386         * modules/u64 (configure.ac): Likewise.
23387
23388 2009-12-31  Bruno Haible  <bruno@clisp.org>
23389
23390         Use AC_C_INLINE instead of module 'inline' where possible.
23391         * modules/inline (Description): Clarify purpose.
23392         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23393         * modules/count-one-bits (Depends-on): Remove inline.
23394         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23395         * modules/openat (Depends-on): Remove inline.
23396         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23397         instead of depending on module 'inline'.
23398         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23399         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23400         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23401         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23402         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23403         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23404         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23405         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23406         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23407         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23408         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23409         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23410         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23411         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23412         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23413         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23414         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23415         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23416         Likewise.
23417         * modules/unictype/property-ascii-hex-digit (Depends-on,
23418         configure.ac): Likewise.
23419         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23420         configure.ac): Likewise.
23421         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23422         configure.ac): Likewise.
23423         * modules/unictype/property-bidi-block-separator (Depends-on,
23424         configure.ac): Likewise.
23425         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23426         configure.ac): Likewise.
23427         * modules/unictype/property-bidi-common-separator (Depends-on,
23428         configure.ac): Likewise.
23429         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23430         Likewise.
23431         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23432         configure.ac): Likewise.
23433         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23434         configure.ac): Likewise.
23435         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23436         configure.ac): Likewise.
23437         * modules/unictype/property-bidi-european-digit (Depends-on,
23438         configure.ac): Likewise.
23439         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23440         configure.ac): Likewise.
23441         * modules/unictype/property-bidi-left-to-right (Depends-on,
23442         configure.ac): Likewise.
23443         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23444         configure.ac): Likewise.
23445         * modules/unictype/property-bidi-other-neutral (Depends-on,
23446         configure.ac): Likewise.
23447         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23448         Likewise.
23449         * modules/unictype/property-bidi-segment-separator (Depends-on,
23450         configure.ac): Likewise.
23451         * modules/unictype/property-bidi-whitespace (Depends-on,
23452         configure.ac): Likewise.
23453         * modules/unictype/property-combining (Depends-on, configure.ac):
23454         Likewise.
23455         * modules/unictype/property-composite (Depends-on, configure.ac):
23456         Likewise.
23457         * modules/unictype/property-currency-symbol (Depends-on,
23458         configure.ac): Likewise.
23459         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23460         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23461         Likewise.
23462         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23463         configure.ac): Likewise.
23464         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23465         Likewise.
23466         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23467         Likewise.
23468         * modules/unictype/property-extender (Depends-on, configure.ac):
23469         Likewise.
23470         * modules/unictype/property-format-control (Depends-on, configure.ac):
23471         Likewise.
23472         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23473         Likewise.
23474         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23475         Likewise.
23476         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23477         Likewise.
23478         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23479         Likewise.
23480         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23481         Likewise.
23482         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23483         Likewise.
23484         * modules/unictype/property-id-start (Depends-on, configure.ac):
23485         Likewise.
23486         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23487         Likewise.
23488         * modules/unictype/property-ids-binary-operator (Depends-on,
23489         configure.ac): Likewise.
23490         * modules/unictype/property-ids-trinary-operator (Depends-on,
23491         configure.ac): Likewise.
23492         * modules/unictype/property-ignorable-control (Depends-on,
23493         configure.ac): Likewise.
23494         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23495         Likewise.
23496         * modules/unictype/property-join-control (Depends-on, configure.ac):
23497         Likewise.
23498         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23499         Likewise.
23500         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23501         Likewise.
23502         * modules/unictype/property-logical-order-exception (Depends-on,
23503         configure.ac): Likewise.
23504         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23505         Likewise.
23506         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23507         * modules/unictype/property-non-break (Depends-on, configure.ac):
23508         Likewise.
23509         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23510         Likewise.
23511         * modules/unictype/property-numeric (Depends-on, configure.ac):
23512         Likewise.
23513         * modules/unictype/property-other-alphabetic (Depends-on,
23514         configure.ac): Likewise.
23515         * modules/unictype/property-other-default-ignorable-code-point
23516         (Depends-on, configure.ac): Likewise.
23517         * modules/unictype/property-other-grapheme-extend (Depends-on,
23518         configure.ac): Likewise.
23519         * modules/unictype/property-other-id-continue (Depends-on,
23520         configure.ac): Likewise.
23521         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23522         Likewise.
23523         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23524         Likewise.
23525         * modules/unictype/property-other-math (Depends-on, configure.ac):
23526         Likewise.
23527         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23528         Likewise.
23529         * modules/unictype/property-paired-punctuation (Depends-on,
23530         configure.ac): Likewise.
23531         * modules/unictype/property-paragraph-separator (Depends-on,
23532         configure.ac): Likewise.
23533         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23534         Likewise.
23535         * modules/unictype/property-pattern-white-space (Depends-on,
23536         configure.ac): Likewise.
23537         * modules/unictype/property-private-use (Depends-on, configure.ac):
23538         Likewise.
23539         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23540         Likewise.
23541         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23542         Likewise.
23543         * modules/unictype/property-radical (Depends-on, configure.ac):
23544         Likewise.
23545         * modules/unictype/property-sentence-terminal (Depends-on,
23546         configure.ac): Likewise.
23547         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23548         Likewise.
23549         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23550         * modules/unictype/property-terminal-punctuation (Depends-on,
23551         configure.ac): Likewise.
23552         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23553         Likewise.
23554         * modules/unictype/property-unassigned-code-value (Depends-on,
23555         configure.ac): Likewise.
23556         * modules/unictype/property-unified-ideograph (Depends-on,
23557         configure.ac): Likewise.
23558         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23559         Likewise.
23560         * modules/unictype/property-variation-selector (Depends-on,
23561         configure.ac): Likewise.
23562         * modules/unictype/property-white-space (Depends-on, configure.ac):
23563         Likewise.
23564         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23565         Likewise.
23566         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23567         Likewise.
23568         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23569         Likewise.
23570         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23571         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23572         Likewise.
23573
23574 2009-12-31  Bruno Haible  <bruno@clisp.org>
23575
23576         Remove unnecessary AC_C_INLINE invocation.
23577         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23578         since 2009-08-21.
23579
23580 2009-12-31  Jim Meyering  <meyering@redhat.com>
23581
23582         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23583         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23584         With this change, we can all remove the gpg_key_ID = ... definition
23585         from our respective cfg.mk files.
23586
23587         maint.mk: create announcement template in ~/, not in /tmp
23588         * top/maint.mk (emit_upload_commands): Adjust.
23589         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23590         Remove temporary file, .ci-msg.
23591
23592 2009-12-31  Eric Blake  <ebb9@byu.net>
23593
23594         link-warning: always build headers with link warnings
23595         * modules/arpa_inet (Makefile.am): Always build replacement
23596         header.
23597         * modules/ctype (Makefile.am): Likewise.
23598         * modules/dirent (Makefile.am): Likewise.
23599         * modules/inttypes (Makefile.am): Likewise.
23600         * modules/langinfo (Makefile.am): Likewise.
23601         * modules/locale (Makefile.am): Likewise.
23602         * modules/spawn (Makefile.am): Likewise.
23603         * modules/sys_file (Makefile.am): Likewise.
23604         * modules/sys_ioctl (Makefile.am): Likewise.
23605         * modules/sys_select (Makefile.am): Likewise.
23606         * modules/sys_socket (Makefile.am): Likewise.
23607         * modules/sys_times (Makefile.am): Likewise.
23608         * modules/sys_utsname (Makefile.am): Likewise.
23609         * modules/sys_wait (Makefile.am): Likewise.
23610         * modules/wchar (Makefile.am): Likewise.
23611         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23612         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23613         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23614         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23615         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23616         Likewise.
23617         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23618         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23619         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23620         Likewise.
23621         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23622         Likewise.
23623         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23624         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23625         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23627         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23628         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23629         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23630         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23631         (gl_WCHAR_H_DEFAULTS): Likewise.
23632
23633 2009-12-31  Eric Blake  <ebb9@byu.net>
23634
23635         signal, spawn: use link warnings
23636         * lib/signal.in.h (sigset_t): Make unconditional.
23637         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23638         (sigpending, sigprocmask, sigaction): Add link warnings.
23639         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23640         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23641         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23642         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23643         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23644         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23645         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23646         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23647         (posix_spawn_file_actions_destroy)
23648         (posix_spawn_file_actions_addopen)
23649         (posix_spawn_file_actions_addclose)
23650         (posix_spawn_file_actions_adddup2): Likewise.
23651         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23652         * tests/test-signal.c (main): Enhance test.
23653
23654         spawn: improve wrapper support
23655         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23656         (gl_SPAWN_H_DEFAULTS): New defaults.
23657         * modules/spawn (Makefile.am): Substitute them.
23658         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23659         Only declare if missing or broken.
23660
23661         sys_times, sys_utsname: use include_next
23662         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23663         header.
23664         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23665         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23666         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23667         * modules/sys_times (Depends-on): Add include_next.
23668         (Makefile.am): Substitute additional values.
23669         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23670         * lib/sys_times.in.h (includes): Include native header, if
23671         available.
23672         * lib/sys_utsname.in.h (includes): Likewise.
23673         * tests/test-sys_times.c (main): Enhance test.
23674
23675         fdutimensat: revert prior patch
23676         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23677         utimens.h.
23678         Reported by Bruno Haible.
23679
23680 2009-12-30  Eric Blake  <ebb9@byu.net>
23681
23682         sys_wait: drop link-warning dependency
23683         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23684         link-warning efforts.
23685         * lib/sys_wait.in.h: Likewise.
23686
23687         fdutimensat: remove bogus dependency
23688         * modules/fdutimensat (Depends-on): Drop inline.
23689
23690         unistd: fix typo
23691         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23692
23693 2009-12-30  Bruno Haible  <bruno@clisp.org>
23694
23695         Fix compilation error with Solaris cc.
23696         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23697         * lib/unicase/u16-is-invariant.c: Likewise.
23698         * lib/unicase/u32-is-invariant.c: Likewise.
23699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23700
23701 2009-12-30  Bruno Haible  <bruno@clisp.org>
23702
23703         Fix test crash.
23704         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23705         locales.
23706         Reported by Simon Josefsson <simon@josefsson.org>.
23707
23708 2009-12-30  Bruno Haible  <bruno@clisp.org>
23709
23710         Fix compilation error on most platforms.
23711         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23712         Reported by Simon Josefsson <simon@josefsson.org>
23713         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23714
23715 2009-12-30  Eric Blake  <ebb9@byu.net>
23716
23717         futimens, utimensat: work around ntfs-3g bug
23718         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23719         a ctime bug is present, and expand workaround to cover ntfs-3g.
23720         * lib/utimens.c (fdutimens, lutimens): Likewise.
23721         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23722         (validate_timespec): Adjust return value.
23723         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23724         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23725         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23726
23727 2009-12-29  Eric Blake  <ebb9@byu.net>
23728
23729         link-warning: make usage consistent
23730         * modules/ctype (Depends-on): Add link-warning.
23731         (Makefile.am): Update rules accordingly.
23732         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23733         * modules/locale (Depends-on, Makefile.am): Likewise.
23734         * modules/sys_file (Makefile.am): Likewise.
23735         * modules/getopt-posix (Makefile.am): Delete unused link warning
23736         efforts.
23737         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23738         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23739         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23740         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23741
23742         stdio: remove unused variables
23743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23744         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23745         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23746
23747         tests: test more substitute headers
23748         * modules/ctype-tests: New file.
23749         * modules/dirent-tests: Likewise.
23750         * modules/spawn-tests: Likewise.
23751         * modules/sys_file-tests: Likewise.
23752         * modules/sys_ioctl-tests: Likewise.
23753         * modules/sys_wait-tests: Likewise.
23754         * tests/test-ctype.c: Likewise.
23755         * tests/test-dirent.c: Likewise.
23756         * tests/test-spawn.c: Likewise.
23757         * tests/test-sys_file.c: Likewise.
23758         * tests/test-sys_ioctl.c: Likewise.
23759         * tests/test-sys_wait.c: Likewise.
23760         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23761         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23762         whether or not flock is in use.
23763
23764         tests: remove License section from module
23765         * modules/arpa_inet-tests: Remove unneeded section.
23766         * modules/byteswap-tests: Likewise.
23767         * modules/ceilf-tests: Likewise.
23768         * modules/ceill-tests: Likewise.
23769         * modules/crypto/des-tests: Likewise.
23770         * modules/crypto/gc-arcfour-tests: Likewise.
23771         * modules/crypto/gc-arctwo-tests: Likewise.
23772         * modules/crypto/gc-des-tests: Likewise.
23773         * modules/crypto/gc-hmac-md5-tests: Likewise.
23774         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23775         * modules/crypto/gc-md2-tests: Likewise.
23776         * modules/crypto/gc-md4-tests: Likewise.
23777         * modules/crypto/gc-md5-tests: Likewise.
23778         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23779         * modules/crypto/gc-rijndael-tests: Likewise.
23780         * modules/crypto/gc-sha1-tests: Likewise.
23781         * modules/crypto/gc-tests: Likewise.
23782         * modules/crypto/md2-tests: Likewise.
23783         * modules/crypto/md4-tests: Likewise.
23784         * modules/fcntl-h-tests: Likewise.
23785         * modules/floorf-tests: Likewise.
23786         * modules/floorl-tests: Likewise.
23787         * modules/frexp-nolibm-tests: Likewise.
23788         * modules/frexp-tests: Likewise.
23789         * modules/frexpl-nolibm-tests: Likewise.
23790         * modules/frexpl-tests: Likewise.
23791         * modules/getaddrinfo-tests: Likewise.
23792         * modules/inttypes-tests: Likewise.
23793         * modules/isfinite-tests: Likewise.
23794         * modules/isinf-tests: Likewise.
23795         * modules/ldexpl-tests: Likewise.
23796         * modules/locale-tests: Likewise.
23797         * modules/math-tests: Likewise.
23798         * modules/netdb-tests: Likewise.
23799         * modules/netinet_in-tests: Likewise.
23800         * modules/printf-frexp-tests: Likewise.
23801         * modules/printf-frexpl-tests: Likewise.
23802         * modules/priv-set-tests: Likewise.
23803         * modules/random_r-tests: Likewise.
23804         * modules/round-tests: Likewise.
23805         * modules/roundf-tests: Likewise.
23806         * modules/roundl-tests: Likewise.
23807         * modules/search-tests: Likewise.
23808         * modules/select-tests: Likewise.
23809         * modules/signal-tests: Likewise.
23810         * modules/stdbool-tests: Likewise.
23811         * modules/stddef-tests: Likewise.
23812         * modules/stdint-tests: Likewise.
23813         * modules/stdio-tests: Likewise.
23814         * modules/stdlib-tests: Likewise.
23815         * modules/string-tests: Likewise.
23816         * modules/strings-tests: Likewise.
23817         * modules/sys_select-tests: Likewise.
23818         * modules/sys_socket-tests: Likewise.
23819         * modules/sys_stat-tests: Likewise.
23820         * modules/sys_time-tests: Likewise.
23821         * modules/sys_utsname-tests: Likewise.
23822         * modules/sysexits-tests: Likewise.
23823         * modules/time-tests: Likewise.
23824         * modules/trunc-tests: Likewise.
23825         * modules/truncf-tests: Likewise.
23826         * modules/truncl-tests: Likewise.
23827         * modules/tsearch-tests: Likewise.
23828         * modules/unistd-tests: Likewise.
23829         * modules/wchar-tests: Likewise.
23830         * modules/wctype-tests: Likewise.
23831
23832         tests: fix license on several tests
23833         * tests/test-des.c: Update to GPLv3+.
23834         * tests/test-flock.c: Likewise.
23835         * tests/test-fsync.c: Likewise.
23836         * tests/test-futimens.h: Likewise.
23837         * tests/test-gc-arcfour.c: Likewise.
23838         * tests/test-gc-arctwo.c: Likewise.
23839         * tests/test-gc-des.c: Likewise.
23840         * tests/test-gc-hmac-md5.c: Likewise.
23841         * tests/test-gc-hmac-sha1.c: Likewise.
23842         * tests/test-gc-md2.c: Likewise.
23843         * tests/test-gc-md4.c: Likewise.
23844         * tests/test-gc-md5.c: Likewise.
23845         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23846         * tests/test-gc-rijndael.c: Likewise.
23847         * tests/test-gc-sha1.c: Likewise.
23848         * tests/test-gc.c: Likewise.
23849         * tests/test-getcwd.c: Likewise.
23850         * tests/test-link.c: Likewise.
23851         * tests/test-link.h: Likewise.
23852         * tests/test-lutimens.h: Likewise.
23853         * tests/test-md2.c: Likewise.
23854         * tests/test-md4.c: Likewise.
23855         * tests/test-mkdir.h: Likewise.
23856         * tests/test-rename.c: Likewise.
23857         * tests/test-rename.h: Likewise.
23858         * tests/test-safe-alloc.c: Likewise.
23859         * tests/test-utimens-common.h: Likewise.
23860         * tests/test-utimens.h: Likewise.
23861
23862         maint: sync license texts
23863         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23864         * doc/gpl-3.0.texi: Revert copyright year update.
23865         * doc/lgpl-3.0.texi: Likewise.
23866
23867 2009-12-29  Jim Meyering  <meyering@redhat.com>
23868
23869         update nearly all FSF copyright year lists to include 2009
23870         The files named by the following are exempted:
23871             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23872               test -f "$dst" && { echo "$dst"; continue; }
23873               test -d "$dst" || continue
23874               echo "$dst"/$(basename "$src")
23875             done > exempt
23876             git ls-files tests/unictype >> exempt
23877         In the remaining files, convert to all-interval notation if
23878         - there is already at least one year interval like 2000-2003
23879         - the file is maintained by me
23880         - the file is in lib/uni*/, where that style already prevails
23881         Otherwise, use update-copyright's default.
23882
23883 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23884         and Eric Blake  <ebb9@byu.net>
23885
23886         tests: don't require debug system() to pass
23887         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23888         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23889         * tests/test-unlink.h (test_unlink_func): Likewise.
23890         * tests/test-fstatat.c (main): ...into callers.
23891         * tests/test-lstat.c (main): Likewise.
23892         * tests/test-rmdir.c (main): Likewise.
23893         * tests/test-unlink.c (main): Likewise.
23894         * tests/test-unlinkat.c (main): Likewise.
23895         * tests/test-areadlink-with-size.c (main): Don't require a
23896         debug-only system call to pass, aiding cross-testing to mingw.
23897         * tests/test-areadlink.c (main): Likewise.
23898         * tests/test-areadlinkat-with-size.c (main): Likewise.
23899         * tests/test-areadlinkat.c (main): Likewise.
23900         * tests/test-canonicalize-lgpl.c (main): Likewise.
23901         * tests/test-canonicalize.c (main): Likewise.
23902         * tests/test-chown.c (main): Likewise.
23903         * tests/test-fchownat.c (main): Likewise.
23904         * tests/test-lchown.c (main): Likewise.
23905         * tests/test-fdutimensat.c (main): Likewise.
23906         * tests/test-futimens.c (main): Likewise.
23907         * tests/test-link.c (main): Likewise.
23908         * tests/test-linkat.c (main): Likewise.
23909         * tests/test-mkdir.c (main): Likewise.
23910         * tests/test-mkdirat.c (main): Likewise.
23911         * tests/test-mkfifo.c (main): Likewise.
23912         * tests/test-mkfifoat.c (main): Likewise.
23913         * tests/test-mknod.c (main): Likewise.
23914         * tests/test-readlink.c (main): Likewise.
23915         * tests/test-remove.c (main): Likewise.
23916         * tests/test-rename.c (main): Likewise.
23917         * tests/test-renameat.c (main): Likewise.
23918         * tests/test-symlink.c (main): Likewise.
23919         * tests/test-symlinkat.c (main): Likewise.
23920         * tests/test-utimens.c (main): Likewise.
23921         * tests/test-utimensat.c (main): Likewise.
23922
23923 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23924
23925         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23926         on $(UNUSED_PARAMETER_H) to avoid build failure.
23927
23928 2009-12-28  Jim Meyering  <meyering@redhat.com>
23929
23930         update-copyright: you may specify a max. line length other than 72
23931         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23932
23933         maint: use consistent FSF copyright line syntax
23934         * lib/posixtm.c: Add missing comma in FSF copyright line.
23935         * lib/posixtm.h: Likewise.
23936         * lib/getugroups.c: Add missing ", Inc.".
23937
23938         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23939         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23940         FSF copyright line.  Remove trailing blanks.
23941
23942 2009-12-28  Eric Blake  <ebb9@byu.net>
23943
23944         test-dup2: reduce dependencies
23945         * modules/cloexec (Configure.ac): Set witness.
23946         * modules/dup2-tests (Depends-on): Drop cloexec.
23947         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23948         not present.
23949         Suggested by Bruno Haible.
23950
23951 2009-12-26  Bruno Haible  <bruno@clisp.org>
23952
23953         Remove an unneeded dependency.
23954         * modules/fseterr (Depends-on): Remove dup2.
23955
23956 2009-12-26  Eric Blake  <ebb9@byu.net>
23957
23958         tests: use macros.h in more places
23959         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23960         (ASSERT_STREAM): Provide default of stderr.
23961         * tests/test-dirent-safer.c: Include macros.h, using alternate
23962         stream for assertions.
23963         * tests/test-dup-safer.c: Likewise.
23964         * tests/test-freopen-safer.c: Likewise.
23965         * tests/test-getopt.c: Likewise.
23966         * tests/test-openat-safer.c: Likewise.
23967         * tests/test-pipe.c: Likewise.
23968         * tests/test-popen-safer.c: Likewise.
23969         * modules/dirent-safer-tests (Files): Include macros.h.
23970         * modules/unistd-safer-tests (Files): Likewise.
23971         * modules/freopen-safer-tests (Files): Likewise.
23972         * modules/getopt-posix-tests (Files): Likewise.
23973         * modules/openat-safer-tests (Files): Likewise.
23974         * modules/pipe-tests (Files): Likewise.
23975
23976 2009-12-26  Bruno Haible  <bruno@clisp.org>
23977
23978         javacomp: Portability fix.
23979         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23980         that it also works on Solaris.
23981
23982 2009-12-26  Bruno Haible  <bruno@clisp.org>
23983
23984         localename: Fix storage allocation of gl_locale_name_thread's result.
23985         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23986         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23987         all platforms that have 'uselocale'.
23988         (gl_locale_name_thread_unsafe): New function, extracted from
23989         gl_locale_name_thread.
23990         (gl_locale_name_thread): Call struniq on all platforms that have
23991         'uselocale'.
23992         * tests/test-localename.c (test_locale_name_thread): Check that the
23993         resulting strings are permanently allocated.
23994         * modules/localename-tests (Depends-on): Add strdup.
23995
23996 2009-12-26  Bruno Haible  <bruno@clisp.org>
23997
23998         * tests/test-localename.c (categories): Fill in the strings.
23999
24000 2009-12-26  Jim Meyering  <meyering@redhat.com>
24001
24002         isdir: complete the removal of m4/isdir.m4
24003         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24004
24005         isdir: clean up, since at least grep still uses it
24006         * lib/isdir.c: Include "isdir.h".
24007         (S_ISDIR): Remove now-unneeded definition.
24008         * modules/isdir (Files): Add lib/isdir.h.
24009         * lib/isdir.h: New file, with declaration.
24010         * m4/isdir.m4: Remove file -- unneeded.
24011
24012 2009-12-25  Bruno Haible  <bruno@clisp.org>
24013
24014         selinux-h: Make generated .h files standalone.
24015         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24016         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24017         * lib/se-selinux.in.h: Likewise.
24018         * modules/selinux-h (Depends-on): Add unused-parameter.
24019         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24020         selinux/selinux.h and selinux/context.h.
24021         Suggested by Eric Blake.
24022
24023 2009-12-25  Bruno Haible  <bruno@clisp.org>
24024
24025         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24026         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24027         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24028         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24029         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24030
24031 2009-12-24  Bruno Haible  <bruno@clisp.org>
24032
24033         openat: Fix warning.
24034         * lib/openat-proc.c: Include <unistd.h>.
24035
24036 2009-12-24  Bruno Haible  <bruno@clisp.org>
24037
24038         New module 'unused-parameter'.
24039         * build-aux/unused-parameter.h: New file, extracted from earlier
24040         gnulib-common.m4.
24041         * modules/unused-parameter: New file.
24042         * lib/unistr.h: Include unused-parameter.h.
24043         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24044         _GL_UNUSED.
24045         * modules/unistr/base (Depends-on): Add unused-parameter.
24046
24047 2009-12-24  Bruno Haible  <bruno@clisp.org>
24048
24049         Add missing dependencies to 'extensions' module.
24050         * m4/extensions.m4: Add comment.
24051         * modules/accept4 (Depends-on): Add extensions.
24052         * modules/dup3 (Depends-on): Likewise.
24053         * modules/fcntl (Depends-on): Likewise.
24054         * modules/futimens (Depends-on): Likewise.
24055         * modules/mknod (Depends-on): Likewise.
24056         * modules/pipe2 (Depends-on): Likewise.
24057         * modules/stat-time (Depends-on): Likewise.
24058         * modules/strcasestr-simple (Depends-on): Likewise.
24059         * modules/strsignal (Depends-on): Likewise.
24060         * modules/utimensat (Depends-on): Likewise.
24061         * modules/localcharset (Depends-on): Likewise. Needed because of
24062         gl_FCNTL_O_FLAGS.
24063         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24064         AC_TYPE_MBSTATE_T.
24065         * modules/wcsnrtombs (Depends-on): Likewise.
24066         * modules/wcsrtombs (Depends-on): Likewise.
24067
24068 2009-12-24  Bruno Haible  <bruno@clisp.org>
24069
24070         binary-io: Avoid gcc warning due to SET_BINARY.
24071         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24072         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24073
24074 2009-12-24  Bruno Haible  <bruno@clisp.org>
24075
24076         Avoid future namespace pollution on glibc systems.
24077         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24078         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24079         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24080         glibc systems.
24081
24082 2009-12-24  Bruno Haible  <bruno@clisp.org>
24083
24084         Refactor common macros used in tests.
24085         * tests/macros.h: New file.
24086         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24087         and/or <stdlib.h>, if appropriate.
24088         (ASSERT, SIZEOF): Remove macros.
24089         * tests/test-areadlink-with-size.c: Likewise.
24090         * tests/test-areadlinkat.c: Likewise.
24091         * tests/test-areadlinkat-with-size.c: Likewise.
24092         * tests/test-argmatch.c: Likewise.
24093         * tests/test-argv-iter.c: Likewise.
24094         * tests/test-array-mergesort.c: Likewise.
24095         * tests/test-array_list.c: Likewise.
24096         * tests/test-array_oset.c: Likewise.
24097         * tests/test-avltree_list.c: Likewise.
24098         * tests/test-avltree_oset.c: Likewise.
24099         * tests/test-avltreehash_list.c: Likewise.
24100         * tests/test-base64.c: Likewise.
24101         * tests/test-binary-io.c: Likewise.
24102         * tests/test-bitrotate.c: Likewise.
24103         * tests/test-btowc.c: Likewise.
24104         * tests/test-byteswap.c: Likewise.
24105         * tests/test-c-ctype.c: Likewise.
24106         * tests/test-c-stack.c: Likewise.
24107         * tests/test-c-strcasecmp.c: Likewise.
24108         * tests/test-c-strcasestr.c: Likewise.
24109         * tests/test-c-strncasecmp.c: Likewise.
24110         * tests/test-c-strstr.c: Likewise.
24111         * tests/test-canonicalize-lgpl.c: Likewise.
24112         * tests/test-canonicalize.c: Likewise.
24113         * tests/test-carray_list.c: Likewise.
24114         * tests/test-ceilf1.c: Likewise.
24115         * tests/test-ceilf2.c: Likewise.
24116         * tests/test-ceill.c: Likewise.
24117         * tests/test-chown.c: Likewise.
24118         * tests/test-cloexec.c: Likewise.
24119         * tests/test-copy-acl.c: Likewise.
24120         * tests/test-copy-file.c: Likewise.
24121         * tests/test-count-one-bits.c: Likewise.
24122         * tests/test-dprintf-posix.c: Likewise.
24123         * tests/test-dup2.c: Likewise.
24124         * tests/test-dup3.c: Likewise.
24125         * tests/test-duplocale.c: Likewise.
24126         * tests/test-fbufmode.c: Likewise.
24127         * tests/test-fchdir.c: Likewise.
24128         * tests/test-fchownat.c: Likewise.
24129         * tests/test-fcntl-safer.c: Likewise.
24130         * tests/test-fcntl.c: Likewise.
24131         * tests/test-fdopendir.c: Likewise.
24132         * tests/test-fdutimensat.c: Likewise.
24133         * tests/test-fflush2.c: Likewise.
24134         * tests/test-file-has-acl.c: Likewise.
24135         * tests/test-filevercmp.c: Likewise.
24136         * tests/test-flock.c: Likewise.
24137         * tests/test-floorf1.c: Likewise.
24138         * tests/test-floorf2.c: Likewise.
24139         * tests/test-floorl.c: Likewise.
24140         * tests/test-fnmatch.c: Likewise.
24141         * tests/test-fopen.h: Likewise.
24142         * tests/test-fpending.c: Likewise.
24143         * tests/test-fprintf-posix.c: Likewise.
24144         * tests/test-fpurge.c: Likewise.
24145         * tests/test-freadable.c: Likewise.
24146         * tests/test-freadahead.c: Likewise.
24147         * tests/test-freading.c: Likewise.
24148         * tests/test-freadptr.c: Likewise.
24149         * tests/test-freadptr2.c: Likewise.
24150         * tests/test-freadseek.c: Likewise.
24151         * tests/test-freopen.c: Likewise.
24152         * tests/test-frexp.c: Likewise.
24153         * tests/test-frexpl.c: Likewise.
24154         * tests/test-fseek.c: Likewise.
24155         * tests/test-fseeko.c: Likewise.
24156         * tests/test-fstatat.c: Likewise.
24157         * tests/test-fstrcmp.c: Likewise.
24158         * tests/test-fsync.c: Likewise.
24159         * tests/test-ftell.c: Likewise.
24160         * tests/test-ftello.c: Likewise.
24161         * tests/test-func.c: Likewise.
24162         * tests/test-futimens.c: Likewise.
24163         * tests/test-fwritable.c: Likewise.
24164         * tests/test-fwriting.c: Likewise.
24165         * tests/test-getcwd.c: Likewise.
24166         * tests/test-getdate.c: Likewise.
24167         * tests/test-getdelim.c: Likewise.
24168         * tests/test-getdtablesize.c: Likewise.
24169         * tests/test-getgroups.c: Likewise.
24170         * tests/test-getline.c: Likewise.
24171         * tests/test-getndelim2.c: Likewise.
24172         * tests/test-glob.c: Likewise.
24173         * tests/test-hash.c: Likewise.
24174         * tests/test-i-ring.c: Likewise.
24175         * tests/test-iconv-utf.c: Likewise.
24176         * tests/test-iconv.c: Likewise.
24177         * tests/test-idpriv-drop.c: Likewise.
24178         * tests/test-idpriv-droptemp.c: Likewise.
24179         * tests/test-inet_ntop.c: Likewise.
24180         * tests/test-inet_pton.c: Likewise.
24181         * tests/test-isblank.c: Likewise.
24182         * tests/test-isfinite.c: Likewise.
24183         * tests/test-isinf.c: Likewise.
24184         * tests/test-isnan.c: Likewise.
24185         * tests/test-isnand.h: Likewise.
24186         * tests/test-isnanf.h: Likewise.
24187         * tests/test-isnanl.h: Likewise.
24188         * tests/test-lchown.c: Likewise.
24189         * tests/test-ldexpl.c: Likewise.
24190         * tests/test-link.c: Likewise.
24191         * tests/test-linkat.c: Likewise.
24192         * tests/test-linked_list.c: Likewise.
24193         * tests/test-linkedhash_list.c: Likewise.
24194         * tests/test-localename.c: Likewise.
24195         * tests/test-lseek.c: Likewise.
24196         * tests/test-lstat.c: Likewise.
24197         * tests/test-mbmemcasecmp.c: Likewise.
24198         * tests/test-mbmemcasecoll.c: Likewise.
24199         * tests/test-mbrtowc.c: Likewise.
24200         * tests/test-mbscasecmp.c: Likewise.
24201         * tests/test-mbscasestr1.c: Likewise.
24202         * tests/test-mbscasestr2.c: Likewise.
24203         * tests/test-mbscasestr3.c: Likewise.
24204         * tests/test-mbscasestr4.c: Likewise.
24205         * tests/test-mbschr.c: Likewise.
24206         * tests/test-mbscspn.c: Likewise.
24207         * tests/test-mbsinit.c: Likewise.
24208         * tests/test-mbsncasecmp.c: Likewise.
24209         * tests/test-mbsnrtowcs.c: Likewise.
24210         * tests/test-mbspbrk.c: Likewise.
24211         * tests/test-mbspcasecmp.c: Likewise.
24212         * tests/test-mbsrchr.c: Likewise.
24213         * tests/test-mbsrtowcs.c: Likewise.
24214         * tests/test-mbsspn.c: Likewise.
24215         * tests/test-mbsstr1.c: Likewise.
24216         * tests/test-mbsstr2.c: Likewise.
24217         * tests/test-mbsstr3.c: Likewise.
24218         * tests/test-memchr.c: Likewise.
24219         * tests/test-memchr2.c: Likewise.
24220         * tests/test-memcmp.c: Likewise.
24221         * tests/test-memmem.c: Likewise.
24222         * tests/test-memrchr.c: Likewise.
24223         * tests/test-mkdir.c: Likewise.
24224         * tests/test-mkdirat.c: Likewise.
24225         * tests/test-mkfifo.c: Likewise.
24226         * tests/test-mkfifoat.c: Likewise.
24227         * tests/test-mknod.c: Likewise.
24228         * tests/test-nanosleep.c: Likewise.
24229         * tests/test-nl_langinfo.c: Likewise.
24230         * tests/test-obstack-printf.c: Likewise.
24231         * tests/test-open.c: Likewise.
24232         * tests/test-openat.c: Likewise.
24233         * tests/test-pipe-filter-gi1.c: Likewise.
24234         * tests/test-pipe-filter-gi2-main.c: Likewise.
24235         * tests/test-pipe-filter-ii1.c: Likewise.
24236         * tests/test-pipe-filter-ii2-main.c: Likewise.
24237         * tests/test-pipe2.c: Likewise.
24238         * tests/test-popen.h: Likewise.
24239         * tests/test-posixtm.c: Likewise.
24240         * tests/test-pread.c: Likewise.
24241         * tests/test-printf-frexp.c: Likewise.
24242         * tests/test-printf-frexpl.c: Likewise.
24243         * tests/test-printf-posix.c: Likewise.
24244         * tests/test-priv-set.c: Likewise.
24245         * tests/test-quotearg.c: Likewise.
24246         * tests/test-random_r.c: Likewise.
24247         * tests/test-rawmemchr.c: Likewise.
24248         * tests/test-rbtree_list.c: Likewise.
24249         * tests/test-rbtree_oset.c: Likewise.
24250         * tests/test-rbtreehash_list.c: Likewise.
24251         * tests/test-readlink.c: Likewise.
24252         * tests/test-remove.c: Likewise.
24253         * tests/test-rename.c: Likewise.
24254         * tests/test-renameat.c: Likewise.
24255         * tests/test-rmdir.c: Likewise.
24256         * tests/test-round1.c: Likewise.
24257         * tests/test-roundf1.c: Likewise.
24258         * tests/test-roundl.c: Likewise.
24259         * tests/test-safe-alloc.c: Likewise.
24260         * tests/test-sameacls.c: Likewise.
24261         * tests/test-set-mode-acl.c: Likewise.
24262         * tests/test-setenv.c: Likewise.
24263         * tests/test-sigaction.c: Likewise.
24264         * tests/test-signbit.c: Likewise.
24265         * tests/test-sleep.c: Likewise.
24266         * tests/test-snprintf-posix.c: Likewise.
24267         * tests/test-snprintf.c: Likewise.
24268         * tests/test-sprintf-posix.c: Likewise.
24269         * tests/test-stat-time.c: Likewise.
24270         * tests/test-stat.c: Likewise.
24271         * tests/test-strcasestr.c: Likewise.
24272         * tests/test-strchrnul.c: Likewise.
24273         * tests/test-strerror.c: Likewise.
24274         * tests/test-striconv.c: Likewise.
24275         * tests/test-striconveh.c: Likewise.
24276         * tests/test-striconveha.c: Likewise.
24277         * tests/test-strsignal.c: Likewise.
24278         * tests/test-strstr.c: Likewise.
24279         * tests/test-strtod.c: Likewise.
24280         * tests/test-strverscmp.c: Likewise.
24281         * tests/test-symlink.c: Likewise.
24282         * tests/test-symlinkat.c: Likewise.
24283         * tests/test-trunc1.c: Likewise.
24284         * tests/test-trunc2.c: Likewise.
24285         * tests/test-truncf1.c: Likewise.
24286         * tests/test-truncf2.c: Likewise.
24287         * tests/test-truncl.c: Likewise.
24288         * tests/test-uname.c: Likewise.
24289         * tests/test-unlink.c: Likewise.
24290         * tests/test-unlinkat.c: Likewise.
24291         * tests/test-unsetenv.c: Likewise.
24292         * tests/test-usleep.c: Likewise.
24293         * tests/test-utimens.c: Likewise.
24294         * tests/test-utimensat.c: Likewise.
24295         * tests/test-vasnprintf-posix.c: Likewise.
24296         * tests/test-vasnprintf-posix2.c: Likewise.
24297         * tests/test-vasnprintf.c: Likewise.
24298         * tests/test-vasprintf-posix.c: Likewise.
24299         * tests/test-vasprintf.c: Likewise.
24300         * tests/test-vdprintf-posix.c: Likewise.
24301         * tests/test-vfprintf-posix.c: Likewise.
24302         * tests/test-vprintf-posix.c: Likewise.
24303         * tests/test-vsnprintf-posix.c: Likewise.
24304         * tests/test-vsnprintf.c: Likewise.
24305         * tests/test-vsprintf-posix.c: Likewise.
24306         * tests/test-wcrtomb.c: Likewise.
24307         * tests/test-wcsnrtombs.c: Likewise.
24308         * tests/test-wcsrtombs.c: Likewise.
24309         * tests/test-wctype.c: Likewise.
24310         * tests/test-wcwidth.c: Likewise.
24311         * tests/test-xfprintf-posix.c: Likewise.
24312         * tests/test-xmemdup0.c: Likewise.
24313         * tests/test-xprintf-posix.c: Likewise.
24314         * tests/test-xvasprintf.c: Likewise.
24315         * tests/unicase/test-locale-language.c: Likewise.
24316         * tests/unicase/test-mapping-part1.h: Likewise.
24317         * tests/unicase/test-predicate-part1.h: Likewise.
24318         * tests/unicase/test-u8-casecmp.c: Likewise.
24319         * tests/unicase/test-u8-casecoll.c: Likewise.
24320         * tests/unicase/test-u8-casefold.c: Likewise.
24321         * tests/unicase/test-u8-is-cased.c: Likewise.
24322         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24323         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24324         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24325         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24326         * tests/unicase/test-u8-tolower.c: Likewise.
24327         * tests/unicase/test-u8-totitle.c: Likewise.
24328         * tests/unicase/test-u8-toupper.c: Likewise.
24329         * tests/unicase/test-u16-casecmp.c: Likewise.
24330         * tests/unicase/test-u16-casecoll.c: Likewise.
24331         * tests/unicase/test-u16-casefold.c: Likewise.
24332         * tests/unicase/test-u16-is-cased.c: Likewise.
24333         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24334         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24335         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24336         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24337         * tests/unicase/test-u16-tolower.c: Likewise.
24338         * tests/unicase/test-u16-totitle.c: Likewise.
24339         * tests/unicase/test-u16-toupper.c: Likewise.
24340         * tests/unicase/test-u32-casecmp.c: Likewise.
24341         * tests/unicase/test-u32-casecoll.c: Likewise.
24342         * tests/unicase/test-u32-casefold.c: Likewise.
24343         * tests/unicase/test-u32-is-cased.c: Likewise.
24344         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24345         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24346         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24347         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24348         * tests/unicase/test-u32-tolower.c: Likewise.
24349         * tests/unicase/test-u32-totitle.c: Likewise.
24350         * tests/unicase/test-u32-toupper.c: Likewise.
24351         * tests/unicase/test-ulc-casecmp.c: Likewise.
24352         * tests/unicase/test-ulc-casecoll.c: Likewise.
24353         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24354         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24355         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24356         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24357         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24358         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24359         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24360         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24361         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24362         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24363         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24364         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24365         * tests/unictype/test-bidi_byname.c: Likewise.
24366         * tests/unictype/test-bidi_name.c: Likewise.
24367         * tests/unictype/test-bidi_of.c: Likewise.
24368         * tests/unictype/test-bidi_test.c: Likewise.
24369         * tests/unictype/test-block_list.c: Likewise.
24370         * tests/unictype/test-block_of.c: Likewise.
24371         * tests/unictype/test-block_test.c: Likewise.
24372         * tests/unictype/test-categ_and.c: Likewise.
24373         * tests/unictype/test-categ_and_not.c: Likewise.
24374         * tests/unictype/test-categ_byname.c: Likewise.
24375         * tests/unictype/test-categ_name.c: Likewise.
24376         * tests/unictype/test-categ_none.c: Likewise.
24377         * tests/unictype/test-categ_of.c: Likewise.
24378         * tests/unictype/test-categ_or.c: Likewise.
24379         * tests/unictype/test-categ_test_withtable.c: Likewise.
24380         * tests/unictype/test-combining.c: Likewise.
24381         * tests/unictype/test-decdigit.c: Likewise.
24382         * tests/unictype/test-digit.c: Likewise.
24383         * tests/unictype/test-mirror.c: Likewise.
24384         * tests/unictype/test-numeric.c: Likewise.
24385         * tests/unictype/test-pr_byname.c: Likewise.
24386         * tests/unictype/test-pr_test.c: Likewise.
24387         * tests/unictype/test-predicate-part1.h: Likewise.
24388         * tests/unictype/test-scripts.c: Likewise.
24389         * tests/unictype/test-sy_c_ident.c: Likewise.
24390         * tests/unictype/test-sy_java_ident.c: Likewise.
24391         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24392         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24393         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24394         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24395         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24396         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24397         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24398         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24399         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24400         * tests/uninorm/test-compat-decomposition.c: Likewise.
24401         * tests/uninorm/test-composition.c: Likewise.
24402         * tests/uninorm/test-decomposing-form.c: Likewise.
24403         * tests/uninorm/test-decomposition.c: Likewise.
24404         * tests/uninorm/test-u8-nfc.c: Likewise.
24405         * tests/uninorm/test-u8-nfd.c: Likewise.
24406         * tests/uninorm/test-u8-nfkc.c: Likewise.
24407         * tests/uninorm/test-u8-nfkd.c: Likewise.
24408         * tests/uninorm/test-u8-normcmp.c: Likewise.
24409         * tests/uninorm/test-u8-normcoll.c: Likewise.
24410         * tests/uninorm/test-u16-nfc.c: Likewise.
24411         * tests/uninorm/test-u16-nfd.c: Likewise.
24412         * tests/uninorm/test-u16-nfkc.c: Likewise.
24413         * tests/uninorm/test-u16-nfkd.c: Likewise.
24414         * tests/uninorm/test-u16-normcmp.c: Likewise.
24415         * tests/uninorm/test-u16-normcoll.c: Likewise.
24416         * tests/uninorm/test-u32-nfc.c: Likewise.
24417         * tests/uninorm/test-u32-nfd.c: Likewise.
24418         * tests/uninorm/test-u32-nfkc.c: Likewise.
24419         * tests/uninorm/test-u32-nfkd.c: Likewise.
24420         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24421         * tests/uninorm/test-u32-normcmp.c: Likewise.
24422         * tests/uninorm/test-u32-normcoll.c: Likewise.
24423         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24424         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24425         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24426         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24427         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24428         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24429         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24430         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24431         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24432         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24433         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24434         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24435         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24436         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24437         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24438         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24439         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24440         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24441         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24442         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24443         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24444         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24445         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24446         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24447         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24448         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24449         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24450         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24451         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24452         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24453         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24454         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24455         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24456         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24457         * tests/uniwidth/test-u8-width.c: Likewise.
24458         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24459         * tests/uniwidth/test-u16-width.c: Likewise.
24460         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24461         * tests/uniwidth/test-u32-width.c: Likewise.
24462         * tests/uniwidth/test-uc_width.c: Likewise.
24463         * tests/uniwidth/test-uc_width2.c: Likewise.
24464         * modules/acl-tests (Files): Add tests/macros.h.
24465         * modules/areadlink-tests (Files): Likewise.
24466         * modules/areadlink-with-size-tests (Files): Likewise.
24467         * modules/areadlinkat-tests (Files): Likewise.
24468         * modules/areadlinkat-with-size-tests (Files): Likewise.
24469         * modules/argmatch-tests (Files): Likewise.
24470         * modules/argv-iter-tests (Files): Likewise.
24471         * modules/array-list-tests (Files): Likewise.
24472         * modules/array-mergesort-tests (Files): Likewise.
24473         * modules/array-oset-tests (Files): Likewise.
24474         * modules/avltree-list-tests (Files): Likewise.
24475         * modules/avltree-oset-tests (Files): Likewise.
24476         * modules/avltreehash-list-tests (Files): Likewise.
24477         * modules/base64-tests (Files): Likewise.
24478         * modules/binary-io-tests (Files): Likewise.
24479         * modules/bitrotate-tests (Files): Likewise.
24480         * modules/btowc-tests (Files): Likewise.
24481         * modules/byteswap-tests (Files): Likewise.
24482         * modules/c-ctype-tests (Files): Likewise.
24483         * modules/c-stack-tests (Files): Likewise.
24484         * modules/c-strcase-tests (Files): Likewise.
24485         * modules/c-strcasestr-tests (Files): Likewise.
24486         * modules/c-strstr-tests (Files): Likewise.
24487         * modules/canonicalize-lgpl-tests (Files): Likewise.
24488         * modules/canonicalize-tests (Files): Likewise.
24489         * modules/carray-list-tests (Files): Likewise.
24490         * modules/ceilf-tests (Files): Likewise.
24491         * modules/ceill-tests (Files): Likewise.
24492         * modules/chown-tests (Files): Likewise.
24493         * modules/cloexec-tests (Files): Likewise.
24494         * modules/copy-file-tests (Files): Likewise.
24495         * modules/count-one-bits-tests (Files): Likewise.
24496         * modules/dprintf-posix-tests (Files): Likewise.
24497         * modules/dup2-tests (Files): Likewise.
24498         * modules/dup3-tests (Files): Likewise.
24499         * modules/duplocale-tests (Files): Likewise.
24500         * modules/fbufmode-tests (Files): Likewise.
24501         * modules/fchdir-tests (Files): Likewise.
24502         * modules/fcntl-safer-tests (Files): Likewise.
24503         * modules/fcntl-tests (Files): Likewise.
24504         * modules/fdopendir-tests (Files): Likewise.
24505         * modules/fdutimensat-tests (Files): Likewise.
24506         * modules/fflush-tests (Files): Likewise.
24507         * modules/filevercmp-tests (Files): Likewise.
24508         * modules/flock-tests (Files): Likewise.
24509         * modules/floorf-tests (Files): Likewise.
24510         * modules/floorl-tests (Files): Likewise.
24511         * modules/fnmatch-tests (Files): Likewise.
24512         * modules/fopen-safer-tests (Files): Likewise.
24513         * modules/fopen-tests (Files): Likewise.
24514         * modules/fpending-tests (Files): Likewise.
24515         * modules/fprintf-posix-tests (Files): Likewise.
24516         * modules/fpurge-tests (Files): Likewise.
24517         * modules/freadable-tests (Files): Likewise.
24518         * modules/freadahead-tests (Files): Likewise.
24519         * modules/freading-tests (Files): Likewise.
24520         * modules/freadptr-tests (Files): Likewise.
24521         * modules/freadseek-tests (Files): Likewise.
24522         * modules/freopen-tests (Files): Likewise.
24523         * modules/frexp-nolibm-tests (Files): Likewise.
24524         * modules/frexp-tests (Files): Likewise.
24525         * modules/frexpl-nolibm-tests (Files): Likewise.
24526         * modules/frexpl-tests (Files): Likewise.
24527         * modules/fseek-tests (Files): Likewise.
24528         * modules/fseeko-tests (Files): Likewise.
24529         * modules/fstrcmp-tests (Files): Likewise.
24530         * modules/fsync-tests (Files): Likewise.
24531         * modules/ftell-tests (Files): Likewise.
24532         * modules/ftello-tests (Files): Likewise.
24533         * modules/func-tests (Files): Likewise.
24534         * modules/futimens-tests (Files): Likewise.
24535         * modules/fwritable-tests (Files): Likewise.
24536         * modules/fwriting-tests (Files): Likewise.
24537         * modules/getcwd-tests (Files): Likewise.
24538         * modules/getdate-tests (Files): Likewise.
24539         * modules/getdelim-tests (Files): Likewise.
24540         * modules/getdtablesize-tests (Files): Likewise.
24541         * modules/getgroups-tests (Files): Likewise.
24542         * modules/getline-tests (Files): Likewise.
24543         * modules/getndelim2-tests (Files): Likewise.
24544         * modules/glob-tests (Files): Likewise.
24545         * modules/hash-tests (Files): Likewise.
24546         * modules/i-ring-tests (Files): Likewise.
24547         * modules/iconv-tests (Files): Likewise.
24548         * modules/iconv_open-utf-tests (Files): Likewise.
24549         * modules/idpriv-drop-tests (Files): Likewise.
24550         * modules/idpriv-droptemp-tests (Files): Likewise.
24551         * modules/inet_ntop-tests (Files): Likewise.
24552         * modules/inet_pton-tests (Files): Likewise.
24553         * modules/isblank-tests (Files): Likewise.
24554         * modules/isfinite-tests (Files): Likewise.
24555         * modules/isinf-tests (Files): Likewise.
24556         * modules/isnan-tests (Files): Likewise.
24557         * modules/isnand-nolibm-tests (Files): Likewise.
24558         * modules/isnand-tests (Files): Likewise.
24559         * modules/isnanf-nolibm-tests (Files): Likewise.
24560         * modules/isnanf-tests (Files): Likewise.
24561         * modules/isnanl-nolibm-tests (Files): Likewise.
24562         * modules/isnanl-tests (Files): Likewise.
24563         * modules/lchown-tests (Files): Likewise.
24564         * modules/ldexpl-tests (Files): Likewise.
24565         * modules/link-tests (Files): Likewise.
24566         * modules/linkat-tests (Files): Likewise.
24567         * modules/linked-list-tests (Files): Likewise.
24568         * modules/linkedhash-list-tests (Files): Likewise.
24569         * modules/localename-tests (Files): Likewise.
24570         * modules/lseek-tests (Files): Likewise.
24571         * modules/lstat-tests (Files): Likewise.
24572         * modules/mbmemcasecmp-tests (Files): Likewise.
24573         * modules/mbmemcasecoll-tests (Files): Likewise.
24574         * modules/mbrtowc-tests (Files): Likewise.
24575         * modules/mbscasecmp-tests (Files): Likewise.
24576         * modules/mbscasestr-tests (Files): Likewise.
24577         * modules/mbschr-tests (Files): Likewise.
24578         * modules/mbscspn-tests (Files): Likewise.
24579         * modules/mbsinit-tests (Files): Likewise.
24580         * modules/mbsncasecmp-tests (Files): Likewise.
24581         * modules/mbsnrtowcs-tests (Files): Likewise.
24582         * modules/mbspbrk-tests (Files): Likewise.
24583         * modules/mbspcasecmp-tests (Files): Likewise.
24584         * modules/mbsrchr-tests (Files): Likewise.
24585         * modules/mbsrtowcs-tests (Files): Likewise.
24586         * modules/mbsspn-tests (Files): Likewise.
24587         * modules/mbsstr-tests (Files): Likewise.
24588         * modules/memchr-tests (Files): Likewise.
24589         * modules/memchr2-tests (Files): Likewise.
24590         * modules/memcmp-tests (Files): Likewise.
24591         * modules/memmem-tests (Files): Likewise.
24592         * modules/memrchr-tests (Files): Likewise.
24593         * modules/mkdir-tests (Files): Likewise.
24594         * modules/mkfifo-tests (Files): Likewise.
24595         * modules/mkfifoat-tests (Files): Likewise.
24596         * modules/mknod-tests (Files): Likewise.
24597         * modules/nanosleep-tests (Files): Likewise.
24598         * modules/nl_langinfo-tests (Files): Likewise.
24599         * modules/obstack-printf-tests (Files): Likewise.
24600         * modules/open-tests (Files): Likewise.
24601         * modules/openat-tests (Files): Likewise.
24602         * modules/pipe-filter-gi-tests (Files): Likewise.
24603         * modules/pipe-filter-ii-tests (Files): Likewise.
24604         * modules/pipe2-tests (Files): Likewise.
24605         * modules/popen-safer-tests (Files): Likewise.
24606         * modules/popen-tests (Files): Likewise.
24607         * modules/posixtm-tests (Files): Likewise.
24608         * modules/pread-tests (Files): Likewise.
24609         * modules/printf-frexp-tests (Files): Likewise.
24610         * modules/printf-frexpl-tests (Files): Likewise.
24611         * modules/printf-posix-tests (Files): Likewise.
24612         * modules/priv-set-tests (Files): Likewise.
24613         * modules/quotearg-tests (Files): Likewise.
24614         * modules/random_r-tests (Files): Likewise.
24615         * modules/rawmemchr-tests (Files): Likewise.
24616         * modules/rbtree-list-tests (Files): Likewise.
24617         * modules/rbtree-oset-tests (Files): Likewise.
24618         * modules/rbtreehash-list-tests (Files): Likewise.
24619         * modules/readlink-tests (Files): Likewise.
24620         * modules/remove-tests (Files): Likewise.
24621         * modules/rename-tests (Files): Likewise.
24622         * modules/renameat-tests (Files): Likewise.
24623         * modules/rmdir-tests (Files): Likewise.
24624         * modules/round-tests (Files): Likewise.
24625         * modules/roundf-tests (Files): Likewise.
24626         * modules/roundl-tests (Files): Likewise.
24627         * modules/safe-alloc-tests (Files): Likewise.
24628         * modules/setenv-tests (Files): Likewise.
24629         * modules/sigaction-tests (Files): Likewise.
24630         * modules/signbit-tests (Files): Likewise.
24631         * modules/sleep-tests (Files): Likewise.
24632         * modules/snprintf-posix-tests (Files): Likewise.
24633         * modules/snprintf-tests (Files): Likewise.
24634         * modules/sprintf-posix-tests (Files): Likewise.
24635         * modules/stat-tests (Files): Likewise.
24636         * modules/stat-time-tests (Files): Likewise.
24637         * modules/strcasestr-tests (Files): Likewise.
24638         * modules/strchrnul-tests (Files): Likewise.
24639         * modules/strerror-tests (Files): Likewise.
24640         * modules/striconv-tests (Files): Likewise.
24641         * modules/striconveh-tests (Files): Likewise.
24642         * modules/striconveha-tests (Files): Likewise.
24643         * modules/strsignal-tests (Files): Likewise.
24644         * modules/strstr-tests (Files): Likewise.
24645         * modules/strtod-tests (Files): Likewise.
24646         * modules/strverscmp-tests (Files): Likewise.
24647         * modules/symlink-tests (Files): Likewise.
24648         * modules/symlinkat-tests (Files): Likewise.
24649         * modules/trunc-tests (Files): Likewise.
24650         * modules/truncf-tests (Files): Likewise.
24651         * modules/truncl-tests (Files): Likewise.
24652         * modules/uname-tests (Files): Likewise.
24653         * modules/unicase/cased-tests (Files): Likewise.
24654         * modules/unicase/ignorable-tests (Files): Likewise.
24655         * modules/unicase/locale-language-tests (Files): Likewise.
24656         * modules/unicase/tolower-tests (Files): Likewise.
24657         * modules/unicase/totitle-tests (Files): Likewise.
24658         * modules/unicase/toupper-tests (Files): Likewise.
24659         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24660         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24661         * modules/unicase/u8-casefold-tests (Files): Likewise.
24662         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24663         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24664         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24665         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24666         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24667         * modules/unicase/u8-tolower-tests (Files): Likewise.
24668         * modules/unicase/u8-totitle-tests (Files): Likewise.
24669         * modules/unicase/u8-toupper-tests (Files): Likewise.
24670         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24671         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24672         * modules/unicase/u16-casefold-tests (Files): Likewise.
24673         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24674         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24675         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24676         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24677         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24678         * modules/unicase/u16-tolower-tests (Files): Likewise.
24679         * modules/unicase/u16-totitle-tests (Files): Likewise.
24680         * modules/unicase/u16-toupper-tests (Files): Likewise.
24681         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24682         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24683         * modules/unicase/u32-casefold-tests (Files): Likewise.
24684         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24685         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24686         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24687         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24688         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24689         * modules/unicase/u32-tolower-tests (Files): Likewise.
24690         * modules/unicase/u32-totitle-tests (Files): Likewise.
24691         * modules/unicase/u32-toupper-tests (Files): Likewise.
24692         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24693         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24694         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24695         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24696         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24697         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24698         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24699         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24700         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24701         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24702         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24703         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24704         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24705         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24706         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24707         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24708         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24709         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24710         * modules/unictype/block-list-tests (Files): Likewise.
24711         * modules/unictype/block-of-tests (Files): Likewise.
24712         * modules/unictype/block-test-tests (Files): Likewise.
24713         * modules/unictype/category-C-tests (Files): Likewise.
24714         * modules/unictype/category-Cc-tests (Files): Likewise.
24715         * modules/unictype/category-Cf-tests (Files): Likewise.
24716         * modules/unictype/category-Cn-tests (Files): Likewise.
24717         * modules/unictype/category-Co-tests (Files): Likewise.
24718         * modules/unictype/category-Cs-tests (Files): Likewise.
24719         * modules/unictype/category-L-tests (Files): Likewise.
24720         * modules/unictype/category-Ll-tests (Files): Likewise.
24721         * modules/unictype/category-Lm-tests (Files): Likewise.
24722         * modules/unictype/category-Lo-tests (Files): Likewise.
24723         * modules/unictype/category-Lt-tests (Files): Likewise.
24724         * modules/unictype/category-Lu-tests (Files): Likewise.
24725         * modules/unictype/category-M-tests (Files): Likewise.
24726         * modules/unictype/category-Mc-tests (Files): Likewise.
24727         * modules/unictype/category-Me-tests (Files): Likewise.
24728         * modules/unictype/category-Mn-tests (Files): Likewise.
24729         * modules/unictype/category-N-tests (Files): Likewise.
24730         * modules/unictype/category-Nd-tests (Files): Likewise.
24731         * modules/unictype/category-Nl-tests (Files): Likewise.
24732         * modules/unictype/category-No-tests (Files): Likewise.
24733         * modules/unictype/category-P-tests (Files): Likewise.
24734         * modules/unictype/category-Pc-tests (Files): Likewise.
24735         * modules/unictype/category-Pd-tests (Files): Likewise.
24736         * modules/unictype/category-Pe-tests (Files): Likewise.
24737         * modules/unictype/category-Pf-tests (Files): Likewise.
24738         * modules/unictype/category-Pi-tests (Files): Likewise.
24739         * modules/unictype/category-Po-tests (Files): Likewise.
24740         * modules/unictype/category-Ps-tests (Files): Likewise.
24741         * modules/unictype/category-S-tests (Files): Likewise.
24742         * modules/unictype/category-Sc-tests (Files): Likewise.
24743         * modules/unictype/category-Sk-tests (Files): Likewise.
24744         * modules/unictype/category-Sm-tests (Files): Likewise.
24745         * modules/unictype/category-So-tests (Files): Likewise.
24746         * modules/unictype/category-Z-tests (Files): Likewise.
24747         * modules/unictype/category-Zl-tests (Files): Likewise.
24748         * modules/unictype/category-Zp-tests (Files): Likewise.
24749         * modules/unictype/category-Zs-tests (Files): Likewise.
24750         * modules/unictype/category-and-not-tests (Files): Likewise.
24751         * modules/unictype/category-and-tests (Files): Likewise.
24752         * modules/unictype/category-byname-tests (Files): Likewise.
24753         * modules/unictype/category-name-tests (Files): Likewise.
24754         * modules/unictype/category-none-tests (Files): Likewise.
24755         * modules/unictype/category-of-tests (Files): Likewise.
24756         * modules/unictype/category-or-tests (Files): Likewise.
24757         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24758         * modules/unictype/combining-class-tests (Files): Likewise.
24759         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24760         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24761         * modules/unictype/ctype-blank-tests (Files): Likewise.
24762         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24763         * modules/unictype/ctype-digit-tests (Files): Likewise.
24764         * modules/unictype/ctype-graph-tests (Files): Likewise.
24765         * modules/unictype/ctype-lower-tests (Files): Likewise.
24766         * modules/unictype/ctype-print-tests (Files): Likewise.
24767         * modules/unictype/ctype-punct-tests (Files): Likewise.
24768         * modules/unictype/ctype-space-tests (Files): Likewise.
24769         * modules/unictype/ctype-upper-tests (Files): Likewise.
24770         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24771         * modules/unictype/decimal-digit-tests (Files): Likewise.
24772         * modules/unictype/digit-tests (Files): Likewise.
24773         * modules/unictype/mirror-tests (Files): Likewise.
24774         * modules/unictype/numeric-tests (Files): Likewise.
24775         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24776         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24777         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24778         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24779         Likewise.
24780         * modules/unictype/property-bidi-block-separator-tests (Files):
24781         Likewise.
24782         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24783         Likewise.
24784         * modules/unictype/property-bidi-common-separator-tests (Files):
24785         Likewise.
24786         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24787         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24788         Likewise.
24789         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24790         Likewise.
24791         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24792         Likewise.
24793         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24794         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24795         Likewise.
24796         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24797         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24798         Likewise.
24799         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24800         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24801         * modules/unictype/property-bidi-segment-separator-tests (Files):
24802         Likewise.
24803         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24804         * modules/unictype/property-byname-tests (Files): Likewise.
24805         * modules/unictype/property-combining-tests (Files): Likewise.
24806         * modules/unictype/property-composite-tests (Files): Likewise.
24807         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24808         * modules/unictype/property-dash-tests (Files): Likewise.
24809         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24810         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24811         Likewise.
24812         * modules/unictype/property-deprecated-tests (Files): Likewise.
24813         * modules/unictype/property-diacritic-tests (Files): Likewise.
24814         * modules/unictype/property-extender-tests (Files): Likewise.
24815         * modules/unictype/property-format-control-tests (Files): Likewise.
24816         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24817         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24818         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24819         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24820         * modules/unictype/property-hyphen-tests (Files): Likewise.
24821         * modules/unictype/property-id-continue-tests (Files): Likewise.
24822         * modules/unictype/property-id-start-tests (Files): Likewise.
24823         * modules/unictype/property-ideographic-tests (Files): Likewise.
24824         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24825         * modules/unictype/property-ids-trinary-operator-tests (Files):
24826         Likewise.
24827         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24828         * modules/unictype/property-iso-control-tests (Files): Likewise.
24829         * modules/unictype/property-join-control-tests (Files): Likewise.
24830         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24831         * modules/unictype/property-line-separator-tests (Files): Likewise.
24832         * modules/unictype/property-logical-order-exception-tests (Files):
24833         Likewise.
24834         * modules/unictype/property-lowercase-tests (Files): Likewise.
24835         * modules/unictype/property-math-tests (Files): Likewise.
24836         * modules/unictype/property-non-break-tests (Files): Likewise.
24837         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24838         * modules/unictype/property-numeric-tests (Files): Likewise.
24839         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24840         * modules/unictype/property-other-default-ignorable-code-point-tests
24841         (Files): Likewise.
24842         * modules/unictype/property-other-grapheme-extend-tests (Files):
24843         Likewise.
24844         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24845         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24846         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24847         * modules/unictype/property-other-math-tests (Files): Likewise.
24848         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24849         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24850         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24851         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24852         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24853         * modules/unictype/property-private-use-tests (Files): Likewise.
24854         * modules/unictype/property-punctuation-tests (Files): Likewise.
24855         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24856         * modules/unictype/property-radical-tests (Files): Likewise.
24857         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24858         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24859         * modules/unictype/property-space-tests (Files): Likewise.
24860         * modules/unictype/property-terminal-punctuation-tests (Files):
24861         Likewise.
24862         * modules/unictype/property-test-tests (Files): Likewise.
24863         * modules/unictype/property-titlecase-tests (Files): Likewise.
24864         * modules/unictype/property-unassigned-code-value-tests (Files):
24865         Likewise.
24866         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24867         * modules/unictype/property-uppercase-tests (Files): Likewise.
24868         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24869         * modules/unictype/property-white-space-tests (Files): Likewise.
24870         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24871         * modules/unictype/property-xid-start-tests (Files): Likewise.
24872         * modules/unictype/property-zero-width-tests (Files): Likewise.
24873         * modules/unictype/scripts-tests (Files): Likewise.
24874         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24875         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24876         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24877         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24878         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24879         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24880         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24881         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24882         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24883         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24884         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24885         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24886         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24887         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24888         * modules/uninorm/composition-tests (Files): Likewise.
24889         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24890         * modules/uninorm/decomposition-tests (Files): Likewise.
24891         * modules/uninorm/filter-tests (Files): Likewise.
24892         * modules/uninorm/nfc-tests (Files): Likewise.
24893         * modules/uninorm/nfd-tests (Files): Likewise.
24894         * modules/uninorm/nfkc-tests (Files): Likewise.
24895         * modules/uninorm/nfkd-tests (Files): Likewise.
24896         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24897         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24898         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24899         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24900         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24901         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24902         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24903         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24904         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24905         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24906         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24907         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24908         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24909         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24910         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24911         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24912         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24913         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24914         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24915         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24916         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24917         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24918         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24919         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24920         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24921         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24922         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24923         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24924         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24925         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24926         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24927         * modules/uniwidth/u8-width-tests (Files): Likewise.
24928         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24929         * modules/uniwidth/u16-width-tests (Files): Likewise.
24930         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24931         * modules/uniwidth/u32-width-tests (Files): Likewise.
24932         * modules/uniwidth/width-tests (Files): Likewise.
24933         * modules/unlink-tests (Files): Likewise.
24934         * modules/unsetenv-tests (Files): Likewise.
24935         * modules/usleep-tests (Files): Likewise.
24936         * modules/utimens-tests (Files): Likewise.
24937         * modules/utimensat-tests (Files): Likewise.
24938         * modules/vasnprintf-posix-tests (Files): Likewise.
24939         * modules/vasnprintf-tests (Files): Likewise.
24940         * modules/vasprintf-posix-tests (Files): Likewise.
24941         * modules/vasprintf-tests (Files): Likewise.
24942         * modules/vdprintf-posix-tests (Files): Likewise.
24943         * modules/vfprintf-posix-tests (Files): Likewise.
24944         * modules/vprintf-posix-tests (Files): Likewise.
24945         * modules/vsnprintf-posix-tests (Files): Likewise.
24946         * modules/vsnprintf-tests (Files): Likewise.
24947         * modules/vsprintf-posix-tests (Files): Likewise.
24948         * modules/wcrtomb-tests (Files): Likewise.
24949         * modules/wcsnrtombs-tests (Files): Likewise.
24950         * modules/wcsrtombs-tests (Files): Likewise.
24951         * modules/wctype-tests (Files): Likewise.
24952         * modules/wcwidth-tests (Files): Likewise.
24953         * modules/xmemdup0-tests (Files): Likewise.
24954         * modules/xprintf-posix-tests (Files): Likewise.
24955         * modules/xvasprintf-tests (Files): Likewise.
24956
24957 2009-12-24  Eric Blake  <ebb9@byu.net>
24958
24959         test-nanosleep: fix typo
24960         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24961         patch.
24962         Reported by Bruno Haible.
24963
24964 2009-12-24  Bruno Haible  <bruno@clisp.org>
24965
24966         Reduce namespace pollution on glibc systems.
24967         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24968         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24969         systems.
24970         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24971         <getopt.h> on glibc systems.
24972         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24973         systems.
24974         * lib/fcntl.c: Include <unistd.h> here instead.
24975
24976 2009-12-24  Bruno Haible  <bruno@clisp.org>
24977
24978         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24979
24980 2009-12-24  Eric Blake  <ebb9@byu.net>
24981
24982         tests: add signature checks
24983         * tests/signature.h (SIGNATURE_CHECK): New file.
24984         * modules/atexit-tests (Files): Use it.
24985         * modules/btowc-tests (Files): Likewise.
24986         * modules/canonicalize-lgpl-tests (Files): Likewise.
24987         * modules/ceilf-tests (Files): Likewise.
24988         * modules/ceill-tests (Files): Likewise.
24989         * modules/chown-tests (Files): Likewise.
24990         * modules/dprintf-posix-tests (Files): Likewise.
24991         * modules/dup2-tests (Files): Likewise.
24992         * modules/dup3-tests (Files): Likewise.
24993         * modules/duplocale-tests (Files): Likewise.
24994         * modules/fchdir-tests (Files): Likewise.
24995         * modules/fcntl-tests (Files): Likewise.
24996         * modules/fdopendir-tests (Files): Likewise.
24997         * modules/fflush-tests (Files): Likewise.
24998         * modules/flock-tests (Files): Likewise.
24999         * modules/floorf-tests (Files): Likewise.
25000         * modules/floorl-tests (Files): Likewise.
25001         * modules/fnmatch-tests (Files): Likewise.
25002         * modules/fopen-tests (Files): Likewise.
25003         * modules/fprintf-posix-tests (Files): Likewise.
25004         * modules/freopen-tests (Files): Likewise.
25005         * modules/frexp-nolibm-tests (Files): Likewise.
25006         * modules/frexp-tests (Files): Likewise.
25007         * modules/frexpl-nolibm-tests (Files): Likewise.
25008         * modules/frexpl-tests (Files): Likewise.
25009         * modules/fseek-tests (Files): Likewise.
25010         * modules/fseeko-tests (Files): Likewise.
25011         * modules/fsync-tests (Files): Likewise.
25012         * modules/ftell-tests (Files): Likewise.
25013         * modules/ftello-tests (Files): Likewise.
25014         * modules/futimens-tests (Files): Likewise.
25015         * modules/getaddrinfo-tests (Files): Likewise.
25016         * modules/getcwd-tests (Files): Likewise.
25017         * modules/getdelim-tests (Files): Likewise.
25018         * modules/getdtablesize-tests (Files): Likewise.
25019         * modules/getgroups-tests (Files): Likewise.
25020         * modules/gethostname-tests (Files): Likewise.
25021         * modules/getline-tests (Files): Likewise.
25022         * modules/getopt-posix-tests (Files): Likewise.
25023         * modules/gettimeofday-tests (Files): Likewise.
25024         * modules/glob-tests (Files): Likewise.
25025         * modules/iconv-tests (Files): Likewise.
25026         * modules/inet_ntop-tests (Files): Likewise.
25027         * modules/inet_pton-tests (Files): Likewise.
25028         * modules/isblank-tests (Files): Likewise.
25029         * modules/lchown-tests (Files): Likewise.
25030         * modules/ldexpl-tests (Files): Likewise.
25031         * modules/link-tests (Files): Likewise.
25032         * modules/linkat-tests (Files): Likewise.
25033         * modules/lseek-tests (Files): Likewise.
25034         * modules/lstat-tests (Files): Likewise.
25035         * modules/mbrtowc-tests (Files): Likewise.
25036         * modules/mbsinit-tests (Files): Likewise.
25037         * modules/mbsnrtowcs-tests (Files): Likewise.
25038         * modules/mbsrtowcs-tests (Files): Likewise.
25039         * modules/memchr-tests (Files): Likewise.
25040         * modules/memcmp-tests (Files): Likewise.
25041         * modules/memmem-tests (Files): Likewise.
25042         * modules/memrchr-tests (Files): Likewise.
25043         * modules/mkdir-tests (Files): Likewise.
25044         * modules/mkfifo-tests (Files): Likewise.
25045         * modules/mkfifoat-tests (Files): Likewise.
25046         * modules/mknod-tests (Files): Likewise.
25047         * modules/nanosleep-tests (Files): Likewise.
25048         * modules/nl_langinfo-tests (Files): Likewise.
25049         * modules/obstack-printf-tests (Files): Likewise.
25050         * modules/open-tests (Files): Likewise.
25051         * modules/openat-tests (Files): Likewise.
25052         * modules/perror-tests (Files): Likewise.
25053         * modules/pipe2-tests (Files): Likewise.
25054         * modules/poll-tests (Files): Likewise.
25055         * modules/popen-tests (Files): Likewise.
25056         * modules/posix_spawn-tests (Files): Likewise.
25057         * modules/posix_spawnp-tests (Files): Likewise.
25058         * modules/pread-tests (Files): Likewise.
25059         * modules/printf-posix-tests (Files): Likewise.
25060         * modules/pty-tests (Files): Likewise.
25061         * modules/random_r-tests (Files): Likewise.
25062         * modules/rawmemchr-tests (Files): Likewise.
25063         * modules/readlink-tests (Files): Likewise.
25064         * modules/remove-tests (Files): Likewise.
25065         * modules/rename-tests (Files): Likewise.
25066         * modules/renameat-tests (Files): Likewise.
25067         * modules/rmdir-tests (Files): Likewise.
25068         * modules/round-tests (Files): Likewise.
25069         * modules/roundf-tests (Files): Likewise.
25070         * modules/roundl-tests (Files): Likewise.
25071         * modules/select-tests (Files): Likewise.
25072         * modules/setenv-tests (Files): Likewise.
25073         * modules/sigaction-tests (Files): Likewise.
25074         * modules/sleep-tests (Files): Likewise.
25075         * modules/snprintf-posix-tests (Files): Likewise.
25076         * modules/snprintf-tests (Files): Likewise.
25077         * modules/sprintf-posix-tests (Files): Likewise.
25078         * modules/stat-tests (Files): Likewise.
25079         * modules/strcasestr-tests (Files): Likewise.
25080         * modules/strchrnul-tests (Files): Likewise.
25081         * modules/strerror-tests (Files): Likewise.
25082         * modules/strsignal-tests (Files): Likewise.
25083         * modules/strstr-tests (Files): Likewise.
25084         * modules/strtod-tests (Files): Likewise.
25085         * modules/strverscmp-tests (Files): Likewise.
25086         * modules/symlink-tests (Files): Likewise.
25087         * modules/symlinkat-tests (Files): Likewise.
25088         * modules/times-tests (Files): Likewise.
25089         * modules/trunc-tests (Files): Likewise.
25090         * modules/truncf-tests (Files): Likewise.
25091         * modules/truncl-tests (Files): Likewise.
25092         * modules/tsearch-tests (Files): Likewise.
25093         * modules/uname-tests (Files): Likewise.
25094         * modules/unlink-tests (Files): Likewise.
25095         * modules/unsetenv-tests (Files): Likewise.
25096         * modules/usleep-tests (Files): Likewise.
25097         * modules/utimensat-tests (Files): Likewise.
25098         * modules/vasprintf-tests (Files): Likewise.
25099         * modules/vdprintf-posix-tests (Files): Likewise.
25100         * modules/vfprintf-posix-tests (Files): Likewise.
25101         * modules/vprintf-posix-tests (Files): Likewise.
25102         * modules/vsnprintf-posix-tests (Files): Likewise.
25103         * modules/vsnprintf-tests (Files): Likewise.
25104         * modules/vsprintf-posix-tests (Files): Likewise.
25105         * modules/wcrtomb-tests (Files): Likewise.
25106         * modules/wcsnrtombs-tests (Files): Likewise.
25107         * modules/wcsrtombs-tests (Files): Likewise.
25108         * modules/wcwidth-tests (Files): Likewise.
25109         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25110         * tests/test-isinf.c (isinf): Likewise.
25111         * tests/test-isnan.c (isnan): Likewise.
25112         * tests/test-signbit.c (signbit): Likewise.
25113         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25114         declaration, either as macro or with correct signature.
25115         (select): Ensure function under test is declared with correct
25116         signature in correct header.
25117         * tests/test-atexit.c (atexit): Likewise.
25118         * tests/test-btowc.c (btowc): Likewise.
25119         * tests/test-canonicalize-lgpl.c (realpath)
25120         (canonicalize_file_name): Likewise.
25121         * tests/test-ceilf1.c (ceilf): Likewise.
25122         * tests/test-ceill.c (ceill): Likewise.
25123         * tests/test-chown.c (chown): Likewise.
25124         * tests/test-dprintf-posix.c (dprintf): Likewise.
25125         * tests/test-dup2.c (dup2): Likewise.
25126         * tests/test-dup3.c (dup3): Likewise.
25127         * tests/test-duplocale.c (duplocale): Likewise.
25128         * tests/test-fchdir.c (fchdir): Likewise.
25129         * tests/test-fchownat.c (fchownat): Likewise.
25130         * tests/test-fcntl.c (fcntl): Likewise.
25131         * tests/test-fdopendir.c (fdopendir): Likewise.
25132         * tests/test-fflush.c (fflush): Likewise.
25133         * tests/test-flock.c (flock): Likewise.
25134         * tests/test-floorf1.c (floorf): Likewise.
25135         * tests/test-floorl.c (floorl): Likewise.
25136         * tests/test-fnmatch.c (fnmatch): Likewise.
25137         * tests/test-fopen.c (fopen): Likewise.
25138         * tests/test-fprintf-posix.c (fprintf): Likewise.
25139         * tests/test-freopen.c (freopen): Likewise.
25140         * tests/test-frexp.c (frexp): Likewise.
25141         * tests/test-frexpl.c (frexpl): Likewise.
25142         * tests/test-fseek.c (fseek): Likewise.
25143         * tests/test-fseeko.c (fseeko): Likewise.
25144         * tests/test-fstatat.c (fstatat): Likewise.
25145         * tests/test-fsync.c (fsync): Likewise.
25146         * tests/test-ftell.c (ftell): Likewise.
25147         * tests/test-ftello.c (ftello): Likewise.
25148         * tests/test-futimens.c (futimens): Likewise.
25149         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25150         (gai_strerror): Likewise.
25151         * tests/test-getcwd.c (getcwd): Likewise.
25152         * tests/test-getdelim.c (getdelim): Likewise.
25153         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25154         * tests/test-getgroups.c (getgroups): Likewise.
25155         * tests/test-gethostname.c (gethostname): Likewise.
25156         * tests/test-getline.c (getline): Likewise.
25157         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25158         Likewise.
25159         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25160         * tests/test-glob.c (glob, globfree): Likewise.
25161         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25162         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25163         * tests/test-inet_pton.c (inet_pton): Likewise.
25164         * tests/test-isblank.c (isblank): Likewise.
25165         * tests/test-lchown.c (lchown): Likewise.
25166         * tests/test-ldexpl.c (ldexpl): Likewise.
25167         * tests/test-link.c (link): Likewise.
25168         * tests/test-linkat.c (linkat): Likewise.
25169         * tests/test-lseek.c (lseek): Likewise.
25170         * tests/test-lstat.c (lstat): Likewise.
25171         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25172         * tests/test-mbsinit.c (mbsinit): Likewise.
25173         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25174         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25175         * tests/test-memchr.c (memchr): Likewise.
25176         * tests/test-memcmp.c (memcmp): Likewise.
25177         * tests/test-memmem.c (memmem): Likewise.
25178         * tests/test-memrchr.c (memrchr): Likewise.
25179         * tests/test-mkdir.c (mkdir): Likewise.
25180         * tests/test-mkdirat.c (mkdirat): Likewise.
25181         * tests/test-mkfifo.c (mkfifo): Likewise.
25182         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25183         * tests/test-mknod.c (mknod): Likewise.
25184         * tests/test-nanosleep.c (nanosleep): Likewise.
25185         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25186         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25187         Likewise.
25188         * tests/test-open.c (open): Likewise.
25189         * tests/test-openat.c (openat): Likewise.
25190         * tests/test-perror.c (perror): Likewise.
25191         * tests/test-pipe2.c (pipe2): Likewise.
25192         * tests/test-poll.c (poll): Likewise.
25193         * tests/test-popen.c (popen, pclose): Likewise.
25194         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25195         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25196         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25197         (posix_spawn_file_actions_destroy)
25198         (posix_spawn_file_actions_addclose)
25199         (posix_spawn_file_actions_addopen)
25200         (posix_spawn_file_actions_adddup2): Likewise.
25201         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25202         * tests/test-pread.c (pread): Likewise.
25203         * tests/test-printf-posix.c (printf): Likewise.
25204         * tests/test-pty.c (openpty, forkpty): Likewise.
25205         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25206         (random_r): Likewise.
25207         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25208         * tests/test-readlink.c (readlink): Likewise.
25209         * tests/test-remove.c (remove): Likewise.
25210         * tests/test-rename.c (rename): Likewise.
25211         * tests/test-renameat.c (renameat): Likewise.
25212         * tests/test-rmdir.c (rmdir): Likewise.
25213         * tests/test-round1.c (round): Likewise.
25214         * tests/test-roundf1.c (roundf): Likewise.
25215         * tests/test-roundl.c (roundl): Likewise.
25216         * tests/test-setenv.c (setenv): Likewise.
25217         * tests/test-sigaction.c (sigaction): Likewise.
25218         * tests/test-sleep.c (sleep): Likewise.
25219         * tests/test-snprintf.c (snprintf): Likewise.
25220         * tests/test-sprintf-posix.c (sprintf): Likewise.
25221         * tests/test-stat.c (stat): Likewise.
25222         * tests/test-stpncpy.c (stpncpy): Likewise.
25223         * tests/test-strcasestr.c (strcasestr): Likewise.
25224         * tests/test-strchrnul.c (strchrnul): Likewise.
25225         * tests/test-strerror.c (strerror): Likewise.
25226         * tests/test-strsignal.c (strsignal): Likewise.
25227         * tests/test-strstr.c (strstr): Likewise.
25228         * tests/test-strtod.c (strtod): Likewise.
25229         * tests/test-strverscmp.c (strverscmp): Likewise.
25230         * tests/test-symlink.c (symlink): Likewise.
25231         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25232         * tests/test-times.c (times): Likewise.
25233         * tests/test-trunc1.c (trunc): Likewise.
25234         * tests/test-truncf1.c (truncf): Likewise.
25235         * tests/test-truncl.c (truncl): Likewise.
25236         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25237         Likewise.
25238         * tests/test-uname.c (uname): Likewise.
25239         * tests/test-unlink.c (unlink): Likewise.
25240         * tests/test-unlinkat.c (unlinkat): Likewise.
25241         * tests/test-unsetenv.c (unsetenv): Likewise.
25242         * tests/test-usleep.c (usleep): Likewise.
25243         * tests/test-utimensat.c (utimensat): Likewise.
25244         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25245         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25246         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25247         * tests/test-vprintf-posix.c (vprintf): Likewise.
25248         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25249         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25250         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25251         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25252         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25253         * tests/test-wcwidth.c (wcwidth): Likewise.
25254
25255         build: pull in conditional headers during GNULIB_POSIXCHECK
25256         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25257         definitions from any conditionally-included headers.
25258         * lib/stdlib.in.h (includes): Likewise.
25259         * lib/unistd.in.h (includes): Likewise.
25260
25261 2009-12-24  Bruno Haible  <bruno@clisp.org>
25262
25263         * tests/test-argv-iter.c: Include header file being tested immediately
25264         after config.h.
25265         * tests/test-base64.c: Likewise.
25266         * tests/test-flock.c: Likewise.
25267         * tests/test-fsync.c: Likewise.
25268         * tests/test-getdate.c: Likewise.
25269         * tests/test-getndelim2.c: Likewise.
25270         * tests/test-isfinite.c: Likewise.
25271         * tests/test-isinf.c: Likewise.
25272         * tests/test-strerror.c: Likewise.
25273         * tests/test-strsignal.c: Likewise.
25274
25275 2009-12-23  Eric Blake  <ebb9@byu.net>
25276
25277         unistd: work around cygwin bug
25278         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25279         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25280         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25281
25282 2009-12-23  Bruno Haible  <bruno@clisp.org>
25283
25284         localename: More tests.
25285         * tests/test-localename.c (SIZEOF): New macro.
25286         (categories): New variable.
25287         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25288         test_locale_name_default): Add test w.r.t. thread locale.
25289         (test_locale_name_thread): New function.
25290         (main): Invoke it.
25291
25292         localename: Make aware of thread locale.
25293         * lib/localename.h (gl_locale_name_thread): New declaration.
25294         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25295         behaviour with respect to thread locale.
25296         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25297         <langinfo.h>, glthread/lock.h.
25298         (SIZE_BITS): New macro.
25299         (string_hash): New function.
25300         (struct hash_node): New type.
25301         (HASH_TABLE_SIZE): New macro.
25302         (struniq_hash_table, struniq_lock): New variables.
25303         (struniq): New function.
25304         (gl_locale_name_thread): New function.
25305         (gl_locale_name): Invoke it.
25306         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25307         * modules/localename (Depends-on): Add lock.
25308         Reported by Mike Gran <spk121@yahoo.com>.
25309
25310 2009-12-23  Eric Blake  <ebb9@byu.net>
25311
25312         va-args: new module
25313         * modules/va-args: New file.
25314         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25315         * MODULES.html.sh (Core language properties): Mention it.
25316
25317         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25318         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25319         named alias for __attribute__((__unused__)).
25320         * lib/chown.c: Update client.
25321         * lib/fchmodat.c: Likewise.
25322         * lib/fts.c: Likewise.
25323         * lib/getdate.y: Likewise.
25324         * lib/getgroups.c: Likewise.
25325         * lib/getopt.c: Likewise.
25326         * lib/getugroups.c: Likewise.
25327         * lib/mkdir.c: Likewise.
25328         * lib/mkfifo.c: Likewise.
25329         * lib/mkfifoat.c: Likewise.
25330         * lib/mknod.c: Likewise.
25331         * lib/mknodat.c: Likewise.
25332         * lib/readlink.c: Likewise.
25333         * lib/se-context.in.h: Likewise.
25334         * lib/se-selinux.in.h: Likewise.
25335         * lib/sockets.c: Likewise.
25336         * lib/symlink.c: Likewise.
25337         * lib/symlinkat.c: Likewise.
25338         * lib/unicodeio.c: Likewise.
25339         * lib/unistr.h: Likewise.
25340         * tests/test-areadlink.c: Likewise.
25341         * tests/test-areadlinkat.c: Likewise.
25342         * tests/test-filenamecat.c: Likewise.
25343         * tests/test-fseeko.c: Likewise.
25344         * tests/test-ftello.c: Likewise.
25345         * tests/test-getdate.c: Likewise.
25346         * tests/test-getgroups.c: Likewise.
25347         * tests/test-gethostname.c: Likewise.
25348         * tests/test-quotearg.c: Likewise.
25349         * tests/test-version-etc.c: Likewise.
25350         * tests/test-xalloc-die.c: Likewise.
25351         * tests/test-xfprintf-posix.c: Likewise.
25352         * tests/test-xprintf-posix.c: Likewise.
25353         * tests/test-xvasprintf.c: Likewise.
25354
25355         tests: avoid compiler warnings
25356         * tests/test-fcntl.c (main): Delete unused parameters.
25357         * tests/test-freopen-safer.c (main): Likewise.
25358         * tests/test-xalloc-die.c (main): Mark unused parameters.
25359         * tests/test-fseeko.c (main): Likewise.
25360         * tests/test-ftello.c (main): Likewise.
25361         * tests/test-nanosleep.c (main): Avoid declaration warning.
25362         * tests/test-sleep.c (main): Likewise.
25363         * tests/test-unsetenv.c (main): Silence warning about string
25364         literal.
25365         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25366
25367 2009-12-23  Bruno Haible  <bruno@clisp.org>
25368
25369         * tests/test-localename.c (test_locale_name): New function, extracted
25370         from main. Also test mixed situations.
25371         (test_locale_name_posix, test_locale_name_environ,
25372         test_locale_name_default): New functions.
25373         (main): Invoke them all.
25374         * modules/localename-tests (configure.ac): Test for newlocale.
25375
25376 2009-12-23  Bruno Haible  <bruno@clisp.org>
25377
25378         unistd: Ensure getcwd gets declared before being overridden.
25379         * lib/unistd.in.h: Conditionally include <io.h>.
25380
25381 2009-12-22  Bruno Haible  <bruno@clisp.org>
25382
25383         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25384         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25385         (gl_WCHAR_H): Invoke it.
25386         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25387         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25388         Reported by Karl Berry <karl@freefriends.org>.
25389
25390 2009-12-22  Eric Blake  <ebb9@byu.net>
25391
25392         math, unistd: avoid redundant includes
25393         * lib/math.in.h (isnan): No need to re-include <math.h>.
25394         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25395
25396         getsubopt: work around cygwin bug
25397         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25398         avoid conflicting with system getsubopt.
25399         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25400         bug.
25401
25402         getopt: synchronize from glibc
25403         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25404         parameter order.  Adjust all callers.
25405         (_getopt_internal_r, main): Adjust quoting in error messages.
25406         Drop considerations for outdated POSIX 1003.2 error message.
25407         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25408         callers.
25409         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25410
25411         test-getopt: test stderr behavior
25412         * modules/getopt-posix-tests (Depends-on): Add dup2.
25413         * tests/test-getopt.c (ASSERT): Avoid stderr.
25414         (main): Move stderr to a temporary file.
25415         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25416         Instead, add parameter to inform caller if output occurred.
25417         (test_getopt): Adjust all existing tests to expect silence, and
25418         add new tests of leading ":".
25419         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25420         glibc shortcomings with leading "-:" or "+:" in optstring.
25421         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25422         Likewise.
25423         * doc/posix-functions/getopt.texi (getopt): Likewise.
25424
25425         test-getopt: enhance test
25426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25427         supports optind=0.
25428         * tests/test-getopt.c (OPTIND_MIN): Move...
25429         * tests/test-getopt.h (OPTIND_MIN): ...here.
25430         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25431         Require that optind=0 works, since modern BSD supports it in
25432         addition to optreset, and since coreutils expects it.
25433         (test_getopt_long_only): New test.
25434         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25435         glibc shortcomings with 'W;', and enforcement of optind=0.
25436         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25437         Likewise.
25438
25439 2009-12-21  Bruno Haible  <bruno@clisp.org>
25440
25441         localename: Improvements for MacOS X and Cygwin.
25442         * lib/localename.h (gl_locale_name_environ): New declaration.
25443         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25444         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25445         (gl_locale_name_posix): Invoke it.
25446         (gl_locale_name_default): Add comments. Use Windows native API also on
25447         Cygwin.
25448
25449 2009-12-21  Bruno Haible  <bruno@clisp.org>
25450
25451         Update list of Win32 locale ids.
25452         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25453         (LANG_SAMI): Renamed from LANG_SAAMI.
25454         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25455         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25456         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25457         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25458         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25459         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25460         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25461         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25462         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25463         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25464         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25465         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25466         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25467         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25468         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25469         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25470         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25471         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25472         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25473         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25474         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25475         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25476         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25477         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25478         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25479         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25480         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25481         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25482         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25483         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25484         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25485         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25486         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25487         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25488         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25489         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25490         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25491         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25492         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25493         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25494         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25495         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25496         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25497         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25498         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25499         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25500         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25501         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25502         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25503         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25504         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25505         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25506         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25507         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25508         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25509         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25510         Add more languages and countries for Sami, Sorbian. Add more countries
25511         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25512         for Pashto. Change country for Syriac, Tswana.
25513
25514 2009-12-21  Eric Blake  <ebb9@byu.net>
25515
25516         test-utimens: avoid spurious failure
25517         * tests/test-chown.h (nap): Factor...
25518         * tests/nap.h: ...into new file.
25519         * tests/test-lchown.h (nap): Avoid duplication.
25520         * tests/test-utimens-common.h (nap): Use shared implementation,
25521         necessary on file systems with 1-second resolution.
25522         * modules/chown-tests (Files): Include new file.
25523         * modules/fdutimensat-tests (Files): Likewise.
25524         * modules/futimens-tests (Files): Likewise.
25525         * modules/lchown-tests (Files): Likewise.
25526         * modules/openat-tests (Files): Likewise.
25527         * modules/utimens-tests (Files): Likewise.
25528         * modules/utimensat-tests (Files): Likewise.
25529
25530 2009-12-19  Eric Blake  <ebb9@byu.net>
25531
25532         futimens, utimensat: work around Linux bug
25533         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25534         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25535         * lib/utimensat.c (rpl_utimensat): Work around it.
25536         * lib/futimens.c (rpl_futimens): Adjust comment.
25537
25538         utimens: work around Linux ctime bug
25539         * lib/utimens.c (detect_ctime_bug): New helper function.
25540         (update_timespec): Differentiate between workaround needed for
25541         this bug vs. what is needed for systems that lack utimensat.
25542         (fdutimens, lutimens): Work around bug.
25543
25544         utimens: check for ctime update
25545         * tests/test-utimens-common.h (check_ctime): Define.
25546         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25547         * tests/test-futimens.h (test_futimens): Likewise.
25548         * tests/test-lutimens.h (test_lutimens): Likewise.
25549         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25550         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25551
25552 2009-12-19  Bruno Haible  <bruno@clisp.org>
25553
25554         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25555         * tests/test-dprintf-posix2.sh: New file.
25556         * tests/test-dprintf-posix2.c: New file.
25557         * modules/dprintf-posix-tests (Files): Add them.
25558         (configure.ac): Check for getrlimit and setrlimit.
25559         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25560
25561 2009-12-19  Bruno Haible  <bruno@clisp.org>
25562
25563         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25564         * tests/test-fprintf-posix3.sh: New file.
25565         * tests/test-fprintf-posix3.c: New file.
25566         * modules/fprintf-posix-tests (Files): Add them.
25567         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25568
25569 2009-12-19  Eric Blake  <ebb9@byu.net>
25570
25571         dirfd: fix prototype
25572         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25573         * lib/dirfd.c (dirfd): Likewise.
25574
25575         canonicalize: reduce memory usage
25576         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25577         allocation to size.
25578         Reported by Solar Designer <solar@openwall.com>.
25579
25580 2009-12-19  Bruno Haible  <bruno@clisp.org>
25581
25582         New module attribute 'Applicability'.
25583         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25584         * gnulib-tool: New option --extract-applicability.
25585         (func_usage): Document it.
25586         (sed_extract_prog): Recognize it.
25587         (func_get_applicability): New function.
25588         (func_import): Generalize handling of 'link-warning' module.
25589         * modules/link-warning (Applicability): New section.
25590         * modules/arg-nonnull (Applicability): New section.
25591         Repoted by Simon Josefsson <simon@josefsson.org>.
25592
25593 2009-12-19  Bruno Haible  <bruno@clisp.org>
25594
25595         fflush: tweak
25596         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25597         * lib/fseeko.c (rpl_fseeko): Likewise.
25598
25599 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25600
25601         * lib/gl_list.h: Fix typo in comment.
25602
25603 2009-12-16  Eric Blake  <ebb9@byu.net>
25604
25605         fcntl: use to simplify other modules
25606         * modules/cloexec (Depends-on): Add fcntl.
25607         * modules/fchdir (Depends-on): Likewise.
25608         * modules/fd-safer-flag (Depends-on): Likewise.
25609         * modules/unistd-safer (Depends-on): Likewise.
25610         * modules/dup3 (configure.ac): Set module indicator.
25611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25612         missing.
25613         * lib/fchdir.c (_gl_register_dup): Fix comment.
25614         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25615         * lib/dup-safer.c (dup_safer): Likewise.
25616         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25617         * lib/dup3.c (dup3): Likewise.
25618         * tests/test-fchdir.c (main): Enhance test.
25619         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25620
25621         fcntl: port portions of fcntl to mingw
25622         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25623         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25624         replacement for mingw.
25625         * modules/fcntl (Description): Update.
25626         (Depends-on): Add dup2.
25627         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25628         * modules/fcntl-h (Makefile.am): Substitute it.
25629         * lib/fcntl.in.h (fcntl): Update declaration.
25630         (F_DUPFD, F_GETFD): New macros, when needed.
25631         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25632         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25633         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25634         we now guarantee.
25635
25636         fcntl: work around cygwin bug in F_DUPFD
25637         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25638         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25639         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25640         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25641         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25642
25643         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25644         * modules/fcntl (Files): List new files.
25645         (configure.ac): Run a test.
25646         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25647         * lib/fcntl.c (rpl_fcntl): Likewise.
25648         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25649         (gl_FCNTL_H): Always replace fcntl.h.
25650         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25651         * lib/fcntl.in.h (fcntl): Declare replacement.
25652         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25653         needed, plus a witness.
25654         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25655         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25656         * tests/test-fcntl.c: New file.
25657         * modules/fcntl-tests: Likewise.
25658
25659         binary-io: avoid potential compilation warning
25660         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25661         directives.
25662
25663         fflush: avoid compilation error on NetBSD
25664         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25665         between off_t and fpos_t, since the latter is sometimes a struct.
25666         * lib/fseeko.c (rpl_fseeko): Likewise.
25667         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25668
25669 2009-12-15  Eric Blake  <ebb9@byu.net>
25670
25671         fcntl-h, stdio, sys_ioctl: fix declarations
25672         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25673         function must not take arguments.
25674         * lib/sys_ioctl.in.h (ioctl): Likewise.
25675         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25676         (open): Add a link warning.
25677
25678 2009-12-15  Jim Meyering  <meyering@redhat.com>
25679
25680         areadlink, areadlink-with-size: relax license to LGPLv2+
25681         * modules/areadlink (License): Relax to LGPLv2+.
25682         * modules/areadlink-with-size (License): Likewise.
25683
25684 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25685             Bruno Haible  <bruno@clisp.org>
25686
25687         *printf: Fix memory leak.
25688         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25689         * lib/vfprintf.c (vfprintf): Likewise.
25690         * lib/dprintf.c (dprintf): Likewise.
25691         * lib/vdprintf.c (vdprintf): Likewise.
25692
25693 2009-12-14  Eric Blake  <ebb9@byu.net>
25694
25695         accept4: adjust module dependencies
25696         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25697
25698         utimens: one more try at avoiding compiler warning
25699         * lib/utimens.c (lutimens): Lower scope of result.
25700
25701 2009-12-13  Bruno Haible  <bruno@clisp.org>
25702
25703         Move the malloc checking from module 'list' to new module 'xlist'.
25704         * modules/xlist: New file.
25705         * lib/gl_xlist.h: New file.
25706         * lib/gl_xlist.c: New file.
25707         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25708         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25709         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25710         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25711         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25712         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25713         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25714         gl_sortedlist_nx_add): New declarations.
25715         (struct gl_list_implementation): Rename and change methods accordingly.
25716         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25717         (gl_list_nx_create): Renamed from gl_list_create.
25718         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25719         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25720         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25721         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25722         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25723         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25724         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25725         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25726         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25727         gl_list_create_empty.
25728         (gl_list_nx_create): Renamed from gl_list_create.
25729         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25730         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25731         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25732         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25733         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25734         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25735         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25736         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25737         * lib/gl_array_list.c: Don't include xalloc.h.
25738         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25739         NULL upon out-of-memory.
25740         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25741         out-of-memory.
25742         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25743         Change return type to 'int'.
25744         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25745         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25746         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25747         upon out-of-memory.
25748         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25749         upon out-of-memory.
25750         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25751         upon out-of-memory.
25752         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25753         upon out-of-memory.
25754         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25755         out-of-memory.
25756         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25757         Update.
25758         (gl_array_list_implementation): Update.
25759         * lib/gl_carray_list.c: Don't include xalloc.h.
25760         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25761         Return NULL upon out-of-memory.
25762         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25763         out-of-memory.
25764         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25765         Change return type to 'int'.
25766         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25767         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25768         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25769         upon out-of-memory.
25770         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25771         upon out-of-memory.
25772         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25773         out-of-memory.
25774         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25775         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25776         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25777         Update.
25778         (gl_carray_list_implementation): Update.
25779         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25780         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25781         gl_linked_create_empty. Return NULL upon out-of-memory.
25782         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25783         out-of-memory.
25784         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25785         Change return type to 'int'. Return -1 upon out-of-memory.
25786         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25787         out-of-memory.
25788         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25789         upon out-of-memory.
25790         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25791         upon out-of-memory.
25792         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25793         NULL upon out-of-memory.
25794         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25795         upon out-of-memory.
25796         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25797         out-of-memory.
25798         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25799         Update.
25800         * lib/gl_linked_list.c: Don't include xalloc.h.
25801         (gl_linked_list_implementation): Update.
25802         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25803         (add_to_bucket): Change return type to 'int'.
25804         (gl_linkedhash_list_implementation): Update.
25805         * lib/gl_anytree_list1.h (free_subtree): New function.
25806         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25807         gl_tree_create_empty. Return NULL upon out-of-memory.
25808         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25809         Change return type to 'int'. Return -1 upon out-of-memory.
25810         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25811         out-of-memory.
25812         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25813         (gl_tree_remove_node): New function, moved here from
25814         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25815         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25816         Update.
25817         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25818         malloc, not xmalloc. Return NULL upon out-of-memory.
25819         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25820         out-of-memory.
25821         (gl_tree_remove_node_from_tree): New function, extracted from
25822         gl_tree_remove_node.
25823         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25824         upon out-of-memory.
25825         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25826         out-of-memory.
25827         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25828         upon out-of-memory.
25829         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25830         upon out-of-memory.
25831         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25832         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25833         not xmalloc. Return NULL upon out-of-memory.
25834         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25835         out-of-memory.
25836         (gl_tree_remove_node_from_tree): New function, extracted from
25837         gl_tree_remove_node.
25838         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25839         upon out-of-memory.
25840         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25841         out-of-memory.
25842         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25843         upon out-of-memory.
25844         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25845         upon out-of-memory.
25846         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25847         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25848         gl_anytree_list1.h before gl_anyavltree_list2.h.
25849         (gl_avltree_list_implementation): Update.
25850         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25851         gl_anytree_list1.h before gl_anyavltree_list2.h.
25852         (gl_rbtree_list_implementation): Update.
25853         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25854         Change return type to 'int'. Return -1 upon out-of-memory. Use
25855         __builtin_expect.
25856         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25857         (gl_avltreehash_list_implementation): Update.
25858         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25859         (gl_rbtreehash_list_implementation): Update.
25860         * modules/array-list (Depends-on): Remove xalloc.
25861         * modules/carray-list (Depends-on): Likewise.
25862         * modules/linked-list (Depends-on): Likewise.
25863         * modules/linkedhash-list (Depends-on): Likewise.
25864         * modules/avltree-list (Depends-on): Likewise.
25865         * modules/rbtree-list (Depends-on): Likewise.
25866         * modules/avltreehash-list (Depends-on): Likewise.
25867         * modules/rbtreehash-list (Depends-on): Likewise.
25868
25869         * modules/xsublist: New file.
25870         * lib/gl_xsublist.h: New file.
25871         * lib/gl_xsublist.c: New file.
25872         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25873         (gl_sublist_nx_create): New declaration.
25874         * lib/gl_sublist.c: Don't include xalloc.h.
25875         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25876         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25877         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25878         Change return type to 'int'. Return -1 upon out-of-memory.
25879         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25880         upon out-of-memory.
25881         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25882         NULL upon out-of-memory.
25883         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25884         upon out-of-memory.
25885         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25886         NULL upon out-of-memory.
25887         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25888         NULL upon out-of-memory.
25889         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25890         upon out-of-memory.
25891         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25892         (gl_sublist_list_implementation): Update.
25893         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25894         upon out-of-memory.
25895         * modules/sublist (Depends-on): Remove xalloc.
25896
25897         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25898         * tests/test-carray_list.c: Likewise.
25899         * tests/test-linked_list.c: Likewise.
25900         * tests/test-linkedhash_list.c: Likewise.
25901         * tests/test-avltree_list.c: Likewise.
25902         * tests/test-rbtree_list.c: Likewise.
25903         * tests/test-avltreehash_list.c: Likewise.
25904         * tests/test-rbtreehash_list.c: Likewise.
25905         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25906         * modules/carray-list-tests (Makefile.am): Likewise.
25907         * modules/linked-list-tests (Makefile.am): Likewise.
25908         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25909         * modules/avltree-list-tests (Makefile.am): Likewise.
25910         * modules/rbtree-list-tests (Makefile.am): Likewise.
25911         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25912         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25913
25914         * NEWS: Mention the changes.
25915
25916         * lib/clean-temp.c: Include gl_xlist.h.
25917         * modules/clean-temp (Depends-on): Add xlist.
25918
25919         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25920         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25921
25922         * tests/test-array_oset.c: Include gl_xlist.h.
25923         * modules/array-oset-tests (Depends-on): Add xlist.
25924
25925         Reported by José E. Marchesi <jemarch@gnu.org>.
25926
25927 2009-12-13  Bruno Haible  <bruno@clisp.org>
25928
25929         Move the malloc checking from module 'oset' to new module 'xoset'.
25930         * modules/xoset: New file.
25931         * lib/gl_xoset.h: New file.
25932         * lib/gl_xoset.c: New file.
25933         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25934         declarations.
25935         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25936         (struct gl_oset_implementation): Rename and change methods accordingly.
25937         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25938         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25939         'int'. Mark as __warn_unused_result__.
25940         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25941         gl_oset_create_empty.
25942         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25943         'int'.
25944         * lib/gl_array_oset.c: Don't include xalloc.h.
25945         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25946         malloc, not xmalloc.
25947         (grow): Change return type to 'int'. Don't call xalloc_die.
25948         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25949         to 'int'.
25950         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25951         'int'.
25952         (gl_array_oset_implementation): Update.
25953         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25954         gl_tree_create_empty.
25955         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25956         'int'.
25957         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25958         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25959         xmalloc.
25960         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25961         not xmalloc.
25962         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25963         xmalloc.
25964         (gl_avltree_oset_implementation): Update.
25965         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25966         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25967         xmalloc.
25968         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25969         not xmalloc.
25970         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25971         xmalloc.
25972         (gl_rbtree_oset_implementation): Update.
25973         * modules/array-oset (Depends-on): Remove xalloc.
25974         * modules/avltree-oset (Depends-on): Likewise.
25975         * modules/rbtree-oset (Depends-on): Likewise.
25976         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25977         * tests/test-avltree_oset.c: Likewise.
25978         * tests/test-rbtree_oset.c: Likewise.
25979         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25980         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25981         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25982         * NEWS: Mention the change.
25983
25984 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25985
25986         maint.mk: allow a project to override release-prep commands
25987         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25988         commands into a new rule.
25989         (release-prep): New rule.
25990         (release-prep-hook): New overridable variable.
25991
25992 2009-12-13  Bruno Haible  <bruno@clisp.org>
25993
25994         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25995
25996 2009-12-13  Jim Meyering  <meyering@redhat.com>
25997
25998         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25999         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26000
26001 2009-12-12  Bruno Haible  <bruno@clisp.org>
26002
26003         duplocale: Tweak.
26004         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26005
26006 2009-12-12  Karl Berry  <karl@gnu.org>
26007
26008         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26009
26010 2009-12-12  Bruno Haible  <bruno@clisp.org>
26011
26012         * m4/po.m4: Undo incorrect untabification.
26013
26014 2009-12-12  Bruno Haible  <bruno@clisp.org>
26015
26016         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26017         * modules/c-strtod (Depends-on): Add locale.
26018         * modules/c-strtold (Depends-on): Likewise.
26019
26020 2009-12-12  Bruno Haible  <bruno@clisp.org>
26021
26022         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26023
26024 2009-12-11  Eric Blake  <ebb9@byu.net>
26025
26026         setenv: relax requirement in light of POSIX ruling
26027         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26028         not NULL.
26029         * tests/test-setenv.c (main): Relax test.
26030         * tests/test-unsetenv.c (main): Likewise.
26031         * doc/posix-functions/setenv.texi (setenv): Document this.
26032         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26033
26034 2009-12-11  Bruno Haible  <bruno@clisp.org>
26035
26036         New module 'fd-safer-flag'.
26037         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26038         * lib/dup-safer.c (dup_safer_flag): Remove function.
26039         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26040         * lib/fd-safer.c (fd_safer_flag): Remove function.
26041         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26042         * modules/cloexec (configure.ac): Drop indicator macro.
26043         * modules/fd-safer-flag: New file.
26044         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26045         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26046         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26047
26048 2009-12-11  Bruno Haible  <bruno@clisp.org>
26049
26050         Tests for module 'nl_langinfo'.
26051         * modules/nl_langinfo-tests: New file.
26052         * tests/test-nl_langinfo.sh: New file.
26053         * tests/test-nl_langinfo.c: New file.
26054
26055         New module 'nl_langinfo'.
26056         * lib/nl_langinfo.c: New file.
26057         * m4/nl_langinfo.m4: New file.
26058         * modules/nl_langinfo: New file.
26059         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26060
26061 2009-12-11  Bruno Haible  <bruno@clisp.org>
26062
26063         Tests for module 'langinfo'.
26064         * modules/langinfo-tests: New file.
26065         * tests/test-langinfo.c: New file.
26066
26067         New module 'langinfo'.
26068         * lib/langinfo.in.h: New file.
26069         * m4/langinfo_h.m4: New file.
26070         * modules/langinfo: New file.
26071         * doc/posix-headers/langinfo.texi: Mention the new module.
26072
26073 2009-12-11  Bruno Haible  <bruno@clisp.org>
26074
26075         * lib/config.charset: Untabify.
26076
26077 2009-12-11  Bruno Haible  <bruno@clisp.org>
26078
26079         * modules/unistd-safer (configure.ac): Drop indicator macro.
26080
26081 2009-12-11  Bruno Haible  <bruno@clisp.org>
26082
26083         Move pipe2-safer code to its own file.
26084         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26085         * lib/pipe-safer.c (pipe2_safer): Remove function.
26086         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26087         (Makefile.am): Add it to lib_SOURCES.
26088
26089 2009-12-10  Bruno Haible  <bruno@clisp.org>
26090
26091         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26092
26093 2009-12-10  Bruno Haible  <bruno@clisp.org>
26094
26095         Declare which arguments expect non-NULL values, for GCC and clang.
26096         * build-aux/arg-nonnull.h: New file.
26097         * modules/arg-nonnull: New file.
26098         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26099         (inet_ntop, inet_pton): Use it.
26100         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26101         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26102         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26103         (open, openat): Use it.
26104         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26105         (fnmatch): Use it.
26106         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26107         (getopt, getopt_long, getopt_long_only): Use it.
26108         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26109         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26110         Use it.
26111         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26112         (iconv_open): Use it.
26113         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26114         (strtoimax, strtoumax): Use it.
26115         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26116         (duplocale): Use it.
26117         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26118         (frexp, frexpl): Use it.
26119         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26120         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26121         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26122         (tsearch, tfind, tdelete, twalk): Use it.
26123         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26124         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26125         sigpending): Use it.
26126         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26127         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26128         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26129         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26130         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26131         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26132         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26133         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26134         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26135         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26136         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26137         Use it.
26138         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26139         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26140         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26141         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26142         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26143         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26144         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26145         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26146         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26147         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26148         strtoull, unsetenv): Use it.
26149         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26150         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26151         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26152         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26153         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26154         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26155         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26156         (strcasecmp, strncasecmp): Use it.
26157         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26158         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26159         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26160         rpl_setsockopt): Use it.
26161         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26162         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26163         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26164         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26165         (gettimeofday): Use it.
26166         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26167         (times): Use it.
26168         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26169         (uname): Use it.
26170         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26171         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26172         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26173         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26174         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26175         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26176         unlinkat, write): Use it.
26177         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26178         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26179         * lib/argv-iter.h: Include arg-nonnull.h.
26180         (_ATTRIBUTE_NONNULL_): Remove macro.
26181         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26182         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26183         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26184         optimization.
26185         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26186         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26187         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26188         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26189         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26190         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26191         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26192         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26193         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26194         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26195         * modules/dirent (Depends-on): Add arg-nonnull.
26196         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26197         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26198         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26199         * modules/fnmatch (Depends-on): Add arg-nonnull.
26200         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26201         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26202         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26203         * modules/glob (Depends-on): Add arg-nonnull.
26204         (Makefile.am): Insert arg-nonnull.h into glob.h.
26205         * modules/iconv_open (Depends-on): Add arg-nonnull.
26206         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26207         * modules/inttypes (Depends-on): Add arg-nonnull.
26208         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26209         * modules/locale (Depends-on): Add arg-nonnull.
26210         (Makefile.am): Insert arg-nonnull.h into locale.h.
26211         * modules/math (Depends-on): Add arg-nonnull.
26212         (Makefile.am): Insert arg-nonnull.h into math.h.
26213         * modules/netdb (Depends-on): Add arg-nonnull.
26214         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26215         * modules/search (Depends-on): Add arg-nonnull.
26216         (Makefile.am): Insert arg-nonnull.h into search.h.
26217         * modules/signal (Depends-on): Add arg-nonnull.
26218         (Makefile.am): Insert arg-nonnull.h into signal.h.
26219         * modules/spawn (Depends-on): Add arg-nonnull.
26220         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26221         * modules/stdio (Depends-on): Add arg-nonnull.
26222         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26223         * modules/stdlib (Depends-on): Add arg-nonnull.
26224         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26225         * modules/string (Depends-on): Add arg-nonnull.
26226         (Makefile.am): Insert arg-nonnull.h into string.h.
26227         * modules/strings (Depends-on): Add arg-nonnull.
26228         (Makefile.am): Insert arg-nonnull.h into strings.h.
26229         * modules/sys_socket (Depends-on): Add arg-nonnull.
26230         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26231         * modules/sys_stat (Depends-on): Add arg-nonnull.
26232         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26233         * modules/sys_time (Depends-on): Add arg-nonnull.
26234         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26235         * modules/sys_times (Depends-on): Add arg-nonnull.
26236         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26237         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26238         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26239         * modules/time (Depends-on): Add arg-nonnull.
26240         (Makefile.am): Insert arg-nonnull.h into time.h.
26241         * modules/unistd (Depends-on): Add arg-nonnull.
26242         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26243         * modules/wchar (Depends-on): Add arg-nonnull.
26244         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26245         * modules/argv-iter (Depends-on): Add arg-nonnull.
26246         * tests/test-canonicalize.c (null_ptr): New function.
26247         (main): Use it.
26248         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26249         (main): Use it.
26250         * tests/test-memmem.c (null_ptr): New function.
26251         (main): Use it.
26252         Reported by Jim Meyering.
26253
26254 2009-12-10  Bruno Haible  <bruno@clisp.org>
26255
26256         Use spaces for indentation, not tabs.
26257         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26258         * m4/*.m4: Untabify.
26259         * build-aux/*.h: Untabify.
26260         * tests/**/*.[hc]: Untabify.
26261         * README: New section "Indent with spaces, not TABs", based on
26262         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26263         * NEWS: Mention the change.
26264
26265 2009-12-10  Bruno Haible  <bruno@clisp.org>
26266
26267         pty test: Fix link error.
26268         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26269         test_pty_LDADD.
26270
26271 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26272
26273         * modules/pty: New file.
26274         * modules/pty-tests: New file.
26275         * m4/pty.m4: New file.
26276         * tests/test-pty.c: New file.
26277         * doc/glibc-headers/pty.texi: Modified.
26278         * doc/glibc-functions/forkpty.texi: Modified.
26279         * doc/glibc-functions/openpty.texi: Modified.
26280
26281 2009-12-10  Bruno Haible  <bruno@clisp.org>
26282
26283         Avoid syntax error in C++ mode.
26284         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26285
26286 2009-12-10  Bruno Haible  <bruno@clisp.org>
26287
26288         Use sed with option -e.
26289         * gnulib-tool (func_version, func_emit_copyright_notice,
26290         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26291         option -e to sed.
26292         * modules/link-warning (Makefile.am): Likewise.
26293
26294 2009-12-10  Jim Meyering  <meyering@redhat.com>
26295
26296         mgetgroups: do not write bytes beyond end of malloc'd buffer
26297         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26298         username, we call getgroups with a one-element-shorter buffer,
26299         but still told it the length was original, max_n_groups.
26300
26301 2009-12-09  Eric Blake  <ebb9@byu.net>
26302
26303         cloexec: relax license
26304         * modules/cloexec (Maintainer): Add myself.
26305         (License): Use LGPL, not GPL.
26306
26307         link-warning: optimize generation
26308         * modules/link-warning (Makefile.am): Reduce process usage.
26309
26310 2009-12-09  Bruno Haible  <bruno@clisp.org>
26311
26312         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26313         workaround was added on 2009-11-17.
26314
26315 2009-12-09  Jim Meyering  <meyering@redhat.com>
26316             Bruno Haible  <bruno@clisp.org>
26317
26318         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26319         * modules/link-warning (Makefile.am): Make the comment-removing sed
26320         command more robust in the face of bootstrap-prepended comment lines.
26321
26322 2009-12-09  Bruno Haible  <bruno@clisp.org>
26323
26324         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26325         most one group.
26326
26327 2009-12-09  Simon Josefsson <simon@josefsson.org>
26328             Bruno Haible  <bruno@clisp.org>
26329
26330         * build-aux/link-warning.h: Add copyright notice.
26331         * modules/link-warning (Makefile.am): Generate link-warning.h from
26332         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26333         * NEWS: Mention change in link-warning module.
26334         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26335         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26336         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26337         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26338         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26339         * modules/math (Makefile.am): Add dependency to math.h.
26340         * modules/search (Makefile.am): Add dependency to search.h.
26341         * modules/signal (Makefile.am): Add dependency to signal.h.
26342         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26343         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26344         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26345         * modules/string (Makefile.am): Add dependency to string.h.
26346         * modules/strings (Makefile.am): Add dependency to strings.h.
26347         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26348         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26349         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26350         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26351         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26352         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26353         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26354         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26355         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26356
26357 2009-12-09  Bruno Haible  <bruno@clisp.org>
26358
26359         fchdir: Optimize away rpl_fstat when possible.
26360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26361         REPLACE_OPEN_DIRECTORY.
26362         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26363
26364 2009-12-09  Bruno Haible  <bruno@clisp.org>
26365
26366         * lib/fchdir.c: Update comment.
26367
26368 2009-12-09  Bruno Haible  <bruno@clisp.org>
26369
26370         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26371
26372 2009-12-08  Eric Blake  <ebb9@byu.net>
26373
26374         fchdir: avoid memory leak on re-registration.
26375         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26376
26377 2009-12-08  Jim Meyering  <meyering@redhat.com>
26378
26379         init.sh: avoid Solaris 10 /bin/sh portability problem
26380         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26381         sourced script:
26382           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26383           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26384           bar
26385         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26386         and two tests used that idiom.
26387         * tests/init.sh: Update suggested usage comments.
26388         (path_prepend_): New function, to be used in place
26389         of the --src-path=DIR option.
26390         (setup_): Move PATH-prepending code into path_prepend_.
26391         * tests/test-pread.sh: Adapt to new usage.
26392         * tests/test-xalloc-die.sh: Likewise.
26393
26394 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26395
26396         * doc/gnulib.texi (Glibc pty.h): Add.
26397         * doc/glibc-functions/forkpty.texi: Add.
26398         * doc/glibc-functions/openpty.texi: Add.
26399         Suggested by Bruno Haible.
26400
26401 2009-12-08  Eric Blake  <ebb9@byu.net>
26402
26403         fchdir: fix logic bugs
26404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26405         * tests/test-fchdir.c (main): Enhance test.
26406         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26407         is in use.
26408
26409         dup2: fix logic bugs
26410         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26411         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26412         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26413         exists.
26414         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26415
26416 2009-12-07  Eric Blake  <ebb9@byu.net>
26417
26418         unlink: fix m4 detection
26419         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26420
26421         unistd-safer: add unit test
26422         * modules/unistd-safer-tests: New file.
26423         * tests/test-dup-safer.c: Likewise.
26424         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26425         * tests/test-dup2.c (setmode): Likewise.
26426         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26427
26428         cloexec: preserve text vs. binary across dup_cloexec
26429         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26430         mode.
26431         * modules/dup2-tests (Depends-on): Add binary-io.
26432         * modules/cloexec-tests (Depends-on): Likewise.
26433         * tests/test-dup2.c (setmode, is_mode): New helpers.
26434         (main): Add tests that translation mode is preserved.
26435         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26436         Reported by Bruno Haible.
26437
26438         mgetgroups: reduce duplicate listings
26439         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26440         resulting array.
26441         * tests/test-chown.h (test_chown): Simplify client.
26442         * tests/test-lchown.h (test_lchown): Likewise.
26443
26444 2009-12-06  Bruno Haible  <bruno@clisp.org>
26445
26446         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26447         value.
26448
26449 2009-12-06  Bruno Haible  <bruno@clisp.org>
26450
26451         * lib/progname.c: Include stdio.h, stdlib.h.
26452         (set_program_name): Reject a NULL argument.
26453
26454 2009-12-05  Eric Blake  <ebb9@byu.net>
26455
26456         pipe2-safer: new module
26457         * modules/pipe2-safer: New file.
26458         * lib/unistd-safer.h (pipe2_safer): New prototype.
26459         * lib/unistd--.h (pipe2): New wrapper.
26460         * lib/pipe-safer.c (pipe2_safer): New function.
26461         * modules/pipe (Depends-on): Add pipe2-safer.
26462         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26463
26464         stdlib-safer: preserve cloexec flag for mkostemp[s]
26465         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26466         fd_safer_flag.
26467
26468         unistd-safer: allow preservation of cloexec status via flag
26469         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26470         prototypes.
26471         * lib/dup-safer.c (dup_safer_flag): New function.
26472         * lib/fd-safer.c (fd_safer_flag): Likewise.
26473         * modules/cloexec (configure.ac): Set witness.
26474
26475         test-dup2: enhance test
26476         * modules/dup2-tests (Depends-on): Add cloexec.
26477         * tests/test-dup2.c (main): Enhance test.
26478
26479         cloexec: add dup_cloexec
26480         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26481         header and comments.
26482         * lib/cloexec.c (set_cloexec_flag): Add comments.
26483         (dup_cloexec): New function, with mingw implementation borrowed
26484         from...
26485         * lib/w32spawn.h (dup_noinherit): ...here.
26486         * modules/execute (Depends-on): Add cloexec.
26487         * modules/pipe (Depends-on): Likewise.
26488         * modules/cloexec (Depends-on): Add dup2.
26489         * modules/cloexec-tests (Files): New file.
26490         * tests/test-cloexec.c: Likewise.
26491
26492         test-xalloc-die: fix test for mingw
26493         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26494         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26495         directory and .exe suffix off argv[0] output.
26496
26497         test-fseeko: fix test for mingw
26498         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26499         than undefining fseek, so test will pass on mingw.
26500
26501 2009-12-05  Bruno Haible  <bruno@clisp.org>
26502
26503         * lib/progname.h (set_program_name): Clarify specification.
26504         * lib/progname.c (set_program_name): Likewise.
26505         Reported by Jim Meyering.
26506
26507 2009-12-05  Jim Meyering  <meyering@redhat.com>
26508
26509         maint.mk: backslash-escape parens in default regexp
26510         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26511         backslash-escape the literal parentheses.
26512
26513         maint.mk: news-date-check: use grep -E
26514         * top/maint.mk (today): Define a Make variable, not a...
26515         (news-date-check): ...shell variable.
26516         (news-date-regexp): Use the Make variable.
26517         Use grep's -E option.  Change the failing diagnostic to mention
26518         the variable, $(news-date-regexp).
26519
26520 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26521
26522         maintainer-makefile: allow customization of NEWS entry format
26523         * top/maint.mk (news-date-regexp): New overridable variable.
26524         (news-date-check): Use it.
26525
26526 2009-12-04  Eric Blake  <ebb9@byu.net>
26527
26528         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26529         * lib/mgetgroups.h (xgetgroups): New prototype.
26530         * lib/mgetgroups.c (xgetgroups): New wrapper.
26531         (mgetgroups): Handle ENOSYS.
26532         * modules/mgetgroups (Depends-on): Add realloc.
26533         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26534
26535         mgetgroups: avoid argument promotion issues with -1
26536         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26537         for invalid gid_t.
26538         * tests/test-chown.h (getegid, test_chown): Likewise.
26539         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26540
26541 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26542
26543         exclude: Fix header file problems.
26544         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26545
26546 2009-12-01  Jim Meyering  <meyering@redhat.com>
26547
26548         fts: fts_open: do not let an empty string cause immediate failure
26549         This is required in support of GNU rm, for which the command
26550         "rm A '' B" must process and remove both A and B, in spite of
26551         the empty string argument.
26552         * lib/fts.c (fts_open): Do not let the presence of an empty string
26553         cause fts_open to fail immediately.  Most fts-using tools must be
26554         able to process all arguments, in order, and can be expected to
26555         diagnose such arguments themselves.
26556
26557 2009-11-30  Eric Blake  <ebb9@byu.net>
26558
26559         utimens: fix compilation error
26560         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26561         Declare variable at right scope.
26562
26563 2009-11-29  Jim Meyering  <meyering@redhat.com>
26564
26565         bootstrap: handle perl-5.11's changed --version output
26566         * build-aux/bootstrap (get_version): Handle perl separately,
26567         since perl-5.11's --version output is different.
26568
26569 2009-11-28  Jim Meyering  <meyering@redhat.com>
26570
26571         userspec: depend on the inttostr module, too
26572         * modules/userspec (Depends-on): Add inttostr.
26573
26574         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26575         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26576         number of MAXUID when it evaluates to (uid_t) -1.
26577         Likewise for group ID.  Reported by Matt McCutchen in
26578         <http://savannah.gnu.org/bugs/?28113>
26579
26580         userspec: reformat to use spaces, not TABs
26581         * lib/userspec.c: Expand TABs to spaces.
26582         Add Emacs' "indent-tabs-mode: nil" hint.
26583
26584 2009-11-27  Eric Blake  <ebb9@byu.net>
26585
26586         getopt-gnu: flush out another BSD bug
26587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26588         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26589         flush out BSD bug.
26590         * tests/test-getopt.h (test_getopt): End lists with NULL.
26591         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26592         (test_getopt_long_posix): Enhance test.
26593         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26594         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26595         getopt-gnu.
26596         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26597         Likewise.
26598
26599 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26600
26601         * modules/idpriv-droptemp-tests (Notice): Fix text.
26602
26603 2009-11-27  Jim Meyering  <meyering@redhat.com>
26604
26605         test-xalloc-die: avoid spurious failure due to libtool argv difference
26606         In a libtool-enabled project, this test would fail due to a difference
26607         in the emitted program name, e.g.,
26608         -test-xalloc-die: memory exhausted
26609         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26610         Use program to avoid that.
26611         * modules/xalloc-die-tests (Depends-on): Add progname.
26612         * tests/test-xalloc-die.c: Include progname.h".
26613         (program_name): Remove decl.
26614         (main): Call set_program_name.
26615         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26616
26617 2009-11-26  Richard Jones  <rjones@redhat.com>
26618
26619         w32sock: leave win32 error in place.
26620         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26621
26622 2009-11-26  Eric Blake  <ebb9@byu.net>
26623
26624         init.sh: suggest to use skip_ and fail_ functions in comments
26625         * tests/init.sh: Add a sentence.
26626
26627 2009-11-25  Bruno Haible  <bruno@clisp.org>
26628
26629         init.sh: add documentation in comments
26630         * tests/init.sh: Add some developer and user documentation.
26631
26632 2009-11-26  Jim Meyering  <meyering@redhat.com>
26633
26634         init.sh: accommodate even those who specify bogus srcdir manually
26635         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26636         configure-time tests to be sanitized, so that there is no need to
26637         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26638         (with no double quotes) suffices.  However, since tests may be
26639         invoked manually, and since you may explicitly set srcdir to the
26640         name of a directory containing spaces, do quote its uses here.
26641         * tests/test-pread.sh: Likewise.
26642         Suggested by Bruno Haible.
26643
26644         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26645         * tests/test-pread.sh: Write no data into the pipe, because
26646         test-pread actually reads none.  This avoids a diagnostic,
26647         "bash: echo: write error: Broken pipe", that arises in the unusual
26648         event something is ignoring SIGPIPE, and might be interpreted
26649         as some sort of failure.  Reported by Bruno Haible.
26650
26651 2009-11-25  Jim Meyering  <meyering@redhat.com>
26652
26653         test-pread: cover failure with ESPIPE and EINVAL
26654         * tests/test-pread.c (main): Test for failure, too.
26655         * tests/test-pread.sh: Invoke with stdin on a pipe.
26656         Suggested by Eric Blake.
26657
26658         pread: improvement and fix
26659         * modules/pread (Depends-on): Depend on lseek, for portability to
26660         e.g., mingw.  Suggested by Eric Blake.
26661         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26662
26663         unistd.in.h: correct declaration of pread
26664         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26665         Reported by Richard W.M. Jones.
26666
26667         test-pread.sh: distribute the test script
26668         * modules/pread-tests (Files): Include test-pread.sh.
26669
26670         test-pread.sh: clean up
26671         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26672         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26673         That is unnecessary, since it's always ".".
26674         Suggestion from Eric Blake.
26675
26676         test-pread.sh: make executable
26677         * tests/test-pread.sh: Set executable bit.
26678         Reported by Eric Blake.
26679
26680         correct typo in test-pread.sh
26681         * tests/test-pread.sh: Add #! line.
26682
26683         test pread
26684         * tests/test-pread.c: New file.
26685         * tests/test-pread.sh: Likewise.
26686         * modules/pread-tests: Likewise.
26687
26688         pread: new module
26689         * modules/pread: New file.
26690         * lib/unistd.in.h (pread): Define/declare.
26691         * lib/pread.c (pread): New file.
26692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26693         * modules/unistd (Makefile.am): Substitute witnesses.
26694         * doc/posix-functions/pread.texi (pread): Update.
26695         * MODULES.html.sh: Add pread.
26696
26697 2009-11-25  Jim Meyering  <meyering@redhat.com>
26698
26699         tests/init.sh: new file to be used via most *.sh tests
26700         * tests/init.sh: New file.
26701
26702 2009-11-25  Eric Blake  <ebb9@byu.net>
26703
26704         utimens: work around older Linux failure with symlinks
26705         * lib/utimens.c (lutimensat_works_really): New variable.
26706         (fdutimens, lutimens): Use it to manage kernels that support
26707         nanosecond times on files, but not on symlinks.
26708         Reported by OndÅ™ej Vašík.
26709
26710         utimes: fix configure grammar
26711         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26712
26713 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26714
26715         regex: Fix fastmap for multibyte character ranges.
26716         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26717         characters when a multibyte character range is included.
26718
26719 2009-11-22  Andy Wingo  <wingo@pobox.com>
26720
26721         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26722         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26723
26724 2009-11-24  Bruno Haible  <bruno@clisp.org>
26725
26726         doc: Most *_l functions exist in MacOS X 10.5.
26727         * doc/posix-functions/duplocale.texi: Update platforms list.
26728         * doc/posix-functions/freelocale.texi: Likewise.
26729         * doc/posix-functions/newlocale.texi: Likewise.
26730         * doc/posix-functions/uselocale.texi: Likewise.
26731         * doc/posix-functions/isalnum_l.texi: Likewise.
26732         * doc/posix-functions/isalpha_l.texi: Likewise.
26733         * doc/posix-functions/isblank_l.texi: Likewise.
26734         * doc/posix-functions/iscntrl_l.texi: Likewise.
26735         * doc/posix-functions/isdigit_l.texi: Likewise.
26736         * doc/posix-functions/isgraph_l.texi: Likewise.
26737         * doc/posix-functions/islower_l.texi: Likewise.
26738         * doc/posix-functions/isprint_l.texi: Likewise.
26739         * doc/posix-functions/ispunct_l.texi: Likewise.
26740         * doc/posix-functions/isspace_l.texi: Likewise.
26741         * doc/posix-functions/isupper_l.texi: Likewise.
26742         * doc/posix-functions/iswalnum_l.texi: Likewise.
26743         * doc/posix-functions/iswalpha_l.texi: Likewise.
26744         * doc/posix-functions/iswblank_l.texi: Likewise.
26745         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26746         * doc/posix-functions/iswctype_l.texi: Likewise.
26747         * doc/posix-functions/iswdigit_l.texi: Likewise.
26748         * doc/posix-functions/iswgraph_l.texi: Likewise.
26749         * doc/posix-functions/iswlower_l.texi: Likewise.
26750         * doc/posix-functions/iswprint_l.texi: Likewise.
26751         * doc/posix-functions/iswpunct_l.texi: Likewise.
26752         * doc/posix-functions/iswspace_l.texi: Likewise.
26753         * doc/posix-functions/iswupper_l.texi: Likewise.
26754         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26755         * doc/posix-functions/isxdigit_l.texi: Likewise.
26756         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26757         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26758         * doc/posix-functions/strcoll_l.texi: Likewise.
26759         * doc/posix-functions/strfmon_l.texi: Likewise.
26760         * doc/posix-functions/strftime_l.texi: Likewise.
26761         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26762         * doc/posix-functions/strxfrm_l.texi: Likewise.
26763         * doc/posix-functions/tolower_l.texi: Likewise.
26764         * doc/posix-functions/toupper_l.texi: Likewise.
26765         * doc/posix-functions/towctrans_l.texi: Likewise.
26766         * doc/posix-functions/towlower_l.texi: Likewise.
26767         * doc/posix-functions/towupper_l.texi: Likewise.
26768         * doc/posix-functions/wcscoll_l.texi: Likewise.
26769         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26770         * doc/posix-functions/wctrans_l.texi: Likewise.
26771         * doc/posix-functions/wctype_l.texi: Likewise.
26772         * doc/glibc-functions/strptime_l.texi: Likewise.
26773         * doc/glibc-functions/strtod_l.texi: Likewise.
26774         * doc/glibc-functions/strtof_l.texi: Likewise.
26775         * doc/glibc-functions/strtol_l.texi: Likewise.
26776         * doc/glibc-functions/strtold_l.texi: Likewise.
26777         * doc/glibc-functions/strtoll_l.texi: Likewise.
26778         * doc/glibc-functions/strtoul_l.texi: Likewise.
26779         * doc/glibc-functions/strtoull_l.texi: Likewise.
26780         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26781         * doc/glibc-functions/wcstod_l.texi: Likewise.
26782         * doc/glibc-functions/wcstof_l.texi: Likewise.
26783         * doc/glibc-functions/wcstol_l.texi: Likewise.
26784         * doc/glibc-functions/wcstold_l.texi: Likewise.
26785         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26786         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26787         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26788
26789 2009-11-24  Bruno Haible  <bruno@clisp.org>
26790
26791         duplocale: Fix logic bug.
26792         * lib/duplocale.c: Don't include <langinfo.h>.
26793         (_NL_LOCALE_NAME): Remove macro.
26794         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26795         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26796
26797 2009-11-23  Jim Meyering  <meyering@redhat.com>
26798
26799         test-update-copyright: don't hard-code /usr/bin/perl
26800         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26801         perl to print the current year.  Gilles Espinasse reported that
26802         the replaced use of perl was hard-coded as /usr/bin/perl.
26803
26804 2009-11-23  Bruno Haible  <bruno@clisp.org>
26805
26806         duplocale: Add support for glibc 2.3.x.
26807         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26808
26809 2009-11-22  Bruno Haible  <bruno@clisp.org>
26810
26811         vasnprintf: Tiny optimization.
26812         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26813         MacOS X.
26814
26815 2009-11-22  Bruno Haible  <bruno@clisp.org>
26816
26817         Tests for module 'duplocale'.
26818         * modules/duplocale-tests: New file.
26819         * tests/test-duplocale.c: New file.
26820
26821         New module 'duplocale'.
26822         * m4/duplocale.m4: New file.
26823         * lib/locale.in.h (duplocale): New declaration.
26824         * lib/duplocale.c: New file.
26825         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26826         gl_LOCALE_H_DEFAULTS): New macros.
26827         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26828         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26829         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26830         REPLACE_DUPLOCALE.
26831         * modules/duplocale: New file.
26832         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26833
26834 2009-11-22  Bruno Haible  <bruno@clisp.org>
26835
26836         * modules/locale-tests (configure.ac): Test for newlocale function.
26837         * tests/test-locale.c: When the system has extended locale functions,
26838         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26839
26840         locale: Make locale_t available when possible.
26841         * lib/locale.in.h: Include <xlocale.h> when it exists.
26842         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26843         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26844         * modules/locale (Depends-on): Add extensions.
26845         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26846         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26847
26848 2009-11-22  Bruno Haible  <bruno@clisp.org>
26849
26850         Add comments.
26851         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26852         invocation.
26853         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26854         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26855         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26856
26857 2009-11-22  Bruno Haible  <bruno@clisp.org>
26858
26859         error: account for the possibility of freopen (stdout).
26860         * lib/error.c: Include <unistd.h>.
26861         (flush_stdout): New function, extracted from error and error_at_line.
26862         Determine stdout's fd dynamically.
26863         (error, error_at_line): Invoke flush_stdout.
26864         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26865         * modules/error (Depends-on): Add unistd.
26866
26867 2009-11-22  Bruno Haible  <bruno@clisp.org>
26868
26869         diffseq: Add comment.
26870         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26871
26872 2009-11-22  Jim Meyering  <meyering@redhat.com>
26873
26874         c-stack: avoid defining an unused static function
26875         * lib/c-stack.c (find_stack_direction): Do not define this function
26876         when it will not be used.
26877
26878         diffseq: avoid spurious gcc warnings
26879         * lib/diffseq.h (IF_LINT2): Define.
26880         (compareseq): Use it to initialize two members of "part".
26881         This avoids two used-uninitialized warnings.
26882
26883 2009-11-21  Jim Meyering  <meyering@redhat.com>
26884
26885         c-stack: avoid "ignoring return value of `write'" warning
26886         * lib/c-stack.c: Include "ignore-value.h".
26887         (die): Explicitly ignore each write return value.
26888         * modules/c-stack (Depends-on): Add ignore-value.
26889
26890 2009-11-21  Bruno Haible  <bruno@clisp.org>
26891
26892         diffseq: reduce scope of variable 'best'.
26893         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26894         variable, earlier used for two different purposes.
26895
26896 2009-11-21  Jim Meyering  <meyering@redhat.com>
26897
26898         diffseq: remove useless assignment to "best"
26899         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26900         assignment.  At that point "best" is already guaranteed to be zero.
26901
26902 2009-11-20  Eric Blake  <ebb9@byu.net>
26903
26904         build: mention ftp redirector in release announcements
26905         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26906         values that used to come from cfg.mk; mention FTP redirect URL.
26907         * build-aux/announce-gen: Mention the mirror list.
26908         Suggested by Karl Berry.
26909
26910         nanosleep: improve port to mingw
26911         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26913         LIB_NANOSLEEP, but only when needed.
26914         * modules/select (Link): Document LIBSOCKET.
26915         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26916         enough.
26917
26918         nanosleep: work around cygwin bug
26919         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26920         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26921         bug.
26922         (getnow): Delete, not needed.
26923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26924         LIB_CLOCK_GETTIME.
26925         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26926         clock-time, gettime.
26927         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26928         bug.
26929         * modules/nanosleep-tests: New test.
26930         * tests/test-nanosleep.c: New file.
26931
26932         sleep: work around cygwin bug
26933         * lib/sleep.c (rpl_sleep): Work around the bug.
26934         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26935         (gl_PREREQ_SLEEP): Delete unused macro.
26936         * modules/sleep (Depends-on): Add verify.
26937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26938         * modules/unistd (Makefile.am): Substitute witness.
26939         * lib/unistd.in.h (sleep): Update prototype.
26940         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26941         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26942         * modules/sleep-tests (Depends-on): Check for alarm.
26943
26944 2009-11-20  Jim Meyering  <meyering@redhat.com>
26945
26946         maint.mk: improve sc_prohibit_magic_number_exit
26947         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26948         so it does not match uses like System.exit(1).
26949         Add comments showing how to correct all offenders.
26950
26951 2009-11-19  Eric Blake  <ebb9@byu.net>
26952
26953         xalloc-die-tests: add missing library
26954         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26955
26956         test-xvasprintf: silence compiler warnings
26957         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26958         empty string from gcc.
26959
26960 2009-11-19  Jim Meyering  <meyering@redhat.com>
26961
26962         xfreopen: new module, from coreutils
26963         * modules/xfreopen: New module.
26964         * lib/xfreopen.c: New file.
26965         * lib/xfreopen.h: New file.
26966         * MODULES.html.sh (File stream based Input/Output"): Add it.
26967
26968 2009-11-19  Eric Blake  <ebb9@byu.net>
26969
26970         manywarnings: depend on warnings
26971         * modules/manywarnings (Depends-on): Add warnings.
26972
26973         build: avoid compiler warnings
26974         * lib/select.c (rpl_select): Delete unused variable.
26975         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26976
26977 2009-11-18  Eric Blake  <ebb9@byu.net>
26978
26979         tests: avoid false negative with --with-packager
26980         * tests/test-version-etc.sh: Discard packager information.
26981         * tests/test-argp-version-etc-1.sh: Likewise.
26982         Reported by Mike Frysinger.
26983
26984         utimens: fix regression on Solaris
26985         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26986         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26987         can only change fd timestamps via futimesat.  Instead, use an
26988         additional witness macro to avoid BSD bug.
26989         Reported by Jim Meyering.
26990
26991 2009-11-17  Eric Blake  <ebb9@byu.net>
26992
26993         usleep: use it to simplify tests
26994         * modules/stat-time-tests (Depends-on): Add usleep.
26995         (configure.ac): Drop usleep check.
26996         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26997         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26998         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26999         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27000         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27001         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27002         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27003         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27004         Likewise.
27005         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27006         * tests/test-lchown.h (nap): Likewise.
27007         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27008         * tests/test-stat-time.c (nap): Likewise.
27009         * tests/test-utimens-common.h (nap): Update comments.
27010
27011         usleep: new module
27012         * modules/usleep: New file.
27013         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27014         * lib/usleep.c (usleep): Likewise.
27015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27016         * modules/unistd (Makefile.am): Substitute witnesses.
27017         * lib/unistd.in.h (usleep): Add declaration.
27018         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27019         * MODULES.html.sh (Date and time): Likewise.
27020         * modules/usleep-tests (Depends-on): New test.
27021         * tests/test-usleep.c: New file.
27022
27023         chown: work around OpenBSD bug
27024         * lib/chown.c (rpl_chown): Work around the bug.
27025         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27026         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27027         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27028         * modules/chown (Depends-on): Add stdbool.
27029         * modules/lchown (Depends-on): Likewise.
27030         * doc/posix-functions/chown.texi (chown): Document the bug.
27031         * doc/posix-functions/lchown.texi (lchown): Likewise.
27032         * tests/test-lchown.h (test_chown): Relax test.
27033
27034         mkstemp: avoid conflict with C++ keyword template
27035         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27036         * lib/mkostemp.c (mkostemp): Likewise.
27037         * lib/mkostemps.c (mkostemps): Likewise.
27038         * lib/mkstemp.c (mkstemp): Likewise.
27039         * lib/mkstemps.c (mkstemps): Likewise.
27040
27041         xalloc-die-tests: optimize
27042         * tests/test-xalloc-die.sh: Reduce number of processes.
27043
27044 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27045
27046         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27047         patch from ludo@gnu.org (Ludovic Courtès).
27048
27049 2009-11-17  Jim Meyering  <meyering@redhat.com>
27050
27051         version-etc: use proper license string
27052         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27053         * modules/version-etc-fsf: Likewise.
27054
27055 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27056
27057         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27058         printed to stdout.  Deal with EOL differences.
27059
27060 2009-11-17  Eric Blake  <ebb9@byu.net>
27061
27062         unsetenv: work around Solaris bug
27063         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27064         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27065         Reported by Jim Meyering.
27066
27067         vasnprintf: avoid compiler warnings
27068         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27069         variables.
27070         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27071
27072 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27073
27074         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27075         settings since xalloc-die is no longer the self test,
27076         xalloc-die.sh is.
27077
27078 2009-11-17  Jim Meyering  <meyering@redhat.com>
27079
27080         test-xalloc-die.sh: make the code agree with the commit log
27081         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27082         at the end, just in case you happen to have a test-xalloc-die
27083         program in some other PATH directory.
27084
27085         test-xalloc-die.sh: fix a portability bug
27086         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27087         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27088         Otherwise, argv[0] (as often seen in diagnostics) would be too
27089         system-dependent, sometimes with, and sometimes without the leading "./".
27090
27091         version-etc-fsf: relax license to LGPLv3+
27092         * modules/version-etc-fsf (License): Relax license.
27093
27094 2009-11-16  Eric Blake  <ebb9@byu.net>
27095
27096         xalloc-die-tests: avoid printing null pointer
27097         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27098         shell script.
27099         * tests/test-xalloc-die.c (program_name): Declare.
27100         * tests/test-xalloc-die.sh (tmpfiles): New file.
27101
27102         setenv, unsetenv: work around various bugs
27103         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27104         (setenv) [HAVE_SETENV]: Work around bugs.
27105         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27106         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27107         for bugs.
27108         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27109         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27111         * modules/stdlib (Makefile.am): Update substitutions.
27112         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27113         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27114         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27115         * modules/setenv-tests: New test.
27116         * modules/unsetenv-tests: Likewise.
27117         * tests/test-setenv.c: New file.
27118         * tests/test-unsetenv.c: Likewise.
27119
27120 2009-11-16  Jim Meyering  <meyering@redhat.com>
27121
27122         version-etc: relax license to LGPLv3+
27123         * modules/version-etc (License): Relax license.
27124
27125         better AC_REQUIRE expanded-before-required-warning avoidance
27126         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27127         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27128         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27129         which is no longer needed.
27130
27131 2009-11-16  Eric Blake  <ebb9@byu.net>
27132
27133         test-freading: clean up temporary file
27134         * tests/test-freading.c (main): Remove file on success, and use
27135         ASSERT more liberally.
27136         Reported by Jim Meyering.
27137
27138 2009-11-16  Jim Meyering  <meyering@redhat.com>
27139
27140         avoid new AC_REQUIRE expanded-before-required warnings
27141         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27142         merely using it.
27143         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27144         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27145
27146 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27147
27148         * tests/test-xalloc-die.c: New file.
27149         * modules/xalloc-die-tests: New file.
27150         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27151         XFAIL_TESTS so it can be appended by modules.
27152
27153 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27154
27155         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27156         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27157
27158 2009-11-14  Eric Blake  <ebb9@byu.net>
27159
27160         fnmatch: avoid compiler warning
27161         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27162         to silence compiler warning about mismatch signedness in ?:.
27163         Reported by Robert Millan.
27164
27165         intprops: add double-inclusion guard
27166         * lib/intprops.h: Allow idempotent includes.
27167         Suggested by Bruce Korb.
27168
27169         openat: detect Solaris fchownat bug
27170         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27171         penalizing glibc chownat when only lchownat is broken.
27172         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27173         trailing slash bugs.
27174         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27175         * modules/openat-tests (Files): Include more files.
27176         (Depends-on): Add mgetgroups, sleep, stat-time.
27177         (configure.ac): Add additional checks.
27178         (Makefile.am): Build new test.
27179         * tests/test-fchownat.c: New file.
27180
27181         lchown: detect Solaris and FreeBSD bug
27182         * lib/lchown.c (rpl_lchown): Work around bug.
27183         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27185         * modules/unistd (Makefile.am): Populate it.
27186         * lib/unistd.in.h (lchown): Update declaration.
27187         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27188         * modules/lchown-tests: New file.
27189         * tests/test-lchown.h (test_lchown): Likewise.
27190         * tests/test-lchown.c (main): Likewise.
27191
27192         chown: detect Solaris and FreeBSD bug
27193         * lib/chown.c (rpl_chown): Work around bug.
27194         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27195         (gl_PREREQ_CHOWN): Delete.
27196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27197         * modules/unistd (Makefile.am): Populate it.
27198         * lib/unistd.in.h (chown): Update declaration.
27199         * lib/lchown.c (chown): Update client.
27200         * modules/lchown (Depends-on): Add lstat.
27201         * doc/posix-functions/chown.texi (chown): Document the bug.
27202         * doc/posix-functions/getgroups.texi (getgroups): Document
27203         getgroups pitfall.
27204         * modules/chown-tests: New file.
27205         * tests/test-chown.h (test_chown): Likewise.
27206         * tests/test-chown.c (main): Likewise.
27207
27208 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27209
27210         gnulib-tool: correctly detect absence of m4 directories
27211         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27212
27213 2009-11-14  Jim Meyering  <meyering@redhat.com>
27214
27215         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27216         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27217
27218 2009-11-14  John W. Eaton  <jwe@gnu.org>
27219
27220         strftime.h: wrap funtion declaration in extern "C" block
27221         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27222
27223 2009-11-13  Eric Blake  <ebb9@byu.net>
27224
27225         getgroups: avoid compiler warning
27226         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27227
27228         getgroups: work around FreeBSD bug
27229         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27230         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27231         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27232         * tests/test-getgroups.c (main): Fix buffer overrun.
27233
27234         getgroups: avoid compilation failure
27235         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27236         * modules/getgroups (Depends-on): Add stdint.
27237
27238 2009-11-13  Jim Meyering  <meyering@redhat.com>
27239
27240         test-getgroups: avoid compilation failure
27241         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27242
27243 2009-11-13  Eric Blake  <ebb9@byu.net>
27244
27245         mgetgroups: new module, taken from coreutils
27246         * modules/mgetgroups: New file.
27247         * lib/mgetgroups.h: Likewise.
27248         * lib/mgetgroups.c (mgetgroups): Likewise.
27249         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27250         * MODULES.html.sh (Users and groups): Mention it.
27251
27252         getgroups: don't expose GETGROUPS_T to user
27253         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27254         an element at a time if GETGROUPS_T is wrong size.
27255         * lib/getugroups.h (getugroups): Change signature.
27256         * lib/unistd.in.h (getgroups): Likewise.
27257         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27258         signature needs fixing.
27259         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27260         AC_TYPE_GETGROUPS.
27261         * modules/group-member (Depends-on): Add getgroups.
27262         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27263         (group_member): Rely on getgroups replacement.
27264         * lib/getugroups.c (getugroups): Use gid_t.
27265         * tests/test-getgroups.c (main): Likewise.
27266         * NEWS: Mention the signature change.
27267         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27268         problem with signature.
27269         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27270         GETGROUPS_T is still useful for setgroups.
27271
27272         getgroups, getugroups: provide stubs for mingw
27273         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27274         * lib/getugroups.c (getugroups): Likewise.
27275         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27276         function.  Modernize replacement scheme.
27277         (gl_PREREQ_GETGROUPS): Delete.
27278         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27279         * modules/getgroups (configure.ac): Declare witness.
27280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27281         * modules/unistd (Depends-on): Substitute witness.
27282         * lib/unistd.in.h (getgroups): Declare replacement.
27283
27284         getgroups: avoid calling exit
27285         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27286         drop xalloc.
27287         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27288         dependencies.
27289         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27290         exiting, in the rare case of malloc failure.
27291
27292         getgroups: fix logic error
27293         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27294         has more than 20 groups.
27295         * modules/getgroups-tests: New test.
27296         * tests/test-getgroups.c: New file.
27297
27298 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27299
27300         * tests/test-base64.c: Improve.
27301
27302 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27303
27304         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27305         Blake <ebb9@byu.net>.
27306
27307 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27308
27309         * tests/test-xvasprintf.c: Add %s%s related checks.
27310
27311 2009-11-12  Eric Blake  <ebb9@byu.net>
27312
27313         version-etc: match standards.texi style
27314         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27315         and use <> only for URLs.
27316
27317 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27318
27319         fts: do not fail on a submount during traversal
27320         * lib/fts.c (fts_build): Read the stat info again after opening
27321         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27322         Original report at http://bugzilla.redhat.com/501848.
27323
27324 2009-11-12  Jim Meyering  <meyering@redhat.com>
27325
27326         bootstrap: sync from coreutils
27327         * build-aux/bootstrap (bootstrap_epilogue): New function.
27328         Use git_modules_config in one more place.  This make bootstrap's
27329         --gnulib-srcdir option more useful for testing.
27330
27331         bootstrap: generalize autoheader check
27332         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27333         AC_CONFIG_HEADERS.
27334
27335 2009-11-11  Eric Blake  <ebb9@byu.net>
27336
27337         mkfifoat: use new modules for Solaris and BSD bugs
27338         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27339         * lib/mkfifoat.c (mknodat): Split...
27340         * lib/mknodat.c (mknodat): ...into new file.
27341         * modules/mkfifoat (Files): Ship new file.
27342         (Depends-on): Add mkfifo, mknod.
27343         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27344         (Depends-on): Add symlink.
27345         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27346         redundant with test_mkfifo.h.
27347         (do_mkfifoat, do_mknodat): New helpers.
27348
27349         mknod: new module
27350         * modules/mknod: New file.
27351         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27352         * lib/mknod.c (mknod): Likewise.
27353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27354         defaults.
27355         * modules/sys_stat (Makefile.am): Substitute them.
27356         * lib/sys_stat.in.h (mknod): Declare replacement.
27357         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27358         Document it.
27359         * doc/posix-functions/mknod.texi (mknod): Likewise.
27360         * modules/mknod-tests: New test.
27361         * tests/test-mknod.c: Likewise.
27362
27363         mkfifo: new module
27364         * modules/mkfifo: New file.
27365         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27366         * lib/mkfifo.c (mkfifo): Likewise.
27367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27368         defaults.
27369         * modules/sys_stat (Makefile.am): Substitute them.
27370         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27371         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27372         Document it.
27373         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27374         * modules/mkfifo-tests: New test.
27375         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27376         from test-mkfifoat.c.
27377         * tests/test-mkfifo.c: New file.
27378
27379         readlink: detect FreeBSD bug
27380         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27381         slash on symlink.
27382         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27383         * tests/test-readlink.h (test_readlink): Enhance test.
27384
27385         symlink: detect FreeBSD bug
27386         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27387         slash on symlink.
27388         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27389         * tests/test-symlink.h (test_symlink): Enhance test.
27390
27391 2009-11-10  Eric Blake  <ebb9@byu.net>
27392
27393         link: detect FreeBSD bug
27394         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27395         symlink.
27396         * doc/posix-functions/link.texi (link): Document the bug.
27397         * tests/test-link.h (test_link): Enhance test.
27398         * tests/test-linkat.c (main): Update caller.
27399
27400         unlink, remove: detect FreeBSD bug
27401         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27402         slash on symlink.
27403         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27404         * doc/posix-functions/remove.texi (remove): Likewise.
27405         * tests/test-unlink.h (test_unlink): Enhance test.
27406         * tests/test-remove.c (main): Likewise.
27407
27408 2009-11-09  Eric Blake  <ebb9@byu.net>
27409
27410         rename: detect FreeBSD bug
27411         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27412         slash on symlink.
27413         * modules/renameat-tests (Depends-on): Add filenamecat.
27414         * tests/test-rename.h (test_rename): Allow one more errno.
27415         * tests/test-renameat.c (main): Likewise.
27416         * doc/posix-functions/rename.texi (rename): Document the bug.
27417
27418         open: detect FreeBSD bug
27419         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27420         symlink.
27421         * doc/posix-functions/open.texi (open): Document the bug.
27422         * doc/posix-functions/utimes.texi (utimes): Likewise.
27423         * tests/test-open.h (test_open): Add parameters, and test symlink
27424         handling.
27425         * tests/test-open.c (main): Adjust caller.
27426         * tests/test-fcntl-safer.c (main): Likewise.
27427         * modules/open-tests (Depends-on): Add stdbool, symlink.
27428         * modules/fcntl-safer-tests (Depends-on): Likewise.
27429         * tests/test-openat.c (main): Add test-open tests.
27430
27431         stat: detect FreeBSD bug
27432         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27433         symlink.
27434         * doc/posix-functions/stat.texi (stat): Document the bug.
27435         * tests/test-stat.h (test_stat_func): Add argument.
27436         * tests/test-stat.c (main): Adjust caller.
27437         * tests/test-fstatat.c (main): Likewise.
27438         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27439         Reported by Jim Meyering.
27440
27441 2009-11-09  James Youngman  <jay@gnu.org>
27442
27443         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27444         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27445
27446 2009-11-08  Jim Meyering  <meyering@redhat.com>
27447
27448         utimens: remove invalid futimesat call
27449         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27450         It used the file descriptor of the target file as the DIR_FD
27451         parameter and NULL as the file name.  That caused failure with
27452         errno == EFAULT on FreeBSD-8.0-rc2
27453
27454 2009-11-07  Eric Blake  <ebb9@byu.net>
27455
27456         fflush, freadseek: use fseeko, not fseek
27457         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27458         (clear_ungetc_buffer): Avoid potential problems on large files.
27459         * lib/freadseek.c (freadseek): Likewise.
27460         * modules/freadseek (Depends-on): Add fseeko.
27461         * modules/fseek (configure.ac): Set a witness.
27462         * tests/test-fflush.c (main): Use fseeko.
27463         * tests/test-fpurge.c (fseek): Disable link warning.
27464         * tests/test-freadable.c (fseek): Likewise.
27465         * tests/test-freading.c (fseek): Likewise.
27466         * tests/test-fseeko.c (fseek): Likewise.
27467         * tests/test-ftell.c (fseek): Likewise.
27468         * tests/test-ftello.c (fseek): Likewise.
27469         * tests/test-fwritable.c (fseek): Likewise.
27470         * tests/test-fwriting.c (fseek): Likewise.
27471
27472 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27473
27474         * modules/memchr (Depends-on): Drop getpagesize dependency.
27475
27476 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27477
27478         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27479         Reported by Ludovic Courtès.
27480         * build-aux/pmccabe2html: Improve example usage.
27481         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27482
27483 2009-11-06  Jim Meyering  <meyering@redhat.com>
27484
27485         do-release-commit-and-tag: New module.
27486         Automate the release-commit and tag process.
27487         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27488         * modules/do-release-commit-and-tag: New file.
27489         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27490
27491 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27492
27493         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27494         because test-select.c uses inet_pton.
27495
27496 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27497
27498         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27499         GETADDRINFO_LIB.  Bump serial number.
27500         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27501         Suggested by Eric Blake <ebb9@byu.net>.
27502
27503 2009-11-05  Eric Blake  <ebb9@byu.net>
27504
27505         strtod: detect darwin bug
27506         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27507         Reported by Leo Davis.
27508
27509         freopen-safer: new module
27510         * modules/freopen-safer: New module.
27511         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27512         * lib/freopen-safer.c (freopen_safer): New file.
27513         * lib/stdio-safer.h (freopen_safer): New declaration.
27514         * lib/stdio--.h (freopen): New override.
27515         * MODULES.html.sh (File stream based Input/Output): Mention it.
27516         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27517         freopen-safer module.
27518         * doc/posix-functions/stderr.texi (stderr): Likewise.
27519         * doc/posix-functions/stdin.texi (stdin): Likewise.
27520         * doc/posix-functions/stdout.texi (stdout): Likewise.
27521         * modules/freopen-safer-tests: New test.
27522         * tests/test-reopen-safer.c: New file.
27523
27524 2009-11-05  Jim Meyering  <meyering@redhat.com>
27525
27526         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27527         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27528
27529 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27530
27531         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27532
27533 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27534
27535         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27536
27537 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27538
27539         Fix link error.
27540         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27541         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27542
27543 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27544
27545         * tests/test-func.c: Also test value of __func__.
27546
27547 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27548
27549         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27550         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27551
27552 2009-11-05  Bruno Haible  <bruno@clisp.org>
27553
27554         Fix link error.
27555         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27556         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27557         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27558
27559 2009-11-05  Bruno Haible  <bruno@clisp.org>
27560
27561         Tests for module 'inet_pton'.
27562         * modules/inet_pton-tests: New file.
27563         * tests/test-inet_pton.c: New file.
27564
27565 2009-11-05  Bruno Haible  <bruno@clisp.org>
27566
27567         Tests for module 'inet_ntop'.
27568         * modules/inet_ntop-tests: New file.
27569         * tests/test-inet_ntop.c: New file.
27570
27571 2009-11-04  Eric Blake  <ebb9@byu.net>
27572
27573         stdlib-safer: wrap all mkstemp variants
27574         * modules/mkostemp (configure.ac): Set witness.
27575         * modules/mkostemps (configure.ac): Likewise.
27576         * modules/mkstemps (configure.ac): Likewise.
27577         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27578         (mkstemps_safer): Wrap more functions.
27579         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27580         wrapping.
27581         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27582         (mkstemps_safer): Implement the wrappers.
27583
27584         mkstemps, mkostemps: new modules
27585         * modules/mkostemps: New module.
27586         * modules/mkstemps: Likewise.
27587         * lib/mkostemps.c (mkostemps): New file.
27588         * lib/mkstemps.c (mkstemps): Likewise.
27589         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27590         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27592         * modules/stdlib (Makefile.am): Substitute them.
27593         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27594         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27595         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27596         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27597         * MODULES.html.sh (File system functions): Mention them.
27598
27599         tempname: resync from glibc
27600         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27601         same values for __GT_FILE as glibc.  Abort even when assertions
27602         are disabled.
27603         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27604         match its value otherwise.  Allow idempotent inclusion.
27605         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27606         * lib/mkostemp.c (mkostemp): Likewise.
27607         * lib/mkstemp.c (mkstemp): Likewise.
27608         * lib/tmpfile.c (tmpfile): Likewise.
27609         * NEWS: Document this.
27610
27611         utimens: fix use of futimens on older Linux
27612         * lib/utimens.c (fdutimens): Use updated, rather than original,
27613         timespec to avoid bug in older Linux kernel.
27614         Reported by Simon Josefsson.
27615
27616 2009-11-04  Bruno Haible  <bruno@clisp.org>
27617
27618         Make num_processors more flexible and consistent.
27619         * lib/nproc.h (enum nproc_query): New type.
27620         (num_processors): Add a 'query' argument.
27621         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27622         (num_processors): Add a 'query' argument. Test the value of the
27623         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27624         mingw, count the number of CPUs available for the current process.
27625         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27626         Check for sched_getaffinity and sched_getaffinity_np.
27627         * modules/nproc (Depends-on): Add c-ctype, extensions.
27628         * NEWS: Mention the change.
27629
27630 2009-11-03  Bruno Haible  <bruno@clisp.org>
27631
27632         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27633
27634 2009-11-03  Jim Meyering  <meyering@redhat.com>
27635
27636         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27637         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27638         if it is defined.
27639
27640 2009-11-02  Eric Blake  <ebb9@byu.net>
27641
27642         mktime, timegm: share common declaration
27643         * lib/mktime-internal.h: New file.
27644         * lib/mktime.c: Use it rather than open-coding a declaration.
27645         * lib/timegm.c: Likewise.
27646         * modules/mktime (Files): Ship it.
27647         * modules/timegm (Files): Likewise.
27648         Suggested by Bruno Haible.
27649
27650         test-update-copyright: update test to match script changes
27651         * tests/test-update-copyright.sh: Avoid hard-coding perl
27652         location.  Don't update *.bak created by earlier runs.
27653
27654 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27655             Simon Josefsson  <simon@josefsson.org>
27656             Bruno Haible  <bruno@clisp.org>
27657
27658         Fix link error on Solaris 8.
27659         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27660         also in libnsl. Define also INET_PTON_LIB.
27661         * modules/inet_pton (Link): New section.
27662
27663 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27664             Bruno Haible  <bruno@clisp.org>
27665
27666         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27667         * modules/inet_ntop (Link): New section.
27668         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27669
27670 2009-11-02  Eric Blake  <ebb9@byu.net>
27671
27672         maint: avoid compiler warnings in m4 macros
27673         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27674         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27675
27676 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27677
27678         * m4/pmccabe2html.m4: Remove file.
27679         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27680         function.  Change maintainer.
27681         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27682         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27683         Courtès).
27684
27685 2009-10-31  Eric Blake  <ebb9@byu.net>
27686
27687         fseeko: fix m4 regression
27688         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27689         regression from 2009-10-27.
27690         Reported by Ralf Wildenhues.
27691
27692 2009-10-31  Jim Meyering  <meyering@redhat.com>
27693
27694         inttostr: aesthetics and improved (compile-time) safety
27695         Define inttype_is_signed rather than inttype_is_unsigned,
27696         since the sole use is via "#if inttype_is_signed".
27697         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27698         inttype_is_unsigned.
27699         * lib/offtostr.c (inttype_is_signed): Likewise.
27700         * lib/uinttostr.c (inttype_is_signed): Likewise.
27701         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27702         * lib/inttostr.c (inttostr): Use verify to cross-check the
27703         inttype_is_signed value and the signedness of the actual type.
27704         * modules/inttostr (Depends-on): Add verify.
27705
27706 2009-10-30  Eric Blake  <ebb9@byu.net>
27707
27708         build: avoid compiler warnings
27709         * lib/fchmodat.c (lchmod): Mark unused variables.
27710         * lib/getopt.c (_getopt_initialize): Likewise.
27711         * lib/mktime.c (__mktime_internal): Provide prototype.
27712         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27713         older gcc that do not understand #pragma GCC diagnostic.
27714         * lib/uinttostr.c (inttype_is_unsigned): Define.
27715         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27716
27717 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27718
27719         stat: fix compilation on AIX
27720         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27721         only see struct stat64.
27722
27723 2009-10-30  Eric Blake  <ebb9@byu.net>
27724
27725         exclude: make more robust
27726         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27727         rather than masking a coding bug.
27728         Suggested by Bruno Haible.
27729
27730 2009-10-30  Jim Meyering  <meyering@redhat.com>
27731
27732         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27733         Rather than putting #!/usr/bin/perl on the first line,
27734         start with a variant of what's recommended by "man perlrun" that
27735         invokes the first "perl" program from your shell's search path.
27736         * build-aux/gitlog-to-changelog: Replace #!... as above.
27737         Add a "Local Variables" perl mode setting.
27738         Prompted by a patch from Ludovic Courtès.
27739         Improved by Eric Blake.
27740         * build-aux/useless-if-before-free: Likewise.
27741         * build-aux/announce-gen: Likewise.
27742         * build-aux/update-copyright: Likewise.
27743
27744 2009-10-29  Eric Blake  <ebb9@byu.net>
27745
27746         filenamecat-lgpl: adjust clients
27747         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27748         filenamecat.
27749         * modules/renameat (Depends-on): Likewise.
27750
27751         filenamecat: split into filenamecat-lgpl
27752         * modules/filenamecat-lgpl: New module.
27753         * modules/filenamecat (Files): Move library-safe files into
27754         filenamecat-lgpl.
27755         (Depends-on): Add filenamecat-lgpl.
27756         (configure.ac): Declare witness.
27757         * lib/filenamecat.h (file_name_concat): Only declare when using
27758         GPL module.
27759         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27760         Move...
27761         * lib/filenamecat-lgpl.c: ...into new file.
27762         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27763         (gl_FILE_NAME_CONCAT): Use it.
27764         * MODULES.html.sh (File system functions): Mention new module.
27765
27766         argp: avoid memory leak
27767         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27768         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27769         base_name, since the latter malloc()s and can call exit().
27770         Leak introduced 2006-07-03.
27771
27772         dirname-lgpl: adjust clients that don't need full dirname
27773         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27774         * modules/filenamecat (Depends-on): Likewise.
27775         * modules/linkat (Depends-on): Likewise.
27776         * modules/mkancesdirs (Depends-on): Likewise.
27777         * modules/mkdir (Depends-on): Likewise.
27778         * modules/openat (Depends-on): Likewise.
27779         * modules/savewd (Depends-on): Likewise.
27780         * modules/rename (Depends-on): Likewise.
27781         (License): Relax license.
27782         * modules/mkdir-tests (Depends-on): Drop progname.
27783         (Makefile.am): Delete unneeded LDADD.
27784         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27785
27786         dirname: split into dirname-lgpl
27787         * modules/dirname-lgpl: New module.
27788         * modules/dirname (Files): Move library-safe files into
27789         dirname-lgpl.
27790         (Depends-on): Add dirname-lgpl.
27791         (configure.ac): Declare witness.
27792         * modules/double-slash-root (License): Relax license.
27793         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27794         module.
27795         * lib/dirname.c (dir_len, mdir_name): Move...
27796         * lib/dirname-lgpl.c: ...into new file.
27797         * lib/basename.c (last_component, base_len): Move...
27798         * lib/basename-lgpl.c: ...into new file.
27799         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27800         (gl_DIRNAME): Use it.
27801         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27802         Mention new module.
27803         * modules/dirname-tests (Depends-on): Add progname.
27804         * tests/test-dirname.c (program_name): Delete.
27805
27806         mkdir: make safe for libraries
27807         * modules/mkdir (Depends-on): Drop xalloc.
27808         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27809         exit.
27810
27811         tests: avoid some compiler warnings
27812         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27813         literals.
27814         * tests/test-memchr.c (main): Avoid type mismatch.
27815         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27816         * tests/test-base64.c (main): Likewise.
27817         * tests/test-getdelim.c (main): Likewise.
27818         * tests/test-gethostname.c (main): Likewise.
27819         * tests/test-getline.c (main): Likewise.
27820         * tests/test-netinet_in.c (main): Likewise.
27821         * tests/test-select.c (open_server_socket, main): Likewise.
27822         * tests/test-select-stdin.c (main): Likewise.
27823         * tests/test-sockets.c (main): Likewise.
27824         * tests/test-strsignal.c (main): Likewise.
27825         * tests/test-sys_select.c (main): Likewise.
27826         * tests/test-sys_socket.c (main): Likewise.
27827         * tests/test-u64.c (main): Likewise.
27828         * tests/test-xfprintf-posix.c (main): Likewise.
27829         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27830
27831         sockets: avoid compiler warning
27832         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27833
27834         maint: detect usage(1) and other suspicious exits
27835         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27836
27837 2009-10-29  Jim Meyering  <meyering@redhat.com>
27838
27839         timespec: long-to-int truncation could make timespec_cmp malfunction
27840         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27841         a multiple of 2^32 nanoseconds as no difference.
27842
27843 2009-10-28  Jim Meyering  <meyering@redhat.com>
27844
27845         fprintftime: wrap macro code argument in "do {...} while(0)"
27846         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27847         cpy macro must be a statement that can be followed by a semicolon.
27848         Now that the else clause contains a comment and is hence longer
27849         than one line, I require curly braces.  That in turn requires
27850         that we wrap this code block in the standard do...while(0).
27851
27852         fprintftime: remove stray semicolon from previous change
27853         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27854
27855         fprintftime: avoid a warning about ignored fwrite return value
27856         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27857         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27858         that is unsafe.
27859         * modules/fprintftime (Depends-on): Add ignore-value.
27860
27861         exclude: avoid an unwarranted warning
27862         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27863
27864 2009-10-27  Eric Blake  <ebb9@byu.net>
27865
27866         fseek: avoid compilation failure when fflush is replaced
27867         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27868         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27869         module is in use.
27870         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27871         module is not in use; since REPLACE_FSEEK worked otherwise.
27872         (GNULIB_FTELLO): Likewise for ftell.
27873         Reported by Ian Beckwith and others.
27874
27875 2009-10-27  Bruno Haible  <bruno@clisp.org>
27876
27877         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27878         Reported by Jim Meyering.
27879
27880 2009-10-27  Jim Meyering  <jim@meyering.net>
27881             Bruno Haible  <bruno@clisp.org>
27882
27883         Avoid warning despite dropping the return value of fwrite.
27884         * lib/unicodeio.c: Include ignore-value.h.
27885         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27886         * modules/unicodeio (Depends-on): Add ignore-value.
27887
27888 2009-10-26  Eric Blake  <ebb9@byu.net>
27889
27890         areadlinkat: fix fallback path
27891         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27892         pointer and zero.
27893
27894 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27895
27896         Use a better IO block size for modern systems
27897         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27898         * lib/md2.c: Likewise.
27899         * lib/md4.c: Likewise.
27900         * lib/md5.c: Likewise.
27901         * lib/sha1.c: Likewise.
27902         * lib/sha256.c: Likewise.
27903         * lib/sha512.c: Likewise.
27904
27905 2009-10-22  Eric Blake  <ebb9@byu.net>
27906
27907         tests: avoid several compiler warnings
27908         * tests/test-getcwd.c (main): Avoid buffer underflow.
27909         * tests/test-getdate.c (main): String literals are not safe with
27910         putenv, so use setenv.  Declare unused argument.
27911         * modules/getdate-tests (Depends-on): Add setenv.
27912         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27913         problems with string literals in char *.
27914         * tests/test-hash.c (main): Avoid shadowing declaration.
27915         (insert_new): Treat string literals as char const *.
27916         * tests/test-getopt.h (test_getopt): Likewise.
27917         (getopt_loop): Alter types to minimize casting elsewhere.
27918         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27919         (test_getopt_long_posix): Likewise.
27920         (do_getopt_long): Add wrapper to minimize casting.
27921         * tests/test-atexit.c (clear_temp_file): Use void.
27922         * tests/test-areadlink-with-size.c (main): Declare unused
27923         arguments.
27924         * tests/test-areadlink.c (main): Likewise.
27925         * tests/test-areadlinkat-with-size.c (main): Likewise.
27926         * tests/test-areadlinkat.c (main): Likewise.
27927         * tests/test-canonicalize-lgpl.c (main): Likewise.
27928         * tests/test-canonicalize.c (main): Likewise.
27929         * tests/test-dirent-safer.c (main): Likewise.
27930         * tests/test-dirname.c (main): Likewise.
27931         * tests/test-dup2.c (main): Likewise.
27932         * tests/test-fchdir.c (main): Likewise.
27933         * tests/test-fcntl-h.c (main): Likewise.
27934         * tests/test-fcntl-safer.c (main): Likewise.
27935         * tests/test-fdopendir.c (main): Likewise.
27936         * tests/test-fdutimensat.c (main): Likewise.
27937         * tests/test-fflush.c (main): Likewise.
27938         * tests/test-filenamecat.c (main): Likewise.
27939         * tests/test-filevercmp.c (main): Likewise.
27940         * tests/test-fopen-safer.c (main): Likewise.
27941         * tests/test-fopen.c (main): Likewise.
27942         * tests/test-fpending.c (main): Likewise.
27943         * tests/test-fpurge.c (main): Likewise.
27944         * tests/test-freading.c (main): Likewise.
27945         * tests/test-fstatat.c (main): Likewise.
27946         * tests/test-fsync.c (main): Likewise.
27947         * tests/test-futimens.c (main): Likewise.
27948         * tests/test-getndelim2.c (main): Likewise.
27949         * tests/test-gettimeofday.c (main): Likewise.
27950         * tests/test-getopt.c (main): Likewise.
27951         * tests/test-i-ring.c (main): Likewise.
27952         * tests/test-inttypes.c (main): Likewise.
27953         * tests/test-link.c (main): Likewise.
27954         * tests/test-lstat.c (main): Likewise.
27955         * tests/test-math.c (main): Likewise.
27956         * tests/test-md5.c (main): Likewise.
27957         * tests/test-memchr2.c (main): Likewise.
27958         * tests/test-memrchr.c (main): Likewise.
27959         * tests/test-mkdir.c (main): Likewise.
27960         * tests/test-mkdirat.c (main): Likewise.
27961         * tests/test-mkfifoat.c (main): Likewise.
27962         * tests/test-open.c (main): Likewise.
27963         * tests/test-openat-safer.c (main): Likewise.
27964         * tests/test-openat.c (main): Likewise.
27965         * tests/test-quotearg.c (main): Likewise.
27966         * tests/test-rawmemchr.c (main): Likewise.
27967         * tests/test-readlink.c (main): Likewise.
27968         * tests/test-remove.c (main): Likewise.
27969         * tests/test-rename.c (main): Likewise.
27970         * tests/test-renameat.c (main): Likewise.
27971         * tests/test-rmdir.c (main): Likewise.
27972         * tests/test-sha1.c (main): Likewise.
27973         * tests/test-signal.c (main): Likewise.
27974         * tests/test-sigaction.c (main): Likewise.
27975         * tests/test-stat.c (main): Likewise.
27976         * tests/test-stat-time.c (main): Likewise.
27977         * tests/test-stddef.c (main): Likewise.
27978         * tests/test-stdint.c (main): Likewise.
27979         * tests/test-stdio.c (main): Likewise.
27980         * tests/test-stdlib.c (main): Likewise.
27981         * tests/test-strchrnul.c (main): Likewise.
27982         * tests/test-strerror.c (main): Likewise.
27983         * tests/test-string.c (main): Likewise.
27984         * tests/test-strtod.c (main): Likewise.
27985         * tests/test-strverscmp.c (main): Likewise.
27986         * tests/test-symlink.c (main): Likewise.
27987         * tests/test-symlinkat.c (main): Likewise.
27988         * tests/test-sys_stat.c (main): Likewise.
27989         * tests/test-sys_time.c (main): Likewise.
27990         * tests/test-time.c (main): Likewise.
27991         * tests/test-unistd.c (main): Likewise.
27992         * tests/test-unlink.c (main): Likewise.
27993         * tests/test-unlinkat.c (main): Likewise.
27994         * tests/test-utimens.c (main): Likewise.
27995         * tests/test-utimensat.c (main): Likewise.
27996         * tests/test-version-etc.c (main): Likewise.
27997         * tests/test-wchar.c (main): Likewise.
27998         * tests/test-wctype.c (main): Likewise.
27999         * tests/test-xprintf-posix.c (main): Likewise.
28000         * tests/test-posixtm.c (main): Likewise.
28001         (STREQ): Delete unused macro.
28002         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28003         shadowed variables.
28004         * tests/test-memchr.c (main): Likewise.
28005
28006 2009-10-21  Eric Blake  <ebb9@byu.net>
28007
28008         areadlinkat: avoid failure on older glibc
28009         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28010         rather than mis-comparing 0 against FUNC_RESULT of char*.
28011
28012 2009-10-21  Bruno Haible  <bruno@clisp.org>
28013
28014         * modules/stpncpy (License): Relicense under LGPLv2+.
28015         Reported by David Lutterkort <lutter@redhat.com>.
28016
28017 2009-10-20  Eric Blake  <ebb9@byu.net>
28018
28019         utimensat: work around Solaris 9 bug
28020         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28021         has trailing slash bugs.
28022         * tests/test-lutimens.h (test_lutimens): Enhance test.
28023         * tests/test-utimens.h (test_utimens): Likewise.
28024         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28025         * doc/posix-functions/utimes.texi (utimes): Likewise.
28026         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28027         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28028         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28029         * doc/posix-functions/futimens.texi (futimens): Likewise.
28030
28031         fdutimensat: new module
28032         * modules/fdutimensat: New file.
28033         * lib/fdutimensat.c (fdutimensat): Likewise.
28034         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28035         * MODULES.html.sh (File system functions): Mention module.
28036         * modules/fdutimensat-tests: New test.
28037         * tests/test-fdutimensat.c: Likewise.
28038
28039         doc: regenerate INSTALL
28040         * doc/INSTALL: Reflect recent autoconf update.
28041         * doc/INSTALL.ISO: Likewise.
28042         * doc/INSTALL.UTF-8: Likewise.
28043
28044 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28045
28046         acl: warn if ACL support is not detected
28047         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28048
28049 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28050
28051         * lib/nproc.h: Add extern "C" block for C++.
28052
28053 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28054             Bruno Haible  <bruno@clisp.org>
28055
28056         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28057         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28058         * doc/posix-functions/isalpha.texi: Likewise.
28059         * doc/posix-functions/isblank.texi: Likewise.
28060         * doc/posix-functions/iscntrl.texi: Likewise.
28061         * doc/posix-functions/isdigit.texi: Likewise.
28062         * doc/posix-functions/isgraph.texi: Likewise.
28063         * doc/posix-functions/islower.texi: Likewise.
28064         * doc/posix-functions/isprint.texi: Likewise.
28065         * doc/posix-functions/ispunct.texi: Likewise.
28066         * doc/posix-functions/isspace.texi: Likewise.
28067         * doc/posix-functions/isupper.texi: Likewise.
28068         * doc/posix-functions/isxdigit.texi: Likewise.
28069
28070 2009-10-18  Bruno Haible  <bruno@clisp.org>
28071
28072         Tests for module 'isblank'.
28073         * modules/isblank-tests: New file.
28074         * tests/test-isblank.c: New file.
28075
28076         New module 'isblank'.
28077         * lib/isblank.c: New file.
28078         * m4/isblank.m4: New file.
28079         * modules/isblank: New file.
28080         * doc/posix-functions/isblank.texi: Mention the new module.
28081
28082 2009-10-18  Bruno Haible  <bruno@clisp.org>
28083
28084         New module 'ctype'.
28085         * lib/ctype.in.h: New file.
28086         * m4/ctype.m4: New file.
28087         * modules/ctype: New file.
28088         * doc/posix-headers/ctype.texi: Mention the new module.
28089
28090 2009-10-18  Jim Meyering  <meyering@redhat.com>
28091
28092         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28093         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28094         right after its initialization, rather than farther down.
28095         Keeping these in close proximity makes it easier to ensure
28096         that each such variable is initialized.  E.g.,
28097
28098             LIB_CLOCK_GETTIME=
28099             AC_SUBST([LIB_CLOCK_GETTIME])
28100
28101         This change also increments these serial numbers.
28102         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28103         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28105
28106 2009-10-18  Bruno Haible  <bruno@clisp.org>
28107
28108         Don't let environment variables perturb build.
28109         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28110         (gl_PREREQ_GETHRXTIME): ... not here.
28111
28112 2009-10-18  Bruno Haible  <bruno@clisp.org>
28113
28114         Avoid symlink attack in localcharset module.
28115         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28116         (O_NOFOLLOW): Define fallback.
28117         (get_charset_aliases): Don't open the file if it is a symbolic link.
28118         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28119         gl_FCNTL_H.
28120         (gl_FCNTL_H): Require it.
28121         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28122         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28123         Reported by Fergal Glynn <fglynn@veracode.com>.
28124
28125 2009-10-18  Bruno Haible  <bruno@clisp.org>
28126
28127         Implement nproc for mingw.
28128         * lib/nproc.c: Include <windows.h>
28129         (num_processors): On native Windows platforms, try GetSystemInfo.
28130
28131 2009-10-18  Bruno Haible  <bruno@clisp.org>
28132
28133         Implement nproc for IRIX.
28134         * lib/nproc.c: Include <sys/sysmp.h>.
28135         (num_processors): On IRIX systems, try sysmp.
28136         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28137
28138 2009-10-18  Bruno Haible  <bruno@clisp.org>
28139
28140         Implement nproc for HP-UX.
28141         * lib/nproc.c: Include <sys/pstat.h>
28142         (num_processors): On HP-UX systems, try pstat_getdynamic.
28143         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28144         pstat_getdynamic.
28145
28146 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28147             Bruno Haible  <bruno@clisp.org>
28148
28149         Implement nproc for NetBSD, OpenBSD.
28150         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28151         (ARRAY_SIZE): New macro.
28152         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28153         * m4/nproc.m4: New file.
28154         * modules/nproc (Files): Add m4/nproc.m4.
28155         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28156         (Makefile.am): Instead, augment lib_SOURCES.
28157
28158 2009-10-18  Bruno Haible  <bruno@clisp.org>
28159
28160         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28161         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28162         sys/param.h.
28163
28164 2009-10-16  Eric Blake  <ebb9@byu.net>
28165
28166         utimensat: new module
28167         * modules/utimensat: New file.
28168         * lib/utimensat.c (utimensat): Likewise.
28169         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28170         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28171         so we can work around Linux bugs.
28172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28173         * modules/sys_stat (Makefile.am): Substitute them.
28174         * lib/sys_stat.in.h (utimensat): Declare it.
28175         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28176         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28177         * modules/utimensat-tests: New test.
28178         * tests/test-utimensat.c: Likewise.
28179
28180         utimens: let lutimens work on non-symlinks
28181         * lib/utimens.c (lutimens): Fall back to utimens rather than
28182         failing with ENOSYS, when file is not a symlink.
28183         (utimens): Reduce redirection.
28184         * tests/test-lutimens.h (test_lutimens): Update test to cover
28185         non-symlinks.
28186         * tests/test-utimens.h (test_utimens): Update test to cover
28187         symlinks.
28188         * tests/test-utimens.c (main): Update caller.
28189
28190         utimens: cache whether utimensat syscall works
28191         * lib/utimens.c (utimensat_works_really): New cache variable.
28192         (fdutimens, lutimens): Use it to avoid failing syscall.
28193
28194         test-stat-time, test-utimens: improve portability
28195         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28196         ext4 on alpha, and for cygwin.
28197         * tests/test-utimens-common.h: New file.
28198         (nap): Factor delays into single function.
28199         * tests/test-lutimens.h (test_lutimens): Use new header.
28200         * tests/test-futimens.h (test_futimens): Likewise.
28201         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28202         timestamps to occur from same machine, as was done previously for
28203         test_utimens.
28204         * modules/utimens-tests (Files): Ship new file.
28205         * modules/futimens-tests (Files): Likewise.
28206         Reported in part by Jim Meyering.
28207
28208         sys_stat: sort replacement declarations
28209         * lib/sys_stat.in.h: Sort declarations.
28210         * lib/futimens.c (futimens): Fix typo.
28211
28212 2009-10-15  Jim Meyering  <meyering@redhat.com>
28213
28214         don't let environment settings perturb build
28215         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28216         could cause a configure-time and/or build-time malfunction.
28217         Typically, a configure-time function-in-library test is performed
28218         via code like this:
28219
28220           LIB_VAR=
28221           AC_SUBST([LIB_VAR])
28222           prefix_saved_LIBS=$LIBS
28223             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28224                        [test "$ac_cv_search_FUNC" = "none required" ||
28225                         LIB_VAR=$ac_cv_search_FUNC])
28226           LIBS=$prefix_saved_LIBS
28227
28228         However, in each of the files affected by this change, the LIB_VAR=
28229         initialization was omitted.  Thus, when set in the environment, its
28230         value would propagate into generated Makefiles when FUNC is not found
28231         in LIB_NAME.
28232         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28233         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28234         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28235
28236 2009-10-14  Eric Blake  <ebb9@byu.net>
28237
28238         fchdir: avoid infinite recursion in mingw
28239         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28240         recursing.
28241
28242         test-stat-time: port to mingw
28243         * tests/test-stat-time.c (force_unlink): Return a value.
28244         (test_ctime) [W32]: Fix compilation error.
28245         (nap): Don't call usleep with too large an argument.  Use
28246         force_unlink.
28247         * doc/pastposix-functions/usleep.texi (usleep): Document the
28248         portability issue.
28249
28250 2009-10-13  Jim Meyering  <meyering@redhat.com>
28251
28252         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28253         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28254         * modules/pipe-filter-ii: Likewise.
28255         * modules/sys_socket-tests: Likewise.
28256         * modules/tsearch-tests: Likewise.
28257         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28258         (check): Depend on it.
28259
28260 2009-10-12  Eric Blake  <ebb9@byu.net>
28261
28262         utimens-tests: port to NFS file systems
28263         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28264         comparisons to avoid spurious failures from timestamp drift
28265         between NFS machines.
28266
28267 2009-10-12  Eric Blake  <ebb9@byu.net>
28268
28269         stat-time-tests: minor cleanups
28270         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28271         * tests/test-stat-time.c (nap): Separate assignment from call.
28272         Suggested by Paolo Bonzini and Bruno Haible.
28273
28274         sys_stat: guarantee struct timespec
28275         * lib/sys_stat.in.h (includes): Always include <time.h>
28276         * modules/sys_stat (Depends-on): Add time.
28277         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28278         mode_t permission values.
28279         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28280         get at subsecond timestamps.
28281
28282 2009-10-10  Eric Blake  <ebb9@byu.net>
28283
28284         futimens: new module
28285         * modules/futimens: New file.
28286         * lib/futimens.c (futimens): Likewise.
28287         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28288         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28289         we can work around Linux bugs.
28290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28291         * modules/sys_stat (Makefile.am): Substitute them.
28292         * lib/sys_stat.in.h (futimens): Declare it.
28293         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28294         * doc/posix-functions/futimens.texi (futimens): Likewise.
28295         * modules/futimens-tests: New test.
28296         * tests/test-futimens.c: Likewise.
28297
28298         utimens: introduce fdutimens
28299         * lib/utimens.h (fdutimens): New prototype.
28300         * lib/utimens.c (gl_futimens): Move guts...
28301         (fdutimens): ...to new interface.
28302         * tests/test-utimens.c (do_fdutimens): Use it.
28303
28304         utimens: add UTIME_NOW and UTIME_OMIT support
28305         * lib/utimens.c (validate_timespec, update_timespec): New helper
28306         functions.
28307         (gl_futimens, lutimens): Use them.
28308         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28309         stdbool, sys_stat.
28310         (Link): Mention resulting library dependency.
28311         * modules/utimecmp (Link): Likewise.
28312         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28313         (Makefile.am): Pick up library dependency.
28314         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28315         definition.
28316         * tests/test-sys_stat.c: Test the definitions.
28317         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28318         * NEWS: Document library dependency.
28319
28320         utimecmp: support symlink timestamps
28321         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28322         hashing when possible.  Use pathconf when available.
28323         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28324         * modules/utimecmp (Depends-on): Add lstat.
28325
28326         utimens: add lutimens interface
28327         * lib/utimens.c (lutimens): New function.
28328         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28329         * lib/utimens.h (lutimens): Declare new interface.
28330         * tests/test-utimens.c (main): Enhance test.
28331         * tests/test-lutimens.h (test_lutimens): New file.
28332         * modules/utimens-tests (Files): Distribute it.
28333         (Depends-on): Add symlink.
28334         (configure.ac): Check for usleep.
28335
28336         utimens: validate futimens usage
28337         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28338         fewer syscalls on failure later on.  Avoid compiler warning on
28339         mingw.
28340         * modules/utimens (Depends-on): Add dup2.
28341
28342         utimens: add test
28343         * modules/utimens-tests: New test.
28344         * tests/test-utimens.h: New file.
28345         * tests/test-futimens.h: Likewise.
28346         * tests/test-utimens.c: Likewise.
28347
28348         doc: mention timestamp portability issues
28349         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28350         instead.
28351         * doc/posix-functions/utime.texi (utime): Likewise.
28352         * doc/posix-functions/utimes.texi (utimes): Likewise.
28353         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28354         instead.
28355         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28356         module.
28357         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28358         Mention weakness with symlink timestamps.
28359         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28360         to utimensat/futimens instead.
28361         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28362
28363         test-dup2: enhance test
28364         * tests/test-dup2.c (main): Also check AT_FDCWD.
28365
28366         test-stat-time: avoid more spurious failures
28367         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28368         xfs; and avoid race if the two timestamps cross quantization edge.
28369
28370         relocatable: prefer 'file system' over 'filesystem'
28371         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28372         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28373         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28374         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28375         * lib/relocatable.c (compute_curr_prefix): Likewise.
28376
28377 2009-10-10  Jim Meyering  <meyering@redhat.com>
28378
28379         stat-time-tests: check for the usleep function
28380         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28381
28382 2009-10-10  Bruno Haible  <bruno@clisp.org>
28383
28384         * modules/xnanosleep: Put the Link section after the Include section.
28385
28386 2009-10-09  Eric Blake  <ebb9@byu.net>
28387
28388         dup2: work around FreeBSD 6.1 bug
28389         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28390         * doc/posix-functions/dup2.texi (dup2): Document it.
28391         Reported by Nelson H. F. Beebe and Jim Meyering.
28392
28393         test-stat-time: port to buggy NFS clients
28394         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28395         (test_ctime): Also skip test if mtime and ctime are skewed.
28396
28397         maint: prefer 'file system' over 'filesystem'
28398         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28399         * doc/posix-functions/lstat.texi (lstat): Likewise.
28400         * lib/file-has-acl.c (file_has_acl): Likewise.
28401         * lib/fwriteerror.c [TEST]: Likewise.
28402         * tests/test-areadlink.h (test_areadlink): Likewise.
28403         * tests/test-areadlinkat-with-size.c (main): Likewise.
28404         * tests/test-areadlinkat.c (main): Likewise.
28405         * tests/test-canonicalize-lgpl.c (main): Likewise.
28406         * tests/test-canonicalize.c (main): Likewise.
28407         * tests/test-fstatat.c (main): Likewise.
28408         * tests/test-linkat.c (main): Likewise.
28409         * tests/test-lstat.h (test_lstat_func): Likewise.
28410         * tests/test-mkdir.h (test_mkdir): Likewise.
28411         * tests/test-readlink.h (test_readlink): Likewise.
28412         * tests/test-remove.c (main): Likewise.
28413         * tests/test-rename.h (test_rename): Likewise.
28414         * tests/test-renameat.c (main): Likewise.
28415         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28416         * tests/test-symlink.h (test_symlink): Likewise.
28417         * tests/test-symlinkat.c (main): Likewise.
28418         * tests/test-unlink.h (test_unlink_func): Likewise.
28419         * tests/test-unlinkat.c (main): Likewise.
28420
28421         maint: make realtime library usage explicit
28422         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28423         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28424         * modules/settime (Link): Likewise.
28425         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28426
28427         test-stat-time: speed up execution
28428         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28429         warning on mingw.
28430         (nap): New helper function.
28431         (prepare_test): Use it to reduce sleep time.
28432         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28433         execution.
28434         * modules/stat-time-tests (configure.ac): Check for usleep.
28435
28436 2009-10-09  Jim Meyering  <meyering@redhat.com>
28437
28438         selinux-h: always use getfilecon wrappers
28439         * lib/getfilecon.c: New file.
28440         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28441         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28442         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28443         (fgetfilecon): Provide a stub.
28444         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28445         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28446         file unconditionally.
28447         When <selinux/selinux.h> is found, arrange to use wrappers.
28448         * modules/selinux-h (Files): Add getfilecon.c.
28449         (Makefile.am): Substitute include-next-related bits
28450         into the now-always-generated selinux/selinux.h file.
28451         * doc/glibc-functions/lgetfilecon.texi: New file.
28452         * doc/glibc-functions/fgetfilecon.texi: New file.
28453         * doc/glibc-functions/getfilecon.texi: New file.
28454         * doc/glibc-functions/getfilecon-desc.texi: New file.
28455         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28456         which to pull in the new files.
28457         * MODULES.html.sh (Misc): Add selinux-h.
28458
28459 2009-10-08  Jim Meyering  <meyering@redhat.com>
28460
28461         unistd: fix comment typo
28462         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28463
28464 2009-10-08  Eric Blake  <ebb9@byu.net>
28465
28466         areadlink: use SIZE_MAX consistently
28467         * modules/areadlink (Depends-on): Add stdint.
28468         * modules/areadlink-with-size (Depends-on): Likewise.
28469         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28470         gives NULL; drop sys/types, since unistd gives size_t; and add
28471         stdint for SIZE_MAX.
28472         (SIZE_MAX): Rely on headers.
28473         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28474         and add stdint.
28475         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28476         (SIZE_MAX): Likewise.
28477         (INITIAL_BUF_SIZE): Turn into enum.
28478         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28479
28480 2009-10-08  Jim Meyering  <meyering@redhat.com>
28481
28482         areadlinkat: avoid compilation failure
28483         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28484         Fix typo in comment.
28485
28486 2009-10-07  Eric Blake  <ebb9@byu.net>
28487
28488         areadlinkat-with-size: new module
28489         * modules/areadlinkat-with-size: New module.
28490         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28491         * lib/areadlink.h (areadlinkat): Declare it.
28492         * MODULES.html.sh (File system functions): Mention it.
28493         * modules/areadlinkat-with-size-tests: New test.
28494         * tests/test-areadlinkat-with-size.c: New file.
28495
28496         xreadlinkat: new module
28497         * modules/xreadlinkat: New module.
28498         * lib/xreadlinkat.c (xreadlinkat): New file.
28499         * lib/xreadlink.h (xreadlinkat): Declare it.
28500         * MODULES.html.sh (File system functions): Mention it.
28501
28502         areadlinkat: new module
28503         * lib/at-func.c (FUNC_FAIL): New define.
28504         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28505         * modules/areadlinkat: New module.
28506         * lib/linkat.c (areadlinkat): Move...
28507         * lib/areadlinkat.c (areadlinkat): ...to new file.
28508         * lib/areadlink.h (areadlinkat): Declare it.
28509         * modules/linkat (Depends-on): Add areadlinkat.
28510         * MODULES.html.sh (File system functions): Mention it.
28511         * modules/areadlinkat-tests: New test.
28512         * tests/test-areadlinkat.c: New file.
28513
28514         areadlink, areadlink-with-size: add tests
28515         * modules/areadlink-tests: New test.
28516         * modules/areadlink-with-size-tests: Likewise.
28517         * tests/test-areadlink.h: New file.
28518         * tests/test-areadlink.c: Likewise.
28519         * tests/test-areadlink-with-size.c: Likewise.
28520
28521         maint: minor cleanups
28522         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28523         _UNUSED_PARAMETER_ instead.
28524         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28525         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28526         * modules/linkat-tests (Files): Distribute test-link.h.
28527
28528         openat, utimens: whitespace cleanup
28529         * lib/openat.c: Prefer space throughout, rather than mix of 8
28530         spaces vs. tabs.
28531         * lib/at-func.c: Likewise.
28532         * lib/utimens.c: Likewise.
28533
28534         openat: avoid using wrong fd
28535         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28536         working directory chooses same fd.
28537         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28538
28539         mkdir, mkdirat: fix cygwin 1.5.x bug
28540         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28541         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28542         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28543         bug.
28544         (gl_PREREQ_MKDIR): Delete unused macro.
28545         * modules/mkdir (Files): Track file rename.
28546         (configure.ac): Update macro name.
28547         * modules/openat (Depends-on): Add mkdir.
28548         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28549
28550         mkdir, mkdirat: add tests
28551         * modules/mkdir-tests: New test.
28552         * tests/test-mkdir.h: New file.
28553         * tests/test-mkdir.c: Likewise.
28554         * tests/test-mkdirat.c: Likewise.
28555         * modules/openat-tests (Files): Add new files.
28556         (Makefile.am): Run new test.
28557
28558 2009-10-06  Eric Blake  <ebb9@byu.net>
28559
28560         doc: tweak *at function documentation
28561         * doc/posix-functions/faccessat.texi (faccessat): Mention
28562         known issue with replacement.
28563         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28564         * doc/posix-functions/linkat.texi (linkat): Likewise.
28565         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28566         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28567         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28568         * doc/posix-functions/renameat.texi (renameat): Likewise.
28569         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28570
28571         openat: fix GNU/Hurd bug in unlinkat
28572         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28573         broken.
28574         * doc/posix-functions/unlink.texi (unlink): Document this.
28575         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28576
28577         fdopendir: fix GNU/Hurd bug
28578         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28579         allowing non-directory fds.
28580         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28581         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28582         * modules/dirent (Makefile.am): Substitute it.
28583         * lib/dirent.in.h (fdopendir): Declare replacement.
28584         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28585         * tests/test-fdopendir.c (main): Test something other than
28586         /dev/null, since on Hurd that behaves like a directory.
28587
28588         test-symlink: port to GNU/Hurd
28589         * tests/test-symlink.h (test_symlink): Relax expected errno.
28590
28591         doc: tweak more cygwin information
28592         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28593         now compatible with glibc.
28594         * doc/posix-functions/getopt.texi (getopt): Likewise.
28595
28596         getopt-gnu: add another test
28597         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28598         guarantee behavior relied on by m4.
28599         * tests/test-getopt.c (main): Use it.
28600         * modules/getopt-posix-tests (Depends-on): Add setenv.
28601         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28602
28603         getopt: fix compilation on darwin
28604         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28605         include.
28606         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28607         Reported by Ludovic Courtès.
28608
28609 2009-10-06  Bruno Haible  <bruno@clisp.org>
28610
28611         * modules/size_max (Description): Discourage its use.
28612         Reported by Simon Josefsson.
28613
28614 2009-10-06  Jim Meyering  <meyering@redhat.com>
28615
28616         linkat: avoid compilation failure
28617         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28618
28619 2009-10-05  Eric Blake  <ebb9@byu.net>
28620
28621         linkat: support Linux 2.6.17
28622         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28623         linkat on Linux, but allow cache variable override.
28624         * lib/linkat.c (rpl_linkat): Define override.
28625         * modules/linkat (Depends-on): Add symlinkat.
28626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28627         * modules/unistd (Makefile.am): Substitute it.
28628         * lib/unistd.in.h (linkat): Declare replacement.
28629         Reported by Pádraig Brady.
28630
28631         quotearg: port test to systems with C.UTF-8 locale
28632         * tests/test-quotearg.c (struct result_strings): Add another
28633         member, differentiating between C.ASCII and C.UTF-8 handling.
28634         (compare_strings): Add parameter.
28635         (main): Adjust all callers.
28636
28637         getopt: avoid clash with FreeBSD _getopt_internal
28638         * lib/getopt.in.h (_getopt_internal): Override the name.
28639         * lib/getopt_int.h (includes): Pick up any overrides.
28640         Reported by Reuben Thomas.
28641
28642         hash: allow C89 compilation
28643         * lib/hash.c (check_tuning): Move declaration before statement.
28644         Reported by Reuben Thomas.
28645
28646 2009-10-05  Karl Berry  <karl@gnu.org>
28647
28648         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28649
28650 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28651             Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/uname.c (uname): Use a table-driven algorithm to compute
28654         Windows NT versions.
28655
28656 2009-10-04  Bruno Haible  <bruno@clisp.org>
28657
28658         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28659         program_invocation_short_name.
28660         * modules/progname (configure.ac): Test for presence of
28661         program_invocation_short_name.
28662         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28663
28664 2009-10-04  Bruno Haible  <bruno@clisp.org>
28665
28666         * lib/progname.c (set_program_name): Fix comment.
28667         Reported by Jim Meyering.
28668
28669 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28670             Bruno Haible  <bruno@clisp.org>
28671
28672         * lib/uname.c: Include <string.h>.
28673         (uname): Do only one call to GetVersionEx in the common case.
28674
28675 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28676             Bruno Haible  <bruno@clisp.org>
28677
28678         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28679         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28680         (uname): Add support for Windows CE and various non-x86 CPU types.
28681
28682 2009-10-03  Bruno Haible  <bruno@clisp.org>
28683
28684         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28685         invocation to tests/configure.ac.
28686         Reported by Ian Beckwith <ianb@erislabs.net>.
28687
28688 2009-10-02  Eric Blake  <ebb9@byu.net>
28689
28690         fchdir: avoid compiler warning
28691         * lib/fchdir.c (canonicalize_file_name)
28692         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28693
28694         test-open: support mingw errno values
28695         * tests/test-open.h (test_open): Relax test.
28696         * tests/test-fopen.h (test_fopen): Likewise.
28697         * tests/test-openat-safer.c (main): Likewise.
28698
28699         open: fix opening directory on mingw
28700         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28701
28702         test-open: on GNU/Hurd, /dev/null is a directory
28703         * tests/test-fopen.h (main): Rename...
28704         (test_fopen): ...to this.  Use a guaranteed non-directory when
28705         confirming open behavior on trailing slash.
28706         * tests/test-openat-safer.c (main): Likewise.
28707         * tests/test-open.h (main): Likewise....
28708         (test_open): ...to this.
28709         * tests/test-fopen.c (main): Adjust caller.
28710         * tests/test-fopen-safer.c (main): Likewise.
28711         * tests/test-open.c (main): Likewise.
28712         * tests/test-fcntl-safer.c (main): Likewise.
28713         Reported by Samuel Thibault.
28714
28715         rename, fchdir: don't ignore chdir failure
28716         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28717         * lib/rename.c (rpl_rename) [W32]: Likewise.
28718         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28719         an empty destination directory if source cannot be renamed,
28720         although there is still possibility for failure.
28721         * doc/posix-functions/rename.texi (rename): Document the race.
28722         Reported by Jim Meyering.
28723
28724         maint: cleanup whitespace in recent commits
28725         * lib/rename.c (rpl_rename): Remove tabs.
28726         * tests/test-link.h (test_link): Likewise.
28727         * lib/fchdir.c (get_name): Likewise.
28728         Reported by Jim Meyering.
28729
28730 2009-10-02  Ben Pfaff  <blp@gnu.org>
28731
28732         relocatable-prog-wrapper: Add missing dependency on
28733         double-slash-root.
28734         * modules/relocatable-prog-wrapper: Add dependency.
28735         Reported by Ian Beckwith <ianb@erislabs.net>.
28736
28737 2009-10-02  Eric Blake  <ebb9@byu.net>
28738
28739         renameat: fix Solaris bugs
28740         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28741         needed fixing.
28742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28743         * modules/stdio (Makefile.am): Substitute it.
28744         * lib/stdio.in.h (renameat): Declare replacement.
28745         * lib/renameat.c (rpl_renameat): Implement fix.
28746
28747         renameat: new module
28748         * modules/renameat: New file.
28749         * lib/renameat.c (renameat): Likewise.
28750         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28752         * modules/stdio (Makefile.am): Substitute them.
28753         * lib/stdio.in.h (renameat): Declare it.
28754         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28755         * doc/posix-functions/renameat.texi (renameat): Likewise.
28756         * modules/renameat-tests: New test.
28757         * tests/test-renameat.c: Likewise.
28758
28759         rename: fix mingw bugs
28760         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28761         directory overwrite bugs.
28762
28763         rename: fix another cygwin 1.5 bug
28764         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28765         checks.
28766         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28767         unnecessary cygwin workarounds.  Also work around bug with moving
28768         full directory onto an empty one.
28769         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28770
28771         rename-dest-slash: merge into rename module
28772         * modules/rename-dest-slash (Status): Mark obsolete.
28773         (Depends-on): Add rename.
28774         (Files): Let rename do it all.
28775         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28776         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28777         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28778         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28779         * lib/rename.c (rpl_rename): Update comments.
28780
28781         rename: fix cygwin 1.5.x bugs
28782         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28783         * lib/rename.c (rpl_rename): Work around them.
28784         * modules/rename (Depends-on): Add same-inode.
28785
28786         rename: fix Solaris 10 bug
28787         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28788         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28789         was the only bug.
28790
28791         rename: fix Solaris 9 bug
28792         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28793         on non-directory.  Avoid calling exit.
28794         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28795         strdup.
28796         * modules/rename-tests (Depends-on): Drop lstat.
28797         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28798         (gl_PREREQ_RENAME): Delete unused macro.
28799
28800         rename-dest-slash: fix NetBSD bug
28801         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28802         links.
28803         * modules/rename-dest-slash (Depends-on): Add same-inode.
28804
28805         rename-tests: new test, exposes several platform bugs
28806         * modules/rename-tests: New file.
28807         * tests/test-rename.h: Likewise.
28808         * tests/test-rename.c: Likewise.
28809         * doc/posix-functions/rename.texi (rename): Improve documentation,
28810         including bugs that will eventually be fixed in gnulib.
28811
28812 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28813
28814         * lib/uname.c: Include <stdlib.h>
28815         (uname): Assume version info is available.
28816
28817 2009-10-02  Jim Meyering  <meyering@redhat.com>
28818
28819         gnu-web-doc-update: correct --help output
28820         * build-aux/gnu-web-doc-update: Make --help output relevant.
28821
28822         gnu-web-doc-update: add standard options
28823         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28824
28825         gnu-web-doc-update: New module.
28826         Use this script to automatically update the on-line web documentation
28827         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28828         * modules/gnu-web-doc-update: New file, from coreutils.
28829         * build-aux/gnu-web-doc-update: New script.
28830
28831 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28832
28833         link: LoadLibrary is not needed.
28834         * lib/link.c: Use GetModuleHandle.
28835
28836 2009-10-01  Eric Blake  <ebb9@byu.net>
28837
28838         getopt: bump serial number
28839         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28840         change.
28841
28842         tests: tighten link, rmdir, and remove tests
28843         * tests/test-link.h (includes): No need to use <config.h> here.
28844         Clean up if directory hard link was created, otherwise test for
28845         trailing '.'.
28846         * tests/test-linkat.c (main): Simplify.
28847         * tests/test-remove.c (main): Enhance test for trailing '.'.
28848         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28849
28850 2009-10-01  Jim Meyering  <meyering@redhat.com>
28851
28852         maint.mk: requiring "make major" was annoying, for a "minor" release.
28853         What is intended is "stable", to contrast with alpha and beta,
28854         so require "make stable", not "make major".
28855         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28856         (get_tool_versions): Likewise.
28857         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28858
28859 2009-09-30  Ben Pfaff  <blp@gnu.org>
28860
28861         Fix broken build of replacement for Windows tmpfile().
28862         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28863         flags argument added along with the 'mkostemp' module.
28864
28865 2009-09-28  Bruno Haible  <bruno@clisp.org>
28866
28867         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28868         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28869         to 'remove_elt'.
28870         (gl_list_remove): Update.
28871         * lib/gl_list.c (gl_list_remove): Update.
28872         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28873         to 'remove_elt'.
28874         (gl_oset_remove): Update.
28875         * lib/gl_list.c (gl_oset_remove): Update.
28876         Reported by Eric Blake.
28877
28878 2009-09-28  Eric Blake  <ebb9@byu.net>
28879
28880         doc: mention yet more cygwin 1.7 status
28881         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28882         cygwin.
28883         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28884         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28885
28886         argp: fix test failure
28887         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28888         that are not upper-case.  Pass correct range to tolower.
28889
28890 2009-09-27  Jim Meyering  <meyering@redhat.com>
28891
28892         test-yesno: work around sparc-dash here-document infelicity
28893         Without this change, the literal \177 byte in a here document
28894         would make dash 0.5.5.1-3 access uninitialized memory.
28895         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28896         Instead, use a marker, "@", and filter through tr to create the desired
28897         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28898
28899 2009-09-27  Bruno Haible  <bruno@clisp.org>
28900
28901         Disable untested support for new flavours of ACLs on AIX.
28902         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28903         progress.
28904         * lib/set-mode-acl.c (qset_acl): Likewise.
28905
28906 2008-12-07  Bruno Haible  <bruno@clisp.org>
28907
28908         Add support for new flavours of ACLs on AIX. (Untested.)
28909         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28910         (file_has_acl): Add support for newer AIX.
28911         * lib/set-mode-acl.c (qset_acl): Likewise.
28912         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28913         Rainer Tammer <tammer@tammer.net>.
28914
28915 2009-09-26  Eric Blake  <ebb9@byu.net>
28916
28917         argp: fix compilation of getopt
28918         * lib/getopt.in.h (includes): Use different guard than glibc.
28919         Reported by Sergey Poznyakoff.
28920
28921         doc: mention more cygwin 1.7 status
28922         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28923         bug.
28924         * doc/posix-functions/execl.texi (execl): Likewise.
28925         * doc/posix-functions/execle.texi (execle): Likewise.
28926         * doc/posix-functions/execlp.texi (execlp): Likewise.
28927         * doc/posix-functions/execv.texi (execv): Likewise.
28928         * doc/posix-functions/execve.texi (execve): Likewise.
28929         * doc/posix-functions/execvp.texi (execvp): Likewise.
28930         * doc/glibc-functions/canonicalize_file_name.texi
28931         (canonicalize_file_name): Cygwin 1.7 now provides this.
28932         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28933         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28934         on AT_SYMLINK_NOFOLLOW.
28935
28936 2009-09-24  Eric Blake  <ebb9@byu.net>
28937
28938         test-linkat: make test more robust
28939         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28940
28941         getopt: fix inclusion guards for cygwin
28942         * modules/getopt-posix (Depends-on): Add include-next.
28943         (Makefile.am): Substitute more items in replacement header.
28944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28945         <getopt.h>.
28946         * lib/getopt.in.h (includes): Use split inclusion guard, and
28947         prefer <getopt.h> over include <unistd.h> when one is present.
28948         (option): Also override name of 'struct option'.
28949
28950         same-inode: revert prior change; it is not yet ready
28951         * NEWS: Undo mention of this change.
28952         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28953         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28954         * lib/cycle-check.c (cycle_check): Likewise.
28955         * lib/same.c (same_name): Likewise.
28956         * lib/at-func2.c (at_func2): Likewise.
28957
28958 2009-09-23  Eric Blake  <ebb9@byu.net>
28959
28960         linkat: new module
28961         * modules/linkat: New file.
28962         * lib/at-func2.c (at_func2): Likewise.
28963         * lib/linkat.c (linkat): Likewise.
28964         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28965         * lib/openat-priv.h (at_func2): Add declaration.
28966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28967         * modules/unistd (Makefile.am): Substitute them.
28968         * lib/unistd.in.h (linkat): Declare it.
28969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28970         * doc/posix-functions/linkat.texi (linkat): Likewise.
28971         * doc/posix-functions/link.texi (link): Tweak wording.
28972         * tests/test-link.c (main): Move guts...
28973         * tests/test-link.h (test_link): ...into new file.
28974         * modules/linkat-tests: New test.
28975         * tests/test-linkat.c: Likewise.
28976         * modules/link-tests (Files): Ship new file.
28977         (Depends-on): Add stdbool.
28978
28979         dirname: add library-safe mdir_name
28980         * lib/dirname.h (mdir_name): New prototype.
28981         * lib/dirname.c (dir_name): Move guts...
28982         (mdir_name): ...to new function that avoids xalloc_die.
28983
28984         fchdir: another mingw fix
28985         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28986         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28987         on mingw (where it has not yet been ported), and make it optional
28988         elsewhere.
28989         (_gl_register_fd): Use it.
28990
28991         same-inode: make SAME_INODE tri-state, to port to mingw
28992         * NEWS: Mention this change.
28993         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28994         st_ino always being 0.
28995         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28996         * lib/cycle-check.c (cycle_check): Likewise.
28997         * lib/same.c (same_name): Likewise.
28998
28999         lstat: avoid mingw compilation error
29000         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29001         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29002         lstat ourselves.
29003         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29004         was adequate.
29005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29006         the checks for lstat.
29007         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29008
29009         link: fix test failure on Solaris 9
29010         * lib/link.c (rpl_link): Don't assume link will catch bogus
29011         trailing slash on source.
29012
29013         test-symlinkat: enhance test
29014         * tests/test-readlink.c (main): Move guts...
29015         * tests/test-readlink.h (test_readlink): ...into new file.
29016         * tests/test-symlink.c (main): Move guts...
29017         * tests/test-symlink.h (test_symlink): ...into new file.
29018         * tests/test-symlinkat.c (main): Use new files for further
29019         coverage.
29020         (do_symlink, do_readlink): New helper functions.
29021         * modules/symlink-tests (Files): Ship new file.
29022         (Depends-on): Add stdbool.
29023         * modules/readlink-tests (Files): Ship new file.
29024         (Depends-on): Add stdbool.
29025         * modules/symlinkat-tests (Files): Use new files.
29026
29027 2009-09-23  Eric Blake  <ebb9@byu.net>
29028
29029         readlink: document portability issue with symlink length
29030         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29031         systems have bogus st_size on symlinks, and mention the
29032         areadlink-with-size module.
29033         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29034         * doc/posix-functions/readlink.texi (readlink): Mention the
29035         areadlink module, and ERANGE failure.
29036         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29037         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29038
29039         readlink: fix Solaris 9 bug with trailing slash
29040         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29041         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29042         * doc/posix-functions/readlink.texi (readlink): Document this.
29043         * modules/readlink-tests: New test.
29044         * tests/test-readlink.c: Likewise.
29045
29046         readlink: fix cygwin 1.5.x bug with return type
29047         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29048         * lib/unistd.in.h (readlink): Use ssize_t.
29049         * lib/readlink.c (readlink): Likewise.
29050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29051         * modules/unistd (Makefile.am): Substitute it.
29052         * lib/unistd.in.h (readlink): Declare replacement.
29053         * doc/posix-functions/readlink.texi (readlink): Document this.
29054
29055         symlink: use throughout gnulib
29056         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29057         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29058         symlink is not used.
29059         * modules/symlinkat (Depends-on): Add symlink.
29060         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29061         * modules/canonicalize-tests (Depends-on): Likewise.
29062         * modules/lstat-tests (Depends-on): Likewise.
29063         * modules/openat-tests (Depends-on): Likewise.
29064         * modules/remove-tests (Depends-on): Likewise.
29065         * modules/rmdir-tests (Depends-on): Likewise.
29066         * modules/unlink-tests (Depends-on): Likewise.
29067         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29068         * tests/test-canonicalize.c (symlink): Likewise.
29069         * tests/test-fstatat.c (symlink): Likewise.
29070         * tests/test-lstat.c (symlink): Likewise.
29071         * tests/test-remove.c (symlink): Likewise.
29072         * tests/test-rmdir.c (symlink): Likewise.
29073         * tests/test-unlink.c (symlink): Likewise.
29074         * tests/test-unlinkat.c (symlink): Likewise.
29075
29076         symlink: new module, for Solaris 9 bug
29077         * modules/symlink: New file.
29078         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29079         * lib/symlink.c: Likewise.
29080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29081         * modules/unistd (Makefile.am): Substitute them.
29082         * lib/unistd.in.h (symlink): Declare replacement.
29083         * MODULES.html.sh (File system functions): Mention it.
29084         * doc/posix-functions/symlink.texi (symlink): Likewise.
29085         * modules/symlink-tests: New test.
29086         * tests/test-symlink.c: Likewise.
29087
29088 2009-09-23  Bruno Haible  <bruno@clisp.org>
29089
29090         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29091         when needed.
29092         Test case: gnulib-tool --import --with-tests atexit inttypes.
29093         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29094
29095 2009-09-23  Bruno Haible  <bruno@clisp.org>
29096
29097         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29098         subcommand, not in a subshell.
29099
29100 2009-09-22  Eric Blake  <ebb9@byu.net>
29101
29102         unistd: sort replacement declarations
29103         * lib/unistd.in.h: Sort declarations.
29104
29105         open, openat: minor optimization
29106         * lib/open.c (open): If open succeeded, len is non-zero.
29107         * lib/openat.c (rpl_openat): Likewise.
29108
29109         link-follow: ensure correct result
29110         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29111         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29112         distinguish between possible failures.
29113
29114 2009-09-21  Eric Blake  <ebb9@byu.net>
29115
29116         fts: avoid compiler warning
29117         * lib/fts.c (dirent_inode_sort_may_be_useful)
29118         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29119
29120 2009-09-19  Bruno Haible  <bruno@clisp.org>
29121
29122         * lib/progreloc.c (canonicalize_file_name): New declaration.
29123
29124 2009-09-19  Eric Blake  <ebb9@byu.net>
29125
29126         link: fix quoting
29127         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29128
29129         openat: fix openat bugs on Solaris 9
29130         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29131         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29132         * modules/openat (Depends-on): Add open.
29133         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29134         * modules/fcntl-h (Makefile.am): Substitute it.
29135         * lib/fcntl.in.h (openat): Declare replacement.
29136         * doc/posix-functions/openat.texi (openat): Document this.
29137
29138         openat: move fstatat and unlinkat into correct files
29139         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29140         compiled.
29141         * lib/openat.c (fstatat, unlinkat): Move...
29142         * lib/fstatat.c (fstatat): ...into correct files.
29143         * lib/unlinkat.c (unlinkat): Likewise.
29144
29145         openat: fix unlinkat bugs on Solaris 9
29146         * lib/unlinkat.c (unlinkat): New file.
29147         * modules/openat (Depends-on): Add unlink.
29148         (Files): Distribute it.
29149         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29150         trailing slash behavior is broken.
29151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29152         * modules/unistd (Makefile.am): Substitute it.
29153         * lib/unistd.in.h (unlinkat): Declare replacement.
29154         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29155
29156         openat: fix fstatat bugs on Solaris 9
29157         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29158         stat.
29159         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29160
29161         test-unlinkat: enhance test, to expose Solaris 9 bug
29162         * tests/test-unlink.c (main): Factor guts...
29163         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29164         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29165         * tests/test-rmdir.c (main): Adjust caller.
29166         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29167         (unlinker): New helper function.
29168         (rmdirat): Enhance check.
29169         * modules/rmdir-tests (Depends-on): Add stdbool.
29170         * modules/unlink-tests (Depends-on): Likewise.
29171         (Files): Add test-unlink.h.
29172         * modules/openat-tests (Files): Likewise.
29173         (Depends-on): Add unlinkdir.
29174
29175         test-fstatat: new test, to expose Solaris 9 bugs
29176         * tests/test-stat.c (main): Factor guts...
29177         * tests/test-stat.h (test_stat_func): ...into new file.
29178         * tests/test-lstat.c (main): Factor guts...
29179         * tests/test-lstat.h (test_lstat_func): ...into new file.
29180         * tests/test-fstatat.c: New file.
29181         * modules/stat-tests (Files): Add test-stat.h.
29182         * modules/lstat-tests (Files): Add test-lstat.h.
29183         (Depends-on): Add stdbool.
29184         * modules/openat-tests (Depends-on): Add pathmax.
29185         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29186         (Makefile.am): Run new test.
29187
29188         remove: new module, for mingw and Solaris 9 bugs
29189         * modules/remove: New file.
29190         * lib/remove.c: Likewise.
29191         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29193         * modules/stdio (Makefile.am): Use them.
29194         * lib/stdio.in.h (remove): Declare replacement.
29195         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29196         * doc/posix-functions/remove.texi (remove): Likewise.
29197         * modules/remove-tests: New test.
29198         * tests/test-remove.c: Likewise.
29199
29200         unlink: new module, for Solaris 9 bug
29201         * modules/unlink: New file.
29202         * lib/unlink.c: Likewise.
29203         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29205         * modules/unistd (Makefile.am): Use them.
29206         * lib/unistd.in.h (stat): Declare replacement.
29207         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29208         * doc/posix-functions/unlink.texi (unlink): Likewise.
29209         * modules/unlink-tests: New test.
29210         * tests/test-unlink.c: Likewise.
29211
29212         lstat: fix Solaris 9 bug
29213         * lib/lstat.c (lstat): Also check for trailing slash on
29214         non-symlink, non-directories.  Use stat module to simplify logic.
29215         * doc/posix-functions/lstat.texi (lstat): Document it.
29216         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29217         (configure.ac): Check for symlink.
29218         * tests/test-lstat.c (main): Add more tests.
29219
29220         stat: add as dependency to other modules
29221         * modules/chown (Depends-on): Add stat.
29222         * modules/euidaccess (Depends-on): Likewise.
29223         * modules/fchdir (Depends-on): Likewise.
29224         * modules/isdir (Depends-on): Likewise.
29225         * modules/link (Depends-on): Likewise.
29226         * modules/lstat (Depends-on): Likewise.
29227         * modules/mkdir-p (Depends-on): Likewise.
29228         * modules/modechange (Depends-on): Likewise.
29229         * modules/open (Depends-on): Likewise.
29230         * modules/readlink (Depends-on): Likewise.
29231         * modules/same (Depends-on): Likewise.
29232
29233         stat: fix Solaris 9 bug
29234         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29235         slash.
29236         * lib/stat.c (rpl_stat): Work around it.
29237         * doc/posix-functions/stat.texi (stat): Update documentation.
29238
29239         stat: new module, for mingw bug
29240         * modules/stat: New file.
29241         * lib/stat.c: Likewise.
29242         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29244         * modules/sys_stat (Makefile.am): Use them.
29245         * lib/sys_stat.in.h (stat): Declare replacement.
29246         * lib/openat.c (fstatat): Deal with lstat and stat being function
29247         macros.
29248         * modules/openat (Depends-on): Add inline.
29249         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29250         * doc/posix-functions/stat.texi (stat): Likewise.
29251         * modules/stat-tests: New test.
29252         * tests/test-stat.c: Likewise.
29253
29254 2009-09-19  Jim Meyering  <meyering@redhat.com>
29255
29256         syntax-check: detect unnecessary inclusion of canonicalize.h
29257         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29258
29259 2009-09-19  Eric Blake  <ebb9@byu.net>
29260
29261         canonicalize-lgpl: adjust clients to use correct header
29262         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29263         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29264         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29265         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29266         * lib/progreloc.c (includes): Likewise.
29267
29268 2009-09-19  Jim Meyering  <meyering@redhat.com>
29269
29270         test-posixtm.c: correct a comment
29271         * tests/test-posixtm.c: Correct first-line comment.
29272         Spotted by Eric Blake.
29273
29274 2009-09-16  Jim Meyering  <meyering@redhat.com>
29275
29276         posixtm-tests: make T const-correct; add a test case
29277         * tests/test-posixtm.c (T): Declare const.
29278         Add a test for -(2^31+1).
29279         Remove useless can-succeed-only-in-2002 test.
29280
29281         posixtm-tests: adjust the sole failing test
29282         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29283         expected output matches what mktime now produces.  Cross-checked via
29284         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29285
29286         posixtm: move #ifdef'd tests into a new module
29287         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29288         * tests/test-posixtm.c: ... this new file.
29289         * modules/posixtm-tests: New module.
29290
29291 2009-09-19  Eric Blake  <ebb9@byu.net>
29292
29293         openat: simplify use of at-func.c
29294         * lib/at-func.c (includes): Include prerequisites here, to
29295         simplify requirements on client files.
29296         * lib/openat-priv.h: Add double-inclusion guard.
29297         * lib/faccessat.c (includes): Simplify.
29298         * lib/fchmodat.c (includes): Likewise.
29299         * lib/fchownat.c (includes): Likewise.
29300         * lib/mkdirat.c (includes): Likewise.
29301         * lib/mkfifoat.c (includes): Likewise.
29302         * lib/symlinkat.c (includes): Likewise.
29303
29304         openat: allow return of fd 0
29305         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29306         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29307         unistd-safer.
29308         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29309         <fcntl.h>; this module does not leak fds.
29310         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29311         must be allowed to return 0, leaving openat_safer to add the
29312         safety.
29313         (openat_permissive): Avoid writing to just-opened fd 2 if
29314         restoring the current directory fails.
29315         * lib/openat-die.c (openat_restore_fail): Add comment.
29316         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29317         (save_cwd): Guarantee safe fd, but without use of open_safer.
29318         * tests/test-openat.c: New test.
29319         * modules/openat-tests (Files, Makefile.am): Distribute and build
29320         new file.
29321
29322         relocatable-prog-wrapper: fix build
29323         * modules/relocatable-prog-wrapper (Files): Update name of
29324         canonicalize m4 file, broken on 2009-09-17.
29325         Reported by emad hajjar <aleppos@hotmail.com>.
29326
29327 2009-09-19  Bruno Haible  <bruno@clisp.org>
29328
29329         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29330         * lib/safe-alloc.c: Likewise.
29331         Reported by Ian Beckwith <ianb@erislabs.net>.
29332
29333 2009-09-18  Bruno Haible  <bruno@clisp.org>
29334
29335         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29336         Reported by <erobles@sensacd.com.mx>.
29337
29338 2009-09-17  Eric Blake  <ebb9@byu.net>
29339
29340         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29341         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29342         slashes when checking if last component is missing.
29343         * tests/test-canonicalize.c (main): Test this.
29344
29345         canonicalize, canonicalize-lgpl: honor // if distinct from /
29346         * modules/canonicalize (Files): Add double-slash-root.m4.
29347         * modules/canonicalize-lgpl (Files): Likewise.
29348         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29349         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29350         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29351         fallback definition.
29352         (canonicalize_filename_mode): Use it to protect //.
29353         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29354         (__realpath): Likewise.
29355         * tests/test-canonicalize.c (main): Test this.
29356         * tests/test-canonicalize-lgpl.c (main): Likewise.
29357         * modules/canonicalize-tests (Depends-on): Add same-inode.
29358         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29359
29360         canonicalize-lgpl: fix glibc bug with trailing slash
29361         * m4/canonicalize-lgpl.m4: Move contents...
29362         * m4/canonicalize.m4: ...here.
29363         (gl_CANONICALIZE_LGPL): Factor realpath check...
29364         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29365         glibc 2.3.5 bug, fixed 2005-04-27.
29366         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29367         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29368         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29369         * modules/canonicalize-lgpl (Files): Manage file rename.
29370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29371         * modules/stdlib (Makefile.am): Substitute witness.
29372         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29373         is needed.
29374         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29375         replacement is required.
29376         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29377         * doc/glibc-functions/canonicalize_file_name.texi
29378         (canonicalize_file_name): Document this.
29379         * doc/posix-functions/realpath.texi (realpath): Likewise.
29380
29381         canonicalize-lgpl: reject non-directory with trailing slash
29382         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29383         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29384         catches failures in glibc 2.3.5.
29385         * tests/test-canonicalize.c (main): Likewise.
29386
29387         canonicalize-lgpl: use native realpath if it works
29388         * lib/canonicalize-lgpl.c (realpath): Guard with
29389         FUNC_REALPATH_WORKS.
29390         * lib/stdlib.in.h (realpath): Make declaration optional based on
29391         HAVE_REALPATH.
29392         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29393         native realpath works.
29394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29395         * modules/stdlib (Makefile.am): Substitute witness.
29396
29397         canonicalize, canonicalize-lgpl: use <stdlib.h>
29398         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29399         (Include): Mention <stdlib.h>.
29400         (configure.ac): Mention functions we provide.
29401         * modules/canonicalize (configure.ac): Likewise.
29402         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29403         realpath if canonicalize_file_name is missing.
29404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29405         * modules/stdlib (Makefile.am): Substitute witnesses.
29406         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29407         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29408         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29409         * NEWS: Document this.
29410         * doc/glibc-functions/canonicalize_file_name.texi
29411         (canonicalize_file_name): Likewise.
29412         * doc/posix-functions/realpath.texi (realpath): Likewise.
29413         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29414
29415         test-canonicalize: consolidate into single C program
29416         * tests/test-canonicalize.sh: Delete; move setup into...
29417         * tests/test-canonicalize.c (main): ...the program, making it
29418         easier to run in debugger.  Add some tests.
29419         * modules/canonicalize-tests (Files): Remove unused file.
29420         (Depends-on): Add progname.
29421         (configure.ac, Makefile.am): Simplify.
29422
29423         test-canonicalize-lgpl: consolidate into single C program
29424         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29425         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29426         easier to run in debugger.  Add some tests.
29427         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29428         (configure.ac, Makefile.am): Simplify.
29429
29430         canonicalize: avoid resolvepath
29431         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29432         unnecessary checks.
29433         * lib/canonicalize.c (includes): Simplify.
29434         (canonicalize_file_name): Drop resolvepath implementation.
29435         * modules/canonicalize (Depends-on): Drop filenamecat.
29436
29437         canonicalize: don't lose errno
29438         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29439         over calls to free.
29440
29441         canonicalize: simplify errno handling
29442         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29443         assignment.
29444
29445         canonicalize, canonicalize-lgpl: update module dependencies
29446         * modules/canonicalize (Depends-on): Add extensions, lstat,
29447         pathmax, stdlib.
29448         (Files): Drop pathmax.h.
29449         (configure.ac): Adjust macro name.
29450         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29451         lstat, stdlib, sys_stat.
29452         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29453         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29454         extensions.
29455         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29456         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29457         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29458         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29459         declaration, if available.
29460         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29461         we can rely on the readlink module.
29462         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29463         (includes): Use <unistd.h> unconditionally.
29464
29465 2009-09-17  Eric Blake  <ebb9@byu.net>
29466
29467         maint: make Include sections of modules consistent
29468         * modules/alloca: Use only header name; no need to list #include.
29469         * modules/alloca-opt: Likewise.
29470         * modules/arpa_inet: Likewise.
29471         * modules/canon-host: Likewise.
29472         * modules/configmake: Likewise.
29473         * modules/dirent: Likewise.
29474         * modules/eealloc: Likewise.
29475         * modules/environ: Likewise.
29476         * modules/fchdir: Likewise.
29477         * modules/fcntl: Likewise.
29478         * modules/fcntl-h: Likewise.
29479         * modules/gethrxtime: Likewise.
29480         * modules/gettime: Likewise.
29481         * modules/ignore-value: Likewise.
29482         * modules/inet_ntop: Likewise.
29483         * modules/inet_pton: Likewise.
29484         * modules/inttypes: Likewise.
29485         * modules/isnand-nolibm: Likewise.
29486         * modules/isnanf-nolibm: Likewise.
29487         * modules/mbchar: Likewise.
29488         * modules/mbfile: Likewise.
29489         * modules/mbiter: Likewise.
29490         * modules/mbuiter: Likewise.
29491         * modules/netdb: Likewise.
29492         * modules/netinet_in: Likewise.
29493         * modules/nproc: Likewise.
29494         * modules/pagealign_alloc: Likewise.
29495         * modules/poll: Likewise.
29496         * modules/printf-frexp: Likewise.
29497         * modules/pthread: Likewise.
29498         * modules/putenv: Likewise.
29499         * modules/random_r: Likewise.
29500         * modules/relocatable-prog: Likewise.
29501         * modules/search: Likewise.
29502         * modules/select: Likewise.
29503         * modules/selinux-h: Likewise.
29504         * modules/settime: Likewise.
29505         * modules/signal: Likewise.
29506         * modules/size_max: Likewise.
29507         * modules/socklen: Likewise.
29508         * modules/ssize_t: Likewise.
29509         * modules/stdarg: Likewise.
29510         * modules/stdbool: Likewise.
29511         * modules/stddef: Likewise.
29512         * modules/stdint: Likewise.
29513         * modules/stdio: Likewise.
29514         * modules/stdlib: Likewise.
29515         * modules/string: Likewise.
29516         * modules/strings: Likewise.
29517         * modules/sys_file: Likewise.
29518         * modules/sys_ioctl: Likewise.
29519         * modules/sys_select: Likewise.
29520         * modules/sys_socket: Likewise.
29521         * modules/sys_stat: Likewise.
29522         * modules/sys_time: Likewise.
29523         * modules/sys_times: Likewise.
29524         * modules/sys_utsname: Likewise.
29525         * modules/sys_wait: Likewise.
29526         * modules/sysexits: Likewise.
29527         * modules/time: Likewise.
29528         * modules/times: Likewise.
29529         * modules/tmpfile: Likewise.
29530         * modules/trim: Likewise.
29531         * modules/unistd: Likewise.
29532         * modules/wchar: Likewise.
29533         * modules/wctype: Likewise.
29534
29535 2009-09-17  Bruno Haible  <bruno@clisp.org>
29536
29537         Make getdate.y compile on QNX and NetBSD 5 / i386.
29538         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29539         TIME_T_FITS_IN_LONG_INT.
29540         * lib/getdate.y (long_time_t): New type.
29541         (relative_time): Change type of 'seconds' field to long_time_t.
29542         (get_date): Update types of local variables. Check against overflow
29543         during conversion from long_time_t to time_t.
29544         Reported by Matt Kraai <kraai@ftbfs.org>
29545         and Hasso Tepper <hasso@netbsd.org>.
29546
29547 2009-09-17  Bruno Haible  <bruno@clisp.org>
29548
29549         * modules/COPYING: Update copyright years.
29550         * modules/README: Likeiwse.
29551         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29552         Reported by Ian Beckwith <ianb@erislabs.net>.
29553
29554 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29555
29556         * users.txt: Update references for gnuit package.
29557
29558 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29559
29560         * m4/getdelim.m4: Fix typo in copyright line.
29561
29562 2009-09-17  Bruno Haible  <bruno@clisp.org>
29563
29564         * lib/atoll.c: Use the standard header with GPL copyright.
29565         * lib/argz.in.h: Likewise.
29566         * lib/glob.c: Likewise.
29567         * lib/glob-libc.h: Likewise.
29568         * lib/random_r.c: Likewise.
29569         * lib/siglist.h: Likewise.
29570         * lib/strsignal.c: Likewise.
29571         Reported by Ian Beckwith <ianb@erislabs.net>.
29572
29573 2009-09-17  Eric Blake  <ebb9@byu.net>
29574
29575         rmdir: ensure correct dependency order
29576         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29577
29578 2009-09-17  Bruno Haible  <bruno@clisp.org>
29579
29580         Disable assertion that fails on NetBSD 5 / i386.
29581         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29582         Reported by Sam Steingold <sds@gnu.org>
29583         and Hasso Tepper <hasso@netbsd.org>.
29584
29585 2009-09-16  Eric Blake  <ebb9@byu.net>
29586
29587         unlinkdir: port to mingw
29588         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29589         on which no one can unlink a directory.
29590
29591         stdlib: sort witness names
29592         * modules/stdlib (Makefile.am): Sort replacements.
29593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29594         * lib/stdlib.in.h: Likewise.
29595
29596         parse-duration-tests: avoid link failure
29597         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29598         LIBINTL.
29599         Reported by Tom G. Christensen.
29600
29601         openat-tests: ensure unlinkat behaves like rmdir
29602         * tests/test-rmdir.c (main): Factor guts...
29603         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29604         * modules/rmdir-tests (Files): Ship new file.
29605         * modules/openat-tests: New test.
29606         * tests/test-unlinkat.c: Likewise.
29607
29608         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29609         * modules/rmdir-errno (Status, Notice): Now obsolete.
29610
29611         rmdir: work around cygwin 1.5.x and mingw bugs
29612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29613         * lib/rmdir.c (rmdir): Work around it.
29614         * modules/rmdir (Status, Notice): No longer obsolete.
29615         (Files): Add dos.m4.
29616         (Depends-on): Add unistd.
29617         (configure.ac): Set witnesses.
29618         (License): Relax to LGPLv2+.
29619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29620         * modules/unistd (Makefile.am): Substitute witnesses.
29621         * lib/unistd.in.h (rmdir): Declare replacement.
29622         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29623         * modules/rmdir-tests: New tests.
29624         * tests/test-rmdir.c: Likewise.
29625
29626 2009-09-15  Eric Blake  <ebb9@byu.net>
29627
29628         fchdir: improve use of replacement functions
29629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29631         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29632         REPLACE_CLOSEDIR.
29633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29634         * modules/sys_stat (Makefile.am): Substitute correct witness.
29635         * modules/dirent (Makefile.am): Likewise.
29636         * modules/unistd (Makefile.am): Likewise.
29637         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29638         * lib/unistd.in.h (dup): Likewise.
29639         * lib/sys_stat.in.h (fstat): Likewise.
29640
29641         maint: ignore gnulib-tool temp files
29642         * .gitignore: Ignore files created during gnulib-tool --test.
29643
29644 2009-09-13  Jim Meyering  <meyering@redhat.com>
29645
29646         posixtm: don't reject a time that specify "60" as the number of seconds
29647         * lib/posixtm.c (posixtime): The code to reject invalid dates
29648         would also reject a time specified with the .60 suffix.
29649         But POSIX allows that, in order to accommodate leap seconds.
29650         So don't reject it.
29651         (main): Adjust tests accordingly.
29652         * modules/posixtm (Depends-on): Add stpcpy.
29653
29654 2009-09-11  Jim Meyering  <meyering@redhat.com>
29655
29656         announce-gen: include [$release_type] in emitted Subject:
29657         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29658         e.g., [stable] in the emitted Subject: line.
29659
29660 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29661
29662         Remove obsolete macros from several modules.
29663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29664         obsolete Autoconf macros with their modern counterparts.
29665         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29666         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29667         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29668         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29669         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29671         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29672         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29673         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29674         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29675         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29676         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29677         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29678         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29679         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29680         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29681         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29682         * m4/time_r.m4 (gl_TIME_R): Likewise.
29683         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29684         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29685         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29686
29687         Fix copyright header in build-aux scripts.
29688         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29689         recommendation.
29690         * build-aux/ncftpput-ftp: Likewise.
29691         * build-aux/update-copyright: Likewise.
29692
29693 2009-09-09  Eric Blake  <ebb9@byu.net>
29694
29695         test-link: allow Linux choice of errno
29696         * tests/test-link.c (main): Relax test for alternate error.
29697
29698         strndup: fix improper m4 caching
29699         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29700         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29701         (gl_PREREQ_STRNDUP): Delete.
29702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29703         * modules/string (Makefile.am): Substitute it.
29704         * lib/string.in.h (strndup): Modernize prototype.
29705
29706         getcwd: port to mingw
29707         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29708         different from the POSIX assumptions made throughout the getcwd
29709         module; fortunately, the mingw getcwd does not need replacement.
29710         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29711         * modules/getcwd-tests: New test.
29712         * tests/test-getcwd.c: Likewise.
29713
29714         link: fix platform bugs
29715         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29716         * lib/link.c (link): Work around them.  Fix related mingw bug.
29717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29718         * modules/unistd (Makefile.am): Substitute it.
29719         * lib/unistd.in.h (link): Declare replacement.
29720         * doc/posix-functions/link.texi (link): Document this.
29721         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29722
29723         test-link: consolidate into single C program, test more cases
29724         * tests/test-link.sh: Delete.
29725         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29726         at least Cygwin and Solaris.
29727         * modules/link-tests (Files): Remove unused file.
29728         (Depends-on): Add errno, sys_stat.
29729         (Makefile.am): Simplify.
29730
29731 2009-09-08  Bruno Haible  <bruno@clisp.org>
29732
29733         Work around towlower, towupper bug on mingw.
29734         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29735         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29736         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29737         * doc/posix-functions/towupper.texi: Likewise.
29738         Reported by Eric Blake.
29739
29740 2009-09-08  Jim Meyering  <meyering@redhat.com>
29741
29742         build: don't try to run autoheader if we don't use it
29743         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29744         is not used in configure.ac.
29745
29746 2009-09-08  Eric Blake  <ebb9@byu.net>
29747
29748         euidaccess: fix compilation error
29749         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29750
29751         rawmemchr: relax license
29752         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29753         okay.
29754         Reported by Jim Meyering.
29755
29756         mkfifoat: new module
29757         * modules/mkfifoat: New file.
29758         * lib/mkfifoat.c: Likewise.
29759         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29761         * modules/sys_stat (Makefile.am): Use them.
29762         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29763         * MODULES.html.sh (File system functions): Mention module.
29764         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29765         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29766         * modules/mkfifoat-tests: New test.
29767         * tests/test-mkfifoat.c: Likewise.
29768
29769         strchrnul: relax license
29770         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29771         okay.
29772         Reported by Jim Meyering.
29773
29774 2009-09-08  Eric Blake  <ebb9@byu.net>
29775
29776         fstatat: fix compilation on Solaris
29777         * lib/fstatat.c (includes): Add fcntl.h.
29778         Reported by Pádraig Brady.
29779
29780 2009-09-07  Eric Blake  <ebb9@byu.net>
29781
29782         rename: modernize replacement
29783         * modules/rename (Depends-on): Add stdio.
29784         (configure.ac): Declare witness.
29785         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29786         stdio take care of replacement.
29787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29788         * modules/stdio (Makefile.am): Substitute them.
29789         * lib/stdio.in.h (rename): Declare replacement.
29790         * lib/rename.c (includes): Allow cross-compilation to non-windows
29791         machines.
29792         * doc/posix-functions/rename.texi (rename): Improve
29793         documentation.
29794
29795         stdio: sort witness names
29796         * modules/stdio (Makefile.am): Sort replacements.
29797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29798         * lib/stdio.in.h: Likewise.
29799
29800         getcwd: minor cleanups
29801         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29802         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29803
29804         openat: provide more convenience names
29805         * modules/faccessat (configure.ac): Add C witness.
29806         * lib/unistd.in.h (readlinkat): Fix typo.
29807         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29808         convenience wrappers.
29809         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29810         wrappers in syntax checks.
29811
29812 2009-09-06  Eric Blake  <ebb9@byu.net>
29813
29814         doc: fix comments in recent patches
29815         * lib/faccessat.c: Mention correct function.
29816         * lib/fchmodat.c: Likewise.
29817         * lib/fchownat.c: Likewise.
29818         * lib/symlinkat.c: Likewise.
29819         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29820         constants.
29821
29822         faccessat, symlinkat: continue cleanup of previous patch
29823         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29824         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29825         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29827         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29828         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29829         set.
29830
29831 2009-09-06  Bruno Haible  <bruno@clisp.org>
29832
29833         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29834         (fstatat): Declare if GNULIB_FSTATAT is set.
29835         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29836         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29837         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29838         * modules/fcntl-h (Files): Remove m4/openat.m4.
29839         * modules/sys_stat (Files): Remove m4/openat.m4.
29840         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29841         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29842         * modules/unistd (Files): Remove m4/openat.m4.
29843         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29844         GNULIB_OPENAT.
29845         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29846         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29847         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29848         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29849         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29850         gl_OPENAT_DEFAULTS.
29851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29852         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29853         Don't require gl_OPENAT_DEFAULTS.
29854         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29855         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29856         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29857         (gl_OPENAT_DEFAULTS): Remove macro.
29858
29859 2009-09-06  Bruno Haible  <bruno@clisp.org>
29860
29861         * modules/openat (configure.ac): Remove unneeded witness.
29862
29863 2009-09-06  Bruno Haible  <bruno@clisp.org>
29864
29865         Set errno to ENOSYS when a function is entirely unsupported.
29866         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29867         EOPNOTSUPP.
29868         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29869         * modules/chown (Depends-on): Remove errno.
29870
29871 2009-09-06  Bruno Haible  <bruno@clisp.org>
29872
29873         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29874
29875 2009-09-06  Bruno Haible  <bruno@clisp.org>
29876
29877         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29878
29879 2009-09-06  Ben Pfaff  <blp@gnu.org>
29880             Bruno Haible  <bruno@clisp.org>
29881
29882         Work around a glibc bug in strtok_r.
29883         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29884         Undefine if UNDEFINE_STRTOK_R is set.
29885         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29887         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29888         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29889         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29890         UNDEFINE_STRTOK_R.
29891         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29892
29893 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29894
29895         exclude: minor fix
29896         * lib/exclude.c: Include wctype.h
29897
29898 2009-09-06  Akim Demaille  <demaille@gostai.com>
29899
29900         bootstrap: improve error message
29901         * build-aux/bootstrap (find_tool): Upon failure, report the list
29902         of candidates.
29903         Honor the initial value of the envvar.
29904
29905 2009-09-05  Eric Blake  <ebb9@byu.net>
29906
29907         symlinkat: new module
29908         * modules/symlinkat: New file.
29909         * lib/symlinkat.c: Likewise.
29910         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29912         * modules/unistd (Makefile.am): Use them.
29913         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29914         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29915         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29916         * MODULES.html.sh (File system functions): Mention module.
29917         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29918         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29919         * modules/symlinkat-tests: New test.
29920         * tests/test-symlinkat.c: Likewise.
29921
29922         test-openat-safer: add more checks
29923         * tests/test-openat-safer.c (main): Check more code paths.
29924
29925 2009-09-05  Jim Meyering  <meyering@redhat.com>
29926
29927         syntax-check: detect unnecessary inclusion of openat.h
29928         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29929
29930 2009-09-05  Bruno Haible  <bruno@clisp.org>
29931
29932         Support towlower, towupper.
29933         * doc/posix-functions/towlower.texi: Mention module wctype.
29934         * doc/posix-functions/towupper.texi: Likewise.
29935         * lib/wctype.in.h (towlower, towupper): New functions.
29936         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29937         (ASSERT): New macro.
29938         (e): New variable.
29939         (main): Test also towlower, towupper. Test WEOF argument.
29940         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29941
29942 2009-09-05  Bruno Haible  <bruno@clisp.org>
29943
29944         Fix conversion behaviour when the input is invalid.
29945         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29946         mark occurring in first pass of indirect conversion.
29947         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29948         input.
29949         Found by clang's static analyzer.
29950
29951 2009-09-05  Bruno Haible  <bruno@clisp.org>
29952
29953         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29954         where direct conversion is possible.
29955
29956 2009-09-04  Eric Blake  <ebb9@byu.net>
29957
29958         openat: fail with ENOENT on empty name
29959         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29960         buffer.
29961
29962         link-follow: fix logic bug in prior patch
29963         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29964         reversed sense of yes and no in prior patch.  Avoid confusing
29965         compilation failure with desired semantics.
29966
29967         link-follow: accomodate mingw and cross-compilation
29968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29969         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29970         cross-compilation results to -1, to make linkat easier to
29971         implement when cross-compiling.  Trivially support mingw.
29972         * modules/link-follow (configure.ac): Call new name.
29973         * NEWS: Mention this.
29974
29975 2009-09-03  Eric Blake  <ebb9@byu.net>
29976
29977         faccessat: compile replacement
29978         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29979         needed.
29980
29981         fts: fix compilation error
29982         * lib/fts.c (includes): Re-add "openat.h", for
29983         openat_needs_fchdir.
29984
29985         faccessat: new module
29986         * modules/faccessat: New file.
29987         * lib/faccessat.c: Likewise.
29988         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29990         * modules/unistd (Makefile.am): Use it.
29991         * lib/unistd.in.h (faccessat): Declare it.
29992         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29993         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29994         * MODULES.html.sh (File system functions): Mention it.
29995         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29996         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29997
29998         euidaccess: prefer POSIX over non-standard implementation
29999         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30000         * lib/euidaccess.c (euidaccess): Use it if available.
30001
30002         openat: make template easier to use
30003         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30004         AT_FUNC_F2 to be undefined.
30005         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30006         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30007         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30008         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30009         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30010         Likewise.
30011         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30012         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30013         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30014         Likewise.
30015
30016         openat: declare in POSIX headers
30017         * NEWS: Mention this.
30018         * modules/openat (configure.ac): Declare witnesses.
30019         (Depends-on): Add fcntl-h, sys_stat, unistd.
30020         (Include): Mention correct headers.
30021         * modules/fcntl-h (Depends-on): Add link-warning.
30022         (Files): Add openat.m4.
30023         (Makefile.am): Substitute witnesses.
30024         * modules/sys_stat (Files, Makefile.am): Likewise.
30025         * modules/unistd (Files, Makefile.am): Likewise.
30026         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30027         (gl_OPENAT_DEFAULTS): New macro.
30028         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30031         (SYS_STAT_H): Remove unused variable.
30032         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30033         * lib/fcntl--.h (includes): Remove unneeded header.
30034         * lib/openat-safer.c (includes): Likewise.
30035         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30036         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30037         appropriate headers.
30038         (__OPENAT_PREFIX): Delete.
30039         * lib/fcntl.in.h (openat): Provide declaration.
30040         (AT_FDCWD): Fix Solaris bug.
30041         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30042         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30043         * lib/fchmodat.c (includes):  Adjust to find declaration.
30044         * lib/fchownat.c (includes): Likewise.
30045         * lib/mkdirat.c (includes): Likewise.
30046         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30047         still visible.
30048
30049 2009-09-02  Eric Blake  <ebb9@byu.net>
30050
30051         errno: use consistently
30052         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30053         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30054         * lib/canonicalize.c (ELOOP): Likewise.
30055         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30056         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30057         * lib/lchown.c (EOPNOTSUPP): Likewise.
30058         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30059         * lib/savewd.c (ESTALE): Likewise.
30060         * lib/settime.c (ENOSYS): Likewise.
30061         * lib/utimens.c (ENOSYS): Likewise.
30062         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30063         * lib/chdir-safer.c (ELOOP): Likewise.
30064         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30065         * modules/c-stack (Depends-on): Add errno.
30066         * modules/canonicalize (Depends-on): Likewise.
30067         * modules/chdir-safer (Depends-on): Likewise.
30068         * modules/fdopendir (Depends-on): Likewise.
30069         * modules/inet_ntop (Depends-on): Likewise.
30070         * modules/inet_pton (Depends-on): Likewise.
30071         * modules/lchown (Depends-on): Likewise.
30072         * modules/openat (Depends-on): Likewise.
30073         * modules/savewd (Depends-on): Likewise.
30074         * modules/settime (Depends-on): Likewise.
30075         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30076
30077         fts: avoid leaking fds
30078         * modules/fts (Depends-on): Add cloexec.
30079         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30080         flag.
30081
30082         fts: make directory fds more robust
30083         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30084         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30085
30086         backupfile, chdir-long, fts, savedir: make safer
30087         * lib/backupfile.c (includes): Use "dirent--.h", since
30088         numbered_backup can write to stderr during readdir.
30089         * lib/savedir.c (includes): Likewise.
30090         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30091         emulation can write to stderr on failure.
30092         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30093         * lib/getcwd.c: Document why opendir_safer is unused.
30094         * lib/glob.c: Likewise.
30095         * lib/scandir.c: Likewise.
30096         * lib/openat-proc.c: Likewise, for open_safer.
30097         * modules/backupfile (Depends-on): Add dirent-safer.
30098         * modules/savedir (Depends-on): Likewise.
30099         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30100         * modules/chdir-long (Depends-on): Add openat-safer.
30101
30102         openat-safer: new module
30103         * modules/openat-safer: New file.
30104         * lib/openat-safer.c: Likewise.
30105         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30106         * lib/fcntl-safer.h (openat_safer): Declare.
30107         * lib/fcntl--.h (openat): Override.
30108         * MODULES.html.sh (File descriptor based I/O): Mention it.
30109         * lib/openat.h: Add double-inclusion guards.
30110         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30111         "fcntl--.h", so we can implement openat.
30112         * modules/openat-safer-tests: New test.
30113         * tests/test-openat-safer.c: New file.
30114
30115         dirent-safer: new module
30116         * modules/dirent-safer: New file.
30117         * lib/dirent--.h: Likewise.
30118         * lib/dirent-safer.h: Likewise.
30119         * lib/opendir-safer.c: Likewise.
30120         * m4/dirent-safer.m4: Likewise.
30121         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30122         * modules/dirent-safer-tests: New test.
30123         * tests/test-dirent-safer.c: New file.
30124         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30125
30126         fdopendir: optimize on mingw
30127         * lib/unistd.in.h (_gl_directory_name): New prototype.
30128         * lib/fchdir.c (_gl_directory_name): Implement it.
30129         (fchdir): Use it to simplify implementation.
30130         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30131         fchdir, when available, to avoid calling [f]chdir().
30132
30133         fdopendir: split into its own module
30134         * lib/openat.c (fdopendir): Move...
30135         * lib/fdopendir.c: ...into new file.
30136         * modules/fdopendir: New module.
30137         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30138         * modules/openat (Depends-on): Add fdopendir.
30139         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30140         fdopendir here.
30141         * modules/savedir (Depends-on): Only need fdopendir, not full
30142         openat.
30143         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30144         * lib/openat.h (fdopendir): Drop prototype.
30145         * lib/dirent.in.h (fdopendir): Provide prototype.
30146         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30147         * modules/dirent (Makefile.am): Substitute them.
30148         * MODULES.html.sh (File system functions): Mention it.
30149         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30150         * modules/fdopendir-tests: New file.
30151         * tests/test-fdopendir.c: Likewise.
30152
30153         fchdir: use more consistent macro convention
30154         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30155         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30156         REPLACE_FCHDIR, rather than relying on config.h macros.
30157         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30158         inside a single make-time REPLACE_FCHDIR block, rather than using
30159         the config.h FCHDIR_REPLACEMENT.
30160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30161         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30162         Manage fstat replacement.
30163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30164         REPLACE_FCHDIR.
30165         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30166         (Makefile.am): Substitute REPLACE_FCHDIR.
30167         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30168         FCHDIR_REPLACEMENT.
30169         * lib/dup-safer.c (dup_safer): Likewise.
30170         * lib/dup2.c (rpl_dup2): Likewise.
30171         * lib/dup3.c (rpl_dup3): Likewise.
30172         * lib/open.c (rpl_open): Likewise.
30173
30174         fchdir: simplify error handling, and support dup3
30175         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30176         stdbool, malloc-posix, realloc-posix.
30177         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30178         (ensure_dirs_slot): Return false on allocation failure.
30179         (rpl_dup2): Delete.
30180         (_gl_register_dup): New function.
30181         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30182         (_gl_register_fd): Close fd on allocation failure.
30183         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30184         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30185         prototype.
30186         (rpl_dup2_fchdir): Delete prototype.
30187         * lib/open.c (open): Update caller.
30188         * lib/dup2.c (dup2): Track fchdir metadata.
30189         * lib/dup3.c (dup3): Likewise.
30190         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30192
30193 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30194
30195         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30196         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30197         don't pass arguments to AC_OUTPUT.
30198
30199 2009-09-02  Bruno Haible  <bruno@clisp.org>
30200
30201         * modules/mkdtemp (License): Relicense under LGPLv2+.
30202         Reported by Paolo Bonzini.
30203
30204 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30205
30206         Replace uses of obsolete autoconf macros in Jim's modules.
30207         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30208         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30209         can evoke a warning from autoconf when run with -Wobsolete
30210         enabled.  They were declared obsolete for good reasons (see
30211         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30212         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30213         should not continue using the deprecated macros.
30214         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30215         obsolete Autoconf macros with modern counterparts.
30216         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30217         * m4/dos.m4 (gl_AC_DOS): Likewise.
30218         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30220         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30221         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30222         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30224         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30225         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30226         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30227         Likewise.
30228         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30229         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30230         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30231         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30232         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30233         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30234
30235 2009-09-01  Eric Blake  <ebb9@byu.net>
30236
30237         fchdir: fix off-by-one bug in previous patch
30238         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30239         (_gl_unregister_fd): Delete useless if.
30240
30241 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30242
30243         maint.mk: sort the list of syntax-check rules
30244         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30245         easier to get a sense of progress when the rules are run sequentially
30246         and take a long time.
30247
30248 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30249
30250         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30251         * modules/netinet_in: Likewise.
30252         * modules/sys_file: Likewise.
30253         * modules/sys_ioctl: Likewise.
30254         * modules/sys_select: Likewise.
30255         * modules/sys_socket: Likewise.
30256         * modules/sys_stat: Likewise.
30257         * modules/sys_time: Likewise.
30258         * modules/sys_times: Likewise.
30259         * modules/sys_utsname: Likewise.
30260         * modules/sys_wait: Likewise.
30261
30262 2009-09-01  Jim Meyering  <meyering@redhat.com>
30263
30264         fts: help ensure that return values are not ignored
30265         * lib/fts_.h (__GNUC_PREREQ): Define.
30266         (__attribute_warn_unused_result__): Define.
30267         (fts_children, fts_close, fts_open, fts_read): Declare with
30268         __attribute_warn_unused_result__.
30269
30270         fts: fts_close now fails also when closing a dir file descriptor fails
30271         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30272         and propagate to caller, along with errno.
30273
30274         announce-gen: correct formatting in --help output
30275         * build-aux/announce-gen (usage): Move the one-line description in
30276         --help output "up", to where it belongs, just after Usage:.
30277
30278 2009-08-31  Eric Blake  <ebb9@byu.net>
30279
30280         fchdir: port to mingw
30281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30282         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30283         opened, then use a substitute.
30284         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30285         replacement.
30286         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30287         (_gl_register_fd): No need to check stat if open already filters
30288         all directories.
30289         (fchdir): Fix error condition to match POSIX.
30290         * modules/fchdir (Depends-on): Add sys_stat.
30291         * doc/posix-functions/open.texi (open): Document the limitation.
30292         * modules/fchdir-tests: New file.
30293         * tests/test-fchdir.c: Likewise.
30294
30295         canonicalize: allow cross-testing from cygwin to mingw
30296         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30297         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30298         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30299         Likewise.
30300         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30301         target does not support symlinks.
30302         * tests/test-canonicalize-lgpl.sh: Likewise.
30303
30304         chown: avoid compilation warning on mingw
30305         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30306         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30307         mingw.
30308         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30309         * modules/chown (Depends-on): Add errno.
30310
30311 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30312
30313         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30314         command.
30315
30316 2009-08-31  Jim Meyering  <meyering@redhat.com>
30317
30318         canonicalize: remove useless initialization
30319         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30320         initialization of local, "end".
30321
30322 2009-08-30  Bruno Haible  <bruno@clisp.org>
30323
30324         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30325         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30326         ENOSYS.
30327
30328 2009-08-30  Bruno Haible  <bruno@clisp.org>
30329
30330         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30331         /usr/xpg4/bin/tr when it exists.
30332         * tests/test-pipe-filter-gi1.sh: Likewise.
30333
30334 2009-08-30  Bruno Haible  <bruno@clisp.org>
30335
30336         Work around deficient /usr/bin/id program on Solaris.
30337         * tests/test-file-has-acl.sh (ID): New variable.
30338         * tests/test-set-mode-acl.sh (ID): Likewise.
30339         * tests/test-copy-acl.sh (ID): Likewise.
30340         * tests/test-copy-file.sh (ID): Likewise.
30341
30342 2009-08-30  Bruno Haible  <bruno@clisp.org>
30343
30344         New module 'xstriconveh'.
30345         * lib/xstriconveh.h: New file.
30346         * lib/xstriconveh.c: New file.
30347         * modules/xstriconveh: New file.
30348
30349 2009-08-30  Bruno Haible  <bruno@clisp.org>
30350
30351         Make it easier to use mem_cd_iconveh.
30352         * lib/striconveh.h (iconveh_t): New type.
30353         (iconveh_open, iconveh_close): New declarations.
30354         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30355         with a single 'const iconveh_t *' argument.
30356         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30357         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30358         with a single 'const iconveh_t *' argument.
30359         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30360         * tests/test-striconveh.c (main): Update.
30361         * NEWS: Mention the change.
30362
30363 2009-08-30  Bruno Haible  <bruno@clisp.org>
30364
30365         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30366         problem.
30367
30368 2009-08-30  Bruno Haible  <bruno@clisp.org>
30369
30370         Work around iconv_open problem on Solaris.
30371         * lib/iconv_open-solaris.gperf: New file.
30372         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30374         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30375         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30376         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30377         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30378
30379 2009-08-29  Jim Meyering  <meyering@redhat.com>
30380
30381         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30382         * top/maint.mk (cvs-check): Remove target; it was just an alias
30383         to the better-named vc-diff-check.
30384         (maintainer-distcheck): Remove rule.  It was used only from
30385         the (alpha/beta/major) target, and all of its commands but one
30386         were coreutils-specific.
30387         (vc-dist): Remove rule.
30388         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30389         Run vc-diff-check, not vc-dist.
30390         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30391
30392 2009-08-27  Bruno Haible  <bruno@clisp.org>
30393
30394         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30395         of 0.
30396
30397 2009-08-27  Bruno Haible  <bruno@clisp.org>
30398
30399         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30400         compilers.
30401         * doc/func.texi: Document the SunPRO C bug.
30402
30403 2009-08-27  Bruno Haible  <bruno@clisp.org>
30404
30405         Fix link error on Solaris.
30406         * tests/test-parse-duration.c (xstrdup): Remove function.
30407
30408 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30409
30410         ignore-value: handle pointer types, too
30411         * lib/ignore-value.h (__attribute__): Remove definition.
30412         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30413         of a more concise and more-often effective "(void) i" statement.
30414         (ignore_ptr): New function to suppress warnings from functions that
30415         return pointers, and to make it explicit that one function doesn't
30416         handle all cases.
30417
30418 2009-08-25  Bruno Haible  <bruno@clisp.org>
30419
30420         dup2: work around a Linux bug.
30421         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30422         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30423         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30424         Reported by Simon Josefsson.
30425
30426 2009-08-25  Jim Meyering  <meyering@redhat.com>
30427
30428         libguestfs uses gnulib
30429         * users.txt: Add libguestfs.
30430
30431 2009-08-24  Eric Blake  <ebb9@byu.net>
30432
30433         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30434         * lib/pipe2.c (includes): Add binary-io.h.
30435         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30436
30437 2009-08-24  Bruno Haible  <bruno@clisp.org>
30438
30439         Tolerate declared but missing accept4 syscall.
30440         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30441         available.
30442         * lib/sys_socket.in.h (accept4): If the function is already present,
30443         override it.
30444         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30445         * modules/accept4 (Makefile.am): Compile accept4.c always.
30446         Reported by Paolo Bonzini and Eric Blake.
30447
30448 2009-08-23  Bruno Haible  <bruno@clisp.org>
30449
30450         New module 'accept4'.
30451         * lib/sys_socket.in.h (accept4): New declaration.
30452         * lib/accept4.c: New file.
30453         * m4/accept4.m4: New file.
30454         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30455         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30456         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30457         HAVE_ACCEPT4.
30458         * modules/accept4: New file.
30459         * doc/glibc-functions/accept4.texi: Mention the new module.
30460
30461 2009-08-24  Jim Meyering  <meyering@redhat.com>
30462
30463         progname: also set global program_invocation_name, when possible
30464         Before this change, a libtool-enabled program that calls glibc's
30465         error function would report the program name as
30466         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30467         * modules/progname (configure.ac): Check for a declaration of
30468         program_invocation_name.
30469         * lib/progname.c:  Include <errno.h>.
30470         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30471         Set program_invocation_name.
30472
30473 2009-08-23  Bruno Haible  <bruno@clisp.org>
30474
30475         * lib/dup3.c: Include <string.h>.
30476
30477 2009-08-23  Bruno Haible  <bruno@clisp.org>
30478
30479         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30480         * lib/pipe2.c (pipe2): Likewise.
30481         Suggested by Eric Blake.
30482
30483 2009-08-23  Bruno Haible  <bruno@clisp.org>
30484
30485         Tolerate declared but missing dup3 syscall.
30486         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30487         * lib/unistd.in.h (dup3): If the function is already present,
30488         override it.
30489         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30490         * modules/dup3 (Makefile.am): Compile dup3.c always.
30491         Reported by Paolo Bonzini.
30492
30493 2009-08-23  Bruno Haible  <bruno@clisp.org>
30494
30495         Tolerate declared but missing pipe2 syscall.
30496         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30497         available.
30498         * lib/unistd.in.h (pipe2): If the function is already present,
30499         override it.
30500         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30501         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30502         Reported by Paolo Bonzini.
30503
30504 2009-08-23  Bruno Haible  <bruno@clisp.org>
30505
30506         * lib/pipe2.c (pipe2): Move #ifs inside function.
30507
30508 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30509
30510         quotearg: document limitations of quote_these_too
30511         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30512         those limitations are created.
30513         * lib/quotearg.h (set_char_quoting): Document that digits and
30514         letters that are special after backslash are not permitted.
30515         (quotearg_char): Cross-reference set_char_quoting documentation.
30516
30517 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30518
30519         quotearg: implement custom_quoting_style
30520         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30521         right_quote fields.
30522         (set_custom_quoting): New public function.
30523         (quotearg_buffer_restyled): Add left_quote and right_quote
30524         arguments, handle them very much like locale quoting, and update
30525         all uses.
30526         (quotearg_n_custom): New public function.
30527         (quotearg_n_custom_mem): New public function.
30528         (quotearg_custom): New public function.
30529         (quotearg_custom_mem): New public function.
30530         * lib/quotearg.h: Prototype and document new public functions.
30531         (enum quoting_style): For escape_quoting_style and
30532         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30533         ignored even though they're otherwise like c_quoting_style.
30534         Add custom_quoting_style member and document with comparison to
30535         clocale_quoting_style.
30536         * tests/test-quotearg.c (custom_quotes): New array.
30537         (custom_results): New array.
30538         (main): Extend to test custom quoting.
30539
30540 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30541
30542         quotearg: fix right quote escaping when it's in quote_these_too
30543         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30544         quote, be sure to prepend only one backslash.
30545         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30546         (main): Test it.
30547
30548 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30549
30550         quotearg-tests: test escaping of embedded locale quotes
30551         * tests/test-quotearg.c (struct result_strings): Add member for
30552         new input.
30553         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30554         (inputs): Add new input.
30555         (results_g): Add expected results.
30556         (flag_results): Likewise.
30557         (locale_results): Likewise.
30558         (compare_strings): Check those.
30559
30560 2009-08-23  Bruno Haible  <bruno@clisp.org>
30561
30562         Tests for module 'dup3'.
30563         * modules/dup3-tests: New file.
30564         * tests/test-dup3.c: New file.
30565
30566         New module 'dup3'.
30567         * lib/unistd.in.h (dup3): New declaration.
30568         * lib/dup3.c: New file.
30569         * m4/dup3.m4: New file.
30570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30571         HAVE_DUP3.
30572         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30573         * modules/dup3: New file.
30574         * doc/glibc-functions/dup3.texi: Mention the new module.
30575
30576 2009-08-23  Bruno Haible  <bruno@clisp.org>
30577
30578         Tweak the dup2 test.
30579         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30580         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30581         the test file is still empty. Fix argument order of lseek.
30582
30583 2009-08-23  Bruno Haible  <bruno@clisp.org>
30584
30585         Avoid test link errors when the modules getopt-gnu, gettext are used.
30586         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30588
30589 2009-08-23  Bruno Haible  <bruno@clisp.org>
30590
30591         Fix getdtablesize() on mingw.
30592         * lib/getdtablesize.c (getdtablesize): Implement differently.
30593         * lib/unistd.in.h (getdtablesize): Improve comment.
30594
30595 2009-08-23  Bruno Haible  <bruno@clisp.org>
30596
30597         New module 'mkostemp'.
30598         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30599         * lib/stdlib.in.h (mksotemp): New declaration.
30600         * lib/mkostemp.c: New file, from glibc with modifications.
30601         * lib/tempname.h (GT_FILE): Remove outdated comment.
30602         (gen_tempname): Add flags argument.
30603         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30604         (__GT_FILE): Map to 1.
30605         (small_open, large_open): Remove macros.
30606         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30607         * lib/mkstemp.c (mkstemp): Update.
30608         * lib/mkdtemp.c (mkdtemp): Likewise.
30609         * m4/mkostemp.m4: New file.
30610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30611         HAVE_MKOSTEMP.
30612         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30613         HAVE_MKOSTEMP.
30614         * modules/mkostemp: New file, based on modules/mkstemp.
30615         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30616         * NEWS: Mention the change.
30617
30618 2009-08-23  Bruno Haible  <bruno@clisp.org>
30619
30620         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30621         Reported by Eric Blake.
30622
30623 2009-08-23  Bruno Haible  <bruno@clisp.org>
30624
30625         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30626         Reported by Eric Blake.
30627
30628 2009-08-23  Bruno Haible  <bruno@clisp.org>
30629
30630         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30631         * modules/pipe2 (Depends-on): Likewise.
30632
30633 2009-08-23  Eric Blake  <ebb9@byu.net>
30634
30635         fcntl-h: add O_TTY_INIT support
30636         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30637         * tests/test-fcntl-h.c (o): Test it.
30638         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30639
30640         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30641         * modules/fcntl: Move <fcntl.h> header replacement...
30642         * modules/fcntl-h: ...to new name, so as not to collide with
30643         like-named function.
30644         * tests/test-fcntl.c: Rename...
30645         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30646         * modules/fcntl-tests: Rename...
30647         * modules/fcntl-h-tests: ...to this.  Update test file name.
30648         * modules/chdir-long (Depends-on): Update clients.
30649         * modules/chdir-safer (Depends-on): Likewise.
30650         * modules/fcntl-safer (Depends-on): Likewise.
30651         * modules/fts (Depends-on): Likewise.
30652         * modules/mkancesdirs (Depends-on): Likewise.
30653         * modules/mkdir-p (Depends-on): Likewise.
30654         * modules/open (Depends-on): Likewise.
30655         * modules/savewd (Depends-on): Likewise.
30656         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30657         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30658
30659 2009-08-22  Bruno Haible  <bruno@clisp.org>
30660
30661         * modules/binary-io (License): Relicense under LGPL.
30662         * modules/pipe2 (License): Likewise.
30663
30664 2009-08-22  Bruno Haible  <bruno@clisp.org>
30665
30666         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30667         return value.
30668         * lib/pipe-filter-gi.c (filter_init): Likewise.
30669         Reported by Eric Blake.
30670
30671 2009-08-22  Bruno Haible  <bruno@clisp.org>
30672
30673         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30674         * modules/pipe (Depends-on): Add pipe2.
30675
30676 2009-08-22  Bruno Haible  <bruno@clisp.org>
30677
30678         Tests for module 'pipe2'.
30679         * modules/pipe2-tests: New file.
30680         * tests/test-pipe2.c: New file.
30681
30682         New module 'pipe2'.
30683         * lib/unistd.in.h (pipe2): New declaration.
30684         * lib/pipe2.c: New file.
30685         * m4/pipe2.m4: New file.
30686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30687         HAVE_PIPE2.
30688         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30689         * modules/pipe2: New file.
30690         * doc/glibc-functions/pipe2.texi: Mention the new module.
30691
30692 2009-08-22  Bruno Haible  <bruno@clisp.org>
30693
30694         Reference some new glibc functions.
30695         * doc/glibc-functions/accept4.texi: New file.
30696         * doc/glibc-functions/dup3.texi: New file.
30697         * doc/glibc-functions/mkostemp.texi: New file.
30698         * doc/glibc-functions/pipe2.texi: New file.
30699         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30700         (Glibc sys/socket.h): Refer to accept4.
30701         (Glibc unistd.h): Refer to dup3, pipe2.
30702         Reported by Eric Blake.
30703
30704 2009-08-22  Jim Meyering  <meyering@redhat.com>
30705             Bruno Haible  <bruno@clisp.org>
30706
30707         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30708         This makes it so packages using automake-1.11's silent-rules option
30709         can print e.g., a single "GEN    configmake.h" line, rather than
30710         the 30+ statements that perform the job.  If you want to see the
30711         actual commands, you can still run "make V=1".
30712         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30713         so that make output is abbreviated when those variables are defined
30714         appropriately.
30715         * modules/argz: Likewise.
30716         * modules/arpa_inet: Likewise.
30717         * modules/byteswap: Likewise.
30718         * modules/configmake: Likewise.
30719         * modules/dirent: Likewise.
30720         * modules/errno: Likewise.
30721         * modules/fcntl: Likewise.
30722         * modules/float: Likewise.
30723         * modules/fnmatch: Likewise.
30724         * modules/getopt-posix: Likewise.
30725         * modules/glob: Likewise.
30726         * modules/iconv_open: Likewise.
30727         * modules/inttypes: Likewise.
30728         * modules/localcharset: Likewise.
30729         * modules/locale: Likewise.
30730         * modules/math: Likewise.
30731         * modules/netdb: Likewise.
30732         * modules/netinet_in: Likewise.
30733         * modules/poll: Likewise.
30734         * modules/posix_spawnp-tests: Likewise.
30735         * modules/sched: Likewise.
30736         * modules/search: Likewise.
30737         * modules/selinux-h: Likewise.
30738         * modules/signal: Likewise.
30739         * modules/spawn: Likewise.
30740         * modules/stdarg: Likewise.
30741         * modules/stdbool: Likewise.
30742         * modules/stddef: Likewise.
30743         * modules/stdint: Likewise.
30744         * modules/stdio: Likewise.
30745         * modules/stdlib: Likewise.
30746         * modules/string: Likewise.
30747         * modules/strings: Likewise.
30748         * modules/sys_file: Likewise.
30749         * modules/sys_ioctl: Likewise.
30750         * modules/sys_select: Likewise.
30751         * modules/sys_socket: Likewise.
30752         * modules/sys_stat: Likewise.
30753         * modules/sys_time: Likewise.
30754         * modules/sys_times: Likewise.
30755         * modules/sys_utsname: Likewise.
30756         * modules/sys_wait: Likewise.
30757         * modules/sysexits: Likewise.
30758         * modules/time: Likewise.
30759         * modules/unistd: Likewise.
30760         * modules/wchar: Likewise.
30761         * modules/wctype: Likewise.
30762
30763 2009-08-22  Jim Meyering  <meyering@redhat.com>
30764
30765         announce-gen: detect write failure
30766         * build-aux/announce-gen: Add Coda at end.
30767         Remove equivalent-but-more-verbose block at top.
30768
30769 2009-08-19  Akim Demaille  <demaille@gostai.com>
30770
30771         bootstrap: --help to stdout.
30772         * bootstrap (usage): Don't send --help to stderr.
30773         Use a here doc instead of a long string.
30774
30775 2009-08-21  Eric Blake  <ebb9@byu.net>
30776
30777         test-popen-safer: split from test-popen
30778         * tests/test-popen.c (main): Move...
30779         * tests/test-popen.h: ...into new file.
30780         * tests/test-popen-safer2.c: New file.
30781         * modules/popen-tests (Files): Add test-popen.h.
30782         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30783         Suggested by Bruno Haible.
30784
30785         test-fcntl-safer: split from test-open
30786         * tests/test-open.c (main): Move...
30787         * tests/test-open.h: ...into new file.
30788         * tests/test-fcntl-safer.c: New file.
30789         * modules/open-tests (Files): Add test-open.h.
30790         * modules/fcntl-safer-tests: New file.
30791         Suggested by Bruno Haible.
30792
30793         test-fopen-safer: split from test-fopen
30794         * tests/test-fopen.c (main): Move...
30795         * tests/test-fopen.h: ...into new file.
30796         * tests/test-fopen-safer.c: New file.
30797         * modules/fopen-tests (Files): Add test-fopen.h.
30798         * modules/fopen-safer-tests: New file.
30799         Suggested by Bruno Haible.
30800
30801 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30802
30803         popen-safer: test O_CLOEXEC at run-time.
30804         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30805
30806 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30807
30808         fcntl: move more flags to the header
30809         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30810         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30811         * lib/fcntl.in.h: Do both things here.
30812
30813 2009-08-21  Jim Meyering  <meyering@redhat.com>
30814
30815         consistently remove $@-t before redirecting to it
30816         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30817         * modules/alloca-opt: Likewise.
30818         * modules/byteswap: Likewise.
30819         * modules/fnmatch: Likewise.
30820         * modules/getopt-posix: Likewise.
30821         * modules/glob: Likewise.
30822         * modules/poll: Likewise.
30823         * modules/posix_spawnp-tests: Likewise.
30824         * modules/sys_socket: Likewise.
30825         * modules/sysexits: Likewise.
30826
30827 2009-08-21  Eric Blake  <ebb9@byu.net>
30828
30829         popen: simplify access to original popen
30830         * lib/popen.c (rpl_popen): No need to worry about popen being a
30831         macro.
30832         Reported by Bruno Haible.
30833
30834 2009-08-20  Eric Blake  <ebb9@byu.net>
30835
30836         build: avoid some compiler warnings
30837         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30838         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30839         type.
30840         (new_exclude_segment, excluded_file_pattern_p)
30841         (excluded_file_name_p): Reduce scope.
30842         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30843         old-style declaration.
30844
30845 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30846
30847         * tests/test-exclude1.sh: Handle Windows EOL.
30848         * tests/test-exclude2.sh: Likewise.
30849         * tests/test-exclude3.sh: Likewise.
30850         * tests/test-exclude4.sh: Likewise.
30851         * tests/test-exclude5.sh: Likewise.
30852         * tests/test-exclude6.sh: Likewise.
30853         * tests/test-exclude7.sh: Likewise.
30854
30855 2009-08-19  Akim Demaille  <demaille@gostai.com>
30856
30857         bootstrap: find sha1sum when named gsha1sum.
30858         * bootstrap (find_tool): New.
30859         ($SHA1SUM): New.
30860         Use it.
30861
30862 2009-08-20  Jim Meyering  <meyering@redhat.com>
30863
30864         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30865         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30866         expression that converts "." in a file name to "\." in the resulting
30867         regexp.  Start with a dummy statement, so that prior shell variable
30868         definitions are expanded portably.  Reported by Simon Josefsson.
30869
30870 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30871
30872         Fix polling for writeability of a screen buffer.
30873         * lib/poll.c: Distinguish input and screen buffers for the
30874         Win32 implementation.
30875         * lib/select.c: Likewise.
30876
30877 2009-08-19  Eric Blake  <ebb9@byu.net>
30878
30879         popen-safer: prevent popen from clobbering std descriptors
30880         * modules/popen-safer: New file.
30881         * lib/popen-safer.c: Likewise.
30882         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30883         * lib/stdio--.h (popen): Provide override.
30884         * lib/stdio-safer.h (popen_safer): Provide declaration.
30885         * tests/test-popen.c (includes): Partially test this.
30886         * modules/popen-safer-tests: New file, for more tests.
30887         * tests/test-popen-safer.c: Likewise.
30888         * MODULES.html.sh (file stream based Input/Output): Mention it.
30889
30890         tests: test some of the *-safer modules
30891         * modules/fopen-safer (Depends-on): Add fopen.
30892         * modules/fcntl-safer (Depends-on): Add fcntl.
30893         * modules/stdlib-safer (Depends-on): Add stdlib.
30894         (configure.ac): Set indicator.
30895         * modules/unistd-safer (configure.ac): Likewise.
30896         * modules/tmpfile-safer (configure.ac): Likewise.
30897         (Depends-on): Add tmpfile.
30898         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30899         active.
30900         * tests/test-fopen.c (includes): Test safer versions when they are
30901         in use.
30902         * tests/test-open.c (includes): Likewise.
30903
30904         popen: fix cygwin 1.5 bug when stdin closed
30905         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30906         * modules/popen: New file.
30907         * modules/popen-tests: Likewise.
30908         * tests/test-popen.c: Likewise.
30909         * m4/popen.m4: Likewise.
30910         * lib/popen.c: Likewise.
30911         * lib/stdio.in.h (popen): New declaration.
30912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30913         * modules/stdio (Makefile.am): Likewise.
30914         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30915
30916 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30917
30918         maint.mk: give full control over update-copyright exclusions
30919         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30920         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30921         (update-copyright): Don't force inclusion of top-level
30922         ChangeLog.  Don't force exclusion of all COPYING files, but make
30923         them the default exclusion instead.
30924
30925 2009-08-16  Bruno Haible  <bruno@clisp.org>
30926
30927         Fix test failures on Solaris 10.
30928         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30929         tests when Solaris iconv() is used.
30930         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30931         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30932         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30933         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30934         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30935
30936 2009-08-16  Bruno Haible  <bruno@clisp.org>
30937
30938         Fix test failures on Solaris 10.
30939         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30940         'tr' program and pass it as first argument.
30941         * tests/test-pipe-filter-gi1.sh: Likewise.
30942         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30943         program as first argument.
30944         * tests/test-pipe-filter-gi1.c (main): Likewise.
30945
30946 2009-08-16  Eric Blake  <ebb9@byu.net>
30947
30948         fpurge: fix previous commits
30949         * modules/fpurge (Makefile.am): Make replacement conditional,
30950         partially reverting 2007-04-29 change; missed in previous
30951         attempt.
30952         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30953         is missing.
30954
30955 2009-08-16  Bruno Haible  <bruno@clisp.org>
30956
30957         Clarify fpurge's effect on the file position.
30958         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30959         * tests/test-fpurge.c (main): Make a second pass for checking the file
30960         position.
30961
30962 2009-08-16  Bruno Haible  <bruno@clisp.org>
30963
30964         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30965         declaration of fpurge is missing.
30966         * tests/test-fpurge.c (main): Check that the file has not more contents
30967         than expected. Close the file before removing it.
30968
30969 2009-08-15  Eric Blake  <ebb9@byu.net>
30970
30971         fpurge: don't wrap working cygwin implementation
30972         * lib/fpurge.c (fpurge): Fix comment typo.
30973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30974         1.7 to avoid replacement.
30975         * tests/test-fpurge.c (main): Enhance test.
30976
30977 2009-08-15  Eric Blake  <ebb9@byu.net>
30978         and Jim Meyering  <meyering@redhat.com>
30979
30980         test-update-copyright: skip if perl is insufficient
30981         * tests/test-update-copyright.sh: Failure to run maintainer tool
30982         should not cause testsuite failure on cygwin 1.5.
30983
30984 2009-08-14  Eric Blake  <ebb9@byu.net>
30985
30986         doc: mention more functions added in cygwin 1.7.0
30987         * doc/posix-headers/limits.texi (limits.h): Update for recent
30988         cygwin additions.
30989         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30990         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30991         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30992         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30993         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30994
30995 2009-08-14  Eric Blake  <ebb9@byu.net>
30996
30997         maint.mk: simplify update-copyright rule
30998         * top/maint.mk (update-copyright-local): Delete, and document how
30999         to do it in cfg.mk instead.
31000         (update-copyright-exclude-regexp): Delete, and document how to do
31001         it in .x-update-copyright instead.
31002         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31003         exclude ChangeLog.
31004
31005 2009-08-14  Bruno Haible  <bruno@clisp.org>
31006
31007         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31008
31009 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31010
31011         maint.mk: support update-copyright-env
31012         * top/maint.mk (update-copyright-env): Define place-holder.
31013         (update-copyright): Expand $(update-copyright-env) before
31014         invoking update-copyright.
31015
31016 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31017
31018         update-copyright: implement forced reformatting
31019         * build-aux/update-copyright: Implement and document
31020         UPDATE_COPYRIGHT_FORCE.
31021         * tests/test-update-copyright.sh: Test it.
31022
31023 2009-08-14  Eric Blake  <ebb9@byu.net>
31024         and Bruno Haible  <bruno@clisp.org>
31025
31026         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31027         * tests/test-locale.c: Revert previous patch related to NULL.
31028         * tests/test-stdio.c: Likewise.
31029         * tests/test-stdlib.c: Likewise.
31030         * tests/test-string.c: Likewise.
31031         * tests/test-unistd.c: Likewise.
31032         * modules/time-tests (Depends-on): Add verify.
31033         * modules/wchar-tests (Depends-on): Likewise.
31034         * tests/test-time.c: Test for NULL compliance.
31035         * tests/test-wchar.c: Likewise.
31036         * modules/locale (Depends-on): Add stddef.
31037         * modules/stdio (Depends-on): Likewise.
31038         * modules/stdlib (Depends-on): Likewise.
31039         * modules/string (Depends-on): Likewise.
31040         * modules/time (Depends-on): Likewise.
31041         * modules/unistd (Depends-on): Likewise.
31042         * modules/wchar (Depends-on): Likewise.
31043         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31044         * lib/stdlib.in.h (includes): Likewise.
31045         * lib/string.in.h (includes): Likewise.
31046         * lib/time.in.h (includes): Likewise.
31047         * lib/unistd.in.h (includes): Likewise.
31048         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31049         replaced.
31050         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31051         * m4/stddef_h.m4: New file.
31052         * modules/stddef: Likewise.
31053         * lib/stddef.in.h: Likewise.
31054         * modules/stddef-tests: Likewise.
31055         * tests/test-stddef.c: Likewise.
31056         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31057         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31058         * doc/posix-headers/locale.texi (locale.h): Likewise.
31059         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31060         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31061         * doc/posix-headers/string.texi (string.h): Likewise.
31062         * doc/posix-headers/time.texi (time.h): Likewise.
31063         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31064         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31065
31066 2009-08-14  Eric Blake  <ebb9@byu.net>
31067
31068         doc: improve git diff of texinfo files
31069         * .gitattributes: Add rule for *.texi files, with hint on how to
31070         use it.
31071         Copied from m4, and based on a report by Bruno Haible.
31072
31073 2009-08-14  Bruno Haible  <bruno@clisp.org>
31074
31075         Disable multithread support by default on Cygwin 1.5.x for real.
31076         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31077
31078 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31079
31080         update-copyright: much ado about intervals
31081         * build-aux/update-copyright: Implement and document
31082         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31083         of copyright year intervals.
31084         Also, document UPDATE_COPYRIGHT_YEAR.
31085         * tests/test-update-copyright.sh: Test it.
31086
31087         update-copyright: convert 2-digit to 4-digit years
31088         * build-aux/update-copyright: Implement and document.
31089         * tests/test-update-copyright.sh: Update.
31090
31091 2009-08-14  Jim Meyering  <meyering@redhat.com>
31092
31093         test-exclude: avoid coreutils "make check" failure
31094         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31095         just as in test-argmatch.c.
31096
31097 2009-08-13  Eric Blake  <ebb9@byu.net>
31098
31099         test-dup2: fix bad assumption
31100         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31101         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31102
31103         test-version-etc: fix CRLF portability issue
31104         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31105         recognize \r.
31106         * tests/test-argp-version-etc-1.sh: Likewise.
31107
31108         getopt: update client modules
31109         * modules/argp (Depends-on): Use getopt-gnu.
31110         * modules/git-merge-changelog (Depends-on): Likewise.
31111         * modules/long-options (Depends-on): Likewise.
31112         * modules/xstrtol (Depends-on): Likewise.
31113
31114 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31115
31116         * tests/test-version-etc.sh: Don't fail on different
31117         project/version.  Don't fail on CRLF differences.  Rewrite to use
31118         multiple -e instead of multiple sed forks, suggested by Eric Blake
31119         <ebb9@byu.net>.
31120         * tests/test-argp-version-etc-1.sh: Likewise.
31121
31122 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31123
31124         * tests/test-version-etc.sh: Don't fail on different
31125         project/version.
31126
31127 2009-08-12  Bruno Haible  <bruno@clisp.org>
31128
31129         Tests for modules 'getopt-posix', 'getopt-gnu'.
31130         * modules/getopt-posix-tests: New file.
31131         * tests/test-getopt.c: New file.
31132         * tests/test-getopt.h: New file.
31133         * tests/test-getopt_long.h: New file.
31134
31135         New modules 'getopt-posix', 'getopt-gnu'.
31136         * modules/getopt-gnu: New file, renamed from modules/getopt.
31137         * modules/getopt-posix: New file.
31138         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31139         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31140         (gl_GETOPT): Remove macro.
31141         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31142         Disable the test against BSD systems that declare optreset. Test
31143         against mingw bug. Test against lack of support of optional arguments
31144         on many platforms.
31145         * doc/glibc-headers/getopt.texi: Update module name and list of
31146         relevant platforms.
31147         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31148         'getopt-gnu' and more portability problems.
31149         * NEWS: Mention the changes.
31150
31151 2009-08-12  Bruno Haible  <bruno@clisp.org>
31152
31153         Ensure that optarg etc. get declared by <unistd.h>.
31154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31155         AC_USE_SYSTEM_EXTENSIONS.
31156         * modules/getopt (Depends-on): Add 'extensions'.
31157
31158 2009-08-12  Bruno Haible  <bruno@clisp.org>
31159
31160         Avoid test link errors.
31161         * modules/pipe-filter-ii-tests (Makefile.am): Define
31162         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31163         * modules/pipe-filter-gi-tests (Makefile.am): Define
31164         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31166
31167 2009-08-12  Bruno Haible  <bruno@clisp.org>
31168
31169         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31170         gl_GETOPT_SUBSTITUTE before.
31171         (gl_GETOPT): Use it.
31172         * m4/argp.m4 (gl_ARGP): Update.
31173         Reported by Sergey Poznyakoff.
31174
31175         * m4/getopt.m4: Reorder macros.
31176         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31177         (gl_GETOPT_SUBSTITUTE): Remove macro.
31178
31179 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31180
31181         Minor improvement in gitlog-to-changelog
31182
31183         * build-aux/gitlog-to-changelog: New option `--format' makes
31184         output format string configurable.
31185
31186 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31187
31188         Optimize exclude: use hash tables for non-wildcard patterns.
31189
31190         * lib/exclude.c: Include hash.h and mbuiter.h
31191         (struct exclude_pattern, exclude_segment): New data types.
31192         (struct exclude): Rewrite.
31193         (fnmatch_pattern_has_wildcards): New function.
31194         (new_exclude_segment, free_exclude_segment): New functions.
31195         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31196         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31197         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31198         * modules/exclude: Depend on hash and mbuiter.
31199
31200         * modules/exclude-tests: New file.
31201         * tests/test-exclude.c: New file.
31202         * tests/test-exclude1.sh: New file.
31203         * tests/test-exclude2.sh: New file.
31204         * tests/test-exclude3.sh: New file.
31205         * tests/test-exclude4.sh: New file.
31206         * tests/test-exclude5.sh: New file.
31207         * tests/test-exclude6.sh: New file.
31208         * tests/test-exclude7.sh: New file.
31209
31210 2009-08-12  Bruno Haible  <bruno@clisp.org>
31211
31212         Ensure that getopt() gets declared by <unistd.h>.
31213         * lib/unistd.in.h: Conditionally include getopt.h.
31214         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31215         Set GNULIB_UNISTD_H_GETOPT.
31216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31217         GNULIB_UNISTD_H_GETOPT.
31218         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31219
31220 2009-08-12  Bruno Haible  <bruno@clisp.org>
31221
31222         Clarify logic.
31223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31224         gl_replace_getopt instead of GETOPT_H.
31225
31226 2009-08-12  Bruno Haible  <bruno@clisp.org>
31227
31228         * m4/getopt.m4: Add comments.
31229
31230 2009-08-12  Bruno Haible  <bruno@clisp.org>
31231
31232         Disable multithread support by default on Cygwin 1.5.x.
31233         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31234         set gl_use_threads=no if not specified otherwise.
31235
31236 2009-08-11  Bruno Haible  <bruno@clisp.org>
31237
31238         Avoid compilation error on NetBSD 5.0.
31239         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31240         * tests/test-stdio.c: Likewise.
31241         * tests/test-stdlib.c: Likewise.
31242         * tests/test-string.c: Likewise.
31243         * tests/test-unistd.c: Likewise.
31244         Reported by Greg Troxel <gdt@ir.bbn.com>
31245         at <https://savannah.gnu.org/support/?106973>.
31246
31247 2009-08-11  Bruno Haible  <bruno@clisp.org>
31248
31249         * modules/dup2-tests (Depends-on): Remove close.
31250
31251         Undo 2009-07-19 commit.
31252         * modules/acl-tests (Depends-on): Remove close.
31253         * modules/binary-io-tests (Depends-on): Likewise.
31254         * modules/closein-tests (Depends-on): Likewise.
31255         * modules/flock-tests (Depends-on): Likewise.
31256         * modules/fsync-tests (Depends-on): Likewise.
31257         * modules/lseek-tests (Depends-on): Likewise.
31258         * modules/pipe-tests (Depends-on): Likewise.
31259         * modules/posix_spawn-tests (Depends-on): Likewise.
31260         * modules/posix_spawnp-tests (Depends-on): Likewise.
31261         * modules/stat-time-tests (Depends-on): Likewise.
31262         * modules/yesno-tests (Depends-on): Likewise.
31263
31264 2009-08-10  Bruno Haible  <bruno@clisp.org>
31265
31266         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31267
31268 2009-08-10  Bruno Haible  <bruno@clisp.org>
31269
31270         Fix a gcc warning.
31271         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31272
31273 2009-08-10  Bruno Haible  <bruno@clisp.org>
31274
31275         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31276         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31277         not only the first time.
31278         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31279         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31280         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31281         is 1, not only the the first time.
31282
31283 2009-08-10  Bruno Haible  <bruno@clisp.org>
31284
31285         Make it possible to use module 'gethostname' without module 'close'.
31286         * lib/unistd.in.h (close): Evoke a link error only if
31287         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31289         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31290         * modules/unistd (Makefile.am): Substitute
31291         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31292         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31293         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31295         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31296         * modules/sys_ioctl (Makefile.am): Substitute
31297         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31298         * modules/socket (configure.ac): On native Windows, set
31299         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31300         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31301         Reported by Sam Steingold <sds@gnu.org>.
31302
31303 2009-08-10  Bruno Haible  <bruno@clisp.org>
31304
31305         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31306         * modules/ioctl (configure.ac): Likewise.
31307
31308 2009-08-10  Bruno Haible  <bruno@clisp.org>
31309
31310         Avoid collision between gnulib wrapper and libintl wrapper.
31311         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31312         already defined in intl/printf.c.
31313         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31314         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31315
31316 2009-08-09  Bruno Haible  <bruno@clisp.org>
31317
31318         Make <sys/select.h> really self-contained, also on Solaris 10.
31319         * lib/sys_select.in.h: Include <string.h>.
31320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31321         Solaris 10 problem.
31322         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31323         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31324         Reported by Jim Meyering.
31325
31326 2009-08-09  Bruno Haible  <bruno@clisp.org>
31327
31328         Avoid warnings from 'aclocal' that are due to a use of macro name
31329         AM_XGETTEXT_OPTION that is not defined in automake.
31330         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31331         automake.
31332         * modules/error (configure.ac): Likewise.
31333         * modules/propername (configure.ac): Likewise.
31334         * modules/vasprintf (configure.ac): Likewise.
31335         * modules/verror (configure.ac): Likewise.
31336         * modules/xprintf (configure.ac): Likewise.
31337         * modules/xvasprintf (configure.ac): Likewise.
31338
31339 2009-08-08  Bruno Haible  <bruno@clisp.org>
31340
31341         Avoid compilation error in C++ mode.
31342         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31343         Reported by Sam Steingold <sds@gnu.org>.
31344
31345 2009-08-08  Bruno Haible  <bruno@clisp.org>
31346
31347         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31348         for the various Unix platforms.
31349         * doc/posix-headers/limits.texi: Update platforms list regarding
31350         HOST_NAME_MAX.
31351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31352
31353 2009-08-07  Jim Meyering  <meyering@redhat.com>
31354
31355         selinux-at: fix typo in a comment
31356         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31357         Spotted by Paolo Bonzini.
31358
31359         selinux-at: remove redundant m4 code, add documentation
31360         * modules/selinux-at (configure.ac): Remove redundant code.
31361         LIB_SELINUX is already set via the dependent module, selinux-h.
31362         (Include): Add quotes around selinux-at.h.
31363         * lib/selinux-at.h: Add documentation.
31364         Reported by Bruno Haible in
31365         http://marc.info/?l=gnulib-bug&m=124958988300749
31366
31367 2009-08-07  Bruno Haible  <bruno@clisp.org>
31368
31369         Avoid link error on MacOS X 10.3 and 10.4.
31370         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31371         on non-ELF systems.
31372         * lib/argp-pv.c (argp_program_version): Likewise.
31373         Reported by Simon Josefsson.
31374
31375 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31376
31377         * tests/test-version-etc.sh: Use $EXEEXT.
31378
31379 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31380
31381         update-copyright: update documentation to point to maint.mk
31382         * build-aux/update-copyright: Here.
31383
31384 2009-08-06  Jim Meyering  <meyering@redhat.com>
31385
31386         maint.mk: support update-copyright-local
31387         * top/maint.mk (update-copyright-local): Define place-holder.
31388         (update-copyright): Depend on $(update-copyright-local).
31389
31390 2009-08-06  Jim Meyering  <meyering@redhat.com>
31391
31392         selinux-at: new module
31393         Initially written for coreutils, this module will soon be
31394         used by findutils, too.
31395         * MODULES.html.sh [Misc]: Add selinux-at.
31396         * lib/selinux-at.h: New file, from coreutils.
31397         * lib/selinux-at.c: Likewise.
31398         * modules/selinux-at: Likewise.
31399         (License): Change from LGPL to GPL, since it depends
31400         on the GPL'd openat module.
31401
31402         doc: update README
31403         * README: Remove references to cogito.
31404         Remove cvs-repo-updating instructions from 2007.
31405         Don't imply that CVS is better if you have limited disk space.
31406
31407 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31408
31409         update-copyright: support C-style comments
31410         * build-aux/update-copyright: Implement and document.
31411         * tests/test-update-copyright.sh: Test.
31412
31413 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31414
31415         update-copyright: support omitted "(C)"
31416         * build-aux/update-copyright: Implement and document.  Also,
31417         allow variable whitespace before "(C)".
31418         * tests/test-update-copyright.sh: Test.
31419
31420 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31421
31422         update-copyright: don't trip on non-FSF copyright statements
31423         * build-aux/update-copyright: Fix so that the first correctly
31424         formatted FSF copyright statement is recognized no matter what
31425         appears before it.  Update documentation.
31426         * tests/test-update-copyright.sh: Test that.
31427
31428 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31429
31430         update-copyright: clean up code a little
31431         * build-aux/update-copyright: Append "_re" to the name of any
31432         variable holding a regular expression.
31433         Replace "old" and "new" with "stmt" in variable names.
31434         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31435         handled correctly.
31436         Format code more consistently.
31437
31438 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31439
31440         update-copyright-tests: improve portability
31441         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31442         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31443
31444 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31445
31446         update-copyright: support @copyright{} and &copy;
31447         * build-aux/update-copyright: Implement and document.
31448         * tests/test-update-copyright.sh: Test.
31449
31450 2009-08-04  Jim Meyering  <meyering@redhat.com>
31451
31452         update-copyright-tests: correctly test EOL=\r\n handling
31453         * tests/test-update-copyright.sh: Put \r at the end of some lines
31454         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31455
31456         maint.mk: make update-copyright exclusion list more configurable
31457         * top/maint.mk (update-copyright): Default to excluding COPYING,
31458         but allow an override, in case someone does want to update that file.
31459
31460         maint.mk: don't update copyright date in COPYING
31461         * top/maint.mk (update-copyright): Exclude COPYING.
31462
31463         maint.mk: add a copyright-updating rule
31464         * top/maint.mk (update-copyright): New rule.
31465         Derived from coreutils/Makefile.am.
31466
31467         update-copyright: rename some variables
31468         * build-aux/update-copyright: Rename a few variables for clarity.
31469         Tweak syntax.  List Joel E. Denny as coauthor.
31470
31471 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31472
31473         update-copyright: fix bug for 2-digit last year and add tests
31474         * build-aux/update-copyright: Fix bug.
31475         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31476         specified.
31477         * modules/update-copyright-tests: New
31478         * tests/test-update-copyright.sh: New.
31479
31480 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31481
31482         update-copyright: handle leading tabs in line prefix
31483         * build-aux/update-copyright: Count leading tabs as 8 spaces
31484         when computing margin.  This helps with the formatting of
31485         ChangeLogs, for example.
31486         Fix documentation a little.
31487
31488 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31489
31490         update-copyright: support EOL=\r\n
31491         * build-aux/update-copyright: Implement that.
31492
31493 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31494
31495         update-copyright: automatically format copyright statements
31496         * build-aux/update-copyright: Implement that.
31497         Also, be a little more predictable and safer by always failing
31498         when the full copyright format is not perfectly recognized as an
31499         unbroken whole.  Discussed at
31500         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31501         Rewrite documentation.
31502
31503 2009-08-03  Bruno Haible  <bruno@clisp.org>
31504
31505         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31506
31507 2009-08-02  Bruno Haible  <bruno@clisp.org>
31508
31509         Tests for module 'uname'.
31510         * modules/uname-tests: New file.
31511         * tests/test-uname.c: New file.
31512
31513         New module 'uname'.
31514         * lib/uname.c: New file.
31515         * m4/uname.m4: New file.
31516         * modules/uname: New file.
31517         * doc/posix-functions/uname.texi: Mention the new module.
31518
31519 2009-08-02  Bruno Haible  <bruno@clisp.org>
31520
31521         Tests for module 'sys_utsname'.
31522         * modules/sys_utsname-tests: New file.
31523         * tests/test-sys_utsname.c: New file.
31524
31525         New module 'sys_utsname'.
31526         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31527         * m4/sys_utsname_h.m4: New file.
31528         * modules/sys_utsname: New file.
31529         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31530
31531 2009-08-02  Bruno Haible  <bruno@clisp.org>
31532
31533         Implicitly initialize the sockets library.
31534         * lib/gethostname.c: Include sockets.h.
31535         (rpl_gethostname): Invoke gl_sockets_startup.
31536         * lib/socket.c: Include sockets.h.
31537         (rpl_socket): Invoke gl_sockets_startup.
31538         * modules/gethostname (Depends-on): Add sockets.
31539         * modules/socket (Depends-on): Likewise.
31540         * tests/test-poll.c: Don't include sockets.h.
31541         (main): Don't invoke gl_sockets_startup.
31542         * tests/test-select.c: Don't include sockets.h.
31543         (main): Don't invoke gl_sockets_startup.
31544
31545 2009-08-02  Bruno Haible  <bruno@clisp.org>
31546
31547         Allow multiple calls to gl_sockets_startup.
31548         * lib/sockets.c (initialized_sockets_version): New variable.
31549         (gl_sockets_startup): Do nothing if already called for this or a higher
31550         version.
31551         (gl_sockets_cleanup): Reset initialized_sockets_version.
31552
31553 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31554
31555         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31556         different project/version.
31557
31558 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31559             Bruno Haible  <bruno@clisp.org>
31560
31561         Tests for module 'pipe-filter-gi'.
31562         * modules/pipe-filter-gi-tests: New file.
31563         * tests/test-pipe-filter-gi1.sh: New file.
31564         * tests/test-pipe-filter-gi1.c: New file.
31565         * tests/test-pipe-filter-gi2.sh: New file.
31566         * tests/test-pipe-filter-gi2-main.c: New file.
31567         * tests/test-pipe-filter-gi2-child.c: New file.
31568
31569         New module 'pipe-filter-gi'.
31570         * lib/pipe-filter-gi.c: New file.
31571         * modules/pipe-filter-gi: New file.
31572
31573 2009-08-02  Bruno Haible  <bruno@clisp.org>
31574             Paolo Bonzini  <bonzini@gnu.org>
31575
31576         Tests for module 'pipe-filter-ii'.
31577         * modules/pipe-filter-ii-tests: New file.
31578         * tests/test-pipe-filter-ii1.sh: New file.
31579         * tests/test-pipe-filter-ii1.c: New file.
31580         * tests/test-pipe-filter-ii2.sh: New file.
31581         * tests/test-pipe-filter-ii2-main.c: New file.
31582         * tests/test-pipe-filter-ii2-child.c: New file.
31583
31584         New module 'pipe-filter-ii'.
31585         * lib/pipe-filter.h: New file.
31586         * lib/pipe-filter-ii.c: New file.
31587         * lib/pipe-filter-aux.h: New file.
31588         * modules/pipe-filter-ii: New file.
31589
31590 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31591
31592         * lib/gc-libgcrypt.c: Change copyright to FSF.
31593         * lib/gc-gnulib.c: Likewise.
31594
31595 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31596
31597         * lib/gethostname.c: Include limits.h.
31598
31599 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31600             Bruno Haible  <bruno@clisp.org>
31601
31602         Ensure HOST_NAME_MAX as part of the gethostname module.
31603         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31604         define also HOST_NAME_MAX.
31605         * tests/test-gethostname.c: Include <limits.h>.
31606         (main): Check also HOST_NAME_MAX.
31607         * doc/posix-headers/limits.texi: Document the mingw problem.
31608
31609 2009-08-02  Bruno Haible  <bruno@clisp.org>
31610
31611         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31612         Add comments.
31613
31614 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31615
31616         * lib/gethostname.c: Add Windows wrapper.
31617         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31618         * modules/gethostname: Depend on sys_socket & errno, for also
31619         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31620         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31621
31622 2009-07-31  Jim Meyering  <meyering@redhat.com>
31623
31624         getloadavg: fix symbol name in comment
31625         * lib/getloadavg.c: Correct a typo I introduced when adding
31626         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31627         Matt Kraai spotted the problem.
31628
31629 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31630
31631         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31632         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31633         code also if ! defined N_NAME_POINTER.
31634         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31635         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31636         but the n_name member is a 12-byte array.
31637
31638 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31639
31640         update-copyright: generalize comment handling
31641         * build-aux/update-copyright: Handle copyright statements
31642         within more comment styles.
31643         Document usage.
31644         Report any file with an external copyright holder or parse failure.
31645
31646 2009-07-29  Jim Meyering  <meyering@redhat.com>
31647
31648         mktime: correct setting of REPLACE_MKTIME
31649         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31650
31651         update-copyright: new module
31652         * modules/update-copyright: New file.
31653         * build-aux/update-copyright: New file.
31654         * MODULES.html.sh (maint+release support): Add update-copyright.
31655
31656 2009-07-27  Bruno Haible  <bruno@clisp.org>
31657
31658         Fix compilation error when <ctime> is used and mktime is replaced.
31659         * lib/time.in.h (mktime): New declaration.
31660         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31661         REPLACE_MKTIME instead of defining mktime in config.h.
31662         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31663         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31664         Reported by Ross McFarland <rwmcfa1@neces.com>.
31665
31666 2009-07-27  Bruno Haible  <bruno@clisp.org>
31667
31668         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31669         Reported by Matt Kraai <mkraai@beckman.com>.
31670
31671 2009-07-25  Jim Meyering  <meyering@redhat.com>
31672
31673         maint.mk: avoid warnings about missing files
31674         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31675         diagnostic when .prev-version does not exist.
31676         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31677         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31678         nonexistent cfg.mk.
31679         Suggestions from Simon Josefsson.
31680
31681 2009-07-25  Bruno Haible  <bruno@clisp.org>
31682
31683         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31684         defined as macros. Needed on QNX 6.4.1.
31685         Reported by Matt Kraai <mkraai@beckman.com>.
31686
31687 2009-07-23  Jim Meyering  <meyering@redhat.com>
31688
31689         maint.mk: invoke "make dist" with a working value of XZ_OPT
31690         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31691
31692 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31693
31694         Make fseeko.c compile on QNX.
31695         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31696
31697 2009-07-22  Peter Simons  <simons@cryp.to>
31698
31699         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31700         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31701         * lib/md4.h: Likewise.
31702         * lib/md5.h: Likewise.
31703         * lib/sha1.h: Likewise.
31704         * lib/sha256.h: Likewise.
31705         * lib/sha512.h: Likewise.
31706
31707         tests-sha1: don't assign literal string to 'char *' variable
31708         * tests/test-sha1.c (main): Declare locals with "const" to match
31709         attributes of the right hand side.
31710
31711 2009-07-21  Eric Blake  <ebb9@byu.net>
31712
31713         dup2: fix more mingw problems
31714         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31715         fd to itself.
31716         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31717         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31718         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31719         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31720         care of mingw bugs.
31721
31722 2009-07-21  Jim Meyering  <meyering@redhat.com>
31723
31724         vc-list-files: avoid failure when /bin/sh is dash
31725         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31726         On some Debian based systems, /bin/sh is a symlink to dash, and running
31727         this command would omit the "/" following each 'tests' prefix:
31728           dash -x build-aux/vc-list-files -C . tests
31729         That is because bash and dash work differently:
31730           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31731           bash ok
31732           dash odd
31733
31734 2009-07-21  Eric Blake  <ebb9@byu.net>
31735
31736         dup2-tests: test previous patch
31737         * modules/dup2-tests: New file.
31738         * tests/test-dup2.c: Likewise.
31739         * tests/test-open.c (main): Avoid unspecified behavior.
31740         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31741         test.
31742
31743         dup2: work around mingw and cygwin 1.5 bug
31744         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31746         * modules/unistd (Makefile.am): Substitute it.
31747         * lib/unistd.in.h (dup2): Declare the replacement.
31748         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31749         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31750         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31751         * modules/execute (Depends-on): Add dup2.
31752         * modules/fseterr (Depends-on): Likewise.
31753         * modules/pipe (Depends-on): Likewise.
31754         * modules/posix_spawn-internal (Depends-on): Likewise.
31755
31756 2009-07-21  Bruno Haible  <bruno@clisp.org>
31757
31758         * modules/.gitattributes: New file.
31759
31760 2009-07-20  Bruno Haible  <bruno@clisp.org>
31761
31762         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31763         (main): Use it.
31764
31765 2009-07-20  Eric Blake  <ebb9@byu.net>
31766
31767         test-pipe: make a bit more robust.
31768         * tests/test-pipe.c (myerr): Allow error messages regardless of
31769         what we do to stderr.
31770         (test_pipe): Rearrange to avoid deadlock.
31771         (child_main): Try a larger read, to ensure we avoided deadlock.
31772         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31773         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31774         if misused.
31775
31776 2009-07-19  Jim Meyering  <meyering@redhat.com>
31777
31778         fts: avoid false-positive cycle-detection
31779         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31780         for each new command line argument.
31781
31782 2009-07-19  Bruno Haible  <bruno@clisp.org>
31783
31784         Fix build error on mingw with the modules sys_select and unistd.
31785         * modules/acl-tests (Depends-on): Add close.
31786         * modules/binary-io-tests (Depends-on): Likewise.
31787         * modules/closein-tests (Depends-on): Likewise.
31788         * modules/flock-tests (Depends-on): Likewise.
31789         * modules/fsync-tests (Depends-on): Likewise.
31790         * modules/lseek-tests (Depends-on): Likewise.
31791         * modules/pipe-tests (Depends-on): Likewise.
31792         * modules/posix_spawn-tests (Depends-on): Likewise.
31793         * modules/posix_spawnp-tests (Depends-on): Likewise.
31794         * modules/stat-time-tests (Depends-on): Likewise.
31795         * modules/yesno-tests (Depends-on): Likewise.
31796
31797 2009-07-19  Bruno Haible  <bruno@clisp.org>
31798
31799         Unify conditionals.
31800         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31801         macros, not at the compiler macros.
31802         * lib/pipe.c: Likewise.
31803         * lib/execute.c: Likewise.
31804         * lib/spawni.c: Likewise.
31805
31806 2009-07-19  Bruno Haible  <bruno@clisp.org>
31807
31808         Fix handling of closed stdin/stdout/stderr on mingw.
31809         * lib/w32spawn.h: Include unistd.h.
31810         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31811         file descriptor with O_NOINHERIT flag.
31812         (fd_safer_noinherit): New function, based on fd-safer.c.
31813         (dup_safer_noinherit): New function, based on dup-safer.c.
31814         (undup_safer_noinherit): New function.
31815         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31816         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31817         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31818         instead of fd_safer.
31819         * tests/test-pipe.c: Include <windows.h>.
31820         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31821         result.
31822
31823         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31824         from main.
31825         (test_pipe): Pass an extra argument for disambiguation.
31826         (main): Invoke parent_main or child_main.
31827
31828         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31829         consistently.
31830
31831 2009-07-18  Eric Blake  <ebb9@byu.net>
31832
31833         test-pipe: fix mingw build
31834         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31835
31836 2009-07-18  Bruno Haible  <bruno@clisp.org>
31837
31838         * modules/pipe-tests (Makefile.am): Fix typo.
31839
31840 2009-07-18  Eric Blake  <ebb9@byu.net>
31841
31842         error: fix mingw build
31843         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31844         Reported by Bruno Haible.
31845
31846         error: avoid undefined use of stdout
31847         * lib/error.c (error, error_at_line): Check that fd 1 is open
31848         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31849         is handling faults and the close_stdout module wants to report the
31850         detection of closed stdout as an error.
31851
31852 2009-07-17  Eric Blake  <ebb9@byu.net>
31853
31854         pipe: be robust in face of closed fds
31855         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31856         should cause child to misbehave.
31857         * modules/pipe-tests: New module.
31858         * tests/test-pipe.c: New file.
31859         * tests/test-pipe.sh: New file.
31860         Reported by Akim Demaille.
31861
31862 2009-07-14  Bruno Haible  <bruno@clisp.org>
31863
31864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31865         Reported by anonymous kc.
31866
31867 2009-07-07  Jim Meyering  <meyering@redhat.com>
31868
31869         maint.mk: don't look for translatable strings in *.m4 or *.mk
31870         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31871         when searching for translatable strings.
31872
31873 2009-07-05  Jim Meyering  <meyering@redhat.com>
31874
31875         remove superfluous parentheses in STREQ definition
31876         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31877         * lib/getugroups.c (STREQ): Likewise.
31878         * lib/fnmatch.c (STREQ): Likewise.
31879         Spotted by Bruno Haible.
31880
31881 2009-07-04  Jim Meyering  <meyering@redhat.com>
31882
31883         argv-iter: new module
31884         * MODULES.html.sh: Add argv-iter.
31885         * lib/argv-iter.c, lib/argv-iter.h: New files.
31886         * modules/argv-iter: New file.
31887         * modules/argv-iter-tests: New file.
31888         * tests/test-argv-iter.c: Test it.
31889
31890 2009-07-04  Bruno Haible  <bruno@clisp.org>
31891
31892         Fix assertion.
31893         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31894         contains more exact copies of a given entry than file2, leave the extra
31895         copies unpaired rather than aborting.
31896         Reported by Eric Blake.
31897
31898 2009-07-02  Bruno Haible  <bruno@clisp.org>
31899
31900         Speedup git-merge-changelog for git cherry-pick.
31901         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31902         (entries_mapping_get): New function, extracted from compute_mapping.
31903         (entries_mapping_reverse_get): New function.
31904         (compute_mapping): Add a 'full' argument. Return the result in a
31905         'struct entries_mapping'.
31906         (main): Update. Access the mappings through entries_mapping_get.
31907         Reported by Eric Blake.
31908
31909 2009-07-02  Bruno Haible  <bruno@clisp.org>
31910
31911         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31912         best_i.
31913
31914 2009-07-02  Bruno Haible  <bruno@clisp.org>
31915
31916         Speed up approximate search for matching ChangeLog entries.
31917         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31918         argument. Call fstrcmp_bounded instead of fstrcmp.
31919         (compute_mapping, try_split_merged_entry, main): Update callers.
31920
31921 2009-07-02  Bruno Haible  <bruno@clisp.org>
31922
31923         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31924
31925 2009-06-30  Bruno Haible  <bruno@clisp.org>
31926
31927         Reduce the number of uc_is_cased calls.
31928         * lib/unicase.h (casing_suffix_context_t): Add
31929         'first_char_except_ignorable' field.
31930         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31931         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31932         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31933         Update initializer.
31934         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31935         case-ignorable characters.
31936         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31937         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31938         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31939         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31940         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31941
31942 2009-06-30  Bruno Haible  <bruno@clisp.org>
31943
31944         Tests for module 'unicase/ignorable'.
31945         * modules/unicase/ignorable-tests: New file.
31946         * tests/unicase/test-ignorable.c: New file, generated by
31947         gen-uni-tables.
31948
31949         Tests for module 'unicase/cased'.
31950         * modules/unicase/cased-tests: New file.
31951         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31952         * tests/unicase/test-predicate-part1.h: New file, derived from
31953         tests/unictype/test-predicate-part1.h.
31954         * tests/unicase/test-predicate-part2.h: New file, same as
31955         tests/unictype/test-predicate-part2.h.
31956
31957         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31958         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31959         (output_casing_properties): New function.
31960         (main): Call it.
31961         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31962         * lib/unicase/cased.c: Include unictype/bitmap.h.
31963         (uc_is_cased): Define through a bitmap lookup.
31964         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31965         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31966         (uc_is_case_ignorable): Define through a bitmap lookup.
31967         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31968         lib/unictype/bitmap.h.
31969         (Depends-on): Add inline. Clean up.
31970         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31971         lib/unictype/bitmap.h.
31972         (Depends-on): Add inline. Clean up.
31973         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31974         recognition.
31975         * tests/unicase/test-u16-tolower.c (main): Likewise.
31976         * tests/unicase/test-u32-tolower.c (main): Likewise.
31977
31978 2009-06-30  Bruno Haible  <bruno@clisp.org>
31979
31980         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31981         * lib/unicase/u16-casemap.c: Likewise.
31982         * lib/unicase/u32-casemap.c: Likewise.
31983
31984 2009-06-29  Bruno Haible  <bruno@clisp.org>
31985
31986         Define u32_casefold as a wrapper around u32_ct_casefold.
31987         * lib/unicase/u32-casefold.c: Update.
31988         * modules/unicase/u32-casefold (Depends-on): Add
31989         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31990         unicase/empty-suffix-context. Clean up.
31991
31992         Define u16_casefold as a wrapper around u16_ct_casefold.
31993         * lib/unicase/u16-casefold.c: Update.
31994         * modules/unicase/u16-casefold (Depends-on): Add
31995         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31996         unicase/empty-suffix-context. Clean up.
31997
31998         Define u8_casefold as a wrapper around u8_ct_casefold.
31999         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32000         * lib/unicase/u8-casefold.c: Update.
32001         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32003
32004         Define u32_totitle as a wrapper around u32_ct_totitle.
32005         * lib/unicase/u32-totitle.c: Update.
32006         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32007         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32008
32009         Define u16_totitle as a wrapper around u16_ct_totitle.
32010         * lib/unicase/u16-totitle.c: Update.
32011         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32012         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32013
32014         Define u8_totitle as a wrapper around u8_ct_totitle.
32015         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32016         functions.
32017         (FUNC): Delegate to U_CT_TOTITLE.
32018         * lib/unicase/u8-totitle.c: Update.
32019         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32020         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32021
32022         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32023         invocation.
32024         * modules/unicase/u32-tolower (Depends-on): Add
32025         unicase/empty-prefix-context, unicase/empty-suffix-context.
32026
32027         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32028         invocation.
32029         * modules/unicase/u16-tolower (Depends-on): Add
32030         unicase/empty-prefix-context, unicase/empty-suffix-context.
32031
32032         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32033         * modules/unicase/u8-tolower (Depends-on): Add
32034         unicase/empty-prefix-context, unicase/empty-suffix-context.
32035
32036         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32037         invocation.
32038         * modules/unicase/u32-toupper (Depends-on): Add
32039         unicase/empty-prefix-context, unicase/empty-suffix-context.
32040
32041         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32042         invocation.
32043         * modules/unicase/u16-toupper (Depends-on): Add
32044         unicase/empty-prefix-context, unicase/empty-suffix-context.
32045
32046         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32047         * modules/unicase/u8-toupper (Depends-on): Add
32048         unicase/empty-prefix-context, unicase/empty-suffix-context.
32049
32050         New module 'unicase/u32-ct-casefold'.
32051         * lib/unicase/u32-ct-casefold.c: New file.
32052         * modules/unicase/u32-ct-casefold: New file.
32053
32054         New module 'unicase/u16-ct-casefold'.
32055         * lib/unicase/u16-ct-casefold.c: New file.
32056         * modules/unicase/u16-ct-casefold: New file.
32057
32058         New module 'unicase/u8-ct-casefold'.
32059         * lib/unicase/u8-ct-casefold.c: New file.
32060         * lib/unicase/u-ct-casefold.h: New file, derived from
32061         lib/unicase/u-casefold.h.
32062         * modules/unicase/u8-ct-casefold: New file.
32063
32064         New module 'unicase/u32-ct-totitle'.
32065         * lib/unicase/u32-ct-totitle.c: New file.
32066         * modules/unicase/u32-ct-totitle: New file.
32067
32068         New module 'unicase/u16-ct-totitle'.
32069         * lib/unicase/u16-ct-totitle.c: New file.
32070         * modules/unicase/u16-ct-totitle: New file.
32071
32072         New module 'unicase/u8-ct-totitle'.
32073         * lib/unicase/u8-ct-totitle.c: New file.
32074         * lib/unicase/u-ct-totitle.h: New file, derived from
32075         lib/unicase/u-totitle.h.
32076         * modules/unicase/u8-ct-totitle: New file.
32077
32078         New module 'unicase/u32-ct-tolower'.
32079         * lib/unicase/u32-ct-tolower.c: New file.
32080         * modules/unicase/u32-ct-tolower: New file.
32081
32082         New module 'unicase/u16-ct-tolower'.
32083         * lib/unicase/u16-ct-tolower.c: New file.
32084         * modules/unicase/u16-ct-tolower: New file.
32085
32086         New module 'unicase/u8-ct-tolower'.
32087         * lib/unicase/u8-ct-tolower.c: New file.
32088         * modules/unicase/u8-ct-tolower: New file.
32089
32090         New module 'unicase/u32-ct-toupper'.
32091         * lib/unicase/u32-ct-toupper.c: New file.
32092         * modules/unicase/u32-ct-toupper: New file.
32093
32094         New module 'unicase/u16-ct-toupper'.
32095         * lib/unicase/u16-ct-toupper.c: New file.
32096         * modules/unicase/u16-ct-toupper: New file.
32097
32098         New module 'unicase/u8-ct-toupper'.
32099         * lib/unicase/u8-ct-toupper.c: New file.
32100         * modules/unicase/u8-ct-toupper: New file.
32101
32102         Add context arguments to u*_casemap functions.
32103         * lib/unicase/unicasemap.h: Include unicase.h.
32104         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32105         suffix_context arguments.
32106         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32107         functions.
32108         (FUNC): Add prefix_context and suffix_context arguments. Use
32109         uc_is_cased and uc_is_case_ignorable.
32110         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32111         * lib/unicase/u16-casemap.c: Likewise.
32112         * lib/unicase/u32-casemap.c: Likewise.
32113         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32114         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32115         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32116         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32117         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32118         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32119
32120         New module 'unicase/u32-suffix-context'.
32121         * lib/unicase/u32-suffix-context.c: New file.
32122         * modules/unicase/u32-suffix-context: New file.
32123
32124         New module 'unicase/u16-suffix-context'.
32125         * lib/unicase/u16-suffix-context.c: New file.
32126         * modules/unicase/u16-suffix-context: New file.
32127
32128         New module 'unicase/u8-suffix-context'.
32129         * lib/unicase/u8-suffix-context.c: New file.
32130         * lib/unicase/u-suffix-context.h: New file.
32131         * modules/unicase/u8-suffix-context: New file.
32132
32133         New module 'unicase/empty-suffix-context'.
32134         * lib/unicase/empty-suffix-context.c: New file.
32135         * modules/unicase/empty-suffix-context: New file.
32136
32137         New module 'unicase/u32-prefix-context'.
32138         * lib/unicase/u32-prefix-context.c: New file.
32139         * modules/unicase/u32-prefix-context: New file.
32140
32141         New module 'unicase/u16-prefix-context'.
32142         * lib/unicase/u16-prefix-context.c: New file.
32143         * modules/unicase/u16-prefix-context: New file.
32144
32145         New module 'unicase/u8-prefix-context'.
32146         * lib/unicase/u8-prefix-context.c: New file.
32147         * lib/unicase/u-prefix-context.h: New file.
32148         * lib/unicase/context.h: New file.
32149         * modules/unicase/u8-prefix-context: New file.
32150
32151         New module 'unicase/empty-prefix-context'.
32152         * lib/unicase/empty-prefix-context.c: New file.
32153         * modules/unicase/empty-prefix-context: New file.
32154
32155         New module 'unicase/ignorable'.
32156         * lib/unicase/ignorable.c: New file.
32157         * modules/unicase/ignorable: New file.
32158
32159         New module 'unicase/cased'.
32160         * lib/unicase/caseprop.h: New file.
32161         * lib/unicase/cased.c: New file.
32162         * modules/unicase/cased: New file.
32163
32164         New functions for case mapping of substrings.
32165         * lib/unicase.h (casing_prefix_context_t): New type.
32166         (unicase_empty_prefix_context): New variable.
32167         (u8_casing_prefix_context, u16_casing_prefix_context,
32168         u32_casing_prefix_context, u8_casing_prefixes_context,
32169         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32170         declarations.
32171         (casing_suffix_context_t): New type.
32172         (unicase_empty_suffix_context): New variable.
32173         (u8_casing_suffix_context, u16_casing_suffix_context,
32174         u32_casing_suffix_context, u8_casing_suffixes_context,
32175         u16_casing_suffixes_context, u32_casing_suffixes_context,
32176         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32177         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32178         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32179         declarations.
32180
32181 2009-06-28  Jim Meyering  <meyering@redhat.com>
32182
32183         boostrap: indent only with spaces
32184         * build-aux/bootstrap: Indent only with spaces, never TABs.
32185
32186         bootstrap: split long lines
32187         * build-aux/bootstrap: Keep line length < 80.
32188
32189         bootstrap: sync from coreutils
32190         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32191         just as autoreconf does.  Verify a list of prerequisite
32192         package-name,version-number pairs if defined in bootstrap.conf.
32193         Refer to README-prereq, if prerequisites are not satisfied.
32194
32195 2009-06-27  Eric Blake  <ebb9@byu.net>
32196
32197         tests: add test for bogus NULL definition
32198         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32199         * tests/test-stdlib.c: Likewise.
32200         * tests/test-string.c: Likewise.
32201         * tests/test-locale.c: Likewise.
32202         * tests/test-unistd.c: Likewise.
32203         * modules/stdio-tests (Depends-on): Add verify.
32204         * modules/stdlib-tests (Depends-on): Likewise.
32205         * modules/string-tests (Depends-on): Likewise.
32206         * modules/locale-tests (Depends-on): Likewise.
32207         * modules/unistd-tests (Depends-on): Likewise.
32208
32209 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32210
32211         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32212         self-explaining comment.
32213         * m4/selinux-selinux-h: Update serial.
32214         (gl_LIBSELINUX): New macro, adding a warning for missing development
32215         packages to code extracted from...
32216         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32217         Add warning for missing development packages here, too.
32218
32219 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32220
32221         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32222
32223 2009-06-25  Eric Blake  <ebb9@byu.net>
32224
32225         version-etc: fix regression
32226         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32227         gcc.
32228         (version_etc): Use it, to catch bugs with trailing NULL.
32229         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32230         (version_etc_va): Fix logic bug.
32231         * modules/version-etc-tests: Add test.
32232         * tests/test-version-etc.c: New file.
32233         * tests/test-version-etc.sh: Likewise.
32234
32235 2009-06-25  Sam Steingold  <sds@gnu.org>
32236
32237         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32238         mbtowc declaration.
32239
32240 2009-06-25  Eric Blake  <ebb9@byu.net>
32241
32242         fpurge: migrate into <stdio.h>
32243         * lib/fpurge.h: Delete...
32244         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32245         * lib/fpurge.c (fpurge): Change declaring header.
32246         * modules/fpurge (Files): Drop deleted file.
32247         (Depends-on): Add stdio.
32248         (configure.ac): Set witness.
32249         * modules/stdio (Makefile.am): Support fpurge macros.
32250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32251         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32252         * lib/fflush.c: Update client.
32253         * tests/test-fpurge.c: Likewise.
32254         * NEWS: Mention the change.
32255
32256 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32257
32258         * lib/argp-version-etc.c (program_authors): Add const
32259         qualifier.
32260         * lib/version-etc.c: Fix typos in the comments.
32261         * modules/argp-version-etc: Depends on version-etc.
32262
32263 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32264
32265         argp-version-etc: new module.
32266
32267         * lib/argp-version-etc.c: New file.
32268         * lib/argp-version-etc.h: New file.
32269         * modules/argp-version-etc: New file.
32270         * modules/argp-version-etc-tests: New file.
32271         * tests/test-argp-version-etc.c: New test.
32272         * tests/test-argp-version-etc-1.sh: New test.
32273
32274 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32275
32276         Provide additional interfaces and documentation for version-etc
32277         module.
32278
32279         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32280         interfaces.
32281         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32282         prototypes.
32283
32284 2009-06-24  Bruno Haible  <bruno@clisp.org>
32285
32286         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32287         HAVE_LIB${NAME} macro.
32288         Reported by Sam Steingold <sds@gnu.org>.
32289
32290 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32291
32292         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32293         needed.
32294
32295 2009-06-21  Bruno Haible  <bruno@clisp.org>
32296
32297         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32298         work.
32299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32300         together with LIB${NAME}, LTLIB${NAME}.
32301         Reported by Sam Steingold <sds@gnu.org>.
32302
32303 2009-06-20  Jim Meyering  <meyering@redhat.com>
32304
32305         tests: make sc_require_test_exit_idiom more generic
32306         * top/maint.mk (Exit_witness_file): New overridable variable.
32307         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32308         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32309
32310 2009-06-19  Jim Meyering  <meyering@redhat.com>
32311
32312         hash: reverse order of src/dst parameters in an internal interface
32313         * lib/hash.c (transfer_entries): Reverse order of parameters to
32314         put DST before SRC.  Adjust callers.
32315
32316         tests: test-hash: avoid wholesale duplication
32317         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32318         Instead, use a loop and add a single conditional.
32319
32320         tests: test-hash: allow seed selection via a command line argument
32321         * tests/test-hash.c (get_seed): New function.
32322         (main): Use it.
32323
32324 2009-06-19  Eric Blake  <ebb9@byu.net>
32325
32326         hash: avoid memory leak on allocation failure
32327         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32328         failure.  Factor repeated algorithm...
32329         (transfer_entries): ...into new helper routine.
32330         (hash_delete): React to hash_rehash return value.
32331
32332         hash: reduce memory pressure in hash_rehash no-op case
32333         * lib/hash.c (next_prime): Avoid overflow.
32334         (hash_initialize): Factor bucket size computation...
32335         (compute_bucket_size): ...into new helper function.
32336         (hash_rehash): Use new function and open coding to reduce memory
32337         pressure, and avoid a memory leak in USE_OBSTACK code.
32338         Reported by Jim Meyering.
32339
32340 2009-06-18  Eric Blake  <ebb9@byu.net>
32341
32342         hash: make rotation more obvious
32343         * modules/hash (Depends-on): Add bitrotate and stdint.
32344         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32345         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32346         (SIZE_MAX): Rely on headers for definition.
32347         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32348         (raw_hasher): Use rotr_sz.
32349         Suggested by Jim Meyering.
32350
32351         hash: fix memory leak in last patch
32352         * lib/hash.c (hash_rehash): Avoid memory leak.
32353
32354         hash: avoid no-op rehashing
32355         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32356
32357         hash: provide default callback functions
32358         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32359         (hash_initialize): Use them as defaults.
32360         * tests/test-hash.c (main): Test this.
32361
32362         hash: minor optimization
32363         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32364         when possible.
32365         (hash_initialize): Document this promise.
32366         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32367         * tests/test-hash.c (hash_compare_strings): Test this.
32368
32369 2009-06-18  Bruno Haible  <bruno@clisp.org>
32370
32371         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32372         going to be replaced anyway.
32373
32374 2009-06-18  Bruno Haible  <bruno@clisp.org>
32375
32376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32377         in one place.
32378         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32379         be replaced anyway.
32380
32381 2009-06-18  Eric Blake  <ebb9@byu.net>
32382
32383         hash: check for resize before insertion
32384         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32385         threshold before insertion, so that a pathological hash_rehash
32386         that fills every bucket can still trigger another rehash.
32387
32388 2009-06-18  Jim Meyering  <meyering@redhat.com>
32389
32390         hash-tests: add a loop around the small tests
32391         * tests/test-hash.c (main): Repeat small tests with selected
32392         small initial table sizes.
32393
32394 2009-06-17  Eric Blake  <ebb9@byu.net>
32395
32396         hash: minor cleanups
32397         * lib/hash.h (hash_entry): Make opaque, by moving...
32398         * lib/hash.c (hash_entry): ...here.
32399         (hash_insert): Clarify restrictions on what can be inserted.
32400         (hash_get_next): Clarify when it is safe to remove an element
32401         during traversal.
32402         (check_tuning): Skip verification when tuning is known safe.
32403         (hash_initialize): Clarify restrictions on tuning.
32404
32405 2009-06-17  Jim Meyering  <jim@meyering.net>
32406         and Eric Blake  <ebb9@byu.net>
32407
32408         hash-tests: new module
32409         * modules/hash-tests: New file.
32410         * tests/test-hash.c: New file.
32411
32412 2009-06-17  Eric Blake  <ebb9@byu.net>
32413
32414         strstr-simple: document new module
32415         * MODULES.html.sh: Document new module.
32416
32417         strstr, strcasestr: replace on platforms with broken memchr
32418         * modules/strstr: Split into...
32419         * modules/strstr-simple: ...new module that does not care about
32420         performance, but does care about glibc bug.
32421         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32422         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32423         if platform memchr is broken, per Debian bug 521737.
32424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32425         memchr.
32426         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32427         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32428         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32429         * modules/mountlist (Depends-on): Add strstr-simple.
32430         * modules/gen-uni-tables (Depends-on): Likewise.
32431         * modules/argz (Depends-on): Add strstr.
32432
32433 2009-06-17  Bruno Haible  <bruno@clisp.org>
32434
32435         * modules/posix_spawn-internal (Depends-on): Add errno.
32436
32437 2009-06-17  Bruno Haible  <bruno@clisp.org>
32438
32439         Define missing ESTALE on Interix 3.5.
32440         * lib/errno.in.h (ESTALE): Assign a value if missing.
32441         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32443         missing.
32444         * doc/posix-headers/errno.texi: Mention the Interix bug.
32445         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32446
32447 2009-06-15  Eric Blake  <ebb9@byu.net>
32448
32449         memchr, memchr2: add valgrind exception
32450         * lib/memchr.valgrind: New file.
32451         * lib/memchr2.valgrind: New file.
32452         * modules/memchr (Files): Distribute valgrind file.
32453         * modules/memchr2 (Files): Likewise.
32454
32455         docs: memchr is no longer obsolete
32456         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32457         * lib/string.in.h (memchr): Simplify logic.
32458
32459 2009-06-14  Jim Meyering  <meyering@redhat.com>
32460
32461         link-follow: fix the "checking..." message to not mention trailing slash
32462         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32463         never considered trailing slashes.
32464
32465 2009-06-14  Bruno Haible  <bruno@clisp.org>
32466
32467         * m4/memchr.m4: Mention also the bug on IA-64.
32468         * doc/posix-functions/memchr.texi: Likewise.
32469
32470 2009-06-12  Eric Blake  <ebb9@byu.net>
32471
32472         memchr: detect broken x86_64 and alpha implementations
32473         * modules/memchr-tests (Depends-on): Move mmap detection...
32474         * modules/memchr (Depends-on): ...here.
32475         (configure.ac): Set indicator.
32476         * lib/string.in.h (memchr): Declare replacement.
32477         * modules/string (Makefile.am): Trigger replacement.
32478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32479         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32480         bugs.
32481         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32482         * modules/getpagesize (License): Relax license.
32483
32484 2009-06-11  Bruno Haible  <bruno@clisp.org>
32485
32486         * lib/idpriv.h: Add more references.
32487
32488 2009-06-08  Bruno Haible  <bruno@clisp.org>
32489
32490         Tests for module 'idpriv-droptemp'.
32491         * modules/idpriv-droptemp-tests: New file.
32492         * tests/test-idpriv-droptemp.sh: New file.
32493         * tests/test-idpriv-droptemp.su.sh: New file.
32494         * tests/test-idpriv-droptemp.c: New file.
32495
32496         New module 'idpriv-droptemp'.
32497         * lib/idpriv-droptemp.c: New file.
32498         * modules/idpriv-droptemp: New file.
32499
32500 2009-06-08  Bruno Haible  <bruno@clisp.org>
32501
32502         Tests for module 'idpriv-drop'.
32503         * modules/idpriv-drop-tests: New file.
32504         * tests/test-idpriv-drop.sh: New file.
32505         * tests/test-idpriv-drop.su.sh: New file.
32506         * tests/test-idpriv-drop.c: New file.
32507
32508         New module 'idpriv-drop'.
32509         * lib/idpriv.h: New file.
32510         * lib-idpriv-drop.c: New file.
32511         * m4/idpriv.m4: New file.
32512         * modules/idpriv-drop: New file.
32513
32514 2009-06-08  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32517         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32518         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32519         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32520         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32521         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32522         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32523
32524 2009-06-08  Eric Blake  <ebb9@byu.net>
32525
32526         test-strstr: use memory fence, when possible
32527         * tests/test-strstr.c (main): Use memory fence, in order to be
32528         more likely to trigger Debian bug 521737.
32529         * modules/strstr-tests (Files): Pull in additional files.
32530
32531         memchr: no longer obsolete, for wider field testing
32532         * modules/memchr (Status, Notice): Delete, this module is no
32533         longer obsolete.
32534         * modules/vasnprintf (Depends-on): Add memchr.
32535
32536 2009-06-07  Jim Meyering  <meyering@redhat.com>
32537
32538         hash: declare some functions with the warn_unused_result attribute
32539         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32540
32541 2009-06-07  Bruno Haible  <bruno@clisp.org>
32542
32543         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32544         Reported by Eric Blake.
32545
32546 2009-06-06  Eric Blake  <ebb9@byu.net>
32547
32548         test-alignof: fix typo with long double
32549         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32550         compiler error.
32551
32552 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32553
32554         Escape non-texinfo { and }s.
32555         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32556         markup error.
32557
32558 2009-06-04  Jim Meyering  <meyering@redhat.com>
32559
32560         gitlog-to-changelog: don't infloop on an empty commit log
32561         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32562         Reported by Boris Petersen <transacid@centerim.org>.
32563
32564 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32565
32566         version-etc: extend for packagers
32567         Add three new configure options, intended for packagers:
32568           --with-packager="packager name"
32569           --with-packager-version="packager-specific version"
32570           --with-packager-bug-reports="packager bug reporting"
32571         An example with coreutils:
32572           $ ./configure \
32573             --with-packager=Gentoo \
32574             --with-packager-bug-report=http://bugs.gentoo.org/ \
32575             --with-packager-version="patchset 1.6"
32576           $ ./src/ls --version | head -n2
32577           ls (GNU coreutils) 7.1-dirty
32578           Packaged by Gentoo (patchset 1.6)
32579         Note that the bug reporting info via --help doesn't show up because
32580         coreutils uses its own custom emit_bug_reporting_address() implementation
32581         in src/system.h.  If it didn't, it'd look like:
32582           $ ./src/ls --help | tail -n4
32583           Report bugs to <bug-coreutils@gnu.org>.
32584           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32585           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32586           General help using GNU software: <http://www.gnu.org/gethelp/>.
32587         * lib/version-etc.c: Print new information, if provided.
32588         * m4/version-etc.m4: New file.
32589         * modules/version-etc (Files): Add m4/version-etc.m4.
32590         (configure.ac): Add gl_VERSION_ETC.
32591
32592 2009-05-31  Bruno Haible  <bruno@clisp.org>
32593
32594         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32595         and 'int64_t'.
32596         * modules/alignof-tests (Dependencies): Add stdint.
32597         Reported by Eric Blake.
32598
32599 2009-05-31  Bruno Haible  <bruno@clisp.org>
32600
32601         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32602         restriction due to compiler bugs.
32603         Reported by Eric Blake.
32604
32605 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32606             Bruno Haible  <bruno@clisp.org>
32607
32608         Fix test-alignof failure.
32609         * lib/alignof.h (alignof_slot): New macro.
32610         (alignof_type): New macro, with the same semantics as the previous
32611         'alignof'.
32612         (alignof): Alias to alignof_slot.
32613         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32614         check that the results are usable as constant expressions.
32615
32616 2009-05-31  Bruno Haible  <bruno@clisp.org>
32617
32618         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32619         * tests/test-memchr.c (main): Check that memchr does not read past the
32620         first occurrence of the byte.
32621         * tests/test-strstr.c (main): Update comment.
32622         Suggested by Eric Blake.
32623
32624 2009-05-30  Bruno Haible  <bruno@clisp.org>
32625
32626         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32627         detail how to use dumpbin.
32628         Reported by David Byron <dbyron@dbyron.com>.
32629
32630 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32631
32632         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32633
32634 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32635
32636         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32637
32638 2009-05-28  Bruno Haible  <bruno@clisp.org>
32639
32640         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32641         build-aux/ files.
32642
32643 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32644
32645         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32646
32647 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32648
32649         * gnulib-tool (sed_transform_main_lib_file)
32650         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32651         regexps.
32652
32653 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32654
32655         * tests/test-strstr.c: Add another self-test.
32656         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32657         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32658
32659 2009-05-23  Bruno Haible  <bruno@clisp.org>
32660
32661         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32662         change.
32663
32664 2009-05-21  Bruno Haible  <bruno@clisp.org>
32665
32666         Simplify use of mode_t varargs.
32667         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32668         uses 'mode_t' or 'int'.
32669         * lib/openat.c (openat): Likewise.
32670         * lib/open-safer.c (open_safer): Likewise.
32671         * m4/mode_t.m4: New file.
32672         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32673         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32674         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32675         * modules/open (Files): Add m4/mode_t.m4.
32676         * modules/openat (Files): Likewise.
32677         * modules/fcntl-safer (Files): Likewise.
32678         Suggested by Eric Blake.
32679
32680 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32681
32682         * doc/glibc-functions/fallocate.texi: New file.
32683         * doc/gnulib.texi: Include it.
32684
32685 2009-05-21  Eric Blake  <ebb9@byu.net>
32686             Bruno Haible  <bruno@clisp.org>
32687
32688         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32689         invocations.
32690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32691
32692 2009-05-21  Eric Blake  <ebb9@byu.net>
32693             Bruno Haible  <bruno@clisp.org>
32694
32695         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32696         include_next. Fix of 2008-11-20 commit.
32697         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32698         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32699         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32700         NEXT_MATH_H.
32701         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32702         instead of NEXT_MATH_H.
32703
32704 2009-05-21  Bruno Haible  <bruno@clisp.org>
32705
32706         Avoid redefinition warnings for SIZE_MAX.
32707         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32708         Reported by Simon Josefsson.
32709
32710 2009-05-21  Bruno Haible  <bruno@clisp.org>
32711
32712         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32713         AC_CACHE_VAL.
32714
32715 2009-05-20  Bruno Haible  <bruno@clisp.org>
32716
32717         Make zeroptr.h work on mingw.
32718         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32719         mprotect.
32720         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32721         * modules/memchr2-tests (configure.ac): Likewise.
32722         * modules/memcmp-tests (configure.ac): Likewise.
32723         * modules/memmem-tests (configure.ac): Likewise.
32724         * modules/memrchr-tests (configure.ac): Likewise.
32725         Reported by Simon Josefsson.
32726
32727 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32728
32729         * tests/test-glob.c: Include string.h for strcmp prototype.
32730
32731 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32732
32733         * modules/getdelim (Depends-on): Add explicit stdint, although it
32734         was implicitly already pulled in via realloc-posix.
32735         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32736
32737 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32738
32739         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32740         G. Christensen" <tgc@jupiterrise.com>.
32741         * m4/sys_socket_h.m4: Check for sa_family_t.
32742         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32743         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32744         * tests/test-sys_socket.c: Check that sa_family_t works.
32745
32746 2009-05-18  Eric Blake  <ebb9@byu.net>
32747
32748         maint.mk: allow gnulib_dir in VPATH build
32749         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32750
32751 2009-05-15  Jim Meyering  <meyering@redhat.com>
32752
32753         maint.mk: Give gnulib_dir a default definition.
32754         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32755         Thus, most packages no longer need to specify this variable in cfg.mk
32756
32757 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32758
32759         rename.m4: fix typos that would make non-mingw cross-configure fail
32760         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32761
32762 2009-05-13  Eric Blake  <ebb9@byu.net>
32763
32764         mmap-anon: avoid out-of-order autoconf expansion
32765         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32766         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32767         * modules/memchr-tests (Depends-on): Add extensions.
32768         * modules/memchr2-tests (Depends-on): Add extensions.
32769         * modules/memcmp-tests (Depends-on): Add extensions.
32770         * modules/memmem-tests (Depends-on): Add extensions.
32771         * modules/memrchr-tests (Depends-on): Add extensions.
32772
32773 2009-05-13  Bruno Haible  <bruno@clisp.org>
32774
32775         Make some tests ISO C 99 compliant.
32776         * tests/zerosize-ptr.h: New file.
32777         * tests/test-memchr.c: Include zerosize-ptr.h.
32778         (main): Use a zero-size object pointer instead of NULL.
32779         * tests/test-memchr2.c: Include zerosize-ptr.h.
32780         (main): Use a zero-size object pointer instead of NULL.
32781         * tests/test-memcmp.c: Include zerosize-ptr.h.
32782         (main): Use a zero-size object pointer instead of NULL.
32783         * tests/test-memmem.c: Include zerosize-ptr.h.
32784         (main): Use a zero-size object pointer instead of NULL.
32785         * tests/test-memrchr.c: Include zerosize-ptr.h.
32786         (main): Use a zero-size object pointer instead of NULL.
32787         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32788         m4/mmap-anon.m4.
32789         (Depends-on): Add getpagesize.
32790         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32791         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32792         m4/mmap-anon.m4.
32793         (Depends-on): Add getpagesize.
32794         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32795         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32796         m4/mmap-anon.m4.
32797         (Depends-on): Add getpagesize.
32798         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32799         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32800         m4/mmap-anon.m4.
32801         (Depends-on): Add getpagesize.
32802         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32803         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32804         m4/mmap-anon.m4.
32805         (Depends-on): Add getpagesize.
32806         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32807
32808 2009-05-12  Bruno Haible  <bruno@clisp.org>
32809
32810         Tests for module 'alignof'.
32811         * modules/alignof-tests: New file.
32812         * tests/test-alignof.c: New file.
32813
32814 2009-05-12  Bruno Haible  <bruno@clisp.org>
32815
32816         Fix alignof macro.
32817         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32818         vendor compilers that are always correct.
32819
32820 2009-05-12  Bruno Haible  <bruno@clisp.org>
32821
32822         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32824         not whether its fully works.
32825
32826 2009-05-12  Bruno Haible  <bruno@clisp.org>
32827
32828         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32829
32830 2009-05-12  Jim Meyering  <meyering@redhat.com>
32831
32832         * top/maint.mk: Adjust backslash alignment.
32833
32834 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32835
32836         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32837
32838 2009-05-11  Eric Blake  <ebb9@byu.net>
32839
32840         argp: avoid undefined behavior
32841         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32842         macros.
32843
32844 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32845
32846         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32847         user.name to prevent git commit from complaining.
32848
32849 2009-05-10  Bruno Haible  <bruno@clisp.org>
32850
32851         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32852         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32853         it rewrites every file name only once.
32854         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32855
32856 2009-05-08  Bruno Haible  <bruno@clisp.org>
32857
32858         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32859         instead of 'max'.
32860
32861 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32862
32863         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32864         sockaddr_storage test.
32865
32866 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32867
32868         * modules/sys_socket (Makefile.am): Substitute
32869         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32870         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32871         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32872         * tests/test-sys_socket.c: Check sockaddr_storage.
32873
32874 2009-05-08  Bruno Haible  <bruno@clisp.org>
32875
32876         New module 'alignof'.
32877         * lib/alignof.h: New file.
32878         * modules/alignof: New file.
32879
32880 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32881             Bruno Haible  <bruno@clisp.org>
32882
32883         Fix test-file-has-acl on FreeBSD.
32884         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32885         mask is implicitly added.
32886         * tests/test-file-has-acl.c: Include <signal.h>.
32887         (main): Terminate the test after 5 seconds.
32888         * modules/acl-tests (configure.ac): Check for alarm function.
32889
32890 2009-05-04  Bruno Haible  <bruno@clisp.org>
32891
32892         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32893         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32894         * modules/errno (configure.ac): Drop AC_REQUIRE.
32895         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32896         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32897
32898 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32899
32900         * modules/glob-tests: New module.
32901         * tests/test-glob.c: Add.
32902
32903 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32904
32905         * modules/fnmatch-tests: New module.
32906         * tests/test-fnmatch.c: Add.
32907
32908 2009-05-04  Eric Blake  <ebb9@byu.net>
32909
32910         maint: make the new no-submodule-changes rule VPATH-safe
32911         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32912
32913 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32914             Bruno Haible  <bruno@clisp.org>
32915
32916         acl: Fix infinite loop on FreeBSD.
32917         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32918         of return value from acl_get_entry.
32919         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32920         Likewise.
32921
32922 2009-05-03  Bruno Haible  <bruno@clisp.org>
32923
32924         * lib/acl-internal.h (acl_entries): Clarify return value.
32925         * lib/acl_entries.c (acl_entries): Likewise.
32926
32927 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32928
32929         Bug fix in acl module.
32930         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32931
32932 2009-05-03  Bruno Haible  <bruno@clisp.org>
32933
32934         Create gperf-generated file in the source dir, not in the build dir.
32935         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32936         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32937         * modules/unicase/locale-language (unicase/locale-languages.h):
32938         Likewise.
32939         * modules/unicase/special-casing (unicase/special-casing-table.h):
32940         Likewise.
32941         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32942         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32943         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32944         Reported by Ralf Wildenhues.
32945
32946 2009-05-03  Bruno Haible  <bruno@clisp.org>
32947
32948         * modules/fnmatch (Description, configure.ac): Taken from
32949         fnmatch-posix.
32950         * modules/fnmatch-posix: Turn into a symbolic reference to the
32951         'fnmatch' module, and deprecate.
32952         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32953
32954 2009-05-03  Bruno Haible  <bruno@clisp.org>
32955
32956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32957         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32958         Reported by Ralf Wildenhues.
32959
32960 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32961
32962         * m4/fnmatch.m4: Fix fnmatch re-define.
32963
32964 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32965
32966         priv-set: new module and tests; adapt write-any-file
32967         * lib/priv-set.c: New file.
32968         * lib/priv-set.h: New file.
32969         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32970         * lib/write-any-file.c: Simplify by using priv-set module.
32971         * m4/priv-set.m4: New file.
32972         * modules/priv-set: New file.
32973         * modules/unlinkdir: Add dependency on priv-set module.
32974         * modules/write-any-file: Likewise.
32975
32976         Tests for module 'priv-set'.
32977         * modules/priv-set-tests: New file.
32978         * tests/test-priv-set.c: New file.
32979
32980 2009-05-03  Jim Meyering  <meyering@redhat.com>
32981             Bruno Haible  <bruno@clisp.org>
32982
32983         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32984         use the converted UTF-8 variant of the name instead.
32985
32986 2009-05-03  Jim Meyering  <meyering@redhat.com>
32987
32988         tests: tighten some getdate tests
32989         * tests/test-getdate.c (main): Tighten tests: require equality,
32990         not just greater than.  Set TZ envvar to UTC0.
32991
32992 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32993
32994         getdate: correctly interpret "next monday" when run on a Monday
32995         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32996         that e.g., "next tues" (when run on a tuesday) results in a date
32997         that is one week in the future, and not today's date.
32998         I.e., add a week when the wday is the same as the current one.
32999         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33000         and earlier by Martin Bernreuther and Jan Minář.
33001         * tests/test-getdate.c (main): Check that "next DAY" is always in
33002         the future and that "last DAY" is always in the past.
33003
33004 2009-05-02  Jim Meyering  <meyering@redhat.com>
33005
33006         build: ensure that a release build fails when a submodule is unclean
33007         * top/maint.mk (no-submodule-changes): New rule.
33008         (alpha beta major): Depend on it.
33009
33010 2009-05-02  Bruno Haible  <bruno@clisp.org>
33011
33012         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33013         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33014         shell variable gl_fnmatch_required to detect which variant is
33015         requested.
33016         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33017         gl_FUNC_FNMATCH_POSIX.
33018         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33019         exclude fnmatch-posix.
33020
33021 2009-05-02  Bruno Haible  <bruno@clisp.org>
33022
33023         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33024         * modules/mbsrtowcs (License): Change to LGPLv2+.
33025         * modules/strnlen1 (License): Likewise.
33026         Reported by Simon Josefsson.
33027
33028 2009-05-02  Bruno Haible  <bruno@clisp.org>
33029
33030         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33031         "cross".
33032         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33033         gnulib-tool was called with option --source-base=lib.
33034
33035 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33036
33037         Use automake *-local hooks without commands, for extensibility.
33038         * modules/localcharset (Makefile.am): Rename install-exec-local
33039         rule to install-exec-localcharset, and make it a prerequisite of
33040         install-exec-local.  Likewise, rename the uninstall-local rule to
33041         uninstall-localcharset, and make it a prerequisite of the former.
33042
33043 2009-05-01  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33046         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33047         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33049         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33050         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33051         m4/locale-zh.m4, m4/codeset.m4.
33052
33053         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33054         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33055         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33056         m4/locale-zh.m4.
33057
33058         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33059         REPLACE_WCRTOMB if mbstate_t must be replaced.
33060         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33061         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33062
33063 2009-05-01  Bruno Haible  <bruno@clisp.org>
33064
33065         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33066         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33067         dngettext, dcngettext, textdomain, bindtextdomain,
33068         bind_textdomain_codeset): Undefine before redefining.
33069
33070 2009-04-30  Bruno Haible  <bruno@clisp.org>
33071
33072         Fix bug introduced on 2009-04-25.
33073         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33074         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33075         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33076         is defined.
33077         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33078         is defined.
33079         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33080         is defined.
33081         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33082
33083 2009-04-28  Bruno Haible  <bruno@clisp.org>
33084
33085         Comment tweaks.
33086         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33087         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33088         * lib/unicase.h (u*_casexfrm): Likewise.
33089         Reported by Paolo Bonzini.
33090
33091 2009-04-28  Bruno Haible  <bruno@clisp.org>
33092
33093         Fix a compilation error.
33094         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33095         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33096         Reported by Jim Meyering.
33097
33098 2009-04-27  Bruno Haible  <bruno@clisp.org>
33099
33100         New module 'libunistring'.
33101         * modules/libunistring: New file.
33102         * m4/libunistring.m4: New file.
33103         * MODULES.html.sh (Unicode string functions): Add it.
33104
33105 2009-04-27  Eric Blake  <ebb9@byu.net>
33106
33107         maint.mk: allow package-specific header to provide <config.h>
33108         * top/maint.mk (sc_require_config_h): New variable.
33109         (sc_require_config_h, sc_require_config_h_first): Use it.
33110
33111 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33112
33113         * top/maint.mk (sc_avoid_if_before_free): Except
33114         useless-if-before-free script.
33115
33116 2009-04-27  Eric Blake  <ebb9@byu.net>
33117
33118         maintainer-makefile: depend on all required helper scripts
33119         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33120         useless-if-before-free.
33121         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33122         version, rather than assuming gnulib checkout is available.
33123         Reported by Simen Josefsson.
33124
33125 2009-04-26  Bruno Haible  <bruno@clisp.org>
33126
33127         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33128         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33129         "../" or "..".
33130
33131 2009-04-26  Bruno Haible  <bruno@clisp.org>
33132
33133         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33134         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33135         AC_LIB_HAVE_LINKFLAGS.
33136
33137 2009-04-26  Bruno Haible  <bruno@clisp.org>
33138
33139         Simplify calling convention of u*_conv_from_encoding.
33140         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33141         u32_conv_from_encoding): Expect a resultbuf argument and return the
33142         result directly as a pointer.
33143         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33144         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33145         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33146         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33147         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33148         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33149         Update.
33150         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33151         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33152         * lib/vasnprintf.c (VASNPRINTF): Update.
33153         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33154         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33155         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33156         * NEWS: Mention the change.
33157
33158 2009-04-26  Bruno Haible  <bruno@clisp.org>
33159
33160         Simplify calling convention of u*_conv_to_encoding.
33161         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33162         u32_conv_to_encoding): Expect a resultbuf argument and return the
33163         result directly as a pointer.
33164         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33165         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33166         freeing scaled_offsets if mem_iconveha failed.
33167         * lib/unicase/u-casexfrm.h (FUNC): Update.
33168         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33169         * lib/vasnprintf.c (VASNPRINTF): Update.
33170         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33171         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33172         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33173         * NEWS: Mention the change.
33174
33175 2009-04-26  Bruno Haible  <bruno@clisp.org>
33176
33177         Avoid test failures on AIX and OSF/1.
33178         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33179         malloc(0).
33180         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33181         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33182         Likewise.
33183         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33184         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33185         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33186         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33187         * doc/posix-functions/malloc.texi: Document the portability problem
33188         related to malloc(0).
33189
33190 2009-04-26  Bruno Haible  <bruno@clisp.org>
33191
33192         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33193         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33194         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33195
33196 2009-04-25  Bruno Haible  <bruno@clisp.org>
33197
33198         Avoid link error when creating a namespace clean library.
33199         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33200         as macro with arguments if already defined as an alias.
33201         * lib/signbitf.c (gl_signbitf): Don't undefine.
33202         * lib/signbitd.c (gl_signbitd): Don't undefine.
33203         * lib/signbitl.c (gl_signbitl): Don't undefine.
33204
33205 2009-04-25  Jim Meyering  <meyering@redhat.com>
33206
33207         vc-list-files: fix another quoting bug
33208         * build-aux/vc-list-files: Avoid sed backslash expansion
33209         of pathological directory names.
33210
33211 2009-04-25  Eric Blake  <ebb9@byu.net>
33212
33213         vc-list-files: fix shell quoting error
33214         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33215         timestamp.
33216
33217 2009-04-25  Jim Meyering  <meyering@redhat.com>
33218
33219         vc-list-files: restore lost functionality with subdir argument
33220         * build-aux/vc-list-files: When given a non-"." sub-directory
33221         argument, substitute the $dir/ prefix back onto each resulting name.
33222         Otherwise, coreutils' root_tests check would fail.
33223
33224 2009-04-24  Eric Blake  <ebb9@byu.net>
33225
33226         vc-list-files: ignore git symlinks
33227         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33228         than ls-files, to ignore git symlinks.
33229
33230         maint.mk: import improvements from m4
33231         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33232         (move_if_change): Delete unused macro.
33233         (news-date-check, vc-diff-check): Support VPATH builds.
33234         (announcement): Likewise.  Split --bootstrap-tools list...
33235         (boostrap-tools): ...into separate list, which can be overridden
33236         in cfg.mk.
33237         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33238         requiring dependency on useless-if-before-free module.
33239         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33240         Support VPATH builds.
33241
33242 2009-04-24  Jim Meyering  <meyering@redhat.com>
33243
33244         maint.mk: remove coreutils-specific rules and variables
33245         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33246         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33247         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33248
33249         maint.mk: remove obsolete rule
33250         * top/maint.mk (rel-check): Remove rule.
33251         (WGET, WGETFLAGS): Remove now-unused variables.
33252
33253 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33254
33255         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33256         consistency.
33257
33258         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33259         '$(PATH_SEPARATOR)' instead of ':'.
33260
33261 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33262
33263         * lib/getopt1.c (main): Use 'const' for static array.
33264
33265 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33266
33267         * top/maint.mk: Sync with coreutils.
33268         * NEWS: Explain incompatibilities.
33269
33270 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33271             Bruno Haible  <bruno@clisp.org>
33272
33273         Fix cross-compilation results.
33274         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33275         statement, as third argument of AC_TRY_RUN.
33276         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33277         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33278         Likewise.
33279         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33280         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33281         Likewise.
33282         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33283         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33284         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33285
33286 2009-04-20  Bruno Haible  <bruno@clisp.org>
33287
33288         Avoid test failure on mingw.
33289         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33290
33291 2009-04-20  Bruno Haible  <bruno@clisp.org>
33292
33293         Avoid compilation error on mingw.
33294         * modules/localename-tests (Depends-on): Add locale.
33295
33296 2009-04-19  Bruno Haible  <bruno@clisp.org>
33297
33298         Support for building a shared library on Windows platforms.
33299         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33300         (main): Test the presence of UNINORM_NFC here.
33301         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33302         (main): Test the presence of UNINORM_NFD here.
33303         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33304         (main): Test the presence of UNINORM_NFKC here.
33305         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33306         (main): Test the presence of UNINORM_NFKD here.
33307
33308 2009-04-19  Bruno Haible  <bruno@clisp.org>
33309
33310         Avoid a compiler warning.
33311         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33312         Change type of variable 'sequence'.
33313
33314 2009-04-19  Bruno Haible  <bruno@clisp.org>
33315
33316         * modules/configmake (Makefile.am): When the contents of configmake.h
33317         does not change, arrange to preserve its modification time.
33318
33319 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33320
33321         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33322         gettext domain.
33323
33324 2009-04-16  Jim Meyering  <meyering@redhat.com>
33325
33326         useless-if-before-free: improve conversion code
33327         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33328         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33329
33330 2009-04-14  Bruno Haible  <bruno@clisp.org>
33331
33332         * modules/fcntl (Depends-on): Add extensions.
33333         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33334
33335 2009-04-12  Ben Pfaff  <blp@gnu.org>
33336
33337         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33338         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33339
33340 2009-03-20  Ben Pfaff  <blp@gnu.org>
33341
33342         Make rename replace existing destinations on Windows.
33343         * m4/rename.m4: Add test for Mingw.
33344         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33345         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33346         * doc/posix-functions/rename.texi: Document.
33347
33348 2009-04-10  Bruno Haible  <bruno@clisp.org>
33349
33350         New include file "iconveh.h".
33351         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33352         * lib/striconveh.h: Include it.
33353         (enum iconv_ilseq_handler): Remove definition.
33354         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33355         striconveh.h.
33356         * lib/striconveha.c: Include striconveh.h.
33357         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33358         * modules/striconveh (Files): Add lib/iconveh.h.
33359         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33360         lib/striconveh.h.
33361
33362 2009-04-10  Bruno Haible  <bruno@clisp.org>
33363
33364         * lib/uniconv.h: Update comment.
33365
33366 2009-04-10  Bruno Haible  <bruno@clisp.org>
33367
33368         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33369         always.
33370         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33371         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33372         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33373         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33374         "unistring-notinline.h", so that the function gets defined always.
33375         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33376         * lib/unistr/u8-uctomb.c: Likewise.
33377         * lib/unistr/u16-mbtouc.c: Likewise.
33378         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33379         * lib/unistr/u16-uctomb.c: Likewise.
33380         * lib/unistr/u32-mbtouc.c: Likewise.
33381         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33382         * lib/unistr/u32-uctomb.c: Likewise.
33383
33384 2009-04-10  Bruno Haible  <bruno@clisp.org>
33385
33386         Mark 'utime' obsolete.
33387         * modules/utime (Status, Notice): New sections.
33388         Suggested by Jim Meyering.
33389
33390         Fix cross-compile guess for utime test.
33391         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33392         autoconf.
33393         * doc/posix-functions/utime.texi: Give more precisions.
33394         Reported by Jan <ipif@ymail.com>.
33395
33396 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33397
33398         filevercmp: correct today's change
33399         * lib/filevercmp.c: Also handle coreutils' test inputs.
33400         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33401
33402         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33403         for reporting it.
33404         * lib/filevercmp.c: Special handle for "", "." and "..".
33405         * tests/test-filevercmp.c: Enlarge the set suite.
33406
33407 2009-04-07  Jim Meyering  <meyering@redhat.com>
33408
33409         useless-if-before-free: show how to remove braced useless free, too
33410         * build-aux/useless-if-before-free: still only in a comment, though.
33411
33412 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33413
33414         maint.mk: import changes to syntax-check macros from coreutils
33415         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33416         Use them in the relevant macros.
33417
33418 2009-04-06  Bruno Haible  <bruno@clisp.org>
33419
33420         Fix unportable use of bit-fields.
33421         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33422         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33423         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33424
33425 2009-04-06  Bruno Haible  <bruno@clisp.org>
33426
33427         Avoid test failures on AIX and OSF/1.
33428         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33429         that malloc(0) = NULL.
33430         * tests/unicase/test-u8-tolower.c (check): Likewise.
33431         * tests/unicase/test-u8-totitle.c (check): Likewise.
33432         * tests/unicase/test-u8-toupper.c (check): Likewise.
33433         * tests/unicase/test-u16-casefold.c (check): Likewise.
33434         * tests/unicase/test-u16-tolower.c (check): Likewise.
33435         * tests/unicase/test-u16-totitle.c (check): Likewise.
33436         * tests/unicase/test-u16-toupper.c (check): Likewise.
33437         * tests/unicase/test-u32-casefold.c (check): Likewise.
33438         * tests/unicase/test-u32-tolower.c (check): Likewise.
33439         * tests/unicase/test-u32-totitle.c (check): Likewise.
33440         * tests/unicase/test-u32-toupper.c (check): Likewise.
33441         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33442         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33443         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33444         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33445         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33446         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33447         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33448         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33449         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33450         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33451         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33452         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33453
33454 2009-04-05  Bruno Haible  <bruno@clisp.org>
33455
33456         Work around an autoconf limitation.
33457         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33458         comment line if it would be longer than 3 KB.
33459
33460 2009-04-05  Bruno Haible  <bruno@clisp.org>
33461
33462         Avoid test failure with libiconv-1.13.
33463         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33464         of the expected test results.
33465
33466 2009-04-05  Bruno Haible  <bruno@clisp.org>
33467
33468         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33469         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33470         that it should be installed.
33471
33472 2009-04-05  Bruno Haible  <bruno@clisp.org>
33473
33474         * gnulib-tool: New option --copy-file.
33475         (func_usage): Document it.
33476         (func_dest_tmpfilename): Moved out of func_import.
33477         (func_add_file, func_update_file): New functions, extracted from
33478         func_import.
33479         (func_import): Update.
33480
33481 2009-04-05  Karl Berry  <karl@gnu.org>
33482
33483         * README: prominently mention gnulib-tool.
33484         Rearrange sections so getting the code is near the top.
33485
33486 2009-04-05  Bruno Haible  <bruno@clisp.org>
33487
33488         * lib/unicase.h: Mention u*_cmp2.
33489         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33490         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33491         * lib/unicase/ulc-casecmp.c: Likewise.
33492         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33493         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33494         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33495         unistr/u8-cmp.
33496         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33497         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33498         unistr/u16-cmp.
33499         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33500         unistr/u32-cmp.
33501
33502         * lib/uninorm.h: Mention u*_cmp2.
33503         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33504         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33505         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33506         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33507         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33508         unistr/u8-cmp.
33509         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33510         unistr/u16-cmp.
33511         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33512         unistr/u32-cmp.
33513
33514         New module 'unistr/u32-cmp2'.
33515         * lib/unistr/u32-cmp2.c: New file.
33516         * modules/unistr/u32-cmp2: New file.
33517
33518         New module 'unistr/u16-cmp2'.
33519         * lib/unistr/u16-cmp2.c: New file.
33520         * modules/unistr/u16-cmp2: New file.
33521
33522         New module 'unistr/u8-cmp2'.
33523         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33524         * lib/unistr/u8-cmp2.c: New file.
33525         * lib/unistr/u-cmp2.h: New file.
33526         * modules/unistr/u8-cmp2: New file.
33527
33528 2009-04-05  Bruno Haible  <bruno@clisp.org>
33529
33530         * lib/unictype.h (uc_property_is_valid): New macro.
33531         * tests/unictype/test-pr_byname.c (main): Use it.
33532
33533         * lib/unistr.h: Doc fixes.
33534         * lib/uniconv.h: Doc fixes.
33535         * lib/unictype.h: Doc fixes.
33536
33537 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33538
33539         Port coreutils 7.2 to Solaris 8.
33540
33541         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33542         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33543         for Solaris 8.  This is a bit of a hack, as it means it's the
33544         caller's responsibility to add -lnsl if needed, but most likely it
33545         won't be needed since only getaddrinfo uses this and getaddrinfo
33546         isn't needed on Solaris 8.
33547
33548         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33549         problem to Solaris 8 encountered with coreutils 7.2, which
33550         resulted in a message "fnmatch.c:292: warning: passing argument 4
33551         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33552         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33553
33554 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33555
33556         * m4/ld-version-script.m4: Add FIXME comment.
33557
33558 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33559
33560         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33561         SOVERSION variable.
33562
33563 2009-04-02  Bruno Haible  <bruno@clisp.org>
33564
33565         * Makefile (info, html, dvi, pdf): Combine the rules.
33566         Suggested by Jim Meyering.
33567
33568 2009-04-01  Bruno Haible  <bruno@clisp.org>
33569
33570         * Makefile (info, html, dvi, pdf): New targets.
33571         Reported by Reuben Thomas <rrt@sc3d.org>.
33572
33573 2009-04-01  Bruno Haible  <bruno@clisp.org>
33574
33575         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33576         can be put into PATH.
33577         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33578
33579 2009-04-01  Bruno Haible  <bruno@clisp.org>
33580
33581         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33582
33583 2009-04-01  Bruno Haible  <bruno@clisp.org>
33584
33585         Rename module 'visibility'.
33586         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33587         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33588         * doc/gnulib.texi: Update.
33589         * MODULES.html.sh (Misc): Update.
33590         * NEWS: Mention the change.
33591
33592 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33593
33594         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33595         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33596         Eric Blake <ebb9@byu.net> for review.
33597         * MODULES.html.sh: Add lib-msvc-compat.
33598         * doc/gnulib.texi: Link to new section.
33599         * m4/ld-output-def.m4: New file.
33600         * doc/ld-output-def.texi: New file.
33601
33602 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33603
33604         Rename ld-version-script to lib-symbol-versions.  Suggested by
33605         Bruno Haible <bruno@clisp.org>.
33606         * modules/ld-version-script: Renamed to lib-symbol-versions.
33607         * doc/ld-version-script.texi: Fix module name.
33608         * MODULES.html.sh: Add lib-symbol-versions.
33609
33610 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33611
33612         * modules/u64-tests: New file.
33613         * tests/test-u64.c: New file.
33614
33615 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33616
33617         * MODULES.html.sh: Mention u64.
33618         * modules/u64: New module.
33619         * modules/crypto/sha512: Depend on u64 module instead of providing
33620         u64.h.
33621
33622 2009-03-27  Eric Blake  <ebb9@byu.net>
33623
33624         test-strerror: make debugging EAI_SYSTEM easier
33625         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33626         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33627         failure was EAI_SYSTEM.
33628
33629 2009-03-25  Bruno Haible  <bruno@clisp.org>
33630
33631         Fix a problem with --enable-relocatable on Solaris 7.
33632         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33633         since 2008-02-24.
33634
33635 2009-03-25  Eric Blake  <ebb9@byu.net>
33636
33637         test-sockets: avoid gcc warning
33638         * tests/test-sockets.c (main): Silence compiler warning.
33639
33640 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33641
33642         New modules nproc, pthread, contributed by Glen Lenker.
33643
33644         * MODULES.html.sh: Add pthread, nproc.
33645         * lib/nproc.c: New file.
33646         * lib/nproc.h: New file.
33647         * lib/pthread.in.h: New file.
33648         * m4/pthread.m4: New file.
33649         * modules/nproc: New file.
33650         * modules/pthread: New file.
33651
33652 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33653
33654         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33655         New variable.
33656
33657 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33658
33659         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33660         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33661         * tests/test-filevercmp.c: Add tests for backup suffixes.
33662
33663 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33664
33665         * modules/stdlib (Depends-on): Add stdint, needed when defining
33666         struct random_data on, for example, HP-UX 10.20.  Reported by
33667         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33668
33669 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33670
33671         * lib/readline.c (readline): Call fflush on stdout after printing
33672         prompt.
33673
33674 2009-03-20  Bruno Haible  <bruno@clisp.org>
33675
33676         Remove dependency from 'close' module to -lws2_32 on native Windows.
33677         * lib/close-hook.h: New file.
33678         * lib/close-hook.c: New file.
33679         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33680         w32sock.h.
33681         (_gl_close_fd_maybe_socket): Remove function.
33682         (rpl_close): Invoke execute_all_close_hooks instead of
33683         _gl_close_fd_maybe_socket.
33684         * lib/sockets.c: Include close-hook.h, w32sock.h.
33685         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33686         (close_sockets_hook): New variable.
33687         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33688         (gl_sockets_cleanup): Unregister it.
33689         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33690         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33691         * modules/close-hook: New file.
33692         * modules/close (Files): Remove lib/w32sock.h.
33693         (Depends-on): Add close-hook.
33694         (Link): Remove section.
33695         * modules/sockets (Files): Add lib/w32sock.h.
33696         (Depends-on): Add close-hook.
33697         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33698         invocation.
33699         * NEWS: Mention that LIB_CLOSE is gone.
33700
33701 2009-03-23  Eric Blake  <ebb9@byu.net>
33702
33703         signal-tests: test previous patch
33704         * tests/test-signal.c: New file.
33705         * modules/signal-tests: Likewise.
33706
33707         signal.h: always support 'volatile sig_atomic_t'
33708         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33709         (gl_SIGNAL_H_DEFAULTS): Add a default.
33710         * modules/signal (Makefile.am): Substitute if needed.
33711         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33712         users can blindly add volatile.
33713         * doc/posix-headers/signal.texi (signal.h): Document it.
33714         Reported by Matthew Woehlke.
33715
33716 2009-03-23  Jim Meyering  <meyering@redhat.com>
33717
33718         pathmax: PATH_MAX: use pathconf only when available
33719         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33720         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33721         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33722         This avoids a link failure in a PSP cross-compilation environment
33723         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33724
33725         * lib/vasnprintf.c (divide): Fix typo in comment.
33726
33727 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33728
33729         * gnulib-tool (func_filter_filelist): Fix comment.
33730
33731 2009-03-20  Bruno Haible  <bruno@clisp.org>
33732
33733         Make sockets.h self-contained.
33734         * lib/sockets.c: Include sockets.h first.
33735         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33736
33737 2009-03-19  Eric Blake  <ebb9@byu.net>
33738
33739         doc: mention more functions added in cygwin 1.7.0
33740         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33741         addition.
33742         * doc/posix-functions/log2f.texi: Likewise.
33743
33744 2009-03-19  Jim Meyering  <meyering@redhat.com>
33745
33746         fsusage: avoid syntax error due to statement-before-declaration
33747         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33748         after all declarations.  Reported by Matthew Woehlke in
33749         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33750
33751 2009-03-18  Eric Blake  <ebb9@byu.net>
33752
33753         build-aux/compile: sync from automake
33754         * build-aux/compile: New file, from automake.
33755         * config/srclist.txt: Mention build-aux/compile.
33756
33757 2009-03-17  Bruno Haible  <bruno@clisp.org>
33758
33759         * lib/git-merge-changelog.c: Fix typo in comment.
33760         Reported by Reuben Thomas <rrt@sc3d.org>.
33761
33762 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33763
33764         * m4/regex.m4: update and improve help for
33765         --without-included-regex.
33766
33767 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33768
33769         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33770         failure on missing include files.
33771
33772 2009-03-17  Eric Blake  <ebb9@byu.net>
33773
33774         doc: mention more functions added in cygwin 1.7.0
33775         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33776         addition.
33777         * doc/posix-functions/fwscanf.texi: Likewise.
33778         * doc/posix-functions/swprintf.texi: Likewise.
33779         * doc/posix-functions/swscanf.texi: Likewise.
33780         * doc/posix-functions/vfwprintf.texi: Likewise.
33781         * doc/posix-functions/vfwscanf.texi: Likewise.
33782         * doc/posix-functions/vswprintf.texi: Likewise.
33783         * doc/posix-functions/vswscanf.texi: Likewise.
33784         * doc/posix-functions/vwprintf.texi: Likewise.
33785         * doc/posix-functions/vwscanf.texi: Likewise.
33786         * doc/posix-functions/wcscasecmp.texi: Likewise.
33787         * doc/posix-functions/wcsdup.texi: Likewise.
33788         * doc/posix-functions/wcsftime.texi: Likewise.
33789         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33790         * doc/posix-functions/wprintf.texi: Likewise.
33791         * doc/posix-functions/wscanf.texi: Likewise.
33792         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33793
33794 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33795
33796         maint.mk: really add $(AM_MAKEFLAGS)
33797         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33798         was inadvertently omitted in the last commit.
33799         Spotted by Bruno Haible.
33800
33801         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33802         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33803         $(AM_MAKEFLAGS)' rather than plain `make'.
33804
33805         gnulib-tool: execute $MAKE not make
33806         * gnulib-tool: Default $MAKE to 'make'.
33807         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33808         than make.  Initialize $MAKE in the do-autobuild script.
33809
33810         gnulib-tool: use $MAKE not make in generated files
33811         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33812         make, in generated files.  Initialize $MAKE in the do-autobuild
33813         script.
33814
33815         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33816
33817         GNUmakefile: disable parallelism only for multiple, recursive targets
33818         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33819         additions in the Makefile.
33820         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33821         by Automake.
33822         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33823         are listed on the command line and at least one of them is
33824         listed in $(ALL_RECURSIVE_TARGETS).
33825
33826 2009-03-14  Bruno Haible  <bruno@clisp.org>
33827
33828         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33829         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33830         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33831         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33832         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33833         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33834         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33835         unistr/u8-uctomb.
33836         * modules/unistr/u8-strchr (Depends-on): Likewise.
33837         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33838         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33839         unistr/u16-uctomb.
33840         * modules/unistr/u16-strchr (Depends-on): Likewise.
33841         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33842
33843 2009-03-12  Bruno Haible  <bruno@clisp.org>
33844
33845         Work around select() bug on Interix 3.5.
33846         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33847         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33848         * m4/select.m4: New file.
33849         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33850         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33851         * modules/select (Files): Add m4/select.m4.
33852         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33853         * modules/nanosleep (Depends-on): Add select.
33854         * modules/poll (Depends-on): Likewise.
33855         * doc/posix-functions/select.texi: Mention the Interix bug.
33856         Reported by Markus Duft <mduft@gentoo.org>.
33857
33858         * lib/select.c: Renamed from lib/winsock-select.c.
33859         * modules/select (Files): Add lib/select.c, remove
33860         lib/winsock-select.c.
33861         (configure.ac): Update.
33862
33863 2009-03-12  Jim Meyering  <meyering@redhat.com>
33864
33865         avoid gcc warnings about unused macro definitions
33866         * lib/readtokens.c (STREQ): Remove unused definition.
33867         * lib/xmalloc.c (SIZE_MAX): Likewise.
33868         * lib/openat-die.c (N_): Likewise.
33869         * lib/mountlist.c (SIZE_MAX): Remove definition.
33870         Instead, include <stdint.h>.
33871         * lib/readutmp.c: Likewise.
33872         * modules/readutmp (Depends-on): Add stdint.
33873         * modules/mountlist (Depends-on): Add stdint.
33874         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33875
33876 2009-03-10  Bruno Haible  <bruno@clisp.org>
33877
33878         Tests for module 'mbmemcasecoll'.
33879         * modules/mbmemcasecoll-tests: New file.
33880         * tests/test-mbmemcasecoll1.sh: New file.
33881         * tests/test-mbmemcasecoll2.sh: New file.
33882         * tests/test-mbmemcasecoll3.sh: New file.
33883         * tests/test-mbmemcasecoll.c: New file.
33884
33885         New module 'mbmemcasecoll'.
33886         * lib/mbmemcasecoll.h: New file.
33887         * lib/mbmemcasecoll.c: New file.
33888         * modules/mbmemcasecoll: New file.
33889
33890         * tests/test-mbmemcasecmp.h: New file, extracted from
33891         tests/test-mbmemcasecmp.c.
33892         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33893         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33894         (main): Update.
33895         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33896
33897 2009-03-09  Bruno Haible  <bruno@clisp.org>
33898
33899         Tests for module 'mbmemcasecmp'.
33900         * modules/mbmemcasecmp-tests: New file.
33901         * tests/test-mbmemcasecmp1.sh: New file.
33902         * tests/test-mbmemcasecmp2.sh: New file.
33903         * tests/test-mbmemcasecmp3.sh: New file.
33904         * tests/test-mbmemcasecmp.c: New file.
33905
33906         New module 'mbmemcasecmp'.
33907         * lib/mbmemcasecmp.h: New file.
33908         * lib/mbmemcasecmp.c: New file.
33909         * modules/mbmemcasecmp: New file.
33910
33911 2009-03-09  Bruno Haible  <bruno@clisp.org>
33912
33913         Tests for module 'unicase/ulc-casecoll'.
33914         * modules/unicase/ulc-casecoll-tests: New file.
33915         * tests/unicase/test-ulc-casecoll1.sh: New file.
33916         * tests/unicase/test-ulc-casecoll2.sh: New file.
33917         * tests/unicase/test-ulc-casecoll.c: New file.
33918
33919         New module 'unicase/ulc-casecoll'.
33920         * lib/unicase.h (ulc_casecoll): New declaration.
33921         * lib/unicase/ulc-casecoll.c: New file.
33922         * modules/unicase/ulc-casecoll: New file.
33923
33924         New module 'unicase/ulc-casexfrm'.
33925         * lib/unicase.h (ulc_casexfrm): New declaration.
33926         * lib/unicase/ulc-casexfrm.c: New file.
33927         * modules/unicase/ulc-casexfrm: New file.
33928
33929 2009-03-09  Bruno Haible  <bruno@clisp.org>
33930
33931         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33932         invocations.
33933
33934         * m4/mbscasecmp.m4: Remove file.
33935         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33936         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33937
33938         * m4/mbscasestr.m4: Remove file.
33939         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33940         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33941
33942         * m4/mbschr.m4: Remove file.
33943         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33944         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33945
33946         * m4/mbscspn.m4: Remove file.
33947         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33948         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33949
33950         * m4/mbslen.m4: Remove file.
33951         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33952         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33953
33954         * m4/mbsncasecmp.m4: Remove file.
33955         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33956         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33957
33958         * m4/mbsnlen.m4: Remove file.
33959         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33960         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33961
33962         * m4/mbspbrk.m4: Remove file.
33963         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33964         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33965
33966         * m4/mbspcasecmp.m4: Remove file.
33967         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33968         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33969
33970         * m4/mbsrchr.m4: Remove file.
33971         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33972         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33973
33974         * m4/mbssep.m4: Remove file.
33975         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33976         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33977
33978         * m4/mbsspn.m4: Remove file.
33979         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33980         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33981
33982         * m4/mbsstr.m4: Remove file.
33983         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33984         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33985
33986         * m4/mbstok_r.m4: Remove file.
33987         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33988         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33989
33990         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33991
33992         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33993         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33994
33995         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33996
33997 2009-03-08  Bruno Haible  <bruno@clisp.org>
33998
33999         Tests for module 'unicase/ulc-casecmp'.
34000         * modules/unicase/ulc-casecmp-tests: New file.
34001         * tests/unicase/test-ulc-casecmp1.sh: New file.
34002         * tests/unicase/test-ulc-casecmp2.sh: New file.
34003         * tests/unicase/test-ulc-casecmp.c: New file.
34004
34005         New module 'unicase/ulc-casecmp'.
34006         * lib/unicase.h (ulc_casecmp): New declaration.
34007         * lib/unicase/ulc-casecmp.c: New file.
34008         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34009         'const SRC_UNIT *'.
34010         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34011         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34012         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34013         * modules/unicase/ulc-casecmp: New file.
34014
34015         Tests for module 'unicase/u32-is-cased'.
34016         * modules/unicase/u32-is-cased-tests: New file.
34017         * tests/unicase/test-u32-is-cased.c: New file.
34018
34019         Tests for module 'unicase/u16-is-cased'.
34020         * modules/unicase/u16-is-cased-tests: New file.
34021         * tests/unicase/test-u16-is-cased.c: New file.
34022
34023         Tests for module 'unicase/u8-is-cased'.
34024         * modules/unicase/u8-is-cased-tests: New file.
34025         * tests/unicase/test-u8-is-cased.c: New file.
34026         * tests/unicase/test-is-cased.h: New file.
34027
34028         New module 'unicase/u32-is-cased'.
34029         * lib/unicase/u32-is-cased.c: New file.
34030         * modules/unicase/u32-is-cased: New file.
34031
34032         New module 'unicase/u16-is-cased'.
34033         * lib/unicase/u16-is-cased.c: New file.
34034         * modules/unicase/u16-is-cased: New file.
34035
34036         New module 'unicase/u8-is-cased'.
34037         * lib/unicase/u8-is-cased.c: New file.
34038         * lib/unicase/u-is-cased.h: New file.
34039         * modules/unicase/u8-is-cased: New file.
34040
34041         Tests for module 'unicase/u32-is-casefolded'.
34042         * modules/unicase/u32-is-casefolded-tests: New file.
34043         * tests/unicase/test-u32-is-casefolded.c: New file.
34044
34045         Tests for module 'unicase/u16-is-casefolded'.
34046         * modules/unicase/u16-is-casefolded-tests: New file.
34047         * tests/unicase/test-u16-is-casefolded.c: New file.
34048
34049         Tests for module 'unicase/u8-is-casefolded'.
34050         * modules/unicase/u8-is-casefolded-tests: New file.
34051         * tests/unicase/test-u8-is-casefolded.c: New file.
34052         * tests/unicase/test-is-casefolded.h: New file.
34053
34054         New module 'unicase/u32-is-casefolded'.
34055         * lib/unicase/u32-is-casefolded.c: New file.
34056         * modules/unicase/u32-is-casefolded: New file.
34057
34058         New module 'unicase/u16-is-casefolded'.
34059         * lib/unicase/u16-is-casefolded.c: New file.
34060         * modules/unicase/u16-is-casefolded: New file.
34061
34062         New module 'unicase/u8-is-casefolded'.
34063         * lib/unicase/u8-is-casefolded.c: New file.
34064         * modules/unicase/u8-is-casefolded: New file.
34065
34066         Tests for module 'unicase/u32-is-titlecase'.
34067         * modules/unicase/u32-is-titlecase-tests: New file.
34068         * tests/unicase/test-u32-is-titlecase.c: New file.
34069
34070         Tests for module 'unicase/u16-is-titlecase'.
34071         * modules/unicase/u16-is-titlecase-tests: New file.
34072         * tests/unicase/test-u16-is-titlecase.c: New file.
34073
34074         Tests for module 'unicase/u8-is-titlecase'.
34075         * modules/unicase/u8-is-titlecase-tests: New file.
34076         * tests/unicase/test-u8-is-titlecase.c: New file.
34077         * tests/unicase/test-is-titlecase.h: New file.
34078
34079         New module 'unicase/u32-is-titlecase'.
34080         * lib/unicase/u32-is-titlecase.c: New file.
34081         * modules/unicase/u32-is-titlecase: New file.
34082
34083         New module 'unicase/u16-is-titlecase'.
34084         * lib/unicase/u16-is-titlecase.c: New file.
34085         * modules/unicase/u16-is-titlecase: New file.
34086
34087         New module 'unicase/u8-is-titlecase'.
34088         * lib/unicase/u8-is-titlecase.c: New file.
34089         * modules/unicase/u8-is-titlecase: New file.
34090
34091         Tests for module 'unicase/u32-is-lowercase'.
34092         * modules/unicase/u32-is-lowercase-tests: New file.
34093         * tests/unicase/test-u32-is-lowercase.c: New file.
34094
34095         Tests for module 'unicase/u16-is-lowercase'.
34096         * modules/unicase/u16-is-lowercase-tests: New file.
34097         * tests/unicase/test-u16-is-lowercase.c: New file.
34098
34099         Tests for module 'unicase/u8-is-lowercase'.
34100         * modules/unicase/u8-is-lowercase-tests: New file.
34101         * tests/unicase/test-u8-is-lowercase.c: New file.
34102         * tests/unicase/test-is-lowercase.h: New file.
34103
34104         New module 'unicase/u32-is-lowercase'.
34105         * lib/unicase/u32-is-lowercase.c: New file.
34106         * modules/unicase/u32-is-lowercase: New file.
34107
34108         New module 'unicase/u16-is-lowercase'.
34109         * lib/unicase/u16-is-lowercase.c: New file.
34110         * modules/unicase/u16-is-lowercase: New file.
34111
34112         New module 'unicase/u8-is-lowercase'.
34113         * lib/unicase/u8-is-lowercase.c: New file.
34114         * modules/unicase/u8-is-lowercase: New file.
34115
34116         Tests for module 'unicase/u32-is-uppercase'.
34117         * modules/unicase/u32-is-uppercase-tests: New file.
34118         * tests/unicase/test-u32-is-uppercase.c: New file.
34119
34120         Tests for module 'unicase/u16-is-uppercase'.
34121         * modules/unicase/u16-is-uppercase-tests: New file.
34122         * tests/unicase/test-u16-is-uppercase.c: New file.
34123
34124         Tests for module 'unicase/u8-is-uppercase'.
34125         * modules/unicase/u8-is-uppercase-tests: New file.
34126         * tests/unicase/test-u8-is-uppercase.c: New file.
34127         * tests/unicase/test-is-uppercase.h: New file.
34128
34129         New module 'unicase/u32-is-uppercase'.
34130         * lib/unicase/u32-is-uppercase.c: New file.
34131         * modules/unicase/u32-is-uppercase: New file.
34132
34133         New module 'unicase/u16-is-uppercase'.
34134         * lib/unicase/u16-is-uppercase.c: New file.
34135         * modules/unicase/u16-is-uppercase: New file.
34136
34137         New module 'unicase/u8-is-uppercase'.
34138         * lib/unicase/u8-is-uppercase.c: New file.
34139         * modules/unicase/u8-is-uppercase: New file.
34140
34141         New module 'unicase/u32-is-invariant'.
34142         * lib/unicase/u32-is-invariant.c: New file.
34143         * modules/unicase/u32-is-invariant: New file.
34144
34145         New module 'unicase/u16-is-invariant'.
34146         * lib/unicase/u16-is-invariant.c: New file.
34147         * modules/unicase/u16-is-invariant: New file.
34148
34149         New module 'unicase/u8-is-invariant'.
34150         * lib/unicase/u8-is-invariant.c: New file.
34151         * lib/unicase/invariant.h: New file.
34152         * lib/unicase/u-is-invariant.h: New file.
34153         * modules/unicase/u8-is-invariant: New file.
34154
34155         Tests for module 'unicase/u32-casecoll'.
34156         * modules/unicase/u32-casecoll-tests: New file.
34157         * tests/unicase/test-u32-casecoll.c: New file.
34158
34159         Tests for module 'unicase/u16-casecoll'.
34160         * modules/unicase/u16-casecoll-tests: New file.
34161         * tests/unicase/test-u16-casecoll.c: New file.
34162
34163         Tests for module 'unicase/u8-casecoll'.
34164         * modules/unicase/u8-casecoll-tests: New file.
34165         * tests/unicase/test-u8-casecoll.c: New file.
34166
34167         New module 'unicase/u32-casecoll'.
34168         * lib/unicase/u32-casecoll.c: New file.
34169         * modules/unicase/u32-casecoll: New file.
34170
34171         New module 'unicase/u16-casecoll'.
34172         * lib/unicase/u16-casecoll.c: New file.
34173         * modules/unicase/u16-casecoll: New file.
34174
34175         New module 'unicase/u8-casecoll'.
34176         * lib/unicase/u8-casecoll.c: New file.
34177         * lib/unicase/u-casecoll.h: New file.
34178         * modules/unicase/u8-casecoll: New file.
34179
34180         New module 'unicase/u32-casexfrm'.
34181         * lib/unicase/u32-casexfrm.c: New file.
34182         * modules/unicase/u32-casexfrm: New file.
34183
34184         New module 'unicase/u16-casexfrm'.
34185         * lib/unicase/u16-casexfrm.c: New file.
34186         * modules/unicase/u16-casexfrm: New file.
34187
34188         New module 'unicase/u8-casexfrm'.
34189         * lib/unicase/u8-casexfrm.c: New file.
34190         * lib/unicase/u-casexfrm.h: New file.
34191         * modules/unicase/u8-casexfrm: New file.
34192
34193         Tests for module 'unicase/u32-casecmp'.
34194         * modules/unicase/u32-casecmp-tests: New file.
34195         * tests/unicase/test-u32-casecmp.c: New file.
34196
34197         Tests for module 'unicase/u16-casecmp'.
34198         * modules/unicase/u16-casecmp-tests: New file.
34199         * tests/unicase/test-u16-casecmp.c: New file.
34200
34201         Tests for module 'unicase/u8-casecmp'.
34202         * modules/unicase/u8-casecmp-tests: New file.
34203         * tests/unicase/test-u8-casecmp.c: New file.
34204         * tests/unicase/test-casecmp.h: New file.
34205
34206         New module 'unicase/u32-casecmp'.
34207         * lib/unicase/u32-casecmp.c: New file.
34208         * modules/unicase/u32-casecmp: New file.
34209
34210         New module 'unicase/u16-casecmp'.
34211         * lib/unicase/u16-casecmp.c: New file.
34212         * modules/unicase/u16-casecmp: New file.
34213
34214         New module 'unicase/u8-casecmp'.
34215         * lib/unicase/u8-casecmp.c: New file.
34216         * lib/unicase/u-casecmp.h: New file.
34217         * modules/unicase/u8-casecmp: New file.
34218
34219         Tests for module 'unicase/u32-casefold'.
34220         * modules/unicase/u32-casefold-tests: New file.
34221         * tests/unicase/test-u32-casefold.c: New file.
34222
34223         Tests for module 'unicase/u16-casefold'.
34224         * modules/unicase/u16-casefold-tests: New file.
34225         * tests/unicase/test-u16-casefold.c: New file.
34226
34227         Tests for module 'unicase/u8-casefold'.
34228         * modules/unicase/u8-casefold-tests: New file.
34229         * tests/unicase/test-u8-casefold.c: New file.
34230
34231         New module 'unicase/u32-casefold'.
34232         * lib/unicase/u32-casefold.c: New file.
34233         * modules/unicase/u32-casefold: New file.
34234
34235         New module 'unicase/u16-casefold'.
34236         * lib/unicase/u16-casefold.c: New file.
34237         * modules/unicase/u16-casefold: New file.
34238
34239         New module 'unicase/u8-casefold'.
34240         * lib/unicase/u8-casefold.c: New file.
34241         * lib/unicase/u-casefold.h: New file.
34242         * modules/unicase/u8-casefold: New file.
34243
34244         New module 'unicase/tocasefold'.
34245         * lib/unicase/casefold.h: New file.
34246         * lib/unicase/tocasefold.c: New file.
34247         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34248         * modules/unicase/tocasefold: New file.
34249
34250         Tests for module 'unicase/u32-totitle'.
34251         * modules/unicase/u32-totitle-tests: New file.
34252         * tests/unicase/test-u32-totitle.c: New file.
34253
34254         Tests for module 'unicase/u16-totitle'.
34255         * modules/unicase/u16-totitle-tests: New file.
34256         * tests/unicase/test-u16-totitle.c: New file.
34257
34258         Tests for module 'unicase/u8-totitle'.
34259         * modules/unicase/u8-totitle-tests: New file.
34260         * tests/unicase/test-u8-totitle.c: New file.
34261
34262         New module 'unicase/u32-totitle'.
34263         * lib/unicase/u32-totitle.c: New file.
34264         * modules/unicase/u32-totitle: New file.
34265
34266         New module 'unicase/u16-totitle'.
34267         * lib/unicase/u16-totitle.c: New file.
34268         * modules/unicase/u16-totitle: New file.
34269
34270         New module 'unicase/u8-totitle'.
34271         * lib/unicase/u8-totitle.c: New file.
34272         * lib/unicase/u-totitle.h: New file.
34273         * modules/unicase/u8-totitle: New file.
34274
34275         Tests for module 'unicase/u32-tolower'.
34276         * modules/unicase/u32-tolower-tests: New file.
34277         * tests/unicase/test-u32-tolower.c: New file.
34278
34279         Tests for module 'unicase/u16-tolower'.
34280         * modules/unicase/u16-tolower-tests: New file.
34281         * tests/unicase/test-u16-tolower.c: New file.
34282
34283         Tests for module 'unicase/u8-tolower'.
34284         * modules/unicase/u8-tolower-tests: New file.
34285         * tests/unicase/test-u8-tolower.c: New file.
34286
34287         New module 'unicase/u32-tolower'.
34288         * lib/unicase/u32-tolower.c: New file.
34289         * modules/unicase/u32-tolower: New file.
34290
34291         New module 'unicase/u16-tolower'.
34292         * lib/unicase/u16-tolower.c: New file.
34293         * modules/unicase/u16-tolower: New file.
34294
34295         New module 'unicase/u8-tolower'.
34296         * lib/unicase/u8-tolower.c: New file.
34297         * modules/unicase/u8-tolower: New file.
34298
34299         Tests for module 'unicase/u32-toupper'.
34300         * modules/unicase/u32-toupper-tests: New file.
34301         * tests/unicase/test-u32-toupper.c: New file.
34302
34303         Tests for module 'unicase/u16-toupper'.
34304         * modules/unicase/u16-toupper-tests: New file.
34305         * tests/unicase/test-u16-toupper.c: New file.
34306
34307         Tests for module 'unicase/u8-toupper'.
34308         * modules/unicase/u8-toupper-tests: New file.
34309         * tests/unicase/test-u8-toupper.c: New file.
34310
34311         New module 'unicase/u32-toupper'.
34312         * lib/unicase/u32-toupper.c: New file.
34313         * modules/unicase/u32-toupper: New file.
34314
34315         New module 'unicase/u16-toupper'.
34316         * lib/unicase/u16-toupper.c: New file.
34317         * modules/unicase/u16-toupper: New file.
34318
34319         New module 'unicase/u8-toupper'.
34320         * lib/unicase/u8-toupper.c: New file.
34321         * modules/unicase/u8-toupper: New file.
34322
34323         New module 'unicase/u32-casemap'.
34324         * lib/unicase/u32-casemap.c: New file.
34325         * modules/unicase/u32-casemap: New file.
34326
34327         New module 'unicase/u16-casemap'.
34328         * lib/unicase/u16-casemap.c: New file.
34329         * modules/unicase/u16-casemap: New file.
34330
34331         New module 'unicase/u8-casemap'.
34332         * lib/unicase/unicasemap.h: New file.
34333         * lib/unicase/u8-casemap.c: New file.
34334         * lib/unicase/u-casemap.h: New file.
34335         * modules/unicase/u8-casemap: New file.
34336
34337         New module 'unicase/special-casing'.
34338         * lib/unicase/special-casing.h: New file.
34339         * lib/unicase/special-casing.c: New file.
34340         * lib/unicase/special-casing-table.gperf: New file, generated by
34341         gen-uni-tables.c.
34342         * modules/unicase/special-casing: New file.
34343
34344         Tests for module 'unicase/locale-language'.
34345         * modules/unicase/locale-language-tests: New file.
34346         * tests/unicase/test-locale-language.sh: New file.
34347         * tests/unicase/test-locale-language.c: New file.
34348
34349         New module 'unicase/locale-language'.
34350         * lib/unicase/locale-language.c: New file.
34351         * lib/unicase/locale-languages.gperf: New file.
34352         * modules/unicase/locale-language: New file.
34353
34354         Generate more tables for case conversion and case folding.
34355         * lib/gen-uni-tables.c (SCC_*): New enum items.
34356         (struct special_casing_rule): New type.
34357         (casing_rules, num_casing_rules, allocated_casing_rules): New
34358         variables.
34359         (add_casing_rule, fill_casing_rules): New functions.
34360         (struct casefold_rule): New type.
34361         (casefolding_rules, num_casefolding_rules,
34362         allocated_casefolding_rules): New variables.
34363         (fill_casefolding_rules): New function.
34364         (unicode_casefold): New variable.
34365         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34366         sort_casing_rules, output_casing_rules): New functions.
34367         (main): Accept to more arguments: SpecialCasing.txt and
34368         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34369         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34370         Output mapping for casefolding.
34371
34372         * lib/unicase.h: Include stdbool.h, uninorm.h.
34373         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34374         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34375         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34376         arguments.
34377         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34378         resultp arguments.
34379         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34380         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34381         resultp arguments.
34382         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34383         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34384         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34385         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34386         declarations.
34387         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34388
34389 2009-03-08  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34392         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34393         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34394         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34395
34396 2009-03-07  Bruno Haible  <bruno@clisp.org>
34397
34398         Adjust u*_normcmp, u*_normcoll API.
34399         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34400         u16_normcoll, u32_normcoll): Change failure conventions.
34401         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34402         errno and return -1.
34403         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34404
34405 2009-03-07  Bruno Haible  <bruno@clisp.org>
34406
34407         Tests for module 'uninorm/u32-normcoll'.
34408         * modules/uninorm/u32-normcoll-tests: New file.
34409         * tests/uninorm/test-u32-normcoll.c: New file.
34410
34411         Tests for module 'uninorm/u16-normcoll'.
34412         * modules/uninorm/u16-normcoll-tests: New file.
34413         * tests/uninorm/test-u16-normcoll.c: New file.
34414
34415         Tests for module 'uninorm/u8-normcoll'.
34416         * modules/uninorm/u8-normcoll-tests: New file.
34417         * tests/uninorm/test-u8-normcoll.c: New file.
34418
34419 2009-03-07  Bruno Haible  <bruno@clisp.org>
34420
34421         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34422         tests/uninorm/test-u32-normcmp.c.
34423         * tests/uninorm/test-u32-normcmp.c: Include it.
34424         (test_nonascii): New function, extracted from main. Add some more
34425         tests.
34426         (main): Invoke test_ascii and test_nonascii.
34427         * modules/uninorm/u32-normcmp-tests (Files): Add
34428         tests/uninorm/test-u32-normcmp.h.
34429         (Depends-on): Remove uninorm/u32-normcmp.
34430
34431         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34432         tests/uninorm/test-u16-normcmp.c.
34433         * tests/uninorm/test-u16-normcmp.c: Include it.
34434         (test_nonascii): New function, extracted from main. Add some more
34435         tests.
34436         (main): Invoke test_ascii and test_nonascii.
34437         * modules/uninorm/u16-normcmp-tests (Files): Add
34438         tests/uninorm/test-u16-normcmp.h.
34439         (Depends-on): Remove uninorm/u16-normcmp.
34440
34441         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34442         tests/uninorm/test-u8-normcmp.c.
34443         * tests/uninorm/test-u8-normcmp.c: Include it.
34444         (test_nonascii): New function, extracted from main. Add some more
34445         tests.
34446         (main): Invoke test_ascii and test_nonascii.
34447         * modules/uninorm/u8-normcmp-tests (Files): Add
34448         tests/uninorm/test-u8-normcmp.h.
34449         (Depends-on): Remove uninorm/u8-normcmp.
34450
34451 2009-03-07  Bruno Haible  <bruno@clisp.org>
34452
34453         New module 'uninorm/u32-normcoll'.
34454         * lib/uninorm/u32-normcoll.c: New file.
34455         * modules/uninorm/u32-normcoll: New file.
34456
34457         New module 'uninorm/u16-normcoll'.
34458         * lib/uninorm/u16-normcoll.c: New file.
34459         * modules/uninorm/u16-normcoll: New file.
34460
34461         New module 'uninorm/u8-normcoll'.
34462         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34463         declarations.
34464         * lib/uninorm/u8-normcoll.c: New file.
34465         * lib/uninorm/u-normcoll.h: New file.
34466         * modules/uninorm/u8-normcoll: New file.
34467
34468         New module 'uninorm/u32-normxfrm'.
34469         * lib/uninorm/u32-normxfrm.c: New file.
34470         * modules/uninorm/u32-normxfrm: New file.
34471
34472         New module 'uninorm/u16-normxfrm'.
34473         * lib/uninorm/u16-normxfrm.c: New file.
34474         * modules/uninorm/u16-normxfrm: New file.
34475
34476         New module 'uninorm/u8-normxfrm'.
34477         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34478         declarations.
34479         * lib/uninorm/u8-normxfrm.c: New file.
34480         * lib/uninorm/u-normxfrm.h: New file.
34481         * modules/uninorm/u8-normxfrm: New file.
34482
34483 2009-03-07  Bruno Haible  <bruno@clisp.org>
34484
34485         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34486         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34487         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34488
34489 2009-03-07  Bruno Haible  <bruno@clisp.org>
34490
34491         New module 'memxfrm'.
34492         * lib/memxfrm.h: New file.
34493         * lib/memxfrm.c: New file.
34494         * modules/memxfrm: New file.
34495
34496 2009-03-07  Bruno Haible  <bruno@clisp.org>
34497
34498         New module 'memcmp2'.
34499         * lib/memcmp2.h: New file.
34500         * lib/memcmp2.c: New file.
34501         * modules/memcmp2: New file.
34502
34503 2009-03-07  Bruno Haible  <bruno@clisp.org>
34504
34505         Tests for module 'uninorm/decomposing-form'.
34506         * modules/uninorm/decomposing-form-tests: New file.
34507         * tests/uninorm/test-decomposing-form.c: New file.
34508
34509         New module 'uninorm/decomposing-form'.
34510         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34511         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34512         Add 'decomposing_variant' field.
34513         * lib/uninorm/decomposing-form.c: New file.
34514         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34515         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34516         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34517         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34518         * modules/uninorm/decomposing-form: New file.
34519         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34520         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34521
34522 2009-03-07  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34525         strings.
34526
34527 2009-03-06  Bruno Haible  <bruno@clisp.org>
34528
34529         Tests for module 'uninorm/u32-normcmp'.
34530         * tests/uninorm/test-u32-normcmp.c: New file.
34531         * modules/uninorm/u32-normcmp-tests: New file.
34532
34533         Tests for module 'uninorm/u16-normcmp'.
34534         * tests/uninorm/test-u16-normcmp.c: New file.
34535         * modules/uninorm/u16-normcmp-tests: New file.
34536
34537         Tests for module 'uninorm/u8-normcmp'.
34538         * tests/uninorm/test-u8-normcmp.c: New file.
34539         * modules/uninorm/u8-normcmp-tests: New file.
34540
34541         New module 'uninorm/u32-normcmp'.
34542         * lib/uninorm/u32-normcmp.c: New file.
34543         * modules/uninorm/u32-normcmp: New file.
34544
34545         New module 'uninorm/u16-normcmp'.
34546         * lib/uninorm/u16-normcmp.c: New file.
34547         * modules/uninorm/u16-normcmp: New file.
34548
34549         New module 'uninorm/u8-normcmp'.
34550         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34551         declarations.
34552         * lib/uninorm/u8-normcmp.c: New file.
34553         * lib/uninorm/u-normcmp.h: New file.
34554         * modules/uninorm/u8-normcmp: New file.
34555
34556 2009-03-06  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34559         Reported by Eric Blake.
34560
34561 2009-03-06  Eric Blake  <ebb9@byu.net>
34562             Bruno Haible  <bruno@clisp.org>
34563
34564         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34565         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34566         condition.
34567         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34568         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34569         condition.
34570         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34571
34572 2009-03-06  Eric Blake  <ebb9@byu.net>
34573
34574         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34575         to avoid compiler warnings.
34576         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34577
34578 2009-03-05  Bruno Haible  <bruno@clisp.org>
34579
34580         * tests/test-ftell.c (main): Disable test beyond end of file on
34581         FreeMiNT.
34582         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34583
34584 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34585
34586         * lib/filevercmp.c: Move hidden files up in ordering.
34587         * tests/test-filevercmp.c: Add tests for hidden files.
34588
34589 2009-03-04  Bruno Haible  <bruno@clisp.org>
34590
34591         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34592         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34593         AM_CFLAGS.
34594         Reported by Simon Josefsson.
34595
34596 2009-03-03  Bruno Haible  <bruno@clisp.org>
34597
34598         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34599         Reported by Simon Josefsson.
34600
34601         * doc/ld-version-script.texi: Update node reference.
34602
34603 2009-03-03  Bruno Haible  <bruno@clisp.org>
34604
34605         * modules/visibility (License): Change to 'unlimited'.
34606         Suggested by Simon Josefsson.
34607
34608 2009-03-03  Jim Meyering  <meyering@redhat.com>
34609
34610         unlinkdir: cannot_unlink_dir may modify process state
34611         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34612         it's neither thread-safe nor appropriate for use in a library.
34613
34614 2009-03-03  Eric Blake  <ebb9@byu.net>
34615
34616         test-closein: silence test under Darwin
34617         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34618         care if it dies from EPIPE or EBADF.
34619
34620 2009-03-03  Bruno Haible  <bruno@clisp.org>
34621
34622         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34623         earlier.
34624         * doc/visibility.texi: Fix @node and @section.
34625
34626 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34627
34628         * doc/gnulib.texi: Link to sections for ld version script and
34629         visibility.
34630         * doc/visibility.texi: Add @node and @section.
34631         * modules/ld-version-script: New module.
34632         * m4/ld-version-script.m4: New file.
34633         * doc/ld-version-script.texi: New file.
34634
34635 2009-03-02  David Lutterkort  <lutter@redhat.com>
34636
34637         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34639
34640 2009-03-02  Bruno Haible  <bruno@clisp.org>
34641
34642         * doc/visibility.texi: Mention libtool's -export-symbols option.
34643
34644 2009-03-02  Jim Meyering  <meyering@redhat.com>
34645
34646         announce-gen: new option: --no-print-checksums
34647         * build-aux/announce-gen (usage): Describe it.
34648         (print_checksums): Print a newline here, not in the [*] footnote.
34649         (main): Honor it.
34650
34651 2009-03-01  Bruno Haible  <bruno@clisp.org>
34652
34653         Use socklen_t in the native Windows replacements prototypes.
34654         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34655         instead of 'int'.
34656         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34657         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34658         * modules/getsockopt (Depends-on): Add socklen.
34659         * modules/setsockopt (Depends-on): Add socklen.
34660
34661 2009-03-01  Bruno Haible  <bruno@clisp.org>
34662
34663         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34664         least 4.2.
34665
34666 2009-03-01  Eric Blake  <ebb9@byu.net>
34667             Bruno Haible  <bruno@clisp.org>
34668
34669         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34670         error messages.
34671         * lib/wait-process.c (wait_subprocess): Omit error message about
34672         deadly signal sent to the child of termsigp != NULL.
34673
34674 2009-03-01  Eric Blake  <ebb9@byu.net>
34675
34676         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34677
34678 2009-03-01  Bruno Haible  <bruno@clisp.org>
34679
34680         Avoid a gcc warning.
34681         * tests/test-sched.c (b): Make global.
34682         Reported by Eric Blake.
34683
34684 2009-01-19  Martin Lambers  <marlam@marlam.de>
34685
34686         Provide POSIX semantics for socket timeout options on W32.
34687         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34688         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34689         * modules/setsockopt: Depend on sys_time module for struct timeval.
34690         * modules/getsockopt: Depend on sys_time module for struct timeval.
34691
34692 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34693
34694         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34695         __USE_GNU, for consistency with netdb.in.h.
34696         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34697
34698 2009-03-01  Bruno Haible  <bruno@clisp.org>
34699
34700         More support for FreeMiNT.
34701         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34702         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34703
34704 2009-03-01  Bruno Haible  <bruno@clisp.org>
34705
34706         More support for FreeMiNT.
34707         * lib/fpurge.c (fpurge): Correct last commit.
34708         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34709
34710 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34711
34712         Fix unportable awk script in vc-list-files.
34713         * build-aux/vc-list-files: In the replacement awk script, use
34714         substr with a second argument of 1, not zero.
34715         Report by Simon Josefsson.
34716
34717 2009-02-28  Bruno Haible  <bruno@clisp.org>
34718
34719         More support for FreeMiNT.
34720         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34721         to FreeMiNT today.
34722         * lib/fwriting.c (fwriting): Likewise.
34723         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34724
34725 2009-02-28  Bruno Haible  <bruno@clisp.org>
34726
34727         * tests/test-freadseek.c (main): Disable test beyond end of file on
34728         FreeMiNT.
34729         * tests/test-ftello.c (main): Likewise.
34730         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34731
34732 2009-02-28  Bruno Haible  <bruno@clisp.org>
34733
34734         Add tentative support for FreeMiNT.
34735         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34736         * lib/fpurge.c (fpurge): Likewise.
34737         * lib/freadable.c (freadable): Likewise.
34738         * lib/freading.c (freading): Likewise.
34739         * lib/freadptr.c (freadptr): Likewise.
34740         * lib/freadseek.c (freadptrinc): Likewise.
34741         * lib/fseeko.c (rpl_fseeko): Likewise.
34742         * lib/fseterr.c (fseterr): Likewise.
34743         * lib/fwritable.c (fwritable): Likewise.
34744         * lib/fwriting.c (fwriting): Likewise.
34745         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34746         Hourihane.
34747         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34748
34749 2009-02-28  Bruno Haible  <bruno@clisp.org>
34750
34751         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34752         SIGCHLD.
34753         Reported by Jim Meyering.
34754
34755 2009-02-28  Bruno Haible  <bruno@clisp.org>
34756
34757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34758         Mention the results of these tests on various platforms.
34759         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34760         order.
34761         * doc/posix-functions/printf.texi: Likewise.
34762         * doc/posix-functions/snprintf.texi: Likewise.
34763         * doc/posix-functions/sprintf.texi: Likewise.
34764         * doc/posix-functions/vfprintf.texi: Likewise.
34765         * doc/posix-functions/vprintf.texi: Likewise.
34766         * doc/posix-functions/vsnprintf.texi: Likewise.
34767         * doc/posix-functions/vsprintf.texi: Likewise.
34768         * doc/glibc-functions/obstack_printf.texi: Likewise.
34769         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34770
34771 2009-02-28  Bruno Haible  <bruno@clisp.org>
34772
34773         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34774         Reported by Loïc Minier <lool@dooz.org>.
34775
34776 2009-02-27  Bruno Haible  <bruno@clisp.org>
34777
34778         * gnulib-tool (func_import): Make the sed expression used to create the
34779         sed script for updating the .gitignore file POSIX compliant.
34780         Reported by Eric Blake.
34781
34782 2009-02-27  Bruno Haible  <bruno@clisp.org>
34783
34784         * gnulib-tool (sed): Don't alias as "sed --posix".
34785         Reported by Eric Blake.
34786
34787 2009-02-27  Bruno Haible  <bruno@clisp.org>
34788
34789         Avoid test link errors.
34790         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34791         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34792         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34793         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34795
34796 2009-02-27  Bruno Haible  <bruno@clisp.org>
34797
34798         Avoid spurious "(cached)" in configure output.
34799         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34800         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34801         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34802         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34803         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34804         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34805         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34806         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34807         Reported by Eric Blake.
34808
34809 2009-02-27  Eric Blake  <ebb9@byu.net>
34810
34811         printf: fix regression in previous patch
34812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34813
34814 2009-02-27  Bruno Haible  <bruno@clisp.org>
34815
34816         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34817         value.
34818         * lib/stdint.in.h: Likewise.
34819         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34820
34821 2009-02-27  Eric Blake  <ebb9@byu.net>
34822
34823         doc: mention more functions added in cygwin 1.7.0
34824         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34825         addition.
34826         * doc/posix-functions/open_wmemstream.texi: Likewise.
34827         * doc/posix-functions/wcsnlen.texi: Likewise.
34828         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34829         * doc/posix-functions/wcstod.texi: Likewise.
34830         * doc/posix-functions/wcstof.texi: Likewise.
34831         * doc/posix-functions/wcstoimax.texi: Likewise.
34832         * doc/posix-functions/wcstok.texi: Likewise.
34833         * doc/posix-functions/wcstoumax.texi: Likewise.
34834
34835         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34837         * doc/posix-functions/fprintf.texi: Update.
34838         * doc/posix-functions/printf.texi: Update.
34839         * doc/posix-functions/snprintf.texi: Update.
34840         * doc/posix-functions/sprintf.texi: Update.
34841         * doc/posix-functions/vfprintf.texi: Update.
34842         * doc/posix-functions/vprintf.texi: Update.
34843         * doc/posix-functions/vsnprintf.texi: Update.
34844         * doc/posix-functions/vsprintf.texi: Update.
34845         * doc/glibc-functions/obstack_printf.texi: Update.
34846         * doc/glibc-functions/obstack_vprintf.texi: Update.
34847
34848 2009-02-26  Eric Blake  <ebb9@byu.net>
34849
34850         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34851         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34852         compilation bug by using runtime conversion.
34853         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34854         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34855         * modules/ceill-tests (Files): Use nan.h.
34856         * modules/floorl-tests (Files): Likewise.
34857         * modules/frexpl-tests (Files): Likewise.
34858         * modules/isnanl-tests (Files): Likewise.
34859         * modules/ldexpl-tests (Files): Likewise.
34860         * modules/roundl-tests (Files): Likewise.
34861         * modules/truncl-tests (Files): Likewise.
34862         * tests/test-ceill.c (main): Use a working NaN.
34863         * tests/test-floorl.c (main): Likewise.
34864         * tests/test-frexpl.c (main): Likewise.
34865         * tests/test-isnan.c (test_long_double): Likewise.
34866         * tests/test-isnanl.h (main): Likewise.
34867         * tests/test-ldexpl.h (main): Likewise.
34868         * tests/test-roundl.h (main): Likewise.
34869         * tests/test-truncl.h (main): Likewise.
34870         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34871
34872 2009-02-26  Eric Blake  <ebb9@byu.net>
34873             Bruno Haible  <bruno@clisp.org>
34874
34875         Work around a *printf bug with %ls on Solaris.
34876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34877         precision is specified, sprintf stops converting the wide string
34878         argument when the number of bytes that have been produced by this
34879         conversion equals or exceeds the precision.
34880         * doc/posix-functions/fprintf.texi: Update.
34881         * doc/posix-functions/printf.texi: Update.
34882         * doc/posix-functions/snprintf.texi: Update.
34883         * doc/posix-functions/sprintf.texi: Update.
34884         * doc/posix-functions/vfprintf.texi: Update.
34885         * doc/posix-functions/vprintf.texi: Update.
34886         * doc/posix-functions/vsnprintf.texi: Update.
34887         * doc/posix-functions/vsprintf.texi: Update.
34888         * doc/glibc-functions/obstack_printf.texi: Update.
34889         * doc/glibc-functions/obstack_vprintf.texi: Update.
34890
34891 2009-02-26  Eric Blake  <ebb9@byu.net>
34892
34893         stdlib: favor compiler check of random.h
34894         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34895         to avoid an ObjC random.h installed by Swarm.
34896
34897 2009-02-26  Bruno Haible  <bruno@clisp.org>
34898
34899         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34900         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34901         Reported by Gary V. Vaughan <gary@gnu.org>.
34902
34903 2009-02-26  Bruno Haible  <bruno@clisp.org>
34904
34905         Fix *printf behaviour regarding the %ls directive.
34906         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34907         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34908         NEED_PRINTF_DIRECTIVE_LS.
34909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34910         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34912         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34913         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34914         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34915         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34916         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34917         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34920         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34924         * doc/posix-functions/fprintf.texi: Update.
34925         * doc/posix-functions/printf.texi: Update.
34926         * doc/posix-functions/snprintf.texi: Update.
34927         * doc/posix-functions/sprintf.texi: Update.
34928         * doc/posix-functions/vfprintf.texi: Update.
34929         * doc/posix-functions/vprintf.texi: Update.
34930         * doc/posix-functions/vsnprintf.texi: Update.
34931         * doc/posix-functions/vsprintf.texi: Update.
34932         * doc/glibc-functions/obstack_printf.texi: Update.
34933         * doc/glibc-functions/obstack_vprintf.texi: Update.
34934         Reported by Eric Blake.
34935
34936 2009-02-25  Bruno Haible  <bruno@clisp.org>
34937
34938         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34939         with known value.
34940         Reported by Gary V. Vaughan <gary@gnu.org>.
34941
34942 2009-02-25  Bruno Haible  <bruno@clisp.org>
34943
34944         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34945         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34946         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34947         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34948         Reported by Gary V. Vaughan <gary@gnu.org>.
34949
34950 2009-02-25  Bruno Haible  <bruno@clisp.org>
34951
34952         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34953         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34954         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34955         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34956         Reported by Gary V. Vaughan <gary@gnu.org>.
34957
34958 2009-02-25  Eric Blake  <ebb9@byu.net>
34959
34960         tests: skip fseek/ftell tests if ungetc is broken
34961         * m4/ungetc.m4: New file.
34962         * modules/fseek-tests: Split test, so ungetc dependency is
34963         separate from rest of test.
34964         * modules/fseeko-tests: Likewise.
34965         * modules/ftell-tests: Likewise.
34966         * modules/ftello-tests: Likewise.
34967         * tests/test-fseek.c (main): Isolate ungetc dependency.
34968         * tests/test-fseeko.c (main): Likewise.
34969         * tests/test-ftell.c (main): Likewise.
34970         * tests/test-ftello.c (main): Likewise.
34971         * tests/test-fseek2.sh: New file.
34972         * tests/test-fseeko2.sh: Likewise.
34973         * tests/test-ftell2.sh: Likewise.
34974         * tests/test-ftello2.sh: Likewise.
34975
34976 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34977
34978         test-getaddrinfo: fix usage of skip return code 77
34979         * tests/test-gettaddrinfo.c: Return skip code 77 only
34980         for first occurance of skip (4x77 is not 77)
34981
34982 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34983
34984         strtod: avoid C99 decl-after-statement
34985         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34986
34987 2009-02-24  Eric Blake  <ebb9@byu.net>
34988
34989         strtod: detect HP-UX 11.31 bug
34990         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34991         Reported by Gary V. Vaughan.
34992
34993 2009-02-23  Bruno Haible  <bruno@clisp.org>
34994
34995         Fix invalid read past end of memory block.
34996         * lib/vasnprintf.c (DCHAR_SET): Define.
34997         (local_wcslen): Define only when needed.
34998         (local_strnlen, local_wcsnlen): New functions.
34999         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35000         directives that involve a conversion ourselves.
35001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35002         wcsnlen, mbrtowc, wcrtomb.
35003         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35004         * tests/test-vasprintf-posix.c (test_function): Likewise.
35005         * tests/test-snprintf-posix.h (test_function): Likewise.
35006         * tests/test-sprintf-posix.h (test_function): Likewise.
35007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35008
35009 2009-02-22  Bruno Haible  <bruno@clisp.org>
35010
35011         Implement new clarified decomposition of Hangul syllables.
35012         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35013         of type LTV, return only a pairwise decomposition.
35014         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35015         Likewise.
35016         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35017         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35018         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35019
35020 2009-02-22  Bruno Haible  <bruno@clisp.org>
35021
35022         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35023         zero-length results and shrink excess allocated memory.
35024         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35025         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35026         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35027         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35028         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35029         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35030         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35031         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35032         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35033         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35034         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35035         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35036
35037 2009-02-21  Bruno Haible  <bruno@clisp.org>
35038
35039         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35040         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35041         spaces after a period. Put a space between a macro name and its
35042         argument list. Trivial rewordings.
35043         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35044         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35045         (main): Return 0 explicitly.
35046
35047 2009-02-21  Bruno Haible  <bruno@clisp.org>
35048
35049         Tests for module 'uninorm/filter'.
35050         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35051         * modules/uninorm/filter-tests: New file.
35052
35053         New module 'uninorm/filter'.
35054         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35055         uninorm_filter_flush, uninorm_filter_free): New declarations.
35056         * lib/uninorm/uninorm-filter.c: New file.
35057         * modules/uninorm/filter: New file.
35058
35059 2009-02-21  Bruno Haible  <bruno@clisp.org>
35060
35061         Tests for module 'uninorm/nfkc'.
35062         * tests/uninorm/test-nfkc.c: New file.
35063         * tests/uninorm/test-u8-nfkc.c: New file.
35064         * tests/uninorm/test-u16-nfkc.c: New file.
35065         * tests/uninorm/test-u32-nfkc.c: New file.
35066         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35067         * tests/uninorm/test-u32-nfkc-big.c: New file.
35068         * modules/uninorm/nfkc-tests: New file.
35069
35070         New module 'uninorm/nfkc'.
35071         * lib/uninorm/nfkc.c: New file.
35072         * modules/uninorm/nfkc: New file.
35073
35074         Tests for module 'uninorm/nfkd'.
35075         * tests/uninorm/test-nfkd.c: New file.
35076         * tests/uninorm/test-u8-nfkd.c: New file.
35077         * tests/uninorm/test-u16-nfkd.c: New file.
35078         * tests/uninorm/test-u32-nfkd.c: New file.
35079         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35080         * tests/uninorm/test-u32-nfkd-big.c: New file.
35081         * modules/uninorm/nfkd-tests: New file.
35082
35083         New module 'uninorm/nfkd'.
35084         * lib/uninorm/nfkd.c: New file.
35085         * modules/uninorm/nfkd: New file.
35086
35087         Tests for module 'uninorm/nfc'.
35088         * tests/uninorm/test-nfc.c: New file.
35089         * tests/uninorm/test-u8-nfc.c: New file.
35090         * tests/uninorm/test-u16-nfc.c: New file.
35091         * tests/uninorm/test-u32-nfc.c: New file.
35092         * tests/uninorm/test-u32-nfc-big.sh: New file.
35093         * tests/uninorm/test-u32-nfc-big.c: New file.
35094         * modules/uninorm/nfc-tests: New file.
35095
35096         New module 'uninorm/nfc'.
35097         * lib/uninorm/nfc.c: New file.
35098         * modules/uninorm/nfc: New file.
35099
35100         Tests for module 'uninorm/nfd'.
35101         * tests/uninorm/test-nfd.c: New file.
35102         * tests/uninorm/test-u8-nfd.c: New file.
35103         * tests/uninorm/test-u16-nfd.c: New file.
35104         * tests/uninorm/test-u32-nfd.c: New file.
35105         * tests/uninorm/test-u32-nfd-big.sh: New file.
35106         * tests/uninorm/test-u32-nfd-big.c: New file.
35107         * tests/uninorm/test-u32-normalize-big.h: New file.
35108         * tests/uninorm/test-u32-normalize-big.c: New file.
35109         * tests/uninorm/NormalizationTest.txt: New file, created from
35110         Unicode 5.1.0 NormalizationTest.txt.
35111         * modules/uninorm/nfd-tests: New file.
35112
35113         New module 'uninorm/nfd'.
35114         * lib/uninorm/nfd.c: New file.
35115         * modules/uninorm/nfd: New file.
35116
35117         New module 'uninorm/u32-normalize'.
35118         * lib/uninorm/u32-normalize.c: New file.
35119         * modules/uninorm/u32-normalize: New file.
35120
35121         New module 'uninorm/u16-normalize'.
35122         * lib/uninorm/u16-normalize.c: New file.
35123         * modules/uninorm/u16-normalize: New file.
35124
35125         New module 'uninorm/u8-normalize'.
35126         * lib/uninorm/u8-normalize.c: New file.
35127         * lib/uninorm/normalize-internal.h: New file.
35128         * lib/uninorm/u-normalize-internal.h: New file.
35129         * modules/uninorm/u8-normalize: New file.
35130
35131         New module 'uninorm/decompose-internal'.
35132         * lib/uninorm/decompose-internal.c: New file.
35133         * modules/uninorm/decompose-internal: New file.
35134
35135         Tests for module 'uninorm/composition'.
35136         * tests/uninorm/test-composition.c: New file.
35137         * modules/uninorm/composition-tests: New file.
35138
35139         New module 'uninorm/composition'.
35140         * lib/uninorm/composition.c: New file.
35141         * lib/uninorm/composition-table.gperf: New file, generated by
35142         gen-uni-tables.
35143         * modules/uninorm/composition: New file.
35144
35145         Tests for module 'uninorm/compat-decomposition'.
35146         * tests/uninorm/test-compat-decomposition.c: New file.
35147         * modules/uninorm/compat-decomposition-tests: New file.
35148
35149         New module 'uninorm/compat-decomposition'.
35150         * lib/uninorm/decompose-internal.h: New file.
35151         * lib/uninorm/compat-decomposition.c: New file.
35152         * modules/uninorm/compat-decomposition: New file.
35153
35154         Tests for module 'uninorm/canonical-decomposition'.
35155         * tests/uninorm/test-canonical-decomposition.c: New file.
35156         * modules/uninorm/canonical-decomposition-tests: New file.
35157
35158         New module 'uninorm/canonical-decomposition'.
35159         * lib/uninorm/canonical-decomposition.c: New file.
35160         * modules/uninorm/canonical-decomposition: New file.
35161
35162         Tests for module 'uninorm/decomposition'.
35163         * tests/uninorm/test-decomposition.c: New file.
35164         * modules/uninorm/decomposition-tests: New file.
35165
35166         New module 'uninorm/decomposition'.
35167         * lib/uninorm/decomposition.c: New file.
35168         * modules/uninorm/decomposition: New file.
35169
35170         New module 'uninorm/decomposition-table'.
35171         * lib/uninorm/decomposition-table.h: New file.
35172         * lib/uninorm/decomposition-table.c: New file.
35173         * lib/uninorm/decomposition-table1.h: New file, generated by
35174         gen-uni-tables.
35175         * lib/uninorm/decomposition-table2.h: New file, generated by
35176         gen-uni-tables.
35177         * modules/uninorm/decomposition-table: New file.
35178
35179         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35180         (UC_DECOMP_*): New enumeration items.
35181         (get_decomposition): New function.
35182         (struct decomp_table): New type.
35183         (output_decomposition, output_decomposition_tables): New functions.
35184         (unicode_composition_exclusions): New variable.
35185         (fill_composition_exclusions, debug_output_composition_tables): New
35186         functions.
35187         (main): Accept one more argument. Invoke fill_composition_exclusions.
35188         Output decomposition and composition tables.
35189
35190         New module 'uninorm/base'.
35191         * lib/uninorm.h: New file.
35192         * lib/unictype.h: Update comment.
35193         * modules/uninorm/base: New file.
35194
35195 2009-02-21  David Lutterkort  <lutter@redhat.com>
35196
35197         Tests for module 'safe-alloc'.
35198         * tests/test-safe-alloc.c: New file.
35199         * modules/safe-alloc-tests: New file.
35200
35201         New module 'safe-alloc'.
35202         * lib/safe-alloc.h: New file.
35203         * lib/safe-alloc.c: New file.
35204         * m4/safe-alloc.m4: New file.
35205         * modules/safe-alloc: New file.
35206         * doc/safe-alloc.texi: New file.
35207         * doc/gnulib.texi: Include it.
35208         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35209         safe-alloc.
35210
35211 2009-02-18  Bruno Haible  <bruno@clisp.org>
35212
35213         Fix link error on non-glibc systems.
35214         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35215         variable.
35216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35217
35218 2009-02-18  Jim Meyering  <meyering@redhat.com>
35219
35220         fts: avoid used-uninitialized error due to recent change
35221         * lib/fts.c (fts_read): Guard uses of the new member,
35222         parent->fts_n_dirs_remaining, since it's not relevant for
35223         the parent of a directory specified on the command-line.
35224
35225 2009-02-17  James Youngman  <jay@gnu.org>
35226             Bruno Haible  <bruno@clisp.org>
35227
35228         * m4/include_next.m4: Reformulate comment.
35229
35230 2009-02-16  Jim Meyering  <meyering@redhat.com>
35231
35232         fts: add #if guards so that the fts_lgpl module still builds
35233         * lib/fts.c: Guard just-added hash-table-using parts with
35234         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35235         Reported by Simon Josefsson.
35236
35237 2009-02-15  Bruno Haible  <bruno@clisp.org>
35238
35239         * modules/array-mergesort-tests: New file.
35240         * tests/test-array-mergesort.c: New file.
35241
35242         New module 'array-mergesort'.
35243         * modules/array-mergesort: New file.
35244         * lib/array-mergesort.h: New file.
35245
35246 2009-02-15  Bruno Haible  <bruno@clisp.org>
35247
35248         Fix 2009-02-07 commit.
35249         * lib/gen-uni-tables.c (output_predicate, output_category,
35250         output_combclass, output_bidi_category, output_decimal_digit,
35251         output_digit, output_numeric, output_mirror, output_scripts,
35252         output_ident_category, output_simple_mapping): Fix format directives.
35253         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35254
35255 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35256
35257         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35258         fixes are available from IBM.
35259
35260 2009-02-13  Jim Meyering  <meyering@redhat.com>
35261
35262         fts: arrange not to stat non-directories in more cases
35263         This makes GNU find (when it doesn't need to stat each file)
35264         *much* more efficient at traversing reiserfs file systems.
35265         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35266         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35267         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35268         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35269         (leaf_optimization_applies): New function.
35270         (LCO_hash, LCO_compare): New helper functions.
35271         (link_count_optimize_ok): New function.
35272         (fts_stat): Initialize new member (if dir).
35273         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35274         we've just stat'ed a directory.  Skip the stat call when possible.
35275         ---
35276         Note this AFS-related exchange:
35277         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35278         and note find's pioctl call in find/fstype.c.
35279         But that is necessary only if you want to enable the
35280         optimization for AFS, and for now, I don't.
35281
35282         fts: move a function definition "up" (no semantic change)
35283         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35284         "up" to precede upcoming use of a related function.
35285
35286 2009-02-11  Jim Meyering  <meyering@redhat.com>
35287
35288         fts: correct internal computation of nlinks (optimization-related)
35289         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35290         whether the current entry is a directory, so don't test it.
35291
35292 2009-02-10  Bruno Haible  <bruno@clisp.org>
35293
35294         Tests for module 'uniwbrk/ulc-wordbreaks'.
35295         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35296         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35297         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35298
35299         Tests for module 'uniwbrk/u32-wordbreaks'.
35300         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35301         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35302
35303         Tests for module 'uniwbrk/u16-wordbreaks'.
35304         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35305         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35306
35307         Tests for module 'uniwbrk/u8-wordbreaks'.
35308         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35309         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35310
35311 2009-02-10  Bruno Haible  <bruno@clisp.org>
35312
35313         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35314         property.
35315         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35316         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35317         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35318
35319 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35320
35321         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35322         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35323
35324 2009-02-10  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35327         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35328         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35329         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35330         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35331         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35332
35333 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35334
35335         * lib/sockets.h (gl_fd_to_handle): New function.
35336
35337         * tests/test-sockets.c: Call gl_fd_to_handle.
35338
35339 2009-02-09  Bruno Haible  <bruno@clisp.org>
35340
35341         * doc/havelib.texi: Document the conventions on bi-arch systems.
35342
35343 2009-02-08  Bruno Haible  <bruno@clisp.org>
35344
35345         Document the AC_LIB_LINKFLAGS macro.
35346         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35347         * doc/gnulib.texi: Include it.
35348
35349 2009-02-08  Bruno Haible  <bruno@clisp.org>
35350
35351         Fix wrong order of sections, compared to TOC.
35352         * doc/gnulib.texi: Include relocatable-maint.texi after the
35353         "Regular expressions" node, not before.
35354
35355 2009-02-08  Bruno Haible  <bruno@clisp.org>
35356
35357         Tests for module 'unicase/totitle'.
35358         * modules/unicase/totitle-tests: New file.
35359
35360         Tests for module 'unicase/tolower'.
35361         * modules/unicase/tolower-tests: New file.
35362
35363         Tests for module 'unicase/toupper'.
35364         * modules/unicase/toupper-tests: New file.
35365         * tests/unicase/test-mapping-part1.h: New file.
35366         * tests/unicase/test-mapping-part2.h: New file.
35367
35368         New module 'unicase/totitle'.
35369         * modules/unicase/totitle: New file.
35370         * lib/unicase/totitle.c: New file.
35371
35372         New module 'unicase/tolower'.
35373         * modules/unicase/tolower: New file.
35374         * lib/unicase/tolower.c: New file.
35375
35376         New module 'unicase/toupper'.
35377         * modules/unicase/toupper: New file.
35378         * lib/unicase/toupper.c: New file.
35379         * lib/unicase/simple-mapping.h: New file.
35380
35381         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35382         (mapping_table): New structure.
35383         (output_simple_mapping): New function.
35384         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35385         * modules/gen-uni-tables (Description): Update.
35386         * lib/unicase/toupper.h: New file, automatically generated by
35387         gen-uni-tables.
35388         * lib/unicase/tolower.h: New file, automatically generated by
35389         gen-uni-tables.
35390         * lib/unicase/totitle.h: New file, automatically generated by
35391         gen-uni-tables.
35392         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35393         gen-uni-tables.
35394         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35395         gen-uni-tables.
35396         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35397         gen-uni-tables.
35398
35399         New module 'unicase/base'.
35400         * modules/unicase/base: New file.
35401         * lib/unicase.h: New file.
35402
35403 2009-02-08  Bruno Haible  <bruno@clisp.org>
35404
35405         New module 'uniwbrk/ulc-wordbreaks'.
35406         * modules/uniwbrk/ulc-wordbreaks: New file.
35407         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35408
35409         New module 'uniwbrk/u32-wordbreaks'.
35410         * modules/uniwbrk/u32-wordbreaks: New file.
35411         * lib/uniwbrk/u32-wordbreaks.c: New file.
35412
35413         New module 'uniwbrk/u16-wordbreaks'.
35414         * modules/uniwbrk/u16-wordbreaks: New file.
35415         * lib/uniwbrk/u16-wordbreaks.c: New file.
35416
35417         New module 'uniwbrk/u8-wordbreaks'.
35418         * modules/uniwbrk/u8-wordbreaks: New file.
35419         * lib/uniwbrk/u8-wordbreaks.c: New file.
35420         * lib/uniwbrk/u-wordbreaks.h: New file.
35421
35422         New module 'uniwbrk/table'.
35423         * modules/uniwbrk/table: New file.
35424         * lib/uniwbrk/wbrktable.h: New file.
35425         * lib/uniwbrk/wbrktable.c: New file.
35426
35427         New module 'uniwbrk/wordbreak-property'.
35428         * modules/uniwbrk/wordbreak-property: New file.
35429         * lib/uniwbrk/wordbreak-property.c: New file.
35430
35431         * lib/gen-uni-tables.c (WBP_*): New enum items.
35432         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35433         (unicode_org_wbp): New variable.
35434         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35435         New functions.
35436         (wbp_table): New structure.
35437         (output_wbp, output_wbrk_tables): New functions.
35438         (main): Accept additional argument. Invoke fill_org_wbp,
35439         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35440         output_wbrk_tables.
35441         * modules/gen-uni-tables (Description): Update.
35442         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35443         gen-uni-tables.
35444
35445         New module 'uniwbrk/base'.
35446         * modules/uniwbrk/base: New file.
35447         * lib/uniwbrk.h: New file.
35448
35449 2009-02-08  Bruno Haible  <bruno@clisp.org>
35450
35451         Update to Unicode 5.1.0.
35452         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35453         U+2185..U+2188.
35454         (is_property_default_ignorable_code_point): Don't include characters
35455         of category Cc or Cs and not-a-characters.
35456         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35457         U+0D79, U+109E, U+109F, U+A60C.
35458         * lib/unictype/bidi_of.h: Regenerated.
35459         * lib/unictype/blocks.h: Regenerated.
35460         * lib/unictype/categ_C.h: Regenerated.
35461         * lib/unictype/categ_Cf.h: Regenerated.
35462         * lib/unictype/categ_Cn.h: Regenerated.
35463         * lib/unictype/categ_L.h: Regenerated.
35464         * lib/unictype/categ_Ll.h: Regenerated.
35465         * lib/unictype/categ_Lm.h: Regenerated.
35466         * lib/unictype/categ_Lo.h: Regenerated.
35467         * lib/unictype/categ_Lu.h: Regenerated.
35468         * lib/unictype/categ_M.h: Regenerated.
35469         * lib/unictype/categ_Mc.h: Regenerated.
35470         * lib/unictype/categ_Me.h: Regenerated.
35471         * lib/unictype/categ_Mn.h: Regenerated.
35472         * lib/unictype/categ_N.h: Regenerated.
35473         * lib/unictype/categ_Nd.h: Regenerated.
35474         * lib/unictype/categ_Nl.h: Regenerated.
35475         * lib/unictype/categ_No.h: Regenerated.
35476         * lib/unictype/categ_P.h: Regenerated.
35477         * lib/unictype/categ_Pd.h: Regenerated.
35478         * lib/unictype/categ_Pe.h: Regenerated.
35479         * lib/unictype/categ_Pf.h: Regenerated.
35480         * lib/unictype/categ_Pi.h: Regenerated.
35481         * lib/unictype/categ_Po.h: Regenerated.
35482         * lib/unictype/categ_Ps.h: Regenerated.
35483         * lib/unictype/categ_S.h: Regenerated.
35484         * lib/unictype/categ_Sk.h: Regenerated.
35485         * lib/unictype/categ_Sm.h: Regenerated.
35486         * lib/unictype/categ_So.h: Regenerated.
35487         * lib/unictype/categ_of.h: Regenerated.
35488         * lib/unictype/combining.h: Regenerated.
35489         * lib/unictype/ctype_alnum.h: Regenerated.
35490         * lib/unictype/ctype_alpha.h: Regenerated.
35491         * lib/unictype/ctype_graph.h: Regenerated.
35492         * lib/unictype/ctype_lower.h: Regenerated.
35493         * lib/unictype/ctype_print.h: Regenerated.
35494         * lib/unictype/ctype_punct.h: Regenerated.
35495         * lib/unictype/ctype_upper.h: Regenerated.
35496         * lib/unictype/decdigit.h: Regenerated.
35497         * lib/unictype/digit.h: Regenerated.
35498         * lib/unictype/mirror.h: Regenerated.
35499         * lib/unictype/numeric.h: Regenerated.
35500         * lib/unictype/pr_alphabetic.h: Regenerated.
35501         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35502         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35503         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35504         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35505         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35506         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35507         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35508         * lib/unictype/pr_combining.h: Regenerated.
35509         * lib/unictype/pr_dash.h: Regenerated.
35510         * lib/unictype/pr_decimal_digit.h: Regenerated.
35511         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35512         * lib/unictype/pr_deprecated.h: Regenerated.
35513         * lib/unictype/pr_diacritic.h: Regenerated.
35514         * lib/unictype/pr_extender.h: Regenerated.
35515         * lib/unictype/pr_format_control.h: Regenerated.
35516         * lib/unictype/pr_grapheme_base.h: Regenerated.
35517         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35518         * lib/unictype/pr_grapheme_link.h: Regenerated.
35519         * lib/unictype/pr_id_continue.h: Regenerated.
35520         * lib/unictype/pr_id_start.h: Regenerated.
35521         * lib/unictype/pr_ideographic.h: Regenerated.
35522         * lib/unictype/pr_ignorable_control.h: Regenerated.
35523         * lib/unictype/pr_lowercase.h: Regenerated.
35524         * lib/unictype/pr_math.h: Regenerated.
35525         * lib/unictype/pr_numeric.h: Regenerated.
35526         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35527         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35528         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35529         * lib/unictype/pr_other_id_continue.h: Regenerated.
35530         * lib/unictype/pr_other_lowercase.h: Regenerated.
35531         * lib/unictype/pr_other_math.h: Regenerated.
35532         * lib/unictype/pr_punctuation.h: Regenerated.
35533         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35534         * lib/unictype/pr_soft_dotted.h: Regenerated.
35535         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35536         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35537         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35538         * lib/unictype/pr_uppercase.h: Regenerated.
35539         * lib/unictype/pr_xid_continue.h: Regenerated.
35540         * lib/unictype/pr_xid_start.h: Regenerated.
35541         * lib/unictype/pr_zero_width.h: Regenerated.
35542         * lib/unictype/scripts.h: Regenerated.
35543         * lib/unictype/scripts_byname.gperf: Regenerated.
35544         * lib/unictype/sy_java_ident.h: Regenerated.
35545         * lib/unilbrk/lbrkprop1.h: Regenerated.
35546         * lib/unilbrk/lbrkprop2.h: Regenerated.
35547         * tests/unictype/test-categ_C.c: Regenerated.
35548         * tests/unictype/test-categ_Cf.c: Regenerated.
35549         * tests/unictype/test-categ_Cn.c: Regenerated.
35550         * tests/unictype/test-categ_L.c: Regenerated.
35551         * tests/unictype/test-categ_Ll.c: Regenerated.
35552         * tests/unictype/test-categ_Lm.c: Regenerated.
35553         * tests/unictype/test-categ_Lo.c: Regenerated.
35554         * tests/unictype/test-categ_Lu.c: Regenerated.
35555         * tests/unictype/test-categ_M.c: Regenerated.
35556         * tests/unictype/test-categ_Mc.c: Regenerated.
35557         * tests/unictype/test-categ_Me.c: Regenerated.
35558         * tests/unictype/test-categ_Mn.c: Regenerated.
35559         * tests/unictype/test-categ_N.c: Regenerated.
35560         * tests/unictype/test-categ_Nd.c: Regenerated.
35561         * tests/unictype/test-categ_Nl.c: Regenerated.
35562         * tests/unictype/test-categ_No.c: Regenerated.
35563         * tests/unictype/test-categ_P.c: Regenerated.
35564         * tests/unictype/test-categ_Pd.c: Regenerated.
35565         * tests/unictype/test-categ_Pe.c: Regenerated.
35566         * tests/unictype/test-categ_Pf.c: Regenerated.
35567         * tests/unictype/test-categ_Pi.c: Regenerated.
35568         * tests/unictype/test-categ_Po.c: Regenerated.
35569         * tests/unictype/test-categ_Ps.c: Regenerated.
35570         * tests/unictype/test-categ_S.c: Regenerated.
35571         * tests/unictype/test-categ_Sk.c: Regenerated.
35572         * tests/unictype/test-categ_Sm.c: Regenerated.
35573         * tests/unictype/test-categ_So.c: Regenerated.
35574         * tests/unictype/test-ctype_alnum.c: Regenerated.
35575         * tests/unictype/test-ctype_alpha.c: Regenerated.
35576         * tests/unictype/test-ctype_graph.c: Regenerated.
35577         * tests/unictype/test-ctype_lower.c: Regenerated.
35578         * tests/unictype/test-ctype_print.c: Regenerated.
35579         * tests/unictype/test-ctype_punct.c: Regenerated.
35580         * tests/unictype/test-ctype_upper.c: Regenerated.
35581         * tests/unictype/test-decdigit.h: Regenerated.
35582         * tests/unictype/test-digit.h: Regenerated.
35583         * tests/unictype/test-numeric.h: Regenerated.
35584         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35585         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35586         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35587         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35588         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35589         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35590         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35591         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35592         * tests/unictype/test-pr_combining.c: Regenerated.
35593         * tests/unictype/test-pr_dash.c: Regenerated.
35594         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35595         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35596         * tests/unictype/test-pr_deprecated.c: Regenerated.
35597         * tests/unictype/test-pr_diacritic.c: Regenerated.
35598         * tests/unictype/test-pr_extender.c: Regenerated.
35599         * tests/unictype/test-pr_format_control.c: Regenerated.
35600         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35601         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35602         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35603         * tests/unictype/test-pr_id_continue.c: Regenerated.
35604         * tests/unictype/test-pr_id_start.c: Regenerated.
35605         * tests/unictype/test-pr_ideographic.c: Regenerated.
35606         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35607         * tests/unictype/test-pr_lowercase.c: Regenerated.
35608         * tests/unictype/test-pr_math.c: Regenerated.
35609         * tests/unictype/test-pr_numeric.c: Regenerated.
35610         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35611         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35612         Regenerated.
35613         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35614         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35615         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35616         * tests/unictype/test-pr_other_math.c: Regenerated.
35617         * tests/unictype/test-pr_punctuation.c: Regenerated.
35618         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35619         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35620         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35621         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35622         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35623         * tests/unictype/test-pr_uppercase.c: Regenerated.
35624         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35625         * tests/unictype/test-pr_xid_start.c: Regenerated.
35626         * tests/unictype/test-pr_zero_width.c: Regenerated.
35627
35628         Update to Unicode 5.1.0.
35629         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35630         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35631         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35632         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35633         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35634         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35635         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35636         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35637         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35638         (nonspacing_table_ind): Update.
35639         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35640
35641         Update to Unicode 5.1.0.
35642         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35643         code transform.
35644         * lib/uniname/uniname.c (unicode_character_name,
35645         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35646         * lib/uniname/uninames.h: Regenerated.
35647         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35648
35649 2009-02-07  Bruno Haible  <bruno@clisp.org>
35650
35651         Merge gen-ctype and gen-lbrk into a single program.
35652         * lib/gen-uni-tables.c: New file, incorporating
35653         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35654         Add directory prefixes to the names of the generated files.
35655         * lib/unictype/gen-ctype.c: Remove file.
35656         * lib/unilbrk/gen-lbrk.c: Remove file.
35657         * modules/gen-uni-tables: New file.
35658         * modules/unictype/gen-ctype: Remove file.
35659         * modules/unilbrk/gen-lbrk: Remove file.
35660
35661 2009-02-07  Bruno Haible  <bruno@clisp.org>
35662
35663         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35664
35665         New module 'unistr/u32-strcoll'.
35666         * modules/unistr/u32-strcoll: New file.
35667         * lib/unistr/u32-strcoll.c: New file.
35668
35669         New module 'unistr/u16-strcoll'.
35670         * modules/unistr/u16-strcoll: New file.
35671         * lib/unistr/u16-strcoll.c: New file.
35672
35673         New module 'unistr/u8-strcoll'.
35674         * modules/unistr/u8-strcoll: New file.
35675         * lib/unistr/u8-strcoll.c: New file.
35676         * lib/unistr/u-strcoll.h: New file.
35677
35678 2009-02-07  Bruno Haible  <bruno@clisp.org>
35679
35680         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35681         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35682         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35683         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35684         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35685         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35686
35687 2009-02-07  Bruno Haible  <bruno@clisp.org>
35688
35689         Make 64-bit clean.
35690         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35691         output_combclass, output_bidi_category, output_decimal_digit,
35692         output_digit, output_numeric, output_mirror, output_scripts,
35693         output_ident_category): Use proper width specifier in format strings.
35694
35695 2009-02-07  Bruno Haible  <bruno@clisp.org>
35696
35697         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35698         failure behaviour.
35699
35700 2009-02-07  Jim Meyering  <meyering@redhat.com>
35701
35702         regex: avoid compilation failure with upcoming gcc-4.4
35703         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35704         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35705         "... error: integer overflow in preprocessor expression".
35706
35707 2009-02-05  Ben Pfaff  <blp@gnu.org>
35708
35709         Fix link errors on Windows when close module is used.
35710         * modules/close: Add $(LIB_CLOSE) to Link section.
35711         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35712         $(LIB_CLOSE) on Windows.
35713
35714 2009-02-05  Jim Meyering  <meyering@redhat.com>
35715
35716         still avoid unused-parameter warnings, but do it cleanly
35717         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35718         (get_fs_usage): Cast to void instead.
35719         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35720         (dev_from_mount_options, read_file_system_list): Cast to void.
35721         Prompted by Bruno Haible.
35722
35723 2009-02-04  Jim Meyering  <meyering@redhat.com>
35724
35725         fsusage.c: correct copyright year
35726         * lib/fsusage.c: Reflect year in which the change is pushed into
35727
35728         avoid misc. warnings
35729         * lib/fsusage.c (UNUSED_PARAM): Define.
35730         (get_fs_usage): Mark parameter "disk" as unused.
35731         * lib/getugroups.c (getgrent): Use "void" in prototype.
35732         * lib/mountlist.c: Mark unused parameters.
35733         (read_file_system_list): Declare a local with "const".
35734         * lib/nanosleep.c (getnow): Declare static.
35735         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35736
35737         dirfd: set errno upon failure
35738         * lib/dirfd.c: Include <errno.h>.
35739         Set errno to ENOTSUP when returning -1.
35740         * modules/dirfd (Depends-on): Add errno.
35741         Suggested by John Kodis <kodis@comcast.net>.
35742
35743 2009-02-01  Bruno Haible  <bruno@clisp.org>
35744
35745         Don't assume sizeof (long) >= sizeof (void *).
35746         * lib/memcmp.c: Include stdint.h.
35747         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35748         srcp2 to 'const byte *'.
35749         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35750         types to uintptr_t.
35751         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35752         * modules/memcmp (Depends-on): Add stdint.
35753         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35754
35755 2009-01-30  Eric Blake  <ebb9@byu.net>
35756
35757         fix more require-before-expand issues
35758         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35759         expand, AC_PROG_AWK.
35760         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35761
35762 2009-01-28  Eric Blake  <ebb9@byu.net>
35763
35764         version-etc: use consistent URL formatting
35765         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35766         Improve formatting.  Use fputs for string without %.
35767
35768 2009-01-28  Jim Meyering  <meyering@redhat.com>
35769
35770         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35771         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35772         "underquoted definition of NAME" from autoconf-2.59.
35773
35774 2009-01-28  Bruno Haible  <bruno@clisp.org>
35775
35776         * doc/gnulib.texi: Add "Obsolete modules" to index.
35777
35778 2009-01-28  Jim Meyering  <meyering@redhat.com>
35779
35780         useless-if-before-free: recognize more variants
35781         * build-aux/useless-if-before-free: Also recognize e.g.,
35782         if (NULL != p) free (p);
35783
35784 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35785
35786         test-getaddrinfo: skip (don't fail) this test when there's no network
35787         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35788         on the presumption that it means you lack network access.
35789
35790 2009-01-26  Jim Meyering  <meyering@redhat.com>
35791
35792         fflush: avoid warnings on modern systems
35793         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35794         pos and result, into scopes where they're used.
35795
35796 2009-01-26  Eric Blake  <ebb9@byu.net>
35797
35798         Silence warning reintroduced by recent extensions patch.
35799         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35800         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35801         autoconf.
35802
35803         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35804         * m4/00gnulib.m4: New file.
35805         * gnulib-tool (func_get_filelist): Always use it.
35806         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35807         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35808
35809 2009-01-25  Bruno Haible  <bruno@clisp.org>
35810
35811         Make test-quotearg work on MacOS X and AIX.
35812         * tests/test-quotearg.sh: New file.
35813         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35814         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35815         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35816         include <libintl.h>.
35817         (fake_locale): Remove variable.
35818         (gettext, dgettext, dcgettext): Remove functions.
35819         (main): Instead of setting a fake locale, set a real locale. Call
35820         textdomain and bindtextdomain.
35821         * modules/quotearg-tests (Files): Add the new files.
35822         (Depends-on): Add gettext, setenv, unsetenv.
35823         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35824         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35825         Augment TESTS_ENVIRONMENT.
35826
35827 2009-01-25  Bruno Haible  <bruno@clisp.org>
35828
35829         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35830         fr_FR.ISO8859-1 locale on MacOS X.
35831         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35832         ja_JP.eucJP locale on MacOS X.
35833         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35834         zh_CN.GB18030 locale on MacOS X.
35835
35836 2009-01-25  Bruno Haible  <bruno@clisp.org>
35837
35838         Avoid link errors on MacOS X 10.3.
35839         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35840         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35841
35842 2009-01-25  Bruno Haible  <bruno@clisp.org>
35843
35844         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35845         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35846         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35847         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35848         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35849         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35850         posix_spawnattr_init, posix_spawnattr_setsigmask,
35851         posix_spawnattr_setflags, posix_spawnattr_destroy.
35852
35853         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35854         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35855         * modules/execute (Files): Remove m4/posix_spawn.m4.
35856         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35857         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35858         posix_spawnattr_init, posix_spawnattr_setsigmask,
35859         posix_spawnattr_setflags, posix_spawnattr_destroy.
35860
35861 2009-01-25  Bruno Haible  <bruno@clisp.org>
35862
35863         * lib/glthread/threadlib.c: Include <stdlib.h>.
35864
35865 2009-01-25  Bruno Haible  <bruno@clisp.org>
35866
35867         * lib/glthread/threadlib.c (dummy): New declaration.
35868
35869 2009-01-25  Bruno Haible  <bruno@clisp.org>
35870
35871         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35872         multibyte characters also for the GB18030 encoding. Don't crash when
35873         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35874
35875 2009-01-25  Bruno Haible  <bruno@clisp.org>
35876
35877         Avoid redefining 'struct random_data' on OSF/1 5.1.
35878         * lib/stdlib.in.h: Include <random.h> if it exists.
35879         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35880         HAVE_RANDOM_H. Include <random.h> when testing whether
35881         'struct random_data' exists.
35882         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35883
35884 2009-01-25  Bruno Haible  <bruno@clisp.org>
35885
35886         Don't install charset.alias on MacOS X >= 10.3.
35887         * lib/localcharset.c (DARWIN7): New macro.
35888         (get_charset_aliases): Hardcode the result for Darwin7.
35889         * modules/localcharset (install-exec-local): Don't install
35890         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35891
35892 2009-01-25  Bruno Haible  <bruno@clisp.org>
35893
35894         Don't install charset.alias on mingw and Cygwin.
35895         * modules/localcharset (install-exec-local): Don't install
35896         charset.alias on mingw and Cygwin, if the file does not yet exist.
35897         The result for these platforms is hardcoded in localcharset.c.
35898
35899 2009-01-25  Bruno Haible  <bruno@clisp.org>
35900
35901         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35903         before requiring AC_USE_SYSTEM_EXTENSIONS.
35904
35905 2009-01-25  Jim Meyering  <meyering@redhat.com>
35906
35907         c-strtod: avoid warnings
35908         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35909         "assignment discards qualifiers from pointer target type" warnings.
35910
35911 2009-01-24  Bruno Haible  <bruno@clisp.org>
35912
35913         Add support for non-UTF-8 locales on MacOS X.
35914         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35915         canonical encodings. For Darwin 7 and newer, don't map traditional
35916         encodings to UTF-8.
35917         Reported by Vincent Lefevre <vincent@vinc17.org>
35918         at <http://savannah.gnu.org/bugs/?25235>.
35919
35920 2009-01-24  Bruno Haible  <bruno@clisp.org>
35921
35922         * doc/gnulib.texi (Obsolete modules): New section.
35923         Reported by Mike Frysinger <vapier@gentoo.org>.
35924
35925 2009-01-24  Bruno Haible  <bruno@clisp.org>
35926
35927         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35928         (%.dvi): New rule.
35929
35930 2009-01-24  Bruno Haible  <bruno@clisp.org>
35931
35932         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35933         Reported by Eric Blake.
35934
35935 2009-01-24  Bruno Haible  <bruno@clisp.org>
35936
35937         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35938         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35939         Reported by Gary V. Vaughan <gary@gnu.org>.
35940
35941 2009-01-24  Bruno Haible  <bruno@clisp.org>
35942
35943         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35944
35945 2009-01-23  Bruno Haible  <bruno@clisp.org>
35946
35947         Make c-strtod, c-strtold usable in libraries.
35948         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35949         (C_STRTOD): Call strdup instead of xstrdup.
35950         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35951         * modules/c-strtold (Depends-on): Likewise.
35952         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35953         * NEWS: Mention the change.
35954         Reported by Michael Gold <mgold@ncf.ca>.
35955
35956 2009-01-23  Jim Meyering  <meyering@redhat.com>
35957
35958         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35959         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35960         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35961
35962 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35963
35964         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35965         GNU CoreUtils.
35966         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35967         * modules/version-etc (Description): Update.
35968
35969 2009-01-22  Bruno Haible  <bruno@clisp.org>
35970
35971         Cache the C locale object.
35972         * lib/c-strtod.c (c_locale_cache): New variable.
35973         (c_locale): New function.
35974         (C_STRTOD): Use it, and don't call freelocale.
35975         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35976         Suggested by Paolo Bonzini.
35977
35978 2009-01-21  Bruno Haible  <bruno@clisp.org>
35979
35980         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35981         conditions other than overflow.
35982
35983 2009-01-21  Bruno Haible  <bruno@clisp.org>
35984
35985         * lib/c-strtod.c: Include errno.h.
35986         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35987         value from STRTOD_L and STRTOD.
35988
35989 2009-01-21  Bruno Haible  <bruno@clisp.org>
35990         and Jim Meyering  <meyering@redhat.com>
35991
35992         nanosleep: skip configure test (fail it) for apple universal builds
35993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35994         universal builds, assume that nanosleep does not work.
35995         * modules/nanosleep (Depends-on): Add multiarch.
35996
35997         mktime: skip configure test (fail it) for apple universal builds
35998         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35999         universal builds, assume that mktime does not work.
36000         * modules/mktime (Depends-on): Add multiarch.
36001
36002 2009-01-21  Eric Blake  <ebb9@byu.net>
36003
36004         multiarch: avoid expand-before-require warning
36005         * modules/multiarch (configure.ac): Require, rather than expand,
36006         gl_MULTIARCH.
36007         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36008         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36009         enforce that all clients require it.  Partial reversion of
36010         2008-12-29 patch.
36011
36012         error: avoid expand-before-require warning
36013         * modules/errno (configure.ac): Require, rather than expand,
36014         gl_HEADER_ERRNO_H.
36015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36016         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36017         enforce that all clients require it.
36018
36019         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36020         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36021         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36022         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36023
36024 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36025
36026         Revert:
36027         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36028
36029         regex: do not depend on obsolete modules.
36030         * modules/regex: Remove memcmp and memmove.
36031
36032 2009-01-20  Bruno Haible  <bruno@clisp.org>
36033
36034         Make the 'link' module link on Windows NT 4.
36035         * lib/link.c (_WIN32_WINNT): Don't define.
36036         (CreateHardLinkFuncType): New type.
36037         (CreateHardLinkFunc, initialized): New variables.
36038         (initialize): New function.
36039         (link): Invoke CreateHardLink indirectly through the function pointer.
36040
36041 2009-01-20  Bruno Haible  <bruno@clisp.org>
36042
36043         Fix compilation failure on mingw.
36044         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36045
36046 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36047
36048         * doc/c-strtod.texi: Mention a couple of restrictions.
36049
36050 2009-01-20  Jim Meyering  <meyering@redhat.com>
36051
36052         gettimeofday: move more declarations out of functions
36053         * lib/gettimeofday.c: Move extern declarations of tzset and
36054         gmtime out of containing functions.  Prompted by Bruno Haible.
36055
36056 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36057
36058         regex: do not depend on obsolete modules.
36059         * modules/regex: Remove memcmp and memmove.
36060
36061 2009-01-19  Bruno Haible  <bruno@clisp.org>
36062
36063         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36064         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36065         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36066         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36067         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36068
36069 2009-01-19  Bruno Haible  <bruno@clisp.org>
36070
36071         * tests/test-link.c: Include <errno.h>.
36072         (main): Exit with code 77 when a hard link cannot be created due to
36073         the file system.
36074         * tests/test-link.sh: Skip test when a hard link cannot be created due
36075         to the file system.
36076         Suggested by Eric Blake.
36077
36078 2009-01-19  Martin Lambers  <marlam@marlam.de>
36079
36080         * modules/link-tests: New file.
36081         * tests/test-link.sh: New file.
36082         * tests/test-link.c: New file.
36083
36084 2009-01-19  Eric Blake  <ebb9@byu.net>
36085
36086         doc: mention another function added in cygwin 1.7.0
36087         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36088         Another new function in cygwin 1.7.
36089
36090 2009-01-19  Bruno Haible  <bruno@clisp.org>
36091
36092         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36093         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36094         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36095         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36096         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36097         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36098         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36099         * m4/md4.m4 (gl_MD4): Likewise.
36100         * m4/md5.m4 (gl_MD5): Likewise.
36101         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36102         * m4/sha1.m4 (gl_SHA1): Likewise.
36103         * m4/sha256.m4 (gl_SHA256): Likewise.
36104         * m4/sha512.m4 (gl_SHA512): Likewise.
36105
36106 2009-01-19  Bruno Haible  <bruno@clisp.org>
36107
36108         * modules/uniname/uniname-tests (Depends-on): Add progname.
36109         * tests/uniname/test-uninames.c: Include progname.h.
36110         (main): Call set_program_name.
36111
36112         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36113         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36114         (main): Call set_program_name.
36115
36116         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36117         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36118         (main): Call set_program_name.
36119
36120         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36121         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36122         (main): Call set_program_name.
36123
36124         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36125         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36126         (main): Call set_program_name.
36127
36128         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36129         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36130         (main): Call set_program_name.
36131
36132         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36133         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36134         (main): Call set_program_name.
36135
36136         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36137         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36138         (main): Call set_program_name.
36139
36140         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36141         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36142         (main): Call set_program_name.
36143
36144 2009-01-19  Eric Blake  <ebb9@byu.net>
36145
36146         test-unistd: test previous patch
36147         * tests/test-unistd.c: Test *_FILENO macros.
36148
36149         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36150         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36151         Guarantee a definition.
36152         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36153         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36154         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36155         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36156         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36157         Likewise.
36158         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36159         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36160         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36161         Likewise.
36162         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36163         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36164         (STDERR_FILENO): Likewise.
36165         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36166         (STDERR_FILENO): Likewise.
36167         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36168         (STDERR_FILENO): Likewise.
36169         Reported by Elbert Pol.
36170
36171 2009-01-19  Eric Blake  <ebb9@byu.net>
36172
36173         doc: mention more functions added in cygwin 1.7.0
36174         * doc/posix-functions/abort.texi (abort): Update wording related
36175         to cygwin.
36176         * doc/posix-functions/daylight.texi (daylight): Likewise.
36177         * doc/posix-functions/optarg.texi (optarg): Likewise.
36178         * doc/posix-functions/optarg.texi (opterr): Likewise.
36179         * doc/posix-functions/optarg.texi (optind): Likewise.
36180         * doc/posix-functions/optarg.texi (optopt): Likewise.
36181         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36182         worked in 1.5.x, and was withdrawn in 1.7.
36183         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36184         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36185         cygwin versions.
36186         * doc/posix-functions/perror.texi (perror): Likewise.
36187         * doc/posix-functions/printf.texi (printf): Likewise.
36188         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36189         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36190         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36191         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36192         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36193         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36194         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36195         Likewise.
36196         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36197         Likewise.
36198         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36199         this function.
36200         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36201         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36202         Likewise.
36203         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36204         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36205         * doc/posix-functions/confstr.texi (confstr): Likewise.
36206         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36207         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36208         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36209         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36210         * doc/posix-functions/fputws.texi (fputws): Likewise.
36211         * doc/posix-functions/fwide.texi (fwide): Likewise.
36212         * doc/posix-functions/getwc.texi (getwc): Likewise.
36213         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36214         * doc/posix-functions/putwc.texi (putwc): Likewise.
36215         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36216         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36217         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36218         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36219         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36220         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36221         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36222         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36223         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36224         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36225         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36226
36227 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36228
36229         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36230         * lib/ioctl.c: Include <sys/ioctl.h>.
36231
36232 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36233
36234         * modules/getdate-tests (Depends-on): Add progname.
36235         * tests/test-getdate.c: Use progname module, to avoid link errors
36236         on non-glibc systems.
36237
36238 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36239
36240         * modules/filenamecat-tests (Depends-on): Add progname.
36241         * modules/fstrcmp-tests (Depends-on): Likewise.
36242
36243         * tests/test-filenamecat.c: Use progname module, to avoid link
36244         errors on non-glibc systems.
36245         * tests/test-fstrcmp.c: Likewise.
36246
36247 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36248
36249         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36250         * lib/gettimeofday.c: Move extern declaration out of function.
36251
36252 2009-01-18  Bruno Haible  <bruno@clisp.org>
36253
36254         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36255         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36256         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36257
36258 2009-01-18  Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/strftime.c (MEMPCPY): Remove unused macro.
36261         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36262
36263 2009-01-18  Martin Lambers  <marlam@marlam.de>
36264
36265         New module 'link'.
36266         * lib/unistd.in.h (link): New declaration.
36267         * lib/link.c: New file.
36268         * m4/link.m4: New file.
36269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36270         HAVE_LINK.
36271         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36272         * modules/link: New file.
36273         * doc/posix-functions/link.texi: Mention the new module.
36274
36275 2009-01-18  Bruno Haible  <bruno@clisp.org>
36276
36277         * tests/test-avltree_list.c (main): Call set_program_name.
36278         * tests/test-avltree_oset.c (main): Likewise.
36279         * tests/test-obstack-printf.c: Include progname.h.
36280         (main): Call set_program_name.
36281         * tests/test-quotearg.c: Include progname.h.
36282         (main): Call set_program_name.
36283         * tests/test-xmemdup0.c: Include progname.h.
36284         (main): Call set_program_name.
36285
36286 2009-01-18  Bruno Haible  <bruno@clisp.org>
36287
36288         New module 'alphasort'.
36289         * lib/dirent.in.h (alphasort): New declaration.
36290         * lib/alphasort.c: New file, from glibc with modifications.
36291         * m4/alphasort.m4: New file.
36292         * modules/alphasort: New file.
36293         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36294         HAVE_ALPHASORT.
36295         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36296         HAVE_ALPHASORT.
36297         * doc/posix-functions/alphasort.texi: Mention the new module and the
36298         portability problems.
36299
36300 2009-01-18  Bruno Haible  <bruno@clisp.org>
36301
36302         New module 'scandir'.
36303         * lib/dirent.in.h (scandir): New declaration.
36304         * lib/scandir.c: New file, from glibc with modifications.
36305         * m4/scandir.m4: New file.
36306         * modules/scandir: New file.
36307         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36308         HAVE_SCANDIR.
36309         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36310         HAVE_SCANDIR.
36311         * doc/posix-functions/scandir.texi: Mention the new module and the
36312         portability problems.
36313
36314 2009-01-17  Bruno Haible  <bruno@clisp.org>
36315
36316         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36317         Update documentation.
36318         (func_remove_suffix): Escape all dots in the suffix. Update
36319         documentation.
36320         (func_filter_filelist): Update documentation.
36321         Reported by Ralf Wildenhues.
36322
36323 2009-01-17  Bruno Haible  <bruno@clisp.org>
36324
36325         * modules/dprintf-posix-tests: New file.
36326         * tests/test-dprintf-posix.sh: New file.
36327         * tests/test-dprintf-posix.c: New file.
36328
36329         New modules 'dprintf', 'dprintf-posix'.
36330         * lib/stdio.in.h (dprintf): New declaration.
36331         * lib/dprintf.c: New file.
36332         * m4/dprintf.m4: New file.
36333         * m4/dprintf-posix.m4: New file.
36334         * modules/dprintf: New file.
36335         * modules/dprintf-posix: New file.
36336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36337         HAVE_DPRINTF, REPLACE_DPRINTF.
36338         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36339         HAVE_DPRINTF, REPLACE_DPRINTF.
36340         * doc/posix-functions/dprintf.texi: Mention the new modules.
36341
36342 2009-01-17  Bruno Haible  <bruno@clisp.org>
36343
36344         * modules/vdprintf-posix-tests: New file.
36345         * tests/test-vdprintf-posix.sh: New file.
36346         * tests/test-vdprintf-posix.c: New file.
36347
36348         New modules 'vdprintf', 'vdprintf-posix'.
36349         * lib/stdio.in.h (vdprintf): New declaration.
36350         * lib/vdprintf.c: New file.
36351         * m4/vdprintf.m4: New file.
36352         * m4/vdprintf-posix.m4: New file.
36353         * modules/vdprintf: New file.
36354         * modules/vdprintf-posix: New file.
36355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36356         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36357         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36358         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36359         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36360
36361 2009-01-17  Bruno Haible  <bruno@clisp.org>
36362
36363         Fix replacement of fopen on mingw.
36364         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36365         mingw.
36366
36367 2009-01-17  Bruno Haible  <bruno@clisp.org>
36368
36369         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36370         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36371
36372 2009-01-17  Bruno Haible  <bruno@clisp.org>
36373
36374         Avoid test-fflush2.sh failure on mingw.
36375         * tests/test-fflush2.c: Include binary-io.h.
36376         (main): Put standard input into binary mode.
36377         * modules/fflush-tests (Depends-on): Add binary-io.
36378
36379 2009-01-17  Bruno Haible  <bruno@clisp.org>
36380
36381         * lib/wchar.in.h: In another particular situation, include only the
36382         system's <wchar.h> file.
36383         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36384         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36385         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36386
36387 2009-01-17  Bruno Haible  <bruno@clisp.org>
36388
36389         Support for stripping executables in --enable-relocatable.
36390         * build-aux/install-reloc: Expect one more argument, or an environment
36391         variable RELOC_STRIP_PROG. If set, strip the destination program and
36392         its wrapper.
36393         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36394         RELOC_STRIP_PROG.
36395         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36396         to set RELOCATABLE_STRIP.
36397         * NEWS: Mention the new Makefile requirement.
36398
36399 2009-01-17  Bruno Haible  <bruno@clisp.org>
36400
36401         * build-aux/install-reloc: Remove debugging information left over by
36402         C compiler on MacOS X.
36403
36404 2009-01-17  Bruno Haible  <bruno@clisp.org>
36405
36406         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36407         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36408         _NSGetExecutablePath.
36409
36410 2009-01-16  Jim Meyering  <meyering@redhat.com>
36411
36412         strerror: avoid warnings about discarding "const"
36413         * lib/strerror.c (rpl_strerror): Instead of returning a const
36414         string from each and every "case", use a variable, and add a single
36415         cast after the switch.
36416
36417 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36418
36419         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36420
36421 2009-01-16  Bruno Haible  <bruno@clisp.org>
36422
36423         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36424         array initializer syntax that also works in C++ mode.
36425         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36426
36427 2009-01-16  Jim Meyering  <meyering@redhat.com>
36428
36429         poll: suppress a warning
36430         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36431         to ignore "...unsigned expression < 0 is always false" warnings.
36432
36433 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36434
36435         poll: remove declarations of unused variables
36436         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36437         sockbuf and optlen.
36438
36439 2009-01-15  Bruno Haible  <bruno@clisp.org>
36440
36441         Make fflush-after-ungetc POSIX compliant on BSD systems.
36442         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36443         (clear_ungetc_buffer): Implement also for other systems.
36444         (rpl_fflush): On glibc systems, invoke
36445         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36446         clear_ungetc_buffer after fetching the stream's position, not before.
36447
36448 2009-01-15  Bruno Haible  <bruno@clisp.org>
36449
36450         Make fflush-after-ungetc POSIX compliant on glibc systems.
36451         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36452         after ungetc.
36453         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36454         (rpl_fflush): On glibc systems, simply call the system's fflush
36455         function after clearing the ungetc buffer.
36456         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36457         Instead, lseek only to the end of file, then use the system's fseeko
36458         for the rest. On glibc systems, reset the EOF indicator bit.
36459
36460 2009-01-15  Jim Meyering  <meyering@redhat.com>
36461
36462         openmp.m4: revert quote-adding change, for portability to older autoconf
36463         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36464         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36465         Simon Josefsson noticed the problem when using autoconf-2.61.
36466
36467 2009-01-15  Bruno Haible  <bruno@clisp.org>
36468
36469         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36470         * tests/test-fflush2.c (ASSERT): Always fail.
36471         (main): Add two tests for fflush() after ungetc(), taking into account
36472         the Austin Group's clarification.
36473         Suggested by Eric Blake.
36474
36475 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36476
36477         mktime.m4: remove K&R-style function prototypes
36478         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36479         for the Sun C++ compiler.
36480
36481 2009-01-14  Bruno Haible  <bruno@clisp.org>
36482
36483         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36484         while including <wchar.h>.
36485         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36486         the system's <wchar.h> file.
36487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36488
36489 2009-01-14  Bruno Haible  <bruno@clisp.org>
36490
36491         * m4/csharp.m4: Don't mention gettext on the serial number line.
36492         * m4/csharpexec.m4: Likewise.
36493         * m4/eaccess.m4: Likewise.
36494         * m4/javaexec.m4: Likewise.
36495         * m4/sig_atomic_t.m4: Likewise.
36496         * m4/tmpdir.m4: Likewise.
36497         * m4/intldir.m4: Bump gettext version.
36498         * m4/lib-ld.m4: Likewise.
36499
36500 2009-01-14  Bruno Haible  <bruno@clisp.org>
36501
36502         * lib/progname.c (set_program_name): Add more comments.
36503         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36504
36505 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36506
36507         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36508         were sys/stat.h does not define it.
36509
36510 2009-01-14  Jim Meyering  <meyering@redhat.com>
36511
36512         many *.m4 files: improve m4 quoting
36513         99% of this change was performed by running the following commands:
36514         git ls-files | grep '\.m4$' | xargs perl -pi \
36515           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36516           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36517           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36518           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36519         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36520         The remainder were to add Copyright dates, increment serial numbers,
36521         undo some changes in comments, exclude m4/intl.m4, and add quotes
36522         around the "1" in ",1" where the unusual spacing prohibited the
36523         above regexps from doing the job.  For more details, see
36524         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36525         * m4/acl.m4: Modified.
36526         * m4/afs.m4: Likewise.
36527         * m4/alloca.m4: Likewise.
36528         * m4/argp.m4: Likewise.
36529         * m4/argz.m4: Likewise.
36530         * m4/atexit.m4: Likewise.
36531         * m4/bison-i18n.m4: Likewise.
36532         * m4/bison.m4: Likewise.
36533         * m4/byteswap.m4: Likewise.
36534         * m4/c-stack.m4: Likewise.
36535         * m4/c-strtod.m4: Likewise.
36536         * m4/calloc.m4: Likewise.
36537         * m4/canonicalize-lgpl.m4: Likewise.
36538         * m4/chown.m4: Likewise.
36539         * m4/clock_time.m4: Likewise.
36540         * m4/codeset.m4: Likewise.
36541         * m4/copy-file.m4: Likewise.
36542         * m4/csharp.m4: Likewise.
36543         * m4/csharpcomp.m4: Likewise.
36544         * m4/csharpexec.m4: Likewise.
36545         * m4/d-ino.m4: Likewise.
36546         * m4/d-type.m4: Likewise.
36547         * m4/dirfd.m4: Likewise.
36548         * m4/double-slash-root.m4: Likewise.
36549         * m4/eaccess.m4: Likewise.
36550         * m4/eealloc.m4: Likewise.
36551         * m4/environ.m4: Likewise.
36552         * m4/errno_h.m4: Likewise.
36553         * m4/euidaccess.m4: Likewise.
36554         * m4/execute.m4: Likewise.
36555         * m4/fatal-signal.m4: Likewise.
36556         * m4/fchdir.m4: Likewise.
36557         * m4/fcntl_h.m4: Likewise.
36558         * m4/fileblocks.m4: Likewise.
36559         * m4/filenamecat.m4: Likewise.
36560         * m4/findprog.m4: Likewise.
36561         * m4/flexmember.m4: Likewise.
36562         * m4/fnmatch.m4: Likewise.
36563         * m4/fopen.m4: Likewise.
36564         * m4/fpending.m4: Likewise.
36565         * m4/fprintf-posix.m4: Likewise.
36566         * m4/free.m4: Likewise.
36567         * m4/frexp.m4: Likewise.
36568         * m4/frexpl.m4: Likewise.
36569         * m4/fsusage.m4: Likewise.
36570         * m4/ftruncate.m4: Likewise.
36571         * m4/gc-camellia.m4: Likewise.
36572         * m4/gc-random.m4: Likewise.
36573         * m4/gc.m4: Likewise.
36574         * m4/getaddrinfo.m4: Likewise.
36575         * m4/getcwd-abort-bug.m4: Likewise.
36576         * m4/getcwd-path-max.m4: Likewise.
36577         * m4/getdate.m4: Likewise.
36578         * m4/getdomainname.m4: Likewise.
36579         * m4/getgroups.m4: Likewise.
36580         * m4/gethostname.m4: Likewise.
36581         * m4/gethrxtime.m4: Likewise.
36582         * m4/getline.m4: Likewise.
36583         * m4/getloadavg.m4: Likewise.
36584         * m4/getndelim2.m4: Likewise.
36585         * m4/getpass.m4: Likewise.
36586         * m4/gettext.m4: Likewise.
36587         * m4/gettime.m4: Likewise.
36588         * m4/gettimeofday.m4: Likewise.
36589         * m4/gnulib-common.m4: Likewise.
36590         * m4/group-member.m4: Likewise.
36591         * m4/host-os.m4: Likewise.
36592         * m4/iconv.m4: Likewise.
36593         * m4/iconv_open.m4: Likewise.
36594         * m4/inet_ntop.m4: Likewise.
36595         * m4/inet_pton.m4: Likewise.
36596         * m4/inline.m4: Likewise.
36597         * m4/intldir.m4: Likewise.
36598         * m4/intlmacosx.m4: Likewise.
36599         * m4/intmax.m4: Likewise.
36600         * m4/intmax_t.m4: Likewise.
36601         * m4/inttypes.m4: Likewise.
36602         * m4/inttypes_h.m4: Likewise.
36603         * m4/inttypes-pri.m4: Likewise.
36604         * m4/isapipe.m4: Likewise.
36605         * m4/isnand.m4: Likewise.
36606         * m4/isnanf.m4: Likewise.
36607         * m4/isnanl.m4: Likewise.
36608         * m4/javacomp.m4: Likewise.
36609         * m4/javaexec.m4: Likewise.
36610         * m4/jm-winsz1.m4: Likewise.
36611         * m4/jm-winsz2.m4: Likewise.
36612         * m4/lchown.m4: Likewise.
36613         * m4/lcmessage.m4: Likewise.
36614         * m4/ldexpl.m4: Likewise.
36615         * m4/lib-ld.m4: Likewise.
36616         * m4/lib-link.m4: Likewise.
36617         * m4/libsigsegv.m4: Likewise.
36618         * m4/link-follow.m4: Likewise.
36619         * m4/localcharset.m4: Likewise.
36620         * m4/locale-fr.m4: Likewise.
36621         * m4/locale-ja.m4: Likewise.
36622         * m4/locale-tr.m4: Likewise.
36623         * m4/locale-zh.m4: Likewise.
36624         * m4/lock.m4: Likewise.
36625         * m4/longlong.m4: Likewise.
36626         * m4/ls-mntd-fs.m4: Likewise.
36627         * m4/lstat.m4: Likewise.
36628         * m4/malloc.m4: Likewise.
36629         * m4/mathl.m4: Likewise.
36630         * m4/mbrtowc.m4: Likewise.
36631         * m4/mbstate_t.m4: Likewise.
36632         * m4/mbswidth.m4: Likewise.
36633         * m4/memchr.m4: Likewise.
36634         * m4/memcmp.m4: Likewise.
36635         * m4/memcpy.m4: Likewise.
36636         * m4/memmem.m4: Likewise.
36637         * m4/memmove.m4: Likewise.
36638         * m4/mempcpy.m4: Likewise.
36639         * m4/memrchr.m4: Likewise.
36640         * m4/memset.m4: Likewise.
36641         * m4/minmax.m4: Likewise.
36642         * m4/mkdir-slash.m4: Likewise.
36643         * m4/mkdtemp.m4: Likewise.
36644         * m4/mktime.m4: Likewise.
36645         * m4/mmap-anon.m4: Likewise.
36646         * m4/mountlist.m4: Likewise.
36647         * m4/nanosleep.m4: Likewise.
36648         * m4/nls.m4: Likewise.
36649         * m4/nocrash.m4: Likewise.
36650         * m4/open.m4: Likewise.
36651         * m4/openat.m4: Likewise.
36652         * m4/openmp.m4: Likewise.
36653         * m4/pathmax.m4: Likewise.
36654         * m4/perl.m4: Likewise.
36655         * m4/physmem.m4: Likewise.
36656         * m4/pipe.m4: Likewise.
36657         * m4/po.m4: Likewise.
36658         * m4/poll.m4: Likewise.
36659         * m4/posixtm.m4: Likewise.
36660         * m4/posixver.m4: Likewise.
36661         * m4/printf-frexp.m4: Likewise.
36662         * m4/printf-frexpl.m4: Likewise.
36663         * m4/printf-posix.m4: Likewise.
36664         * m4/printf-posix-rpl.m4: Likewise.
36665         * m4/printf.m4: Likewise.
36666         * m4/progtest.m4: Likewise.
36667         * m4/putenv.m4: Likewise.
36668         * m4/readline.m4: Likewise.
36669         * m4/readlink.m4: Likewise.
36670         * m4/readutmp.m4: Likewise.
36671         * m4/realloc.m4: Likewise.
36672         * m4/regex.m4: Likewise.
36673         * m4/relocatable.m4: Likewise.
36674         * m4/relocatable-lib.m4: Likewise.
36675         * m4/rename-dest-slash.m4: Likewise.
36676         * m4/rename.m4: Likewise.
36677         * m4/rmdir-errno.m4: Likewise.
36678         * m4/rmdir.m4: Likewise.
36679         * m4/roundf.m4: Likewise.
36680         * m4/roundl.m4: Likewise.
36681         * m4/rpmatch.m4: Likewise.
36682         * m4/save-cwd.m4: Likewise.
36683         * m4/selinux-selinux-h.m4: Likewise.
36684         * m4/setenv.m4: Likewise.
36685         * m4/settime.m4: Likewise.
36686         * m4/sig2str.m4: Likewise.
36687         * m4/sig_atomic_t.m4: Likewise.
36688         * m4/signalblocking.m4: Likewise.
36689         * m4/signbit.m4: Likewise.
36690         * m4/sigpipe.m4: Likewise.
36691         * m4/sockets.m4: Likewise.
36692         * m4/sockpfaf.m4: Likewise.
36693         * m4/st_dm_mode.m4: Likewise.
36694         * m4/stat-time.m4: Likewise.
36695         * m4/stdbool.m4: Likewise.
36696         * m4/stdint.m4: Likewise.
36697         * m4/stdint_h.m4: Likewise.
36698         * m4/stpcpy.m4: Likewise.
36699         * m4/stpncpy.m4: Likewise.
36700         * m4/strcase.m4: Likewise.
36701         * m4/strchrnul.m4: Likewise.
36702         * m4/strcspn.m4: Likewise.
36703         * m4/strdup.m4: Likewise.
36704         * m4/strftime.m4: Likewise.
36705         * m4/strndup.m4: Likewise.
36706         * m4/strnlen.m4: Likewise.
36707         * m4/strpbrk.m4: Likewise.
36708         * m4/strptime.m4: Likewise.
36709         * m4/strsep.m4: Likewise.
36710         * m4/strtod.m4: Likewise.
36711         * m4/strtoimax.m4: Likewise.
36712         * m4/strtok_r.m4: Likewise.
36713         * m4/strtol.m4: Likewise.
36714         * m4/strtoll.m4: Likewise.
36715         * m4/strtoul.m4: Likewise.
36716         * m4/strtoull.m4: Likewise.
36717         * m4/strtoumax.m4: Likewise.
36718         * m4/strverscmp.m4: Likewise.
36719         * m4/threadlib.m4: Likewise.
36720         * m4/timegm.m4: Likewise.
36721         * m4/tm_gmtoff.m4: Likewise.
36722         * m4/tmpdir.m4: Likewise.
36723         * m4/tmpfile.m4: Likewise.
36724         * m4/tzset.m4: Likewise.
36725         * m4/uintmax_t.m4: Likewise.
36726         * m4/unlinkdir.m4: Likewise.
36727         * m4/unlocked-io.m4: Likewise.
36728         * m4/uptime.m4: Likewise.
36729         * m4/userspec.m4: Likewise.
36730         * m4/utimbuf.m4: Likewise.
36731         * m4/utime.m4: Likewise.
36732         * m4/utimes-null.m4: Likewise.
36733         * m4/utimes.m4: Likewise.
36734         * m4/vararrays.m4: Likewise.
36735         * m4/vasnprintf.m4: Likewise.
36736         * m4/vfprintf-posix.m4: Likewise.
36737         * m4/vprintf-posix.m4: Likewise.
36738         * m4/wait-process.m4: Likewise.
36739         * m4/wchar_t.m4: Likewise.
36740         * m4/wint_t.m4: Likewise.
36741         * m4/write-any-file.m4: Likewise.
36742         * m4/yield.m4: Likewise.
36743
36744 2009-01-13  Bruno Haible  <bruno@clisp.org>
36745
36746         Avoid test-copy-file.sh failures when ACL support insufficient.
36747         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36748         TESTS_ENVIRONMENT.
36749         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36750         Reported by Jim Meyering.
36751
36752 2009-01-13  Bruno Haible  <bruno@clisp.org>
36753
36754         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36755         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36756         * modules/unistdio/u8-printf-parse (Files): Likewise.
36757         * modules/unistdio/u32-printf-parse (Files): Likewise.
36758         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36759
36760 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36761
36762         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36763         and m4/inttypes_h.m4 too.
36764
36765 2009-01-12  Eric Blake  <ebb9@byu.net>
36766
36767         tests: IRIX 6.2 cc can't compile -0.0 into .data
36768         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36769         rather than at compile-time.
36770         * tests/test-floorl.c (minus_zero): Likewise.
36771         * tests/test-frexpl.c (minus_zero): Likewise.
36772         * tests/test-isnan.c (minus_zerol): Likewise.
36773         * tests/test-isnanl.h (minus_zero): Likewise.
36774         * tests/test-ldexpl.c (minus_zero): Likewise.
36775         * tests/test-roundl.c (minus_zero): Likewise.
36776         * tests/test-signbit.c (minus_zerol): Likewise.
36777         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36778         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36779         * tests/test-truncl.c (minus_zero): Likewise.
36780         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36781         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36782         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36783
36784 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36785
36786         regex: fix glibc bug 9697
36787         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36788         handling.
36789
36790 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36791
36792         regex: fix glibc bug 697
36793         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36794         being NULL also if there are no backreferences.
36795
36796 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36797
36798         regex: merge glibc changes
36799         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36800         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36801         re_string_skip_chars, re_string_reconstruct): Likewise.
36802         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36803
36804 2009-01-07  Jim Meyering  <meyering@redhat.com>
36805
36806         poll: filter through cppi
36807         * lib/poll.c: Indent cpp directives to reflect nesting.
36808
36809 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36810
36811         poll: don't return uninitialized
36812         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36813
36814 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36815
36816         avoid compile failure on AIX 6.1
36817         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36818         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36819
36820 2009-01-04  Jim Meyering  <meyering@redhat.com>
36821
36822         remove duplicate inclusion of <stdio.h>
36823         * tests/test-fprintf-posix.c: Likewise.
36824         * tests/test-printf-posix.c: Likewise.
36825         * tests/test-snprintf-posix.c: Likewise.
36826         * tests/test-sprintf-posix.c: Likewise.
36827         * tests/test-vasprintf-posix.c: Likewise.
36828         * tests/test-vfprintf-posix.c: Likewise.
36829         * tests/test-vprintf-posix.c: Likewise.
36830         * tests/test-vsnprintf-posix.c: Likewise.
36831         * tests/test-vsprintf-posix.c: Likewise.
36832
36833 2009-01-03  Jim Meyering  <meyering@redhat.com>
36834
36835         gnulib-tool: fix sed-based filtering
36836         * gnulib-tool (func_filter_filelist): Remove extra backslash
36837         in sed_fff_filter definition.
36838
36839 2009-01-02  Jim Meyering  <meyering@redhat.com>
36840
36841         strftime: avoid compilation failure on Solaris 2.6
36842         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36843         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36844         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36845         be available.  Reported by Tom G. Christensen.  Details in
36846         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36847
36848 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36849             Bruno Haible  <bruno@clisp.org>
36850
36851         Speed up gnulib-tool by doing more string processing through shell
36852         built-ins.
36853         * gnulib-tool (fast_func_append): New variable.
36854         (func_remove_prefix, func_remove_suffix): New functions.
36855         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36856         (func_filter_filelist): New function.
36857         (func_get_dependencies): Use func_remove_suffix instead of sed.
36858         (func_get_automake_snippet): Use func_filter_filelist instead of a
36859         subshell and sed invocation.
36860
36861 2009-01-01  Bruno Haible  <bruno@clisp.org>
36862
36863         Fix a security bug.
36864         * gnulib-tool (func_import, import, update): Don't allow the characters
36865         '"', '$', '`', '\' in macro arguments that become part of commands that
36866         are evaluated.
36867
36868 2009-01-01  Bruno Haible  <bruno@clisp.org>
36869
36870         * gnulib-tool (func_reset_sigpipe): Add more comments.
36871
36872 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36873
36874         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36875         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36876         already know the answer.
36877
36878 2009-01-01  Jim Meyering  <meyering@redhat.com>
36879
36880         * lib/version-etc.c (version_etc_va): Update copyright year.
36881
36882 2008-12-30  Bruno Haible  <bruno@clisp.org>
36883
36884         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36885         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36886         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36887
36888 2008-12-29  Eric Blake  <ebb9@byu.net>
36889
36890         multiarch: avoid autoconf AC_REQUIRE bug
36891         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36892         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36893         2.63 and older.
36894         Reported by Bruno Haible, and analyzed in
36895         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36896
36897 2008-12-29  Bruno Haible  <bruno@clisp.org>
36898
36899         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36900         files in subdirectories correctly.
36901         Reported by Ralf Wildenhues.
36902
36903 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36904
36905         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36906         rather than 'join FILE -', for Solaris join.
36907
36908 2008-12-29  Bruno Haible  <bruno@clisp.org>
36909
36910         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36911         quoting.
36912         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36913         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36914         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36915         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36916         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36917         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36918         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36919         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36920         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36921         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36922         * m4/nls.m4 (AM_NLS): Likewise.
36923         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36924         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36925         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36926         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36927         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36928         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36929         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36930         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36931         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36932         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36933         * m4/xsize.m4 (gl_XSIZE): Likewise.
36934         Suggested by Jim Meyering.
36935
36936 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36937
36938         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36939         * lib/parse-duration.c: use a switch instead of cascading if's.
36940
36941 2008-12-29  Eric Blake  <ebb9@byu.net>
36942
36943         wchar.h: supply WEOF on Irix 5.3
36944         * lib/wchar.in.h (wint_t): Also supply WEOF.
36945         * lib/wctype.in.h (wint_t): Likewise.
36946         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36947         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36948         Reported by Tom G. Christensen.
36949
36950 2008-12-26  Bruno Haible  <bruno@clisp.org>
36951
36952         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36953         i486, i586, i686.
36954
36955 2008-12-26  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36958
36959 2008-12-26  Bruno Haible  <bruno@clisp.org>
36960
36961         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36962         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36963         not __STDC_CONSTANT_MACROS.
36964         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36965
36966 2008-12-25  Bruno Haible  <bruno@clisp.org>
36967
36968         Add support for universal builds to vasnprintf.
36969         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36970         universal builds, guess no.
36971         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36972         * modules/vasprintf-posix (Depends-on): Likewise.
36973         * modules/fprintf-posix (Depends-on): Likewise.
36974         * modules/vfprintf-posix (Depends-on): Likewise.
36975         * modules/snprintf-posix (Depends-on): Likewise.
36976         * modules/vsnprintf-posix (Depends-on): Likewise.
36977         * modules/sprintf-posix (Depends-on): Likewise.
36978         * modules/vsprintf-posix (Depends-on): Likewise.
36979         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36980         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36981         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36982         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36983         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36984         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36985         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36986
36987         Add support for universal builds to <inttypes.h>.
36988         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36989         _SCNu64_PREFIX): In Apple
36990         universal builds, define directly, using _LP64.
36991         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36992         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36993         * modules/inttypes (Depends-on): Add multiarch.
36994         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36995
36996         Add support for universal builds to <stdint.h>.
36997         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36998         universal builds, define directly, using _LP64.
36999         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37000         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37001         and size_t.
37002         * modules/stdint (Depends-on): Add multiarch.
37003         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37004
37005         New module 'multiarch'.
37006         * modules/multiarch: New file.
37007         * m4/multiarch.m4: New file.
37008
37009 2008-12-25  Bruno Haible  <bruno@clisp.org>
37010
37011         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37012
37013 2008-12-25  Bruno Haible  <bruno@clisp.org>
37014
37015         * modules/btowc (License): Relicense under LGPLv2+.
37016         * modules/mbsinit (License): Likewise.
37017         * modules/mbrtowc (License): Likewise.
37018         * modules/wcrtomb (License): Likewise.
37019         * modules/streq (License): Likewise.
37020         Reported by David Lutterkort <lutter@redhat.com>.
37021
37022 2008-12-23  Bruno Haible  <bruno@clisp.org>
37023
37024         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37025
37026 2008-12-23  Bruno Haible  <bruno@clisp.org>
37027
37028         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37030         GETADDRINFO_LIB, not in LIBS.
37031         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37032         * modules/canon-host (Link): Likewise.
37033         * NEWS: Mention the change.
37034         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37035         GETADDRINFO_LIB.
37036
37037 2008-12-22  Bruno Haible  <bruno@clisp.org>
37038
37039         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37040         * doc/posix-functions/iswalpha_l.texi: Likewise.
37041         * doc/posix-functions/iswblank_l.texi: Likewise.
37042         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37043         * doc/posix-functions/iswctype_l.texi: Likewise.
37044         * doc/posix-functions/iswdigit_l.texi: Likewise.
37045         * doc/posix-functions/iswgraph_l.texi: Likewise.
37046         * doc/posix-functions/iswlower_l.texi: Likewise.
37047         * doc/posix-functions/iswprint_l.texi: Likewise.
37048         * doc/posix-functions/iswpunct_l.texi: Likewise.
37049         * doc/posix-functions/iswspace_l.texi: Likewise.
37050         * doc/posix-functions/iswupper_l.texi: Likewise.
37051         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37052         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37053         * doc/posix-functions/open_wmemstream.texi: Likewise.
37054         * doc/posix-functions/swscanf.texi: Likewise.
37055         * doc/posix-functions/towctrans_l.texi: Likewise.
37056         * doc/posix-functions/towlower.texi: Likewise.
37057         * doc/posix-functions/towlower_l.texi: Likewise.
37058         * doc/posix-functions/towupper.texi: Likewise.
37059         * doc/posix-functions/towupper_l.texi: Likewise.
37060         * doc/posix-functions/vfwprintf.texi: Likewise.
37061         * doc/posix-functions/vfwscanf.texi: Likewise.
37062         * doc/posix-functions/vswscanf.texi: Likewise.
37063         * doc/posix-functions/vwprintf.texi: Likewise.
37064         * doc/posix-functions/vwscanf.texi: Likewise.
37065         * doc/posix-functions/wcpcpy.texi: Likewise.
37066         * doc/posix-functions/wcpncpy.texi: Likewise.
37067         * doc/posix-functions/wcscasecmp.texi: Likewise.
37068         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37069         * doc/posix-functions/wcscoll_l.texi: Likewise.
37070         * doc/posix-functions/wcsdup.texi: Likewise.
37071         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37072         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37073         * doc/posix-functions/wcsnlen.texi: Likewise.
37074         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37075         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37076         * doc/posix-functions/wctrans_l.texi: Likewise.
37077         * doc/posix-functions/wctype_l.texi: Likewise.
37078         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37079         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37080         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37081         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37082         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37083         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37084         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37085         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37086         * doc/glibc-functions/wcschrnul.texi: Likewise.
37087         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37088         * doc/glibc-functions/wcstod_l.texi: Likewise.
37089         * doc/glibc-functions/wcstof_l.texi: Likewise.
37090         * doc/glibc-functions/wcstol_l.texi: Likewise.
37091         * doc/glibc-functions/wcstold_l.texi: Likewise.
37092         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37093         * doc/glibc-functions/wcstoq.texi: Likewise.
37094         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37095         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37096         * doc/glibc-functions/wcstouq.texi: Likewise.
37097         * doc/glibc-functions/wmempcpy.texi: Likewise.
37098
37099 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37100             Eric Blake  <ebb9@byu.net>
37101             Paolo Bonzini  <bonzini@gnu.org>
37102             Bruno Haible  <bruno@clisp.org>
37103
37104         Make c-stack work on Haiku.
37105         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37106         (c_stack_action): Use SA_ONSTACK flag.
37107
37108 2008-12-22  Bruno Haible  <bruno@clisp.org>
37109
37110         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37111
37112 2008-12-22  Bruno Haible  <bruno@clisp.org>
37113
37114         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37115         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37116         being overridden.
37117         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37118         New macros.
37119         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37121         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37122         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37123
37124 2008-12-22  Bruno Haible  <bruno@clisp.org>
37125
37126         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37127         from test code.
37128
37129 2008-12-22  Eric Blake  <ebb9@byu.net>
37130
37131         Avoid gcc warnings on cygwin.
37132         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37133         Avoid unused variable.
37134         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37135         Likewise.
37136
37137 2008-12-22  Bruno Haible  <bruno@clisp.org>
37138
37139         Remove HAVE_MBRTOWC conditionals.
37140         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37141         (mbscasecmp): Assume mbrtowc function.
37142         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37143         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37144         * lib/mbschr.c: Include mbuiter.h unconditionally.
37145         (mbschr): Assume mbrtowc function.
37146         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37147         (mbscspn): Assume mbrtowc function.
37148         * lib/mbslen.c: Include mbuiter.h unconditionally.
37149         (mbslen): Assume mbrtowc function.
37150         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37151         (mbsncasecmp): Assume mbrtowc function.
37152         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37153         (mbsnlen): Assume mbrtowc function.
37154         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37155         (mbspbrk): Assume mbrtowc function.
37156         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37157         (mbspcasecmp): Assume mbrtowc function.
37158         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37159         (mbsrchr): Assume mbrtowc function.
37160         * lib/mbssep.c: Include mbuiter.h unconditionally.
37161         (mbssep): Assume mbrtowc function.
37162         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37163         (mbsspn): Assume mbrtowc function.
37164         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37165         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37166         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37167         (mbstok_r): Assume mbrtowc function.
37168         * lib/propername.c: Include mbuiter.h unconditionally.
37169         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37170         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37171         (trim2): Assume mbrtowc function.
37172         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37173         (mbsnwidth): Assume mbrtowc function.
37174         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37175         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37176         fallback definitions.
37177         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37178
37179 2008-12-22  Bruno Haible  <bruno@clisp.org>
37180
37181         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37182
37183 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37184
37185         * modules/regex: Request emulations for the mb*/wc* functions we need.
37186         * m4/regex.m4: Don't look for those functions here.
37187         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37188
37189 2008-12-22  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37192
37193 2008-12-21  Bruno Haible  <bruno@clisp.org>
37194
37195         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37196         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37197         (Include): Remove conditionalization.
37198         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37199         (Include): Remove conditionalization.
37200         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37201         (Include): Remove conditionalization.
37202         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37203         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37204         * NEWS: Mention the change.
37205         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37206         via Sergey Poznyakoff <gray@gnu.org.ua>.
37207
37208 2008-12-21  Bruno Haible  <bruno@clisp.org>
37209
37210         * MODULES.html.sh (Extended multibyte and wide character utilities
37211         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37212         wcrtomb, wcsrtombs.
37213         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37214         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37215         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37216         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37217
37218 2008-12-21  Bruno Haible  <bruno@clisp.org>
37219
37220         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37221
37222 2008-12-21  Bruno Haible  <bruno@clisp.org>
37223
37224         * modules/wcsnrtombs-tests: New file.
37225         * tests/test-wcsnrtombs1.sh: New file.
37226         * tests/test-wcsnrtombs2.sh: New file.
37227         * tests/test-wcsnrtombs3.sh: New file.
37228         * tests/test-wcsnrtombs4.sh: New file.
37229         * tests/test-wcsnrtombs.c: New file.
37230
37231         New module 'wcsnrtombs'.
37232         * lib/wchar.in.h (wcsnrtombs): New declaration.
37233         * lib/wcsnrtombs.c: New file.
37234         * lib/wcsrtombs-state.c: New file.
37235         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37236         (internal_state): Remove variable.
37237         * m4/wcsnrtombs.m4: New file.
37238         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37239         compilation units.
37240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37241         HAVE_WCSNRTOMBS.
37242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37243         HAVE_WCSNRTOMBS.
37244         * modules/wcsnrtombs: New file.
37245         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37246         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37247
37248 2008-12-21  Bruno Haible  <bruno@clisp.org>
37249
37250         * modules/wcsrtombs-tests: New file.
37251         * tests/test-wcsrtombs1.sh: New file.
37252         * tests/test-wcsrtombs2.sh: New file.
37253         * tests/test-wcsrtombs3.sh: New file.
37254         * tests/test-wcsrtombs4.sh: New file.
37255         * tests/test-wcsrtombs.c: New file.
37256
37257         New module 'wcsrtombs'.
37258         * lib/wchar.in.h (wcsrtombs): New declaration.
37259         * lib/wcsrtombs.c: New file.
37260         * m4/wcsrtombs.m4: New file.
37261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37262         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37264         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37265         * modules/wcsrtombs: New file.
37266         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37267         bugs.
37268
37269 2008-12-21  Bruno Haible  <bruno@clisp.org>
37270
37271         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37272         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37274         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37275         if not correct.
37276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37277         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37278         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37279         m4/locale-zh.m4, m4/codeset.m4.
37280         * doc/posix-functions/wcrtomb.texi: Document the bug.
37281
37282 2008-12-21  Bruno Haible  <bruno@clisp.org>
37283
37284         Work around a btowc() bug on IRIX 6.5.
37285         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37286         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37287         REPLACE_WTOBC if not.
37288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37289         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37290         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37291
37292 2008-12-21  Bruno Haible  <bruno@clisp.org>
37293
37294         * modules/wcrtomb-tests: New file.
37295         * tests/test-wcrtomb.sh: New file.
37296         * tests/test-wcrtomb.c: New file.
37297
37298         New module 'wcrtomb'.
37299         * lib/wchar.in.h (wcrtomb): New declaration.
37300         * lib/wcrtomb.c: New file.
37301         * m4/wcrtomb.m4: New file.
37302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37303         HAVE_WCRTOMB.
37304         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37305         HAVE_WCRTOMB.
37306         * modules/wcrtomb: New file.
37307         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37308
37309 2008-12-21  Bruno Haible  <bruno@clisp.org>
37310
37311         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37312         * modules/mbsrtowcs (Files): Likewise.
37313         * modules/wctob (Files): Likewise.
37314         * modules/c-strcase-tests (Files): Likewise.
37315         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37316         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37317         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37318         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37319         * modules/vasnprintf-posix-tests (Files): Likewise.
37320
37321 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37322
37323         gitlog-to-changelog: pass all command-line arguments to git-log
37324         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37325         it is sometimes convenient to filter the commits in various ways.
37326         gitlog-to-changelog only allows --since to specify a start date,
37327         but git-log itself supports many other filtering mechanisms.
37328         At the moment, I want to filter by branch name.  Rather than
37329         adding a --branch option to gitlog-to-changelog, it seems more
37330         flexible to simply pass all options directly to git-log and let
37331         git do the work.  Notice that this effectively makes --since a
37332         redundant option for gitlog-to-changelog, but removing it would
37333         require current usage to change since calls would then require
37334         an additional '--'.
37335
37336 2008-12-21  Bruno Haible  <bruno@clisp.org>
37337
37338         * modules/mbsnrtowcs-tests: New file.
37339         * tests/test-mbsnrtowcs1.sh: New file.
37340         * tests/test-mbsnrtowcs2.sh: New file.
37341         * tests/test-mbsnrtowcs3.sh: New file.
37342         * tests/test-mbsnrtowcs4.sh: New file.
37343         * tests/test-mbsnrtowcs.c: New file.
37344
37345         New module 'mbsnrtowcs'.
37346         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37347         * lib/mbsnrtowcs.c: New file.
37348         * lib/mbsrtowcs-state.c: New file.
37349         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37350         (internal_state): Remove variable.
37351         * m4/mbsnrtowcs.m4: New file.
37352         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37353         compilation units.
37354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37355         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37356         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37357         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37358         * modules/mbsnrtowcs: New file.
37359         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37360         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37361         portability problem.
37362
37363 2008-12-21  Bruno Haible  <bruno@clisp.org>
37364
37365         Work around mbsrtowcs bug.
37366         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37367         (gl_FUNC_MBSRTOWCS): Invoke it.
37368         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37369         m4/locale-zh.m4.
37370         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37371
37372 2008-12-21  Bruno Haible  <bruno@clisp.org>
37373
37374         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37375
37376 2008-12-21  Bruno Haible  <bruno@clisp.org>
37377
37378         Update doc for AIX.
37379         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37380         16-bit wchar_t type.
37381         * doc/posix-functions/btowc.texi: Likewise.
37382         * doc/posix-functions/fgetwc.texi: Likewise.
37383         * doc/posix-functions/fgetws.texi: Likewise.
37384         * doc/posix-functions/fputwc.texi: Likewise.
37385         * doc/posix-functions/fputws.texi: Likewise.
37386         * doc/posix-functions/fwide.texi: Likewise.
37387         * doc/posix-functions/fwprintf.texi: Likewise.
37388         * doc/posix-functions/fwscanf.texi: Likewise.
37389         * doc/posix-functions/getwchar.texi: Likewise.
37390         * doc/posix-functions/getwc.texi: Likewise.
37391         * doc/posix-functions/iswalnum.texi: Likewise.
37392         * doc/posix-functions/iswalpha.texi: Likewise.
37393         * doc/posix-functions/iswblank.texi: Likewise.
37394         * doc/posix-functions/iswcntrl.texi: Likewise.
37395         * doc/posix-functions/iswctype.texi: Likewise.
37396         * doc/posix-functions/iswdigit.texi: Likewise.
37397         * doc/posix-functions/iswgraph.texi: Likewise.
37398         * doc/posix-functions/iswlower.texi: Likewise.
37399         * doc/posix-functions/iswprint.texi: Likewise.
37400         * doc/posix-functions/iswpunct.texi: Likewise.
37401         * doc/posix-functions/iswspace.texi: Likewise.
37402         * doc/posix-functions/iswupper.texi: Likewise.
37403         * doc/posix-functions/iswxdigit.texi: Likewise.
37404         * doc/posix-functions/mbrtowc.texi: Likewise.
37405         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37406         * doc/posix-functions/mbstowcs.texi: Likewise.
37407         * doc/posix-functions/mbtowc.texi: Likewise.
37408         * doc/posix-functions/putwchar.texi: Likewise.
37409         * doc/posix-functions/putwc.texi: Likewise.
37410         * doc/posix-functions/swprintf.texi: Likewise.
37411         * doc/posix-functions/tolower.texi: Likewise.
37412         * doc/posix-functions/toupper.texi: Likewise.
37413         * doc/posix-functions/towctrans.texi: Likewise.
37414         * doc/posix-functions/ungetwc.texi: Likewise.
37415         * doc/posix-functions/vswprintf.texi: Likewise.
37416         * doc/posix-functions/wcrtomb.texi: Likewise.
37417         * doc/posix-functions/wcscat.texi: Likewise.
37418         * doc/posix-functions/wcschr.texi: Likewise.
37419         * doc/posix-functions/wcscmp.texi: Likewise.
37420         * doc/posix-functions/wcscoll.texi: Likewise.
37421         * doc/posix-functions/wcscpy.texi: Likewise.
37422         * doc/posix-functions/wcscspn.texi: Likewise.
37423         * doc/posix-functions/wcsftime.texi: Likewise.
37424         * doc/posix-functions/wcslen.texi: Likewise.
37425         * doc/posix-functions/wcsncat.texi: Likewise.
37426         * doc/posix-functions/wcsncmp.texi: Likewise.
37427         * doc/posix-functions/wcsncpy.texi: Likewise.
37428         * doc/posix-functions/wcspbrk.texi: Likewise.
37429         * doc/posix-functions/wcsrchr.texi: Likewise.
37430         * doc/posix-functions/wcsrtombs.texi: Likewise.
37431         * doc/posix-functions/wcsspn.texi: Likewise.
37432         * doc/posix-functions/wcsstr.texi: Likewise.
37433         * doc/posix-functions/wcstod.texi: Likewise.
37434         * doc/posix-functions/wcstof.texi: Likewise.
37435         * doc/posix-functions/wcstoimax.texi: Likewise.
37436         * doc/posix-functions/wcstok.texi: Likewise.
37437         * doc/posix-functions/wcstold.texi: Likewise.
37438         * doc/posix-functions/wcstoll.texi: Likewise.
37439         * doc/posix-functions/wcstol.texi: Likewise.
37440         * doc/posix-functions/wcstombs.texi: Likewise.
37441         * doc/posix-functions/wcstoull.texi: Likewise.
37442         * doc/posix-functions/wcstoul.texi: Likewise.
37443         * doc/posix-functions/wcstoumax.texi: Likewise.
37444         * doc/posix-functions/wcswidth.texi: Likewise.
37445         * doc/posix-functions/wcsxfrm.texi: Likewise.
37446         * doc/posix-functions/wctob.texi: Likewise.
37447         * doc/posix-functions/wctomb.texi: Likewise.
37448         * doc/posix-functions/wctrans.texi: Likewise.
37449         * doc/posix-functions/wctype.texi: Likewise.
37450         * doc/posix-functions/wcwidth.texi: Likewise.
37451         * doc/posix-functions/wmemchr.texi: Likewise.
37452         * doc/posix-functions/wmemcmp.texi: Likewise.
37453         * doc/posix-functions/wmemcpy.texi: Likewise.
37454         * doc/posix-functions/wmemmove.texi: Likewise.
37455         * doc/posix-functions/wmemset.texi: Likewise.
37456         * doc/posix-functions/wprintf.texi: Likewise.
37457         * doc/posix-functions/wscanf.texi: Likewise.
37458
37459 2008-12-21  Bruno Haible  <bruno@clisp.org>
37460
37461         Update doc for HP-UX 11.11.
37462         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37463         in HP-UX version 11.00, not in all versions of HP-UX 11.
37464         * doc/posix-functions/fwide.texi: Likewise.
37465         * doc/posix-functions/fwprintf.texi: Likewise.
37466         * doc/posix-functions/fwscanf.texi: Likewise.
37467         * doc/posix-functions/inet_ntop.texi: Likewise.
37468         * doc/posix-functions/inet_pton.texi: Likewise.
37469         * doc/posix-functions/mbrlen.texi: Likewise.
37470         * doc/posix-functions/mbrtowc.texi: Likewise.
37471         * doc/posix-functions/mbsinit.texi: Likewise.
37472         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37473         * doc/posix-functions/swprintf.texi: Likewise.
37474         * doc/posix-functions/swscanf.texi: Likewise.
37475         * doc/posix-functions/towctrans.texi: Likewise.
37476         * doc/posix-functions/vfwprintf.texi: Likewise.
37477         * doc/posix-functions/vswprintf.texi: Likewise.
37478         * doc/posix-functions/vwprintf.texi: Likewise.
37479         * doc/posix-functions/wcrtomb.texi: Likewise.
37480         * doc/posix-functions/wcsrtombs.texi: Likewise.
37481         * doc/posix-functions/wcsstr.texi: Likewise.
37482         * doc/posix-functions/wctob.texi: Likewise.
37483         * doc/posix-functions/wctrans.texi: Likewise.
37484         * doc/posix-functions/wmemchr.texi: Likewise.
37485         * doc/posix-functions/wmemcmp.texi: Likewise.
37486         * doc/posix-functions/wmemcpy.texi: Likewise.
37487         * doc/posix-functions/wmemmove.texi: Likewise.
37488         * doc/posix-functions/wmemset.texi: Likewise.
37489         * doc/posix-functions/wprintf.texi: Likewise.
37490         * doc/posix-functions/wscanf.texi: Likewise.
37491
37492 2008-12-21  Bruno Haible  <bruno@clisp.org>
37493
37494         Work around a portability problem.
37495         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37496         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37497
37498 2008-12-20  Bruno Haible  <bruno@clisp.org>
37499
37500         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37501         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37502         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37504         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37505
37506         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37507         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37508         set.
37509         (GNULIB_defined_mbstate_t): New macro.
37510         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37511         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37512         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37513         reuses the system's mbrtowc function but works around the bugs.
37514         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37515         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37516         macros.
37517         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37518         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37519         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37520         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37521         REPLACE_MBSINIT if mbsinit needs to be overridden.
37522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37523         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37524         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37525         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37526         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37527         m4/locale-zh.m4.
37528         (Depends): Add mbsinit.
37529         * modules/mbsinit (Depends): Add mbrtowc.
37530         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37531
37532 2008-12-20  Bruno Haible  <bruno@clisp.org>
37533
37534         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37535         so that there are no conversion errors on AIX.
37536         * tests/test-mbsrtowcs.c (main): LIkewise.
37537
37538 2008-12-20  Bruno Haible  <bruno@clisp.org>
37539
37540         Work around wctob bug on Solaris <= 9.
37541         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37542         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37544         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37545         * modules/wctob (Files): Add m4/locale-fr.m4.
37546         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37547
37548 2008-12-20  Bruno Haible  <bruno@clisp.org>
37549
37550         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37551         /dev/null.
37552         * tests/test-select-in.sh: Likewise.
37553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37554
37555 2008-12-20  Bruno Haible  <bruno@clisp.org>
37556
37557         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37558         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37559         Cygwin 1.5.x.
37560
37561 2008-12-20  Bruno Haible  <bruno@clisp.org>
37562
37563         Ensure mbstate_t is defined on HP-UX 11.11.
37564         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37565         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37566         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37567         AC_USE_SYSTEM_EXTENSIONS.
37568         * modules/fnmatch (Depends-on): Add extensions.
37569         * modules/mbrlen (Depends-on): Likewise.
37570         * modules/mbrtowc (Depends-on): Likewise.
37571         * modules/mbsinit (Depends-on): Likewise.
37572         * modules/mbsrtowcs (Depends-on): Likewise.
37573         * modules/mbswidth (Depends-on): Likewise.
37574         * modules/quotearg (Depends-on): Likewise.
37575         * modules/strftime (Depends-on): Likewise.
37576
37577 2008-12-20  Bruno Haible  <bruno@clisp.org>
37578
37579         Ensure wctob is declared on IRIX 6.5.
37580         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37581         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37582         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37584         of HAVE_WCTOB.
37585         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37586         HAVE_WCTOB.
37587         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37588
37589 2008-12-19  Bruno Haible  <bruno@clisp.org>
37590
37591         * modules/mbsrtowcs-tests: New file.
37592         * tests/test-mbsrtowcs1.sh: New file.
37593         * tests/test-mbsrtowcs2.sh: New file.
37594         * tests/test-mbsrtowcs3.sh: New file.
37595         * tests/test-mbsrtowcs4.sh: New file.
37596         * tests/test-mbsrtowcs.c: New file.
37597
37598         New module 'mbsrtowcs'.
37599         * lib/wchar.in.h (mbsrtowcs): New declaration.
37600         * lib/mbsrtowcs.c: New file.
37601         * m4/mbsrtowcs.m4: New file.
37602         * modules/mbsrtowcs: New file.
37603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37604         HAVE_MBSRTOWCS.
37605         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37606         HAVE_MBSRTOWCS.
37607         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37608
37609 2008-12-19  Bruno Haible  <bruno@clisp.org>
37610
37611         New module 'mbrlen'.
37612         * lib/wchar.in.h (mbrlen): New declaration.
37613         * lib/mbrlen.c: New file.
37614         * m4/mbrlen.m4: New file.
37615         * modules/mbrlen: New file.
37616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37617         HAVE_MBRLEN.
37618         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37619         HAVE_MBRLEN.
37620         * doc/posix-functions/mbrlen.texi: Document the new module.
37621
37622 2008-12-19  Bruno Haible  <bruno@clisp.org>
37623
37624         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37625         * modules/mbrtowc (Depends-on): Add verify.
37626         Suggested by Paul Eggert.
37627
37628 2008-12-18  Bruno Haible  <bruno@clisp.org>
37629
37630         * modules/mbsinit-tests: New file.
37631         * tests/test-mbsinit.sh: New file.
37632         * tests/test-mbsinit.c: New file.
37633
37634 2008-12-18  Bruno Haible  <bruno@clisp.org>
37635
37636         * modules/mbrtowc-tests: New file.
37637         * tests/test-mbrtowc1.sh: New file.
37638         * tests/test-mbrtowc2.sh: New file.
37639         * tests/test-mbrtowc3.sh: New file.
37640         * tests/test-mbrtowc4.sh: New file.
37641         * tests/test-mbrtowc.c: New file.
37642
37643         New module 'mbrtowc'.
37644         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37645         mbsinit and mbrtowc.
37646         (mbrtowc): New declaration.
37647         * lib/mbrtowc.c: New file.
37648         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37649         * modules/mbrtowc: New file.
37650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37651         HAVE_MBRTOWC.
37652         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37653         HAVE_MBRTOWC.
37654         * doc/posix-functions/mbrtowc.texi: Document the new module.
37655
37656 2008-12-18  Bruno Haible  <bruno@clisp.org>
37657
37658         New module 'wctob'.
37659         * lib/wchar.in.h (wctob): New declaration.
37660         * lib/wctob.c: New file.
37661         * m4/wctob.m4: New file.
37662         * modules/wctob: New file.
37663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37664         HAVE_WCTOB.
37665         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37666         * doc/posix-functions/wctob.texi: Document the new module.
37667
37668 2008-12-18  Bruno Haible  <bruno@clisp.org>
37669
37670         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37671         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37672
37673 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37674
37675         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37676         G. Christensen" <tgc@jupiterrise.com>.
37677
37678         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37679         G. Christensen" <tgc@jupiterrise.com>.
37680
37681         * lib/flock.c: Need to include string.h.  Reported by "Tom
37682         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37683         <ebb9@byu.net>.
37684
37685 2008-12-18  Bruno Haible  <bruno@clisp.org>
37686
37687         * m4/locale-ja.m4: New file, from GNU gettext.
37688
37689 2008-12-17  Bruno Haible  <bruno@clisp.org>
37690
37691         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37692         Suggested by Eric Blake.
37693
37694 2008-12-17  Bruno Haible  <bruno@clisp.org>
37695
37696         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37697
37698 2008-12-17  Bruno Haible  <bruno@clisp.org>
37699
37700         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37701         * modules/mbsinit (Depends-on): Add verify.
37702         Suggested by Paul Eggert.
37703
37704 2008-12-17  Bruno Haible  <bruno@clisp.org>
37705
37706         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37707         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37708         gl_FUNC_MBRTOWC.
37709         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37710         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37711         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37712         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37713         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37714         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37715         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37716         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37717         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37718         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37719         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37720         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37721         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37722         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37723         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37724         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37725         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37726         * modules/trim (configure.ac): Likewise.
37727
37728 2008-12-17  Bruno Haible  <bruno@clisp.org>
37729
37730         * modules/btowc-tests: New file.
37731         * tests/test-btowc1.sh: New file.
37732         * tests/test-btowc2.sh: New file.
37733         * tests/test-btowc.c: New file.
37734
37735         New module 'btowc'.
37736         * lib/wchar.in.h (btowc): New declaration.
37737         * lib/btowc.c: New file.
37738         * m4/btowc.m4: New file.
37739         * modules/btowc: New file.
37740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37741         HAVE_BTOWC.
37742         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37743         * doc/posix-functions/btowc.texi: Document the new module.
37744
37745 2008-12-17  Bruno Haible  <bruno@clisp.org>
37746
37747         New module 'mbsinit'.
37748         * lib/wchar.in.h (mbsinit): New declaration.
37749         * lib/mbsinit.c: New file.
37750         * m4/mbsinit.m4: New file.
37751         * modules/mbsinit: New file.
37752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37753         HAVE_MBSINIT.
37754         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37755         HAVE_MBSINIT.
37756         * doc/posix-functions/mbsinit.texi: Document the new module.
37757
37758 2008-12-16  Bruno Haible  <bruno@clisp.org>
37759
37760         * lib/unistd.in.h: Add comment.
37761         * tests/test-environ.c: Don't include <stdlib.h>.
37762
37763 2008-12-16  Bruno Haible  <bruno@clisp.org>
37764
37765         * lib/parse-duration.h (parse_duration): Document return value
37766         convention.
37767         * lib/parse-duration.c: Include specification header first. Add
37768         comments.
37769         (_): Remove macro.
37770         (parse_year_month_day, parse_hour_minute_second): Move side effects
37771         outside of strchr call.
37772         (parse_non_iso8601): Move side effects outside of isspace call.
37773         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37774         call.
37775
37776 2008-12-16  Bruno Haible  <bruno@clisp.org>
37777
37778         * tests/test-parse-duration.sh: Produce no output when the test
37779         succeeds.
37780
37781 2008-12-16  Bruno Haible  <bruno@clisp.org>
37782
37783         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37784         expressions.
37785
37786 2008-12-15  Bruno Haible  <bruno@clisp.org>
37787
37788         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37789         * doc/glibc-functions/flistxattr.texi: Likewise.
37790         * doc/glibc-functions/fopencookie.texi: Likewise.
37791         * doc/glibc-functions/fremovexattr.texi: Likewise.
37792         * doc/glibc-functions/fsetxattr.texi: Likewise.
37793         * doc/glibc-functions/getxattr.texi: Likewise.
37794         * doc/glibc-functions/lgetxattr.texi: Likewise.
37795         * doc/glibc-functions/listxattr.texi: Likewise.
37796         * doc/glibc-functions/llistxattr.texi: Likewise.
37797         * doc/glibc-functions/lremovexattr.texi: Likewise.
37798         * doc/glibc-functions/lsetxattr.texi: Likewise.
37799         * doc/glibc-functions/removexattr.texi: Likewise.
37800         * doc/glibc-functions/setxattr.texi: Likewise.
37801         * doc/posix-functions/open_memstream.texi: Likewise.
37802
37803 2008-12-15  Eric Blake  <ebb9@byu.net>
37804
37805         Update doc for cygwin 1.7.
37806         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37807         functions.
37808         * doc/posix-functions/fchmodat.texi: Likewise.
37809         * doc/posix-functions/fchownat.texi: Likewise.
37810         * doc/posix-functions/fdopendir.texi: Likewise.
37811         * doc/posix-functions/fmemopen.texi: Likewise.
37812         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37813         * doc/posix-functions/fstatat.texi: Likewise.
37814         * doc/posix-functions/futimens.texi: Likewise.
37815         * doc/posix-functions/gai_strerror.texi: Likewise.
37816         * doc/posix-functions/getaddrinfo.texi: Likewise.
37817         * doc/posix-functions/getnameinfo.texi: Likewise.
37818         * doc/posix-functions/if_freenameindex.texi: Likewise.
37819         * doc/posix-functions/if_indextoname.texi: Likewise.
37820         * doc/posix-functions/if_nameindex.texi: Likewise.
37821         * doc/posix-functions/if_nametoindex.texi: Likewise.
37822         * doc/posix-functions/insque.texi: Likewise.
37823         * doc/posix-functions/linkat.texi: Likewise.
37824         * doc/posix-functions/llrint.texi: Likewise.
37825         * doc/posix-functions/llrintf.texi: Likewise.
37826         * doc/posix-functions/llrintl.texi: Likewise.
37827         * doc/posix-functions/lockf.texi: Likewise.
37828         * doc/posix-functions/lrintl.texi: Likewise.
37829         * doc/posix-functions/mkdirat.texi: Likewise.
37830         * doc/posix-functions/mkfifoat.texi: Likewise.
37831         * doc/posix-functions/mknodat.texi: Likewise.
37832         * doc/posix-functions/mq_close.texi: Likewise.
37833         * doc/posix-functions/mq_getattr.texi: Likewise.
37834         * doc/posix-functions/mq_notify.texi: Likewise.
37835         * doc/posix-functions/mq_open.texi: Likewise.
37836         * doc/posix-functions/mq_receive.texi: Likewise.
37837         * doc/posix-functions/mq_send.texi: Likewise.
37838         * doc/posix-functions/mq_setattr.texi: Likewise.
37839         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37840         * doc/posix-functions/mq_timedsend.texi: Likewise.
37841         * doc/posix-functions/mq_unlink.texi: Likewise.
37842         * doc/posix-functions/open_memstream.texi: Likewise.
37843         * doc/posix-functions/openat.texi: Likewise.
37844         * doc/posix-functions/posix_fadvise.texi: Likewise.
37845         * doc/posix-functions/posix_fallocate.texi: Likewise.
37846         * doc/posix-functions/posix_madvise.texi: Likewise.
37847         * doc/posix-functions/posix_memalign.texi: Likewise.
37848         * doc/posix-functions/posix_openpt.texi: Likewise.
37849         * doc/posix-functions/readlinkat.texi: Likewise.
37850         * doc/posix-functions/remque.texi: Likewise.
37851         * doc/posix-functions/renameat.texi: Likewise.
37852         * doc/posix-functions/rintl.texi: Likewise.
37853         * doc/posix-functions/sem_unlink.texi: Likewise.
37854         * doc/posix-functions/shm_open.texi: Likewise.
37855         * doc/posix-functions/shm_unlink.texi: Likewise.
37856         * doc/posix-functions/signgam.texi: Likewise.
37857         * doc/posix-functions/sigset.texi: Likewise.
37858         * doc/posix-functions/stpcpy.texi: Likewise.
37859         * doc/posix-functions/stpncpy.texi: Likewise.
37860         * doc/posix-functions/strerror.texi: Likewise.
37861         * doc/posix-functions/strtod.texi: Likewise.
37862         * doc/posix-functions/symlinkat.texi: Likewise.
37863         * doc/posix-functions/unlinkat.texi: Likewise.
37864         * doc/posix-functions/utimensat.texi: Likewise.
37865         * doc/glibc-functions/bindresvport.texi: Likewise.
37866         * doc/glibc-functions/dn_expand.texi: Likewise.
37867         * doc/glibc-functions/exp10.texi: Likewise.
37868         * doc/glibc-functions/exp10f.texi: Likewise.
37869         * doc/glibc-functions/fgetxattr.texi: Likewise.
37870         * doc/glibc-functions/flistxattr.texi: Likewise.
37871         * doc/glibc-functions/fopencookie.texi: Likewise.
37872         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37873         * doc/glibc-functions/fremovexattr.texi: Likewise.
37874         * doc/glibc-functions/fsetxattr.texi: Likewise.
37875         * doc/glibc-functions/getifaddrs.texi: Likewise.
37876         * doc/glibc-functions/getxattr.texi: Likewise.
37877         * doc/glibc-functions/lgetxattr.texi: Likewise.
37878         * doc/glibc-functions/listxattr.texi: Likewise.
37879         * doc/glibc-functions/llistxattr.texi: Likewise.
37880         * doc/glibc-functions/lremovexattr.texi: Likewise.
37881         * doc/glibc-functions/lsetxattr.texi: Likewise.
37882         * doc/glibc-functions/pow10.texi: Likewise.
37883         * doc/glibc-functions/pow10f.texi: Likewise.
37884         * doc/glibc-functions/rcmd_af.texi: Likewise.
37885         * doc/glibc-functions/removexattr.texi: Likewise.
37886         * doc/glibc-functions/res_init.texi: Likewise.
37887         * doc/glibc-functions/res_mkquery.texi: Likewise.
37888         * doc/glibc-functions/res_query.texi: Likewise.
37889         * doc/glibc-functions/res_querydomain.texi: Likewise.
37890         * doc/glibc-functions/res_send.texi: Likewise.
37891         * doc/glibc-functions/rresvport_af.texi: Likewise.
37892         * doc/glibc-functions/setxattr.texi: Likewise.
37893         * doc/glibc-functions/strcasestr.texi: Likewise.
37894
37895 2008-12-15  Bruno Haible  <bruno@clisp.org>
37896
37897         Fix compilation error on OSF/1 4.0.
37898         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37899         <sys/time.h>, simply delegate to the system header.
37900         Reported by Daniel Richard G. <oss@teragram.com>.
37901
37902 2008-12-15  Bruno Haible  <bruno@clisp.org>
37903
37904         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37905         * doc/posix-functions/fchmodat.texi: Likewise.
37906         * doc/posix-functions/fchownat.texi: Likewise.
37907         * doc/posix-functions/fdopendir.texi: Likewise.
37908         * doc/posix-functions/fstatat.texi: Likewise.
37909         * doc/posix-functions/mkdirat.texi: Likewise.
37910         * doc/posix-functions/unlinkat.texi: Likewise.
37911
37912 2008-12-14  Bruno Haible  <bruno@clisp.org>
37913
37914         Update doc for POSIX:2008.
37915         * doc/posix-functions/faccessat.texi: New file.
37916         * doc/posix-functions/fchmodat.texi: New file.
37917         * doc/posix-functions/fchownat.texi: New file.
37918         * doc/posix-functions/fdopendir.texi: New file.
37919         * doc/posix-functions/fstatat.texi: New file.
37920         * doc/posix-functions/futimens.texi: New file.
37921         * doc/posix-functions/linkat.texi: New file.
37922         * doc/posix-functions/mkdirat.texi: New file.
37923         * doc/posix-functions/mkfifoat.texi: New file.
37924         * doc/posix-functions/mknodat.texi: New file.
37925         * doc/posix-functions/open_wmemstream.texi: New file.
37926         * doc/posix-functions/openat.texi: New file.
37927         * doc/posix-functions/psiginfo.texi: New file.
37928         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37929         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37930         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37931         * doc/posix-functions/readlinkat.texi: New file.
37932         * doc/posix-functions/renameat.texi: New file.
37933         * doc/posix-functions/strerror_l.texi: New file.
37934         * doc/posix-functions/symlinkat.texi: New file.
37935         * doc/posix-functions/unlinkat.texi: New file.
37936         * doc/posix-functions/utimensat.texi: New file.
37937         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37938
37939 2008-12-14  Bruno Haible  <bruno@clisp.org>
37940
37941         Update doc for POSIX:2008.
37942         * doc/posix-functions/alphasort.texi: Renamed from
37943         doc/glibc-functions/alphasort.texi.
37944         * doc/posix-functions/dirfd.texi: Renamed from
37945         doc/glibc-functions/dirfd.texi.
37946         * doc/posix-functions/dprintf.texi: Renamed from
37947         doc/glibc-functions/dprintf.texi.
37948         * doc/posix-functions/duplocale.texi: Renamed from
37949         doc/glibc-functions/duplocale.texi.
37950         * doc/posix-functions/fexecve.texi: Renamed from
37951         doc/glibc-functions/fexecve.texi.
37952         * doc/posix-functions/fmemopen.texi: Renamed from
37953         doc/glibc-functions/fmemopen.texi.
37954         * doc/posix-functions/freelocale.texi: Renamed from
37955         doc/glibc-functions/freelocale.texi.
37956         * doc/posix-functions/getdate_err.texi: Renamed from
37957         doc/glibc-functions/getdate_err.texi.
37958         * doc/posix-functions/isalnum_l.texi: Renamed from
37959         doc/glibc-functions/isalnum_l.texi.
37960         * doc/posix-functions/isalpha_l.texi: Renamed from
37961         doc/glibc-functions/isalpha_l.texi.
37962         * doc/posix-functions/isblank_l.texi: Renamed from
37963         doc/glibc-functions/isblank_l.texi.
37964         * doc/posix-functions/iscntrl_l.texi: Renamed from
37965         doc/glibc-functions/iscntrl_l.texi.
37966         * doc/posix-functions/isdigit_l.texi: Renamed from
37967         doc/glibc-functions/isdigit_l.texi.
37968         * doc/posix-functions/isgraph_l.texi: Renamed from
37969         doc/glibc-functions/isgraph_l.texi.
37970         * doc/posix-functions/islower_l.texi: Renamed from
37971         doc/glibc-functions/islower_l.texi.
37972         * doc/posix-functions/isprint_l.texi: Renamed from
37973         doc/glibc-functions/isprint_l.texi.
37974         * doc/posix-functions/ispunct_l.texi: Renamed from
37975         doc/glibc-functions/ispunct_l.texi.
37976         * doc/posix-functions/isspace_l.texi: Renamed from
37977         doc/glibc-functions/isspace_l.texi.
37978         * doc/posix-functions/isupper_l.texi: Renamed from
37979         doc/glibc-functions/isupper_l.texi.
37980         * doc/posix-functions/iswalnum_l.texi: Renamed from
37981         doc/glibc-functions/iswalnum_l.texi.
37982         * doc/posix-functions/iswalpha_l.texi: Renamed from
37983         doc/glibc-functions/iswalpha_l.texi.
37984         * doc/posix-functions/iswblank_l.texi: Renamed from
37985         doc/glibc-functions/iswblank_l.texi.
37986         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37987         doc/glibc-functions/iswcntrl_l.texi.
37988         * doc/posix-functions/iswctype_l.texi: Renamed from
37989         doc/glibc-functions/iswctype_l.texi.
37990         * doc/posix-functions/iswdigit_l.texi: Renamed from
37991         doc/glibc-functions/iswdigit_l.texi.
37992         * doc/posix-functions/iswgraph_l.texi: Renamed from
37993         doc/glibc-functions/iswgraph_l.texi.
37994         * doc/posix-functions/iswlower_l.texi: Renamed from
37995         doc/glibc-functions/iswlower_l.texi.
37996         * doc/posix-functions/iswprint_l.texi: Renamed from
37997         doc/glibc-functions/iswprint_l.texi.
37998         * doc/posix-functions/iswpunct_l.texi: Renamed from
37999         doc/glibc-functions/iswpunct_l.texi.
38000         * doc/posix-functions/iswspace_l.texi: Renamed from
38001         doc/glibc-functions/iswspace_l.texi.
38002         * doc/posix-functions/iswupper_l.texi: Renamed from
38003         doc/glibc-functions/iswupper_l.texi.
38004         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38005         doc/glibc-functions/iswxdigit_l.texi.
38006         * doc/posix-functions/isxdigit_l.texi: Renamed from
38007         doc/glibc-functions/isxdigit_l.texi.
38008         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38009         doc/glibc-functions/mbsnrtowcs.texi.
38010         * doc/posix-functions/mkdtemp.texi: Renamed from
38011         doc/glibc-functions/mkdtemp.texi.
38012         * doc/posix-functions/newlocale.texi: Renamed from
38013         doc/glibc-functions/newlocale.texi.
38014         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38015         doc/glibc-functions/nl_langinfo_l.texi.
38016         * doc/posix-functions/open_memstream.texi: Renamed from
38017         doc/glibc-functions/open_memstream.texi.
38018         * doc/posix-functions/opterr.texi: Renamed from
38019         doc/glibc-functions/opterr.texi.
38020         * doc/posix-functions/optind.texi: Renamed from
38021         doc/glibc-functions/optind.texi.
38022         * doc/posix-functions/optopt.texi: Renamed from
38023         doc/glibc-functions/optopt.texi.
38024         * doc/posix-functions/psignal.texi: Renamed from
38025         doc/glibc-functions/psignal.texi.
38026         * doc/posix-functions/scandir.texi: Renamed from
38027         doc/glibc-functions/scandir.texi.
38028         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38029         doc/glibc-functions/sched_get_priority_min.texi.
38030         * doc/posix-functions/signgam.texi: Renamed from
38031         doc/glibc-functions/signgam.texi.
38032         * doc/posix-functions/stpcpy.texi: Renamed from
38033         doc/glibc-functions/stpcpy.texi.
38034         * doc/posix-functions/stpncpy.texi: Renamed from
38035         doc/glibc-functions/stpncpy.texi.
38036         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38037         doc/glibc-functions/strcasecmp_l.texi.
38038         * doc/posix-functions/strcoll_l.texi: Renamed from
38039         doc/glibc-functions/strcoll_l.texi.
38040         * doc/posix-functions/strfmon_l.texi: Renamed from
38041         doc/glibc-functions/strfmon_l.texi.
38042         * doc/posix-functions/strftime_l.texi: Renamed from
38043         doc/glibc-functions/strftime_l.texi.
38044         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38045         doc/glibc-functions/strncasecmp_l.texi.
38046         * doc/posix-functions/strndup.texi: Renamed from
38047         doc/glibc-functions/strndup.texi.
38048         * doc/posix-functions/strnlen.texi: Renamed from
38049         doc/glibc-functions/strnlen.texi.
38050         * doc/posix-functions/strsignal.texi: Renamed from
38051         doc/glibc-functions/strsignal.texi.
38052         * doc/posix-functions/strxfrm_l.texi: Renamed from
38053         doc/glibc-functions/strxfrm_l.texi.
38054         * doc/posix-functions/timer_gettime.texi: Renamed from
38055         doc/glibc-functions/timer_gettime.texi.
38056         * doc/posix-functions/tolower_l.texi: Renamed from
38057         doc/glibc-functions/tolower_l.texi.
38058         * doc/posix-functions/toupper_l.texi: Renamed from
38059         doc/glibc-functions/toupper_l.texi.
38060         * doc/posix-functions/towctrans_l.texi: Renamed from
38061         doc/glibc-functions/towctrans_l.texi.
38062         * doc/posix-functions/towlower_l.texi: Renamed from
38063         doc/glibc-functions/towlower_l.texi.
38064         * doc/posix-functions/towupper_l.texi: Renamed from
38065         doc/glibc-functions/towupper_l.texi.
38066         * doc/posix-functions/uselocale.texi: Renamed from
38067         doc/glibc-functions/uselocale.texi.
38068         * doc/posix-functions/vdprintf.texi: Renamed from
38069         doc/glibc-functions/vdprintf.texi.
38070         * doc/posix-functions/wcpcpy.texi:
38071         Renamed from doc/glibc-functions/wcpcpy.texi.
38072         * doc/posix-functions/wcpncpy.texi: Renamed from
38073         doc/glibc-functions/wcpncpy.texi.
38074         * doc/posix-functions/wcscasecmp.texi: Renamed from
38075         doc/glibc-functions/wcscasecmp.texi.
38076         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38077         doc/glibc-functions/wcscasecmp_l.texi.
38078         * doc/posix-functions/wcscoll_l.texi: Renamed from
38079         doc/glibc-functions/wcscoll_l.texi.
38080         * doc/posix-functions/wcsdup.texi: Renamed from
38081         doc/glibc-functions/wcsdup.texi.
38082         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38083         doc/glibc-functions/wcsncasecmp.texi.
38084         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38085         doc/glibc-functions/wcsncasecmp_l.texi.
38086         * doc/posix-functions/wcsnlen.texi: Renamed from
38087         doc/glibc-functions/wcsnlen.texi.
38088         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38089         doc/glibc-functions/wcsnrtombs.texi.
38090         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38091         doc/glibc-functions/wcsxfrm_l.texi.
38092         * doc/posix-functions/wctrans_l.texi: Renamed from
38093         doc/glibc-functions/wctrans_l.texi.
38094         * doc/posix-functions/wctype_l.texi: Renamed from
38095         doc/glibc-functions/wctype_l.texi.
38096         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38097         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38098         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38099         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38100         these subsections.
38101         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38102         Remove sections.
38103
38104 2008-12-14  Bruno Haible  <bruno@clisp.org>
38105
38106         Update doc for POSIX:2008.
38107         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38108
38109 2008-12-14  Bruno Haible  <bruno@clisp.org>
38110
38111         Update doc for POSIX:2008.
38112         * doc/pastposix-functions/bcmp.texi: Renamed from
38113         doc/posix-functions/bcmp.texi.
38114         * doc/pastposix-functions/bcopy.texi: Renamed from
38115         doc/posix-functions/bcopy.texi.
38116         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38117         doc/posix-functions/bsd_signal.texi.
38118         * doc/pastposix-functions/bzero.texi: Renamed from
38119         doc/posix-functions/bzero.texi.
38120         * doc/pastposix-functions/ecvt.texi: Renamed from
38121         doc/posix-functions/ecvt.texi.
38122         * doc/pastposix-functions/fcvt.texi: Renamed from
38123         doc/posix-functions/fcvt.texi.
38124         * doc/pastposix-functions/ftime.texi: Renamed from
38125         doc/posix-functions/ftime.texi.
38126         * doc/pastposix-functions/gcvt.texi: Renamed from
38127         doc/posix-functions/gcvt.texi.
38128         * doc/pastposix-functions/getcontext.texi: Renamed from
38129         doc/posix-functions/getcontext.texi.
38130         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38131         doc/posix-functions/gethostbyaddr.texi.
38132         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38133         doc/posix-functions/gethostbyname.texi.
38134         * doc/pastposix-functions/getwd.texi: Renamed from
38135         doc/posix-functions/getwd.texi.
38136         * doc/pastposix-functions/h_errno.texi: Renamed from
38137         doc/posix-functions/h_errno.texi.
38138         * doc/pastposix-functions/index.texi: Renamed from
38139         doc/posix-functions/index.texi.
38140         * doc/pastposix-functions/makecontext.texi: Renamed from
38141         doc/posix-functions/makecontext.texi.
38142         * doc/pastposix-functions/mktemp.texi: Renamed from
38143         doc/posix-functions/mktemp.texi.
38144         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38145         doc/posix-functions/pthread_attr_getstackaddr.texi.
38146         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38147         doc/posix-functions/pthread_attr_setstackaddr.texi.
38148         * doc/pastposix-functions/rindex.texi: Renamed from
38149         doc/posix-functions/rindex.texi.
38150         * doc/pastposix-functions/scalb.texi: Renamed from
38151         doc/posix-functions/scalb.texi.
38152         * doc/pastposix-functions/setcontext.texi: Renamed from
38153         doc/posix-functions/setcontext.texi.
38154         * doc/pastposix-functions/swapcontext.texi: Renamed from
38155         doc/posix-functions/swapcontext.texi.
38156         * doc/pastposix-functions/ualarm.texi: Renamed from
38157         doc/posix-functions/ualarm.texi.
38158         * doc/pastposix-functions/usleep.texi: Renamed from
38159         doc/posix-functions/usleep.texi.
38160         * doc/pastposix-functions/vfork.texi: Renamed from
38161         doc/posix-functions/vfork.texi.
38162         * doc/pastposix-functions/wcswcs.texi: Renamed from
38163         doc/posix-functions/wcswcs.texi.
38164         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38165         (Function Substitutes): Update.
38166
38167 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38168
38169         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38170         m4/strerror.m4.
38171
38172 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38173             Bruno Haible  <bruno@clisp.org>
38174
38175         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38176
38177 2008-12-13  Bruno Haible  <bruno@clisp.org>
38178
38179         * modules/strtoull (Depends-on): Remove unistd.
38180
38181 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38182
38183         * modules/strtoull (Depends-on): Add stdlib.
38184
38185 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38186
38187         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38188
38189 2008-12-10  Jim Meyering  <meyering@redhat.com>
38190
38191         gl_ASSERT: don't say assertions are disabled when they're not
38192         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38193         "checking whether to enable assertions... no", when they are in
38194         fact enabled.  This is solely a bug in the output of configure.
38195         In spite of saying "no", NDEBUG was not defined in that case.
38196         Also, as noted by Eric Blake, leave assertions enabled upon
38197         --enable-assert=INVALID.
38198
38199 2008-12-10  Bruno Haible  <bruno@clisp.org>
38200
38201         Change MODULES.html to refer to POSIX:2008 where possible.
38202         * MODULES.html.sh (POSIX2008_URL): New variable.
38203         (posix_headers): Remove sys/timeb, ucontext.
38204         (posix2001_headers): New variable.
38205         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38206         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38207         index, makecontext, mktemp, pthread_attr_getstackaddr,
38208         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38209         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38210         (posix2001_functions): New variable.
38211         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38212         otherwise.
38213
38214 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38215
38216         add missing include to parse-duration.c
38217         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38218         * modules/parse-duration (Depends-on): Add xalloc.
38219
38220         fix sed script reading maint.mk
38221         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38222         (syntax-check-rules): Use it.
38223
38224 2008-12-09  Bruno Haible  <bruno@clisp.org>
38225
38226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38227         MacOS X 10.4/PowerPC.
38228         Reported by Simon Josefsson.
38229
38230 2008-12-08  Jim Meyering  <meyering@redhat.com>
38231
38232         work around mingw's lack of some S_IF definitions
38233         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38234         Reported by Simon Josefsson.
38235
38236 2008-12-08  Bruno Haible  <bruno@clisp.org>
38237
38238         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38239         applied to variables. Needed on MacOS X 10.4/PowerPC.
38240         Reported by Simon Josefsson.
38241
38242 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38243         and Eric Blake  <ebb9@byu.net>
38244
38245         assert: honor --enable-assert
38246         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38247         order to honor --enable-assert, rather than treating it as a
38248         synonym for --disable-assert.
38249
38250 2008-12-08  Jim Meyering  <meyering@redhat.com>
38251
38252         * lib/posixtm.c: Remove now-useless declaration of mktime.
38253
38254         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38255
38256 2008-12-07  Bruno Haible  <bruno@clisp.org>
38257
38258         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38259         test_once): Mark functions as static.
38260         * tests/test-tls.c (test_tls): Likewise.
38261
38262 2008-12-07  Bruno Haible  <bruno@clisp.org>
38263
38264         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38265         iconv_register_autodetect.
38266
38267 2008-12-07  Jim Meyering  <meyering@redhat.com>
38268
38269         posixtm.c: avoid a warning
38270         * lib/posixtm.c (posixtime): Don't initialize tm0.
38271         It's no longer needed to placate gcc4's -Wuninitialized,
38272         and the attempt to placate would elicit a new warning.
38273
38274         unicodeio.c: mark unused parameters
38275         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38276         (fallback_failure_callback): Likewise.
38277
38278 2008-12-07  Bruno Haible  <bruno@clisp.org>
38279
38280         * gnulib-tool (func_create_testdir): When building the tests
38281         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38282         Reported by Simon Josefsson.
38283
38284 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38285
38286         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38287
38288 2008-12-06  Bruno Haible  <bruno@clisp.org>
38289
38290         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38291         Suggested by Eric Blake.
38292
38293 2008-12-06  Bruno Haible  <bruno@clisp.org>
38294
38295         Fix a c-stack test failure on MacOS X.
38296         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38297         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38298         handler for SIGBUS as well.
38299         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38300         install a signal handler for SIGBUS as well.
38301         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38302
38303 2008-12-06  Bruno Haible  <bruno@clisp.org>
38304
38305         Advocacy documentation.
38306         * doc/gnulib-intro.texi (Benefits): New section.
38307         * doc/gnulib.texi: Update.
38308
38309 2008-12-06  Bruno Haible  <bruno@clisp.org>
38310
38311         Document the 'manywarnings' module.
38312         * doc/manywarnings.texi: New file.
38313         * doc/gnulib.texi: Include it.
38314
38315 2008-12-05  Eric Blake  <ebb9@byu.net>
38316
38317         tests: silence some gcc warnings
38318         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38319         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38320         type mismatches.
38321
38322 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38323             Bruno Haible  <bruno@clisp.org>
38324
38325         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38326
38327 2008-11-29  Jim Meyering  <meyering@redhat.com>
38328
38329         unicodeio.c: mark unused parameters
38330         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38331         (fallback_failure_callback): Likewise.
38332
38333         fts: fix a thinko
38334         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38335         (set_stat_type): Return S_IF*-valued "type" directly.
38336         Prompted by James Youngman's spotting a related bug.
38337         Confirmed by further testing through find.
38338
38339         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38340         * lib/fts.c (D_TYPE): Define.
38341         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38342         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38343         (s_ifmt_shift_bits): New function.
38344         (set_stat_type): New function.
38345         (fts_build): When not calling fts_stat, call set_stat_type
38346         to propagate dirent.d_type info to fts_read caller.
38347         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38348         fts_statp->st_mode type information may be valid.
38349
38350 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38351
38352         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38353         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38354         <sds@gnu.org>.
38355
38356 2008-11-20  Bruno Haible  <bruno@clisp.org>
38357
38358         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38359         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38360         INCLUDE_NEXT.
38361         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38362         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38363         * modules/math (Makefile.am): Substitute
38364         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38366
38367 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38368             Bruno Haible  <bruno@clisp.org>
38369
38370         * lib/stdint.in.h: Define all type macros so that their expansion is
38371         a single typedef'ed token. Fixes a compilation failure in Boost which
38372         does "using ::int8_t;".
38373
38374 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38375
38376         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38377         gl_MANYWARN_ALL_GCC.
38378         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38379         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38380         * modules/manywarnings: New file.
38381         * MODULES.html.sh: Mention manywarnings module.
38382
38383 2008-11-18  Bruno Haible  <bruno@clisp.org>
38384
38385         * doc/gnulib-tool.texi (Unit tests): New section.
38386
38387 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38388
38389         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38390         paths like 'lib/po/foo.po'.
38391
38392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38393
38394         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38395         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38396
38397 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38398
38399         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38400         parameter works.
38401
38402 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38403
38404         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38405
38406 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38407
38408         * modules/parse-duration-tests: New file.
38409         * tests/test-parse-duration.sh: New file.
38410         * tests/test-parse-duration.c: New file.
38411
38412         New module 'parse-duration'.
38413         * lib/parse-duration.h: New file.
38414         * lib/parse-duration.c: New file.
38415         * modules/parse-duration: New file.
38416
38417 2008-11-17  Bruno Haible  <bruno@clisp.org>
38418
38419         * tests/test-select-out.sh: Comment out the first pipe test.
38420         Reported by Simon Josefsson.
38421
38422 2008-11-17  Bruno Haible  <bruno@clisp.org>
38423
38424         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38426         gl_HOSTENT.
38427
38428 2008-11-17  Bruno Haible  <bruno@clisp.org>
38429
38430         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38431         -lnetwork and -lnet. Needed for Haiku and BeOS.
38432
38433 2008-11-16  Bruno Haible  <bruno@clisp.org>
38434
38435         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38436
38437 2008-11-16  Bruno Haible  <bruno@clisp.org>
38438
38439         Avoid test failure on Haiku.
38440         * tests/test-fsync.c: Include <errno.h>.
38441         (main): Don't require that fsync (0) fails.
38442
38443 2008-11-15  Bruno Haible  <bruno@clisp.org>
38444
38445         New module 'hostent'.
38446         * modules/hostent: New file.
38447         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38448
38449 2008-11-15  Bruno Haible  <bruno@clisp.org>
38450
38451         New module 'servent'.
38452         * modules/servent: New file.
38453         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38454
38455 2008-11-15  Bruno Haible  <bruno@clisp.org>
38456
38457         Avoid generating same test program with two different rules.
38458         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38459         test-frexp to test-frexp-nolibm.
38460         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38461         test-frexpl to test-frexpl-nolibm.
38462
38463 2008-11-15  Bruno Haible  <bruno@clisp.org>
38464
38465         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38466         $(FREXPL_LIBM).
38467
38468 2008-11-15  Bruno Haible  <bruno@clisp.org>
38469
38470         * lib/netdb.in.h: Activate the definitions also when the system's
38471         <netdb.h> has 'struct addrinfo'.
38472         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38473         EAI_OVERFLOW or AI_NUMERICSERV.
38474         * doc/posix-headers/netdb.texi: Document the problem.
38475
38476 2008-11-15  Bruno Haible  <bruno@clisp.org>
38477
38478         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38479
38480         Make the 'sched' module work on platforms where <sched.h> exists but
38481         is incomplete (such as Haiku).
38482         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38483         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38484         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38485         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38486         HAVE_STRUCT_SCHED_PARAM.
38487         * modules/sched (Depends-on): Add include_next.
38488         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38489         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38490         * doc/posix-headers/sched.texi: Document the issue.
38491
38492 2008-11-13  Jim Meyering  <meyering@redhat.com>
38493
38494         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38495         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38496         test would fail due to the difference in the Report bugs to ...
38497         line.  The expected address is empty, "<>", while the actual
38498         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38499
38500 2008-11-12  Bruno Haible  <bruno@clisp.org>
38501
38502         lstat: don't compile lstat.c on systems lacking lstat
38503         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38504         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38505         Reported by Daniel P. Berrange via Jim Meyering.
38506
38507 2008-11-12  Jim Meyering  <meyering@redhat.com>
38508
38509         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38510
38511 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38512
38513         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38514         instead.
38515
38516 2008-11-12  Bruno Haible  <bruno@clisp.org>
38517
38518         * lib/unicodeio.c: Include unistr.h.
38519         (utf8_wctomb): Remove function.
38520         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38521
38522 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38523
38524         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38525         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38526         <bruno@clisp.org>.
38527         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38528
38529 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38530
38531         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38532         * doc/gnulib.texi: Add section for warnings.
38533
38534 2008-11-11  Bruno Haible  <bruno@clisp.org>
38535
38536         * lib/sockets.h: Add a comment.
38537
38538 2008-11-11  Karl Berry  <karl@gnu.org>
38539
38540         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38541
38542 2008-11-11  Eric Blake  <ebb9@byu.net>
38543
38544         fdl.texi: avoid git symlinks
38545         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38546
38547 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38548
38549         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38550
38551 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38552
38553         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38554         (gl_WARN_ADD): Substitute $2 if literal.
38555
38556 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38557
38558         * m4/warning.m4: Remove.
38559
38560 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38561
38562         * m4/warnings.m4: Almost complete rewrite. :-)
38563
38564 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38565
38566         * modules/warnings: New module.
38567         * m4/warnings.m4: New file.
38568         * MODULES.html.sh: Mention warnings module.
38569         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38570         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38571
38572 2008-11-10  Eric Blake  <ebb9@byu.net>
38573
38574         fdl.texi: make a symlink to the latest version
38575         * doc/standards.texi: Revert today's earlier change.
38576         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38577         * doc/fdl.texi: ...and replace this with a symlink to the newer
38578         fdl-1.3.texi.
38579
38580 2008-11-10  Bruno Haible  <bruno@clisp.org>
38581
38582         * tests/test-select-fd.c (main): Accept the result file name as fourth
38583         argument.
38584         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38585         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38586
38587 2008-11-10  Bruno Haible  <bruno@clisp.org>
38588
38589         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38590         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38591         as autoconf-substituted macros.
38592         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38593         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38594         gl_NETDB_H_DEFAULTS. Set these variables.
38595         * modules/netdb (Makefile.am): Substitute these variables.
38596
38597 2008-11-10  Eric Blake  <ebb9@byu.net>
38598
38599         standards.texi: include correct file for FDL 1.3
38600         * doc/standards.texi (GNU Free Documentation License): Change
38601         include file to pull in FDL 1.3, not 1.2.
38602
38603         fdl.texi: revert accidental change to license
38604         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38605
38606 2008-11-10  Bruno Haible  <bruno@clisp.org>
38607
38608         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38609         cross-compiling guesses also when the native compile gives no result.
38610
38611 2008-11-10  Bruno Haible  <bruno@clisp.org>
38612
38613         * lib/spawni.c (__spawni): Force variable into the stack.
38614
38615 2008-11-10  Bruno Haible  <bruno@clisp.org>
38616
38617         Add support for Haiku.
38618         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38619         glibc and BeOS, but also on Haiku.
38620         * lib/fpurge.c (fpurge): Likewise.
38621         * lib/freadable.c (freadable): Likewise.
38622         * lib/freadahead.c (freadahead): Likewise.
38623         * lib/freading.c (freading): Likewise.
38624         * lib/freadptr.c (freadptr): Likewise.
38625         * lib/freadseek.c (freadptrinc): Likewise.
38626         * lib/fseeko.c (rpl_fseeko): Likewise.
38627         * lib/fseterr.c (fseterr): Likewise.
38628         * lib/fwritable.c (fwritable): Likewise.
38629         * lib/fwriting.c (fwriting): Likewise.
38630         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38631
38632 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38633
38634         * lib/config.charset: Treat Haiku like BeOS.
38635
38636 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38637
38638         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38639         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38640
38641 2008-11-08  Bruno Haible  <bruno@clisp.org>
38642
38643         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38644         AC_CACHE_CHECK.
38645
38646 2008-11-08  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38649
38650 2008-11-08  Bruno Haible  <bruno@clisp.org>
38651
38652         * tests/test-select-fd.c: New file.
38653         * tests/test-select-in.sh: New file.
38654         * tests/test-select-out.sh: New file.
38655         * tests/test-select-stdin.c: New file.
38656         * modules/select-tests (Files): Add the new files.
38657         (Depends-on): Add gettimeofday.
38658         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38659         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38660         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38661
38662 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38663             Bruno Haible  <bruno@clisp.org>
38664
38665         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38666
38667 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38668
38669         * build-aux/pmccabe2html: Added support for C++ source files.
38670
38671 2008-11-05  Ben Pfaff  <blp@gnu.org>
38672
38673         Fix lib/close.c build on Windows.
38674         * modules/close (Files): Add lib/w32sock.h.
38675
38676 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38677
38678         Accept Bison's NEWS format.
38679         * build-aux/announce-gen (print_news_deltas): Tweak
38680         $re_prefix.
38681
38682 2008-11-04  Bruno Haible  <bruno@clisp.org>
38683
38684         * modules/random_r (Maintainer): Add glibc.
38685
38686 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38687
38688         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38689         by karl@freefriends.org (Karl Berry).
38690         * doc/alloca.texi: Likewise.
38691         * doc/c-ctype.texi: Likewise.
38692         * doc/c-strcase.texi: Likewise.
38693         * doc/c-strcaseeq.texi: Likewise.
38694         * doc/c-strcasestr.texi: Likewise.
38695         * doc/c-strstr.texi: Likewise.
38696         * doc/c-strtod.texi: Likewise.
38697         * doc/c-strtold.texi: Likewise.
38698         * doc/ctime.texi: Likewise.
38699         * doc/error.texi: Likewise.
38700         * doc/fdl.texi: Likewise.
38701         * doc/gcd.texi: Likewise.
38702         * doc/getdate.texi: Likewise.
38703         * doc/gnulib-intro.texi: Likewise.
38704         * doc/gnulib-tool.texi: Likewise.
38705         * doc/gnulib.texi: Likewise.
38706         * doc/inet_ntoa.texi: Likewise.
38707         * doc/maintain.texi: Likewise.
38708         * doc/make-stds.texi: Likewise.
38709         * doc/quote.texi: Likewise.
38710         * doc/regexprops-generic.texi: Likewise.
38711         * doc/standards.texi: Likewise.
38712         * doc/verify.texi: Likewise.
38713         * doc/visibility.texi: Likewise.
38714         * doc/gnulib.texi (GNU Free Documentation License): Include
38715         fdl-1.3.texi instead of fdl.texi.
38716
38717 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38718
38719         * doc/fdl-1.3.texi: New file, from
38720         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38721         * modules/fdl-1.3: Add.
38722         * MODULES.html.sh: Add fdl-1.3.
38723
38724 2008-11-03  Bruno Haible  <bruno@clisp.org>
38725
38726         Make determination of absolute name of header file work with AIX xlc.
38727         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38728         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38729         preprocessing.
38730         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38731         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38732
38733 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38734
38735         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38736         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38737         <ludo@gnu.org>.
38738
38739 2008-11-02  Bruno Haible  <bruno@clisp.org>
38740
38741         Mark 'strpbrk' obsolete.
38742         * modules/strpbrk (Status, Notice): New sections.
38743         * modules/strtok_r (Depends-on): Add strpbrk.
38744
38745 2008-11-02  Bruno Haible  <bruno@clisp.org>
38746
38747         Mark 'strdup' obsolete.
38748         * modules/strdup (Status, Notice): New sections.
38749         * modules/findprog (Depends-on): Add strdup.
38750         * modules/getaddrinfo (Depends-on): Likewise.
38751         * modules/localename (Depends-on): Likewise.
38752         * modules/relocatable-lib (Depends-on): Likewise.
38753         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38754         * modules/relocatable-prog (Depends-on): Likewise.
38755         * modules/trim (Depends-on): Likewise.
38756         * modules/unictype/gen-ctype (Depends-on): Likewise.
38757         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38758
38759 2008-11-02  Bruno Haible  <bruno@clisp.org>
38760
38761         Mark 'strcspn' obsolete.
38762         * modules/strcspn (Status, Notice): New sections.
38763
38764 2008-11-02  Bruno Haible  <bruno@clisp.org>
38765
38766         Mark 'rmdir' obsolete.
38767         * modules/rmdir (Status, Notice): New sections.
38768         * modules/clean-temp (Depends-on): Add rmdir.
38769         * modules/openat (Depends-on): Likewise.
38770
38771 2008-11-02  Bruno Haible  <bruno@clisp.org>
38772
38773         Mark 'raise' obsolete.
38774         * modules/raise (Status, Notice): New sections.
38775         (Include): Specify <signal.h>.
38776         * modules/stdio (Depends-on): Add raise.
38777         * modules/write (Depends-on): Likewise.
38778
38779 2008-11-02  Bruno Haible  <bruno@clisp.org>
38780
38781         Mark 'memset' obsolete.
38782         * modules/memset (Status, Notice): New sections.
38783
38784 2008-11-02  Bruno Haible  <bruno@clisp.org>
38785
38786         Mark 'memmove' obsolete.
38787         * modules/memmove (Status, Notice): New sections.
38788         * modules/argp (Depends-on): Add memmove.
38789         * modules/argz (Depends-on): Likewise.
38790         * modules/canonicalize (Depends-on): Likewise.
38791         * modules/canonicalize-lgpl (Depends-on): Likewise.
38792         * modules/fts (Depends-on): Likewise.
38793         * modules/getcwd (Depends-on): Likewise.
38794         * modules/human (Depends-on): Likewise.
38795         * modules/regex (Depends-on): Likewise.
38796         * modules/striconveh (Depends-on): Likewise.
38797         * modules/trim (Depends-on): Likewise.
38798         * modules/unistr/u8-move (Depends-on): Likewise.
38799         * modules/unistr/u16-move (Depends-on): Likewise.
38800         * modules/unistr/u32-move (Depends-on): Likewise.
38801
38802 2008-11-02  Bruno Haible  <bruno@clisp.org>
38803
38804         Mark 'memcpy' obsolete.
38805         * modules/memcpy (Status, Notice): New sections.
38806
38807 2008-11-02  Bruno Haible  <bruno@clisp.org>
38808
38809         Mark 'memcmp' obsolete.
38810         * modules/memcmp (Status, Notice): New sections.
38811         * modules/argmatch (Depends-on): Add memchr.
38812         * modules/backupfile (Depends-on): Likewise.
38813         * modules/c-strcasestr (Depends-on): Likewise.
38814         * modules/crypto/des (Depends-on): Likewise.
38815         * modules/csharpcomp (Depends-on): Likewise.
38816         * modules/fnmatch (Depends-on): Likewise.
38817         * modules/git-merge-changelog (Depends-on): Likewise.
38818         * modules/isnand (Depends-on): Likewise.
38819         * modules/isnand-nolibm (Depends-on): Likewise.
38820         * modules/isnanf (Depends-on): Likewise.
38821         * modules/isnanf-nolibm (Depends-on): Likewise.
38822         * modules/isnanl (Depends-on): Likewise.
38823         * modules/isnanl-nolibm (Depends-on): Likewise.
38824         * modules/mbchar (Depends-on): Likewise.
38825         * modules/memcoll (Depends-on): Likewise.
38826         * modules/quotearg (Depends-on): Likewise.
38827         * modules/regex (Depends-on): Likewise.
38828         * modules/relocatable-prog (Depends-on): Likewise.
38829         * modules/same (Depends-on): Likewise.
38830         * modules/signbit (Depends-on): Likewise.
38831         * modules/strcasestr-simple (Depends-on): Likewise.
38832         * modules/unictype/gen-ctype (Depends-on): Likewise.
38833         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38834         * modules/uniname/uniname (Depends-on): Likewise.
38835         * modules/unistr/u8-cmp (Depends-on): Likewise.
38836
38837 2008-11-02  Bruno Haible  <bruno@clisp.org>
38838
38839         Mark 'memchr' obsolete.
38840         * modules/memchr (Status, Notice): New sections.
38841         * modules/argp (Depends-on): Add memchr.
38842         * modules/base64 (Depends-on): Likewise.
38843         * modules/c-strcasestr (Depends-on): Likewise.
38844         * modules/chdir-long (Depends-on): Likewise.
38845         * modules/fnmatch (Depends-on): Likewise.
38846         * modules/getsubopt (Depends-on): Likewise.
38847         * modules/git-merge-changelog (Depends-on): Likewise.
38848         * modules/glob (Depends-on): Likewise.
38849         * modules/strcasestr-simple (Depends-on): Likewise.
38850         * modules/strnlen (Depends-on): Likewise.
38851
38852 2008-11-02  Bruno Haible  <bruno@clisp.org>
38853
38854         Mark 'atexit' obsolete.
38855         * modules/atexit (Status, Notice): New sections.
38856         * modules/chdir-long (Depends-on): Add atexit.
38857         * modules/wait-process (Depends-on): Likewise.
38858
38859 2008-11-02  Bruno Haible  <bruno@clisp.org>
38860
38861         * gnulib-tool: New option --with-obsolete.
38862         (func_usage): Document it.
38863         (func_modules_transitive_closure): Drop obsolete dependencies if
38864         incobsolete is not true.
38865         (func_import): Read and save the incobsolete variable to the cache.
38866
38867 2008-11-02  Bruno Haible  <bruno@clisp.org>
38868
38869         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38870         * gnulib-tool: New option --extract-status.
38871         (func_usage): Document it.
38872         (sed_extract_prog): Recognize it.
38873         (func_get_status): New function.
38874
38875 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38876
38877         * modules/sockets (License): Change from LGPL to LGPLv2+.
38878
38879 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38880
38881         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38882
38883 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38884
38885         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38886         Mention times and sys_times.
38887         * modules/sys_times, modules/sys_times-tests: New modules.
38888         * modules/times, modules/times-tests: Likewise
38889         * m4/sys_times_h.m4: New file.
38890         * lib/sys_times.in.h: Likewise
38891         * lib/times.c: Likewise.
38892         * tests/test-sys_times.c: Likewise.
38893         * tests/test-times.c: Likewise.
38894         * doc/posix-headers/sys_times.texi: Update.
38895         * doc/posix-functions/times.texi: Update.
38896
38897 2008-10-28  Jim Meyering  <meyering@redhat.com>
38898
38899         * modules/tempname (Depends-on): Add lstat.
38900
38901         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38902
38903 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38904
38905         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38906         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38907         using idiom used elsewhere in gnulib.
38908
38909 2008-10-27  Jim Meyering  <meyering@redhat.com>
38910
38911         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38912
38913 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38914
38915         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38916         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38917         programs.
38918         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38919
38920 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38921
38922         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38923
38924 2008-10-27  Bruno Haible  <bruno@clisp.org>
38925
38926         * tests/test-lstat.c: Include <stdio.h>.
38927
38928 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38929
38930         * modules/lstat-tests: New module.
38931         * tests/test-lstat.c: New file.
38932
38933 2008-10-26  Jim Meyering  <meyering@redhat.com>
38934
38935         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38936
38937 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38938             Bruno Haible  <bruno@clisp.org>
38939
38940         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38941         * modules/configmake (Include): Add a note that the include must come
38942         after all system headers.
38943         * lib/javaversion.c: Include configmake.h after all other includes.
38944
38945 2008-10-26  Bruno Haible  <bruno@clisp.org>
38946
38947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38948         HAVE_STRUCT_RANDOM_DATA to 1.
38949         (gl_STDLIB_H): Simplify.
38950
38951 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38952
38953         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38954         substitute HAVE_STRUCT_RANDOM_DATA.
38955         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38956         random_data.
38957         * modules/stdlib (Makefile.am): Substitute
38958         HAVE_STRUCT_RANDOM_DATA.
38959
38960 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38961
38962         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38963         * doc/gnulib-intro.texi (Copyright): Likewise.
38964
38965 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38966
38967         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38968         findings.
38969
38970 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38971             Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/unistd.in.h: Include <winsock2.h>.
38974         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38975         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38976         Provide dummy declarations.
38977         (gethostname): Override.
38978         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38979         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38980         gl_PREREQ_SYS_H_WINSOCK2.
38981         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38982         * doc/posix-functions/gethostname.texi: More details.
38983
38984 2008-10-25  Bruno Haible  <bruno@clisp.org>
38985
38986         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38987         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38988         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38989
38990         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38991         here ...
38992         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38993         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38994         gl_UNISTD_H_DEFAULTS.
38995
38996 2008-10-25  Eric Blake  <ebb9@byu.net>
38997
38998         signbit: avoid spurious compiler failure
38999         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39000         declarations inside function.
39001
39002 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39003             Bruno Haible  <bruno@clisp.org>
39004
39005         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39006         * modules/random_r (Depends-on): Add stdint.
39007
39008 2008-10-24  Bruno Haible  <bruno@clisp.org>
39009
39010         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39011         Eggert.
39012         * modules/strerror (License): Likewise.
39013
39014 2008-10-24  Jim Meyering  <meyering@redhat.com>
39015
39016         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39017         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39018
39019 2008-10-24  Eric Blake  <ebb9@byu.net>
39020
39021         getgroups: fix compilation when getgroups is available
39022         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39023         but with <config.h> override of getgroups disabled.
39024
39025 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39026
39027         * doc/gnulib.texi (Header files): Add note about C++ problems.
39028         Explained by Bruno Haible <bruno@clisp.org>.
39029
39030 2008-10-23  Bruno Haible  <bruno@clisp.org>
39031
39032         Define a dummy SA_NODEFER macro on Interix.
39033         * lib/signal.in.h (SA_NODEFER): Define fallback.
39034         Reported by Aleksey Cheusov <cheusov@tut.by> via
39035         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39036
39037 2008-10-23  Bruno Haible  <bruno@clisp.org>
39038
39039         * modules/freadahead (License): Change to LGPLv2+.
39040         Suggested by Simon Josefsson.
39041
39042 2008-10-23  Jim Meyering  <meyering@redhat.com>
39043
39044         random_r: new module
39045         * modules/random_r: New file.
39046         * m4/random_r.m4: New file.
39047         * lib/random_r.c: New file, from glibc.
39048         * modules/random_r-tests: New file.
39049         * tests/test-random_r.c: New file.
39050         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39051          Declare.
39052         (RAND_MAX): Define.
39053         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39054         * modules/stdlib: Substitute them, too.
39055         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39056         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39057         * doc/glibc-functions/random_r.texi: Likewise.
39058         * doc/glibc-functions/setstate_r.texi: Likewise.
39059         * doc/glibc-functions/srandom_r.texi: Likewise.
39060         * config/srclist.txt: Mention it.
39061
39062 2008-10-23  David Lutterkort  <lutter@redhat.com>
39063
39064         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39065         link requirement
39066
39067 2008-10-23  Jim Meyering  <meyering@redhat.com>
39068
39069         selinux-h: mark parameters of stub functions as intentionally unused
39070         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39071         * lib/se-context.in.h: Likewise.
39072
39073 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39074
39075         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39076
39077 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39078
39079         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39080
39081 2008-10-22  Eric Blake  <ebb9@byu.net>
39082
39083         glthread/thread: avoid compiler warning
39084         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39085         Add unreachable abort to silence compiler.
39086
39087 2008-10-22  Eric Blake  <ebb9@byu.net>
39088
39089         netdb: also supply struct addrinfo for cygwin 1.5.x
39090         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39091         older cygwin.
39092         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39093         cygwin.
39094         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39095
39096 2008-10-22  Bruno Haible  <bruno@clisp.org>
39097
39098         * users.txt: Update entry about pspp.
39099
39100 2008-10-21  Bruno Haible  <bruno@clisp.org>
39101
39102         Simplification.
39103         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39104         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39105
39106         Simplification.
39107         * lib/ioctl.c (ioctl): Don't undefine.
39108         * lib/socket.c (socket): Don't undefine.
39109
39110         Remove unused module indicator macros.
39111         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39112         GNULIB_$1 as a C macro.
39113
39114         * doc/posix-functions/close.texi: Undo last change.
39115         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39116         Windows platforms.
39117
39118 2008-10-21  Bruno Haible  <bruno@clisp.org>
39119
39120         Add gethostname() declaration to <unistd.h>.
39121         * lib/unistd.in.h (gethostname): New declaration.
39122         * lib/gethostname.c: Include <unistd.h>.
39123         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39124         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39126         and HAVE_GETHOSTNAME.
39127         * modules/gethostname (Depends-on): Add unistd.
39128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39129         (Include): Specify <unistd.h>.
39130         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39131         HAVE_GETHOSTNAME.
39132         * tests/test-gethostname.c: Include <unistd.h> first.
39133
39134 2008-10-21  Bruno Haible  <bruno@clisp.org>
39135
39136         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39137         * modules/select-tests (Depends-on): Likewise.
39138         Reported by Simon Josefsson.
39139
39140 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39141
39142         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39143         * lib/accept.c: New file, based on winsock.c.
39144         * lib/bind.c: New file, based on winsock.c.
39145         * lib/connect.c: New file, based on winsock.c.
39146         * lib/getpeername.c: New file, based on winsock.c.
39147         * lib/getsockname.c: New file, based on winsock.c.
39148         * lib/getsockopt.c: New file, based on winsock.c.
39149         * lib/ioctl.c: New file, based on winsock.c.
39150         * lib/listen.c: New file, based on winsock.c.
39151         * lib/recv.c: New file, based on winsock.c.
39152         * lib/recvfrom.c: New file, based on winsock.c.
39153         * lib/send.c: New file, based on winsock.c.
39154         * lib/sendto.c: New file, based on winsock.c.
39155         * lib/setsockopt.c: New file, based on winsock.c.
39156         * lib/shutdown.c: New file, based on winsock.c.
39157         * lib/socket.c: New file, based on winsock.c.
39158         * lib/w32sock.h: New file, based on winsock.c.
39159         * lib/winsock.c: Remove file.
39160         * modules/accept: Likewise.
39161         * modules/bind: Likewise.
39162         * modules/connect: Likewise.
39163         * modules/getpeername: Likewise.
39164         * modules/getsockname: Likewise.
39165         * modules/getsockopt: Likewise.
39166         * modules/ioctl: Likewise.
39167         * modules/listen: Likewise.
39168         * modules/recv: Likewise.
39169         * modules/recvfrom: Likewise.
39170         * modules/send: Likewise.
39171         * modules/sendto: Likewise.
39172         * modules/setsockopt: Likewise.
39173         * modules/shutdown: Likewise.
39174         * modules/socket: Use socket.c instead of winsock.c.
39175         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39176         * doc/posix-functions/accept.texi: Doc fix.
39177         * doc/posix-functions/bind.texi: Doc fix.
39178         * doc/posix-functions/close.texi: Doc fix.
39179         * doc/posix-functions/connect.texi: Doc fix.
39180         * doc/posix-functions/getpeername.texi: Doc fix.
39181         * doc/posix-functions/getsockname.texi: Doc fix.
39182         * doc/posix-functions/getsockopt.texi: Doc fix.
39183         * doc/posix-functions/ioctl.texi: Doc fix.
39184         * doc/posix-functions/listen.texi: Doc fix.
39185         * doc/posix-functions/recv.texi: Doc fix.
39186         * doc/posix-functions/recvfrom.texi: Doc fix.
39187         * doc/posix-functions/send.texi: Doc fix.
39188         * doc/posix-functions/sendto.texi: Doc fix.
39189         * doc/posix-functions/setsockopt.texi: Doc fix.
39190         * doc/posix-functions/shutdown.texi: Doc fix.
39191         * doc/posix-functions/socket.texi: Doc fix.
39192
39193 2008-10-20  Bruno Haible  <bruno@clisp.org>
39194
39195         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39196         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39197         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39198         as an alias for SIGABRT.
39199         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39200         (sigaction): Map it to SIGABRT.
39201         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39202
39203 2008-10-20  Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/fts.c: Don't include lstat.h.
39206         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39207
39208         Move the lstat() declaration to <sys/stat.h>.
39209         * lib/lstat.h: Remove file.
39210         * lib/sys_stat.in.h: Add special invocation convention.
39211         (lstat): New declaration.
39212         * lib/lstat.c (orig_lstat): New function.
39213         (rpl_lstat): Use orig_lstat instead of lstat.
39214         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39215         AC_C_INLINE. Set REPLACE_LSTAT.
39216         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39217         and REPLACE_LSTAT.
39218         * modules/lstat (Files): Remove lib/lstat.h.
39219         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39220         (Include): Specify <sys/stat.h> instead of lstat.h.
39221         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39222         REPLACE_LSTAT.
39223         * NEWS: Mention the change.
39224
39225 2008-10-20  Bruno Haible  <bruno@clisp.org>
39226
39227         * modules/posix_spawn-tests: New file.
39228         * tests/test-posix_spawn3.c: New file.
39229
39230 2008-10-20  Bruno Haible  <bruno@clisp.org>
39231
39232         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39233         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39234         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39235         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39236         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39237
39238 2008-10-20  Bruno Haible  <bruno@clisp.org>
39239
39240         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39241         of posix_spawn on AIX 5.3.
39242
39243 2008-10-20  Bruno Haible  <bruno@clisp.org>
39244
39245         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39246
39247 2008-10-20  Bruno Haible  <bruno@clisp.org>
39248
39249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39250         of AC_LANG_PROGRAM.
39251
39252 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39253
39254         * lib/netdb.in.h: Don't define GNU specific constants until they
39255         are supported or needed.  Reported by Bruno Haible
39256         <bruno@clisp.org>.
39257
39258 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39259
39260         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39261
39262 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39263
39264         * lib/getaddrinfo.h: Remove file.
39265         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39266         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39267         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39268         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39269         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39270         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39271         * tests/test-getaddrinfo.c: Likewise.
39272         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39273         * NEWS: Mention change.
39274
39275 2008-10-19  Bruno Haible  <bruno@clisp.org>
39276
39277         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39278
39279 2008-10-19  Bruno Haible  <bruno@clisp.org>
39280
39281         * lib/wait-process.c: Include simply <sys/wait.h>.
39282         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39283         WIFSTOPPED): Remove fallback definitions.
39284         * modules/wait-process (Depends-on): Add sys_wait.
39285
39286         New module 'sys_wait'.
39287         * modules/sys_wait: New file.
39288         * lib/sys_wait.in.h: New file, partially copied from
39289         lib/wait-process.c.
39290         * m4/sys_wait_h.m4: New file.
39291         * doc/posix-headers/sys_wait.texi: Mention the new module.
39292
39293 2008-10-19  Bruno Haible  <bruno@clisp.org>
39294
39295         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39296
39297 2008-10-19  Bruno Haible  <bruno@clisp.org>
39298
39299         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39300         * lib/wait-process.c (WAIT_T): Remove type.
39301         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39302         (wait_subprocess): Update.
39303
39304 2008-10-19  Bruno Haible  <bruno@clisp.org>
39305
39306         New module 'atoll'.
39307         * modules/atoll: New file.
39308         * lib/stdlib.in.h (atoll): New declaration.
39309         * lib/atoll.c: New file, from glibc with modifications.
39310         * m4/atoll.m4: New file.
39311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39312         HAVE_ATOLL.
39313         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39314         * doc/posix-functions/atoll.texi: Mention the new module.
39315
39316 2008-10-19  Bruno Haible  <bruno@clisp.org>
39317
39318         Add strtoull() declaration to <stdlib.h>.
39319         * lib/stdlib.in.h (strtoull): New declaration.
39320         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39321         Set HAVE_STRTOULL.
39322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39323         HAVE_STRTOULL.
39324         * modules/strtoull (Depends-on): Add stdlib.
39325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39326         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39327         HAVE_STRTOULL.
39328
39329 2008-10-19  Bruno Haible  <bruno@clisp.org>
39330
39331         Add strtoll() declaration to <stdlib.h>.
39332         * lib/stdlib.in.h (strtoll): New declaration.
39333         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39334         Set HAVE_STRTOLL.
39335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39336         HAVE_STRTOLL.
39337         * modules/strtoll (Depends-on): Add stdlib.
39338         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39339         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39340
39341 2008-10-19  Bruno Haible  <bruno@clisp.org>
39342
39343         * modules/bcopy (Depends-on): Add strings.
39344         (Include): Specify <strings.h>.
39345
39346 2008-10-19  Bruno Haible  <bruno@clisp.org>
39347
39348         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39349
39350 2008-10-19  Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39353         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39354         mingw.
39355
39356 2008-10-19  Bruno Haible  <bruno@clisp.org>
39357
39358         * lib/atanl.c: Don't include isnanl.h.
39359         * lib/cosl.c: Likewise.
39360         * lib/ldexpl.c: Likewise.
39361         * lib/logl.c: Likewise.
39362         * lib/sinl.c: Likewise.
39363         * lib/sqrtl.c: Likewise.
39364         * lib/tanl.c: Likewise.
39365
39366         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39367         * lib/isnanf.h: Remove file.
39368         * lib/isnand.h: Remove file.
39369         * lib/isnanl.h: Remove file.
39370         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39371         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39372         macros.
39373         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39374         HAVE_ISNANF, don't define it as a C macro.
39375         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39376         HAVE_ISNAND, don't define it as a C macro.
39377         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39378         HAVE_ISNANL, don't define it as a C macro.
39379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39380         HAVE_ISNAN[FDL].
39381         * modules/isnanf (Files): Remove lib/isnanf.h.
39382         (Depends-on): Add math.
39383         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39384         (Include): Specify <math.h> instead of isnanf.h.
39385         * modules/isnand (Files): Remove lib/isnand.h.
39386         (Depends-on): Add math.
39387         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39388         (Include): Specify <math.h> instead of isnand.h.
39389         * modules/isnanl (Files): Remove lib/isnanl.h.
39390         (Depends-on): Add math.
39391         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39392         (Include): Specify <math.h> instead of isnanl.h.
39393         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39394         HAVE_ISNAN[FDL].
39395         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39396         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39397         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39398         * NEWS: Mention the change.
39399
39400 2008-10-18  Bruno Haible  <bruno@clisp.org>
39401
39402         Add getusershell(), setusershell(), endusershell() declarations to
39403         <unistd.h>.
39404         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39405         declarations.
39406         * lib/getusershell.c: Include unistd.h.
39407         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39408         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39409         HAVE_GETUSERSHELL.
39410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39411         and HAVE_GETUSERSHELL.
39412         * modules/getusershell (Depends-on): Add unistd, extensions.
39413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39414         (Include): Specify <unistd.h>.
39415         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39416         HAVE_GETUSERSHELL.
39417
39418 2008-10-18  Bruno Haible  <bruno@clisp.org>
39419
39420         Add a getloadavg() declaration to <stdlib.h>.
39421         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39422         getloadavg declaration.
39423         (getloadavg): New declaration.
39424         * lib/getloadavg.c: Include <stdlib.h> first.
39425         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39426         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39427         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39429         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39430         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39431         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39432         (Include): Specify <stdlib.h>.
39433         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39434         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39435
39436 2008-10-18  Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/dirchownmod.c: Don't include lchmod.h.
39439
39440         Move the lchmod() declaration to <sys/stat.h>.
39441         * lib/lchmod.h: Remove file.
39442         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39443         (lchmod): New declaration, moved here from lib/lchown.h.
39444         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39445         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39446         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39447         and HAVE_LCHMOD.
39448         * modules/lchmod (Files): Remove lib/lchmod.h.
39449         (Depends-on): Add sys_stat, extensions.
39450         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39451         (Include): Specify <sys/stat.h> instead of lchmod.h.
39452         * modules/sys_stat (Depends-on): Add link-warning.
39453         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39454         definition of GL_LINK_WARNING.
39455         * NEWS: Mention the change.
39456
39457 2008-10-18  Bruno Haible  <bruno@clisp.org>
39458
39459         * lib/fchdir.c: Don't include dirfd.h.
39460         * lib/fts.c: Likewise.
39461         * lib/getcwd.c: Likewise.
39462         * lib/glob.c: Likewise.
39463
39464         Move the dirfd() declaration to <dirent.h>.
39465         * lib/dirfd.h: Remove file.
39466         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39467         (dirfd): New declaration.
39468         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39469         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39470         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39471         HAVE_DECL_DIRFD.
39472         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39473         HAVE_DECL_DIRFD.
39474         * modules/dirfd (Files): Remove lib/dirfd.h.
39475         (Depends-on): Add dirent, extensions.
39476         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39477         (Include): Specify <dirent.h> instead of dirfd.h.
39478         * modules/dirent (Depends-on): Add link-warning.
39479         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39480         definition of GL_LINK_WARNING.
39481         * NEWS: Mention the change.
39482
39483 2008-10-18  Bruno Haible  <bruno@clisp.org>
39484
39485         Move the euidaccess() declaration to <unistd.h>.
39486         * lib/euidaccess.h: Remove file.
39487         * lib/unistd.in.h (euidaccess): New declaration.
39488         * lib/euidaccess.c: Don't include euidaccess.h.
39489         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39490         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39492         and HAVE_EUIDACCESS.
39493         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39494         (Depends-on): Add unistd.
39495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39496         (Include): Specify <unistd.h> instead of euidaccess.h.
39497         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39498         HAVE_EUIDACCESS.
39499         * NEWS: Mention the change.
39500
39501 2008-10-18  Bruno Haible  <bruno@clisp.org>
39502
39503         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39504
39505         Move the getdomainname() declaration to <unistd.h>.
39506         * lib/getdomainname.h: Remove file.
39507         * lib/unistd.in.h (getdomainname): New declaration.
39508         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39509         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39510         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39511         HAVE_GETDOMAINNAME.
39512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39513         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39514         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39515         (Depends-on): Add unistd, extensions.
39516         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39517         (Includes): Specify <unistd.h> instead of getdomainname.h.
39518         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39519         HAVE_GETDOMAINNAME.
39520         * NEWS: Mention the change.
39521
39522 2008-10-18  Bruno Haible  <bruno@clisp.org>
39523
39524         * modules/dirent: New file.
39525         * m4/dirent_h.m4: New file.
39526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39527         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39528         * modules/fchdir (Files): Remove lib/dirent.in.h.
39529         (Depends-on): Add dirent.
39530         (Makefile.am): Move rules to modules/dirent.
39531         * doc/posix-headers/dirent.texi: Mention the new module.
39532
39533 2008-10-18  Bruno Haible  <bruno@clisp.org>
39534
39535         Avoid -Wunused-parameter warnings in public gnulib header files.
39536         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39537         macro.
39538         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39539
39540 2008-10-18  Bruno Haible  <bruno@clisp.org>
39541
39542         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39543         * doc/glibc-functions/error.texi: Mention the module 'error'.
39544         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39545         * doc/glibc-functions/getdomainname.texi: Mention the module
39546         'getdomainname'.
39547         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39548         * doc/glibc-functions/getpagesize.texi: Mention the module
39549         'getpagesize'.
39550         * doc/glibc-functions/getusershell.texi: Mention the module
39551         'getusershell'.
39552         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39553         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39554         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39555         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39556         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39557         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39558         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39559         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39560         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39561         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39562         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39563         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39564         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39565         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39566
39567 2008-10-17  Bruno Haible  <bruno@clisp.org>
39568
39569         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39570         HP-UX and IRIX, use -0.0L.
39571         * tests/test-ceill.c (minus_zero): Likewise.
39572         * tests/test-floorl.c (minus_zero): Likewise.
39573         * tests/test-frexpl.c (minus_zero): Likewise.
39574         * tests/test-isnan.c (minus_zerol): Likewise.
39575         * tests/test-isnanl.h (minus_zero): Likewise.
39576         * tests/test-ldexpl.c (minus_zero): Likewise.
39577         * tests/test-roundl.c (minus_zero): Likewise.
39578         * tests/test-signbit.c (minus_zerol): Likewise.
39579         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39580         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39581         * tests/test-truncl.c (minus_zero): Likewise.
39582         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39583         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39584         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39585         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39586
39587 2008-10-17  Bruno Haible  <bruno@clisp.org>
39588
39589         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39590         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39591         that it gets activated only for gcc >= 3.0.
39592         * lib/dirent.in.h: Likewise.
39593         * lib/errno.in.h: Likewise.
39594         * lib/fcntl.in.h: Likewise.
39595         * lib/float.in.h: Likewise.
39596         * lib/iconv.in.h: Likewise.
39597         * lib/inttypes.in.h: Likewise.
39598         * lib/locale.in.h: Likewise.
39599         * lib/math.in.h: Likewise.
39600         * lib/netdb.in.h: Likewise.
39601         * lib/netinet_in.in.h: Likewise.
39602         * lib/search.in.h: Likewise.
39603         * lib/signal.in.h: Likewise.
39604         * lib/spawn.in.h: Likewise.
39605         * lib/stdarg.in.h: Likewise.
39606         * lib/stdint.in.h: Likewise.
39607         * lib/stdio.in.h: Likewise.
39608         * lib/stdlib.in.h: Likewise.
39609         * lib/string.in.h: Likewise.
39610         * lib/strings.in.h: Likewise.
39611         * lib/sys_file.in.h: Likewise.
39612         * lib/sys_ioctl.in.h: Likewise.
39613         * lib/sys_select.in.h: Likewise.
39614         * lib/sys_socket.in.h: Likewise.
39615         * lib/sys_stat.in.h: Likewise.
39616         * lib/sys_time.in.h: Likewise.
39617         * lib/sysexits.in.h: Likewise.
39618         * lib/time.in.h: Likewise.
39619         * lib/unistd.in.h: Likewise.
39620         * lib/wchar.in.h: Likewise.
39621         * lib/wctype.in.h: Likewise.
39622         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39623
39624 2008-10-17  Jim Meyering  <meyering@redhat.com>
39625
39626         ignore-value: don't depend on inline module
39627         * modules/ignore-value (Depends-on): Remove 'inline'.
39628         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39629         Suggestion from Bruno Haible.
39630
39631 2008-10-17  Bruno Haible  <bruno@clisp.org>
39632
39633         New implementation of condition variables for Win32.
39634         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39635         (gl_linked_waitqueue_t): New type.
39636         (gl_cond_t): Use it.
39637         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39638         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39639         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39640         (glthread_cond_init_func, glthread_cond_wait_func,
39641         glthread_cond_timedwait_func, glthread_cond_signal_func,
39642         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39643         Reimplemented on the basis of gl_linked_waitqueue_t.
39644         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39645         gl_waitqueue_t.
39646         (gl_rwlock_t): Update.
39647         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39648
39649 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39650
39651         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39652         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39653
39654 2008-10-17  Jim Meyering  <meyering@redhat.com>
39655
39656         ignore-value: new module
39657         * modules/ignore-value: New file.
39658         * lib/ignore-value.h: New file.
39659         * MODULES.html.sh (Compiler warning management): New section,
39660         just for this module.  More to come.
39661
39662 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39663
39664         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39665         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39666         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39667
39668 2008-10-16  Jim Meyering  <meyering@redhat.com>
39669
39670         openat-die.c: avoid 'no previous prototype' warning
39671         * lib/openat-die.c: Include "openat.h".
39672         Reported by Reuben Thomas <rrt@sc3d.org>.
39673
39674 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39675
39676         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39677         * lib/netdb.in.h: Fix typo.
39678         Reported by Bruno Haible  <bruno@clisp.org>
39679
39680         * lib/netdb.in.h: Include sys/socket.h for platforms without
39681         netdb.h, to get structures like hostent on MinGW.
39682         * modules/netdb (Depends-on): Add sys_socket.
39683
39684 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39685
39686         * modules/netdb, modules/netdb-tests: New file.
39687         * m4/netdb_h.m4: New file.
39688         * lib/netdb.in.h: Add, currently just an empty file pending
39689         definitions.
39690         * tests/test-netdb.c: New file.
39691         * doc/posix-headers/netdb.texi: Mention that we replace it if
39692         needed.
39693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39694         netdb.
39695
39696 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39697
39698         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39699         with code.
39700
39701 2008-10-13  Bruno Haible  <bruno@clisp.org>
39702
39703         * lib/glthread/cond.c (glthread_cond_wait_func,
39704         glthread_cond_timedwait_func): Add a comment.
39705
39706 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39707
39708         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39709         * tests/test-select.c: Likewise,
39710
39711 2008-10-13  Bruno Haible  <bruno@clisp.org>
39712
39713         * lib/glthread/cond.c (glthread_cond_wait_func,
39714         glthread_cond_timedwait_func): Fix variable name.
39715         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39716
39717 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39718
39719         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39720         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39721         struct sockaddr.sa_len.
39722         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39723
39724 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39725
39726         * build-aux/pmccabe2html: Add css and css_url parameters.
39727
39728 2008-10-12  Bruno Haible  <bruno@clisp.org>
39729
39730         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39731         calling aclx_get.
39732         Reported by Rainer Tammer <tammer@tammer.net>.
39733
39734 2008-10-12  Bruno Haible  <bruno@clisp.org>
39735
39736         Use msvcrt aware primitives for creation/termination of Win32 threads.
39737         * lib/glthread/thread.c: Include <process.h>.
39738         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39739         (wrapper_func): Update signature.
39740         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39741
39742 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39743             Bruno Haible  <bruno@clisp.org>
39744
39745         Provide a Win32 implementation of the 'cond' module.
39746         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39747         * lib/glthread/cond.c (glthread_cond_init_func,
39748         glthread_cond_wait_func, glthread_cond_timedwait_func,
39749         glthread_cond_signal_func, glthread_cond_broadcast_func,
39750         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39751         * modules/cond (Dependencies): Add gettimeofday.
39752
39753 2008-10-11  Bruno Haible  <bruno@clisp.org>
39754
39755         Make sleep work on older versions of mingw.
39756         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39757         only whether it exists.
39758         * doc/posix-functions/sleep.texi: Mention the problem with older
39759         versions of mingw.
39760
39761 2008-10-11  Bruno Haible  <bruno@clisp.org>
39762
39763         New module 'shutdown'.
39764         * modules/shutdown: New file.
39765         * lib/sys_socket.in.h (shutdown): New declaration.
39766         * lib/winsock.c (shutdown): New function.
39767         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39768         GNULIB_SHUTDOWN.
39769         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39770         * doc/posix-functions/shutdown.texi: Document the new module.
39771
39772 2008-10-11  Jim Meyering  <meyering@redhat.com>
39773
39774         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39775
39776 2008-10-11  Bruno Haible  <bruno@clisp.org>
39777
39778         New module 'fclose'.
39779         * modules/fclose: New file.
39780         * lib/stdio.in.h (fclose): New declaration.
39781         * lib/fclose.c: New file.
39782         * m4/fclose.m4: New file.
39783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39784         REPLACE_FCLOSE.
39785         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39786         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39787         REPLACE_FCLOSE.
39788         * modules/close (Depends-on): fclose.
39789         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39790
39791 2008-10-11  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39794         set errno and don't call _close.
39795
39796 2008-10-10  Bruno Haible  <bruno@clisp.org>
39797
39798         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39799         ACL, not afterwards. Fixes test failure on Cygwin.
39800
39801 2008-10-09  Ben Pfaff  <blp@gnu.org>
39802
39803         * build-aux/announce-gen: Fix gnulib version related part of usage
39804         message.  Die with a useful error message if no tarballs are
39805         found.
39806
39807 2008-10-10  Jim Meyering  <meyering@redhat.com>
39808
39809         bootstrap: use git's --depth=N option only if it's supported
39810         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39811         recognize the --depth option.  Reported by Pádraig Brady.
39812
39813 2008-10-09  Bruno Haible  <bruno@clisp.org>
39814
39815         New module 'ioctl'.
39816         * modules/ioctl: New file.
39817         * lib/sys_socket.in.h (ioctl): Remove declaration.
39818         * lib/winsock.c: Include <sys/ioctl.h>.
39819         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39820         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39821         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39822         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39823         * doc/posix-functions/ioctl.texi: Mention the new module.
39824
39825 2008-10-09  Bruno Haible  <bruno@clisp.org>
39826
39827         New module 'sys_ioctl'.
39828         * lib/sys_ioctl.in.h: New file.
39829         * m4/sys_ioctl_h.m4: New file.
39830         * modules/sys_ioctl: New file.
39831         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39832
39833 2008-10-09  Bruno Haible  <bruno@clisp.org>
39834
39835         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39836         * lib/winsock.c: Include <stdarg.h>.
39837         (rpl_ioctl): Change to second argument 'int' and then varargs.
39838
39839 2008-10-09  Bruno Haible  <bruno@clisp.org>
39840
39841         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39842         when the sys_socket module is present and the system has <winsock2.h>.
39843
39844 2008-10-09  Bruno Haible  <bruno@clisp.org>
39845
39846         * doc/posix-functions/close.texi: Mention module 'close' instead of
39847         module 'sys_socket'.
39848
39849 2008-10-09  Bruno Haible  <bruno@clisp.org>
39850
39851         * doc/glibc-headers/sys_ioctl.texi: New file.
39852         * doc/gnulib.texi: Include it.
39853
39854 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39855             Bruno Haible  <bruno@clisp.org>
39856
39857         Combine the two replacements of 'close'.
39858         * lib/sys_socket.in.h (close): Define to a reminder to include
39859         <unistd.h>.
39860         (_gl_close_fd_maybe_socket): New declaration.
39861         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39862         * lib/winsock.c (close): Remove undefinition.
39863         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39864         needed for the gnulib module 'close'.
39865         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39866         define to an error symbol or to a warning, if suitable.
39867         * lib/close.c: Include <sys/socket.h>.
39868         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39869         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39870         UNISTD_H_HAVE_WINSOCK2_H.
39871         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39873         UNISTD_H_HAVE_WINSOCK2_H.
39874         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39875         (configure.ac): Set a module indicator.
39876         (Makefile.am): Substitute GNULIB_CLOSE.
39877         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39878         * modules/poll-tests (Depends-on): Add close.
39879         * modules/select-tests (Depends-on): Likewise.
39880
39881 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39882             Bruno Haible  <bruno@clisp.org>
39883
39884         New module 'close'.
39885         * modules/close: New file.
39886         * lib/unistd.in.h (close): Move declaration out of the
39887         FCHDIR_REPLACEMENT scope.
39888         (_gl_unregister_fd): New declaration.
39889         * lib/close.c: New file.
39890         * lib/fchdir.c (rpl_close): Remove function.
39891         * m4/close.m4: New file.
39892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39893         close.
39894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39895         REPLACE_CLOSE.
39896         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39897         REPLACE_CLOSE.
39898         * modules/fchdir (Depends-on): Add close.
39899
39900 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39901             Bruno Haible  <bruno@clisp.org>
39902
39903         * lib/fcntl.in.h (open): Simplify conditionals.
39904         (_gl_register_fd): New declaration.
39905         * lib/fchdir.c (rpl_open): Remove function.
39906         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39907         also.
39908         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39910         open.
39911
39912 2008-10-09  Jim Meyering  <meyering@redhat.com>
39913
39914         GNUmakefile: use the more name-space-friendly "_version"
39915         * top/GNUmakefile (_dummy): Update.
39916         (_version): Rename from "version".
39917
39918 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39919             Bruno Haible  <bruno@clisp.org>
39920
39921         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39922         rpl_close.
39923         (_gl_register_fd): New function, extracted from rpl_open.
39924         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39925         (rpl_open, rpl_opendir): Use _gl_register_fd.
39926
39927 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39928
39929         Fix organization of 'open' replacement.
39930         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39931         (gl_FUNC_OPEN): Use it.
39932         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39933
39934 2008-10-08  Bruno Haible  <bruno@clisp.org>
39935
39936         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39937
39938 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39939
39940         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39941         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39942         listen).
39943
39944 2008-10-08  Eric Blake  <ebb9@byu.net>
39945
39946         GNUmakefile: add 'make version' target
39947         * top/GNUmakefile (_curr-ver): Split version update rules...
39948         (version): ...into a target.
39949
39950 2008-10-07  Bruno Haible  <bruno@clisp.org>
39951
39952         Use a more portable replacement expression for -0.0L.
39953         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39954         instead of -0.0L. Fix m4 quotation.
39955
39956         * tests/test-signbit.c: Include <float.h>.
39957         (minus_zero): New variable.
39958         (test_signbitl): Use minus_zero instead of -zero.
39959         * modules/signbit-tests (Depends-on): Add float.
39960
39961         * tests/test-ceill.c: Include <float.h>.
39962         (zero): Remove variable.
39963         (minus_zero): New variable.
39964         (main): Use minus_zero instead of -zero.
39965         * modules/ceill-tests (Depends-on): Add float.
39966
39967         * tests/test-floorl.c: Include <float.h>.
39968         (zero): Remove variable.
39969         (minus_zero): New variable.
39970         (main): Use minus_zero instead of -zero.
39971         * modules/floorl-tests (Depends-on): Add float.
39972
39973         * tests/test-roundl.c: Include <float.h>.
39974         (zero): Remove variable.
39975         (minus_zero): New variable.
39976         (main): Use minus_zero instead of -zero.
39977         * modules/roundl-tests (Depends-on): Add float.
39978
39979         * tests/test-truncl.c: Include <float.h>.
39980         (zero): Remove variable.
39981         (minus_zero): New variable.
39982         (main): Use minus_zero instead of -zero.
39983         * modules/truncl-tests (Depends-on): Add float.
39984
39985         * tests/test-frexpl.c (zero): Remove variable.
39986         (minus_zero): New variable.
39987         (main): Use minus_zero instead of -zero.
39988         * modules/frexpl-tests (Depends-on): Add float.
39989
39990         * tests/test-isnan.c (zerol): Remove variable.
39991         (minus_zerol): New variable.
39992         (test_long_double): Use minus_zerol instead of -zerol.
39993         * modules/isnan-tests (Depends-on): Add float.
39994
39995         * tests/test-isnanl.h (zero): Remove variable.
39996         (minus_zero): New variable.
39997         (main): Use minus_zero instead of -zero.
39998         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39999         * modules/isnanl-tests (Depends-on): Add float.
40000
40001         * tests/test-ldexpl.c (zero): Remove variable.
40002         (minus_zero): New variable.
40003         (main): Use minus_zero instead of -zero.
40004         * modules/ldexpl-tests (Depends-on): Add float.
40005
40006         * tests/test-snprintf-posix.h (zerol): Remove variable.
40007         (minus_zerol): New variable.
40008         (test_function): Use minus_zerol instead of -zerol.
40009         * modules/snprintf-posix-tests (Depends-on): Add float.
40010         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40011
40012         * tests/test-sprintf-posix.h (zerol): Remove variable.
40013         (minus_zerol): New variable.
40014         (test_function): Use minus_zerol instead of -zerol.
40015         * modules/sprintf-posix-tests (Depends-on): Add float.
40016         * modules/vsprintf-posix-tests (Depends-on): Add float.
40017
40018         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40019         (minus_zerol): New variable.
40020         (test_function): Use minus_zerol instead of -zerol.
40021         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40022
40023         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40024         (minus_zerol): New variable.
40025         (test_function): Use minus_zerol instead of -zerol.
40026         * modules/vasprintf-posix-tests (Depends-on): Add float.
40027
40028 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40029
40030         * MODULES.html.sh (Support for building documentation): Mention
40031         pmccabe2html.  Sort entries.
40032
40033         Add pmccabe2html module, from gnupdf.
40034         * build-aux/pmccabe.css: New file.
40035         * build-aux/pmccabe2html: New file.
40036         * m4/pmccabe2html.m4: New file.
40037         * modules/pmccabe2html: New file.
40038
40039 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40040
40041         flock: new module
40042         * MODULES.html.sh: Add to list of modules.
40043         * lib/flock.c: flock implementation for Windows and Unix systems
40044         which have fcntl.
40045         * doc/glibc-functions/flock.texi: Update documentation.
40046         * lib/sys_file.in.h: <sys/file.h> header file.
40047         * m4/flock.m4: M4 macros.
40048         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40049         * modules/flock: flock module.
40050         * modules/flock-tests: flock tests module.
40051         * modules/sys_file: sys/file.h module.
40052         * tests/test-flock.c: test suite for flock.
40053
40054 2008-10-06  Jim Meyering  <meyering@redhat.com>
40055
40056         bootstrap: check for LT_INIT more portably still ;-)
40057         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40058         Spotted by Bruno Haible.
40059
40060 2008-10-06  Eric Blake  <ebb9@byu.net>
40061
40062         test-signbit: avoid tripping Irix cc bug on -0.0L
40063         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40064         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40065         entire testsuite consistent and avoids an Irix 6.2 bug.
40066
40067 2008-10-05  Bruno Haible  <bruno@clisp.org>
40068             Jim Meyering  <jim@meyering.net>
40069
40070         Add an option for ignoring EPIPE during close_stdout.
40071         * lib/closeout.h: Include <stdbool.h>.
40072         (close_stdout_set_ignore_EPIPE): New declaration.
40073         * lib/closeout.c: Include <stdbool.h>.
40074         (ignore_EPIPE): New variable.
40075         (close_stdout_set_ignore_EPIPE): New function.
40076         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40077         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40078         failure.
40079         * modules/closeout (Depends-on): Add stdbool.
40080
40081 2008-10-05  Bruno Haible  <bruno@clisp.org>
40082
40083         * modules/accept: New file.
40084         * modules/bind: New file.
40085         * modules/connect: New file.
40086         * modules/getpeername: New file.
40087         * modules/getsockname: New file.
40088         * modules/getsockopt: New file.
40089         * modules/listen: New file.
40090         * modules/recv: New file.
40091         * modules/recvfrom: New file.
40092         * modules/send: New file.
40093         * modules/sendto: New file.
40094         * modules/setsockopt: New file.
40095         * modules/socket: New file.
40096         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40097         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40098         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40099         the particular module is requested. Add a link warning when the
40100         particular module is not requested.
40101         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40102         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40103         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40104         the particular module is requested.
40105         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40106         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40107         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40108         * modules/sys_socket (Depends-on): Add link-warning.
40109         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40110         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40111         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40112         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40113         GL_LINK_WARNING.
40114         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40115         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40116         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40117         * doc/posix-functions/getpeername.texi: Mention the new module
40118         'getpeername'.
40119         * doc/posix-functions/getsockname.texi: Mention the new module
40120         'getsockname'.
40121         * doc/posix-functions/getsockopt.texi: Mention the new module
40122         'getsockopt'.
40123         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40124         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40125         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40126         * doc/posix-functions/send.texi: Mention the new module 'send'.
40127         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40128         * doc/posix-functions/setsockopt.texi: Mention the new module
40129         'setsockopt'.
40130         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40131         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40132         listen, connect, accept.
40133         * modules/select-tests (Depends-on): Likewise.
40134
40135 2008-10-05  Bruno Haible  <bruno@clisp.org>
40136
40137         * lib/winsock.c (strerror): Remove unused #undef.
40138         (rpl_close): Remove unused local variable.
40139
40140         * modules/sys_socket (Depends-on); Add errno.
40141
40142 2008-10-05  Bruno Haible  <bruno@clisp.org>
40143
40144         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40145         (select): Add a link warning when the 'select' module is not used.
40146         * modules/sys_select (Depends-on): Add link-warning.
40147         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40148         Suggested by Paolo Bonzini.
40149
40150 2008-10-05  Jim Meyering  <meyering@redhat.com>
40151
40152         bootstrap: check for LT_INIT more portably
40153         * build-aux/bootstrap: Avoid using grep -E, since it's not
40154         portable enough.  Suggestion from Bruno Haible.
40155
40156 2008-10-05  Bruno Haible  <bruno@clisp.org>
40157
40158         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40159         as being fixed by gnulib.
40160
40161 2008-10-05  Bruno Haible  <bruno@clisp.org>
40162
40163         * modules/select-tests: New file, mostly copied from
40164         modules/sys_select-tests.
40165         * tests/test-select.c: New file, mostly copied from
40166         tests/test-sys_select.c.
40167         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40168         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40169         (Makefile.am): Remove test_sys_select_LDADD.
40170
40171         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40172         to an undefined symbol, for an error message.
40173         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40174         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40175         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40176         winsock-select.c here.
40177         * modules/sys_select (Files): Remove lib/winsock-select.c.
40178         (Depends-on): Remove alloca.
40179         (Makefile.am): Substitute GNULIB_SELECT.
40180         * modules/select: New file.
40181         * doc/posix-functions/select.texi: Update.
40182
40183 2008-10-05  Bruno Haible  <bruno@clisp.org>
40184
40185         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40186         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40187         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40188         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40189         getdtablesize.
40190         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40191         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40192
40193 2008-10-05  Bruno Haible  <bruno@clisp.org>
40194
40195         * modules/getdtablesize-tests: New file.
40196         * tests/test-getdtablesize.c: New file.
40197
40198         New module 'getdtablesize'.
40199         * lib/unistd.in.h (getdtablesize): New declaration.
40200         * lib/getdtablesize.c: New file.
40201         * m4/getdtablesize.m4: New file.
40202         * modules/getdtablesize: New file.
40203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40204         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40205         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40206         HAVE_GETDTABLESIZE.
40207         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40208
40209 2008-10-05  Bruno Haible  <bruno@clisp.org>
40210
40211         * modules/sched (Makefile.am): Fix typo.
40212         Reported by Simon Josefsson.
40213
40214 2008-10-05  Jim Meyering  <meyering@redhat.com>
40215
40216         bootstrap: check for LT_INIT, too
40217         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40218         are deprecated.  Suggestion from Ralf Wildenhues.
40219
40220 2008-10-05  Bruno Haible  <bruno@clisp.org>
40221
40222         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40223         overriding them by ours.
40224         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40225
40226 2008-10-05  Jim Meyering  <meyering@redhat.com>
40227
40228         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40229         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40230         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40231
40232 2008-10-04  Bruno Haible  <bruno@clisp.org>
40233
40234         * modules/dup2 (License): Change to LGPLv2+.
40235         * modules/sleep (License): Likewise.
40236         * modules/perror (License): Likewise.
40237         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40238         Blake.
40239         * modules/signal (License): Likewise.
40240         * modules/sigprocmask (License): Likewise.
40241         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40242         Meyering.
40243
40244 2008-10-04  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40247         Reported by Rainer Tammer <tammer@tammer.net>.
40248
40249 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40250             Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40253         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40254         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40255
40256 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40257
40258         filevercmp: new module
40259         * lib/filevercmp.h: New function filevercmp comparing version strings.
40260         * lib/filevercmp.c: Implementation of filevercmp function.
40261         * modules/filevercmp: Module metadata.
40262         * tests/test-filevercmp.c: Unit test for new module.
40263         * modules/filevercmp-tests: Unit test metadata.
40264         * MODULES.html.sh: Add filevercmp module.
40265
40266 2008-10-03  Bruno Haible  <bruno@clisp.org>
40267
40268         * lib/c-ctype.h: Add comment.
40269         Reported by Jim Meyering.
40270
40271 2008-10-02  Bruno Haible  <bruno@clisp.org>
40272
40273         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40274
40275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40276
40277         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40278         name of bootstrap.conf accordingly.
40279
40280 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40281
40282         * build-aux/bootstrap: Install git-merge-changelog configuration
40283         items into .gitconfig if needed.
40284
40285 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40286
40287         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40288         git repository, and initialize/update it accordingly.
40289
40290 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40291
40292         * modules/fsync-tests: New file.
40293         * tests/test-fsync.c: New file.
40294
40295         New module 'fsync'.
40296         * lib/fsync.c: New file.
40297         * m4/fsync.m4: New file.
40298         * modules/fsync: New file.
40299         * lib/unistd.in.h (fsync): New declaration.
40300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40301         GNULIB_FSYNC and HAVE_FSYNC.
40302         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40303         * MODULES.html.sh (posix_functions): Add fsync.
40304         * doc/posix-functions/fsync.texi: Mention the new module.
40305
40306 2008-10-02  Jim Meyering  <meyering@redhat.com>
40307
40308         fts.c: sync with similar code from coreutils' remove.c
40309         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40310         Guard also with "#if defined __linux__", since for now at least,
40311         this code is Linux-kernel-specific.
40312
40313 2008-10-02  Jim Meyering  <meyering@redhat.com>
40314
40315         fts: bug fixes
40316         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40317         Include <sys/vfs.h>, not <sys/statfs.h>.
40318
40319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40320         Include <sys/vfs.h>, not <sys/statfs.h>.
40321
40322 2008-10-01  Bruno Haible  <bruno@clisp.org>
40323
40324         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40326         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40327         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40328         * doc/posix-functions/posix_spawnp.texi: Likewise.
40329         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40330         whether posix_spawn actually works.
40331         * m4/pipe.m4 (gl_PIPE): Likewise.
40332         * modules/execute (Files): Add m4/posix_spawn.m4.
40333         * modules/pipe (Files): Add m4/posix_spawn.m4.
40334         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40335
40336 2008-10-01  Jim Meyering  <meyering@redhat.com>
40337
40338         remove trailing spaces
40339         * NEWS: Likewise.
40340         * lib/poll.c (poll): Likewise.
40341         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40342         * lib/winsock.c (rpl_close): Likewise.
40343         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40344         * modules/yield: Likewise.
40345         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40346         * tests/test-sys_select.c (connect_to_socket): Likewise.
40347
40348         fts.c: adjust a new interface to be more generally useful
40349         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40350         (fts_build): Adjust caller.
40351
40352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40353
40354         * modules/cond-tests: New file.
40355         * tests/test-cond.c: New file.
40356
40357 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40358             Bruno Haible  <bruno@clisp.org>
40359
40360         * modules/cond (Dependencies): Add errno, time.
40361         * lib/glthread/cond.h: Include <time.h>.
40362         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40363         across platforms.
40364
40365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40366             Bruno Haible  <bruno@clisp.org>
40367
40368         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40369
40370 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40371             Bruno Haible  <bruno@clisp.org>
40372
40373         * modules/tls-tests (Depends-on): Add thread, yield.
40374         (configure.ac): Remove all checks.
40375         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40376         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40377         gl_thread_self): Remove definitions. Include glthread/thread.h and
40378         glthread/yield.h instead.
40379         (test_tls): Pass an additional NULL argument to gl_thread_join.
40380
40381 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40382             Bruno Haible  <bruno@clisp.org>
40383
40384         * modules/lock-tests (Depends-on): Add thread, yield.
40385         (configure.ac): Remove all checks.
40386         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40387         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40388         gl_thread_self): Remove definitions. Include glthread/thread.h and
40389         glthread/yield.h instead.
40390         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40391         additional NULL argument to gl_thread_join.
40392
40393 2008-09-30  Bruno Haible  <bruno@clisp.org>
40394
40395         Fix the Win32 implementation of the 'thread' module.
40396         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40397         pointer type.
40398         (gl_thread_self): Invoke gl_thread_self_func.
40399         (gl_thread_self_func): New declaration.
40400         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40401         (do_init_self_key, init_self_key): New functions.
40402         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40403         Remove some fields.
40404         (running_threads, running_lock): Remove variables.
40405         (get_current_thread_handle): New function.
40406         (gl_thread_self_func, wrapper_func, glthread_create_func,
40407         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40408         simplified.
40409
40410 2008-09-30  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40413         files.
40414
40415 2008-09-30  Jim Meyering  <meyering@redhat.com>
40416
40417         fts.m4: correct the test for statfs.f_type
40418         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40419         when checking for statfs.f_type.
40420
40421 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40422
40423         tests: avoid some compiler warnings
40424         * tests/test-memchr.c (main): Pass NULL indirectly.
40425         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40426
40427 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40428
40429         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40430         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40431         exactly specified dayshifts.
40432         (dayshift): New rule.
40433         (rel): Add dayshift.
40434         (relative_time_table) [tomorrow, yesterday, today, now]:
40435         Use tDAY_SHIFT in place of tDAY_UNIT.
40436         * tests/test-getdate.c: Add tests for now-disallowed countable
40437         dayshifts, e.g., "4 yesterday ago".
40438
40439 2008-09-29  Bruno Haible  <bruno@clisp.org>
40440
40441         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40442         * tests/test-posix_spawn1.in.sh: Renamed from
40443         tests/test-posix_spawn.in.sh.
40444         * tests/test-posix_spawn2.c: New file.
40445         * tests/test-posix_spawn2.in.sh: New file.
40446         * modules/posix_spawnp-tests (Files): Update.
40447         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40448
40449 2008-09-29  Bruno Haible  <bruno@clisp.org>
40450
40451         Propagate effects of putenv/setenv/unsetenv to child processes.
40452         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40453         * lib/pipe.c (create_pipe): Likewise.
40454
40455 2008-09-29  Bruno Haible  <bruno@clisp.org>
40456
40457         Enable use of shell scripts as executables in mingw.
40458         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40459         run the program as a shell script.
40460         * lib/pipe.c (create_pipe): Likewise.
40461         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40462         resulting array.
40463
40464 2008-09-29  Eric Blake  <ebb9@byu.net>
40465
40466         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40467
40468 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40469
40470         * doc/posix-functions/accept.texi: Update mingw problems.
40471         * doc/posix-functions/bind.texi: Update mingw problems.
40472         * doc/posix-functions/close.texi: Update mingw problems.
40473         * doc/posix-functions/connect.texi: Update mingw problems.
40474         * doc/posix-functions/getpeername.texi: Update mingw problems.
40475         * doc/posix-functions/getsockname.texi: Update mingw problems.
40476         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40477         * doc/posix-functions/ioctl.texi: Update mingw problems.
40478         * doc/posix-functions/listen.texi: Update mingw problems.
40479         * doc/posix-functions/recv.texi: Update mingw problems.
40480         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40481         * doc/posix-functions/select.texi: Update mingw problems.
40482         * doc/posix-functions/send.texi: Update mingw problems.
40483         * doc/posix-functions/sendto.texi: Update mingw problems.
40484         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40485         * doc/posix-functions/socket.texi: Update mingw problems.
40486
40487 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40488             Bruno Haible  <bruno@clisp.org>
40489
40490         * lib/sys_select.in.h: Include sys/time.h.
40491         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40492         * modules/sys_select: Depend on sys_time.
40493         * tests/test-sys_select.c: Test that sys/select.h defines struct
40494         timeval fully.
40495
40496 2008-09-29  Bruno Haible  <bruno@clisp.org>
40497
40498         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40499         * lib/sys_select.in.h: Likewise.
40500
40501 2008-09-29  Bruno Haible  <bruno@clisp.org>
40502
40503         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40504
40505 2008-09-29  Bruno Haible  <bruno@clisp.org>
40506
40507         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40508         Set LIBSOCKET instead of augmenting LIBS.
40509         * modules/sockets (Link): New section.
40510         * modules/sockets-tests (test_sockets_LDADD): New variable.
40511         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40512         * modules/poll-tests (test_poll_LDADD): New variable.
40513         * NEWS: Document the change.
40514
40515 2008-09-29  Bruno Haible  <bruno@clisp.org>
40516
40517         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40518         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40519         ARPA_INET_H directly.
40520         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40521
40522 2008-09-28  Bruno Haible  <bruno@clisp.org>
40523
40524         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40525         from gl_HEADER_SYS_SOCKET.
40526         (gl_HEADER_SYS_SOCKET): Invoke it.
40527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40528
40529 2008-09-28  Bruno Haible  <bruno@clisp.org>
40530
40531         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40532         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40533         Needed on OSF/1 4.0.
40534
40535 2008-09-28  Bruno Haible  <bruno@clisp.org>
40536
40537         Override open more carefully.
40538         * lib/open.c (orig_open): New function.
40539         (rpl_open): Use orig_open instead of open.
40540         * lib/fcntl.in.h: Add special invocation convention.
40541         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40542         (gl_FUNC_OPEN): Invoke it.
40543
40544         Override freopen more carefully.
40545         * lib/freopen.c (orig_freopen): New function.
40546         (rpl_freopen): Use orig_freopen instead of freopen.
40547         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40548         (gl_FUNC_FREOPEN): Invoke it.
40549
40550         Override fopen more carefully.
40551         * lib/fopen.c (orig_fopen): New function.
40552         (rpl_fopen): Use orig_fopen instead of fopen.
40553         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40554         (gl_FUNC_FOPEN): Invoke it.
40555         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40556
40557 2008-09-28  Bruno Haible  <bruno@clisp.org>
40558
40559         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40560         SIGPIPE.
40561
40562 2008-09-28  Bruno Haible  <bruno@clisp.org>
40563
40564         * tests/test-sigaction.c (handler, main): Disable the check whether
40565         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40566         glibc systems with LinuxThreads.
40567
40568 2008-09-28  Bruno Haible  <bruno@clisp.org>
40569
40570         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40571
40572         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40573         with AIX xlc.
40574         * lib/fcntl.in.h (open): Likewise.
40575         Reported by Rainer Tammer <tammer@tammer.net>.
40576
40577 2008-09-28  Bruno Haible  <bruno@clisp.org>
40578
40579         * modules/posix_spawnp-tests: New file.
40580         * tests/test-posix_spawn.c: New file.
40581         * tests/test-posix_spawn.in.sh: New file.
40582
40583         New module 'posix_spawnp'.
40584         * modules/posix_spawnp: New file.
40585         * lib/spawnp.c: New file, from GNU libc with modifications.
40586         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40587
40588         New module 'posix_spawn'.
40589         * modules/posix_spawn: New file.
40590         * lib/spawn.c: New file, from GNU libc with modifications.
40591         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40592
40593         New module 'posix_spawnattr_destroy'.
40594         * modules/posix_spawnattr_destroy: New file.
40595         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40596         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40597         module.
40598
40599         New module 'posix_spawnattr_setsigmask'.
40600         * modules/posix_spawnattr_setsigmask: New file.
40601         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40602         modifications.
40603         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40604         new module.
40605
40606         New module 'posix_spawnattr_getsigmask'.
40607         * modules/posix_spawnattr_getsigmask: New file.
40608         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40609         modifications.
40610         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40611         new module.
40612
40613         New module 'posix_spawnattr_setsigdefault'.
40614         * modules/posix_spawnattr_setsigdefault: New file.
40615         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40616         modifications.
40617         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40618         new module.
40619
40620         New module 'posix_spawnattr_getsigdefault'.
40621         * modules/posix_spawnattr_getsigdefault: New file.
40622         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40623         modifications.
40624         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40625         new module.
40626
40627         New module 'posix_spawnattr_setschedpolicy'.
40628         * modules/posix_spawnattr_setschedpolicy: New file.
40629         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40630         modifications.
40631         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40632         new module.
40633
40634         New module 'posix_spawnattr_getschedpolicy'.
40635         * modules/posix_spawnattr_getschedpolicy: New file.
40636         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40637         modifications.
40638         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40639         new module.
40640
40641         New module 'posix_spawnattr_setschedparam'.
40642         * modules/posix_spawnattr_setschedparam: New file.
40643         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40644         modifications.
40645         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40646         new module.
40647
40648         New module 'posix_spawnattr_getschedparam'.
40649         * modules/posix_spawnattr_getschedparam: New file.
40650         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40651         modifications.
40652         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40653         new module.
40654
40655         New module 'posix_spawnattr_setpgroup'.
40656         * modules/posix_spawnattr_setpgroup: New file.
40657         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40658         modifications.
40659         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40660         module.
40661
40662         New module 'posix_spawnattr_getpgroup'.
40663         * modules/posix_spawnattr_getpgroup: New file.
40664         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40665         modifications.
40666         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40667         module.
40668
40669         New module 'posix_spawnattr_setflags'.
40670         * modules/posix_spawnattr_setflags: New file.
40671         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40672         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40673         module.
40674
40675         New module 'posix_spawnattr_getflags'.
40676         * modules/posix_spawnattr_getflags: New file.
40677         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40678         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40679         module.
40680
40681         New module 'posix_spawnattr_init'.
40682         * modules/posix_spawnattr_init: New file.
40683         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40684         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40685         module.
40686
40687         New module 'posix_spawn_file_actions_destroy'.
40688         * modules/posix_spawn_file_actions_destroy: New file.
40689         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40690         modifications.
40691         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40692         the new module.
40693
40694         New module 'posix_spawn_file_actions_addopen'.
40695         * modules/posix_spawn_file_actions_addopen: New file.
40696         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40697         modifications.
40698         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40699         the new module.
40700
40701         New module 'posix_spawn_file_actions_adddup2'.
40702         * modules/posix_spawn_file_actions_adddup2: New file.
40703         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40704         modifications.
40705         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40706         the new module.
40707
40708         New module 'posix_spawn_file_actions_addclose'.
40709         * modules/posix_spawn_file_actions_addclose: New file.
40710         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40711         modifications.
40712         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40713         the new module.
40714
40715         New module 'posix_spawn_file_actions_init'.
40716         * modules/posix_spawn_file_actions_init: New file.
40717         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40718         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40719         new module.
40720
40721         New module 'posix_spawn-internal'.
40722         * modules/posix_spawn-internal: New file.
40723         * lib/spawn_int.h: New file, from GNU libc with modifications.
40724         * lib/spawni.c: New file, from GNU libc with modifications.
40725         * m4/posix_spawn.m4: New file.
40726
40727         New module 'spawn'.
40728         * modules/spawn: New file.
40729         * lib/spawn.in.h: New file, from GNU libc with modifications.
40730         * m4/spawn_h.m4: New file.
40731         * doc/posix-headers/spawn.texi: Mention the new module.
40732
40733 2008-09-28  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/sched-tests: New file.
40736         * tests/test-sched.c: New file.
40737
40738         New module 'sched'.
40739         * modules/sched: New file.
40740         * lib/sched.in.h: New file.
40741         * m4/sched_h.m4: New file.
40742         * doc/posix-headers/sched.texi: Mention the new module.
40743
40744 2008-09-27  Eric Blake  <ebb9@byu.net>
40745
40746         Fix previous patch, and tweak references to $0.
40747         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40748         (func_version, func_gnulib_dir): Don't call this program
40749         gnulib-tool.
40750         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40751         with using $0 in function.
40752         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40753         (func_fatal_error): Reuse the name the user invoked us with.
40754
40755 2008-09-27  Bruno Haible  <bruno@clisp.org>
40756
40757         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40758         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40759         (gl_ICONV_H): Not here.
40760         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40761         instead of assigning ICONV_H directly.
40762
40763         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40765         WCHAR_H directly.
40766
40767 2008-09-27  Bruno Haible  <bruno@clisp.org>
40768
40769         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40770         * modules/arpa_inet (Depends-on): Add link-warning.
40771         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40772         * modules/unistd (Makefile.am): Likewise.
40773
40774 2008-09-26  Bruno Haible  <bruno@clisp.org>
40775
40776         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40777         variables.
40778         (func_version): Essentially copied from gnulib-tool.
40779         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40780         func_readlink): Copied from gnulib-tool.
40781
40782 2008-09-26  Bruno Haible  <bruno@clisp.org>
40783
40784         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40785         invoking git-version-gen.
40786
40787 2008-09-26  Bruno Haible  <bruno@clisp.org>
40788
40789         * posix-modules: Update to directory names changed on 2008-01-19.
40790         Remove commas in output before splitting into words. No more need to
40791         avoid 'ftruncate' since 2007-02-19.
40792
40793 2008-09-26  Bruno Haible  <bruno@clisp.org>
40794
40795         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40796
40797 2008-09-26  Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40800         * modules/fwriteerror (Depends-on): Add errno.
40801
40802 2008-09-26  Bruno Haible  <bruno@clisp.org>
40803
40804         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40805         * tests/test-vc-list-files-cvs.sh: Likewise.
40806
40807 2008-09-26  Bruno Haible  <bruno@clisp.org>
40808
40809         * doc/posix-headers/sys_resource.texi: Reorder items.
40810
40811 2008-09-26  Jim Meyering  <meyering@redhat.com>
40812
40813         fts: tweak inode comparison function
40814         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40815         inode numbers, as documented.
40816
40817         fts: sort dirent entries on inode number before traversing
40818         This avoids a quadratic, seek-related performance penalty when
40819         operating on a directory containing many entries (measurable at 10k;
40820         3.5 hours at 2 million entries with a cold cache) on certain types
40821         of file systems, including ext3 and ext4, but not tmpfs.
40822         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40823         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40824         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40825         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40826         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40827         (fts_build): Set the stat.st_ino member from D_INO.
40828         If it is likely to be useful, sort dirent entries on inode number.
40829
40830         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40831         and the struct statfs.f_type member.
40832         * modules/fts (Depends-on): Add d-ino.
40833
40834 2008-09-26  Bruno Haible  <bruno@clisp.org>
40835
40836         * modules/sigpipe-die (Depends-on): Add sigpipe.
40837
40838         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40839         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40840         and GNULIB_STDIO_H_SIGPIPE are set.
40841         * lib/stdio-write.c: New file.
40842         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40843         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40844         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40845         REPLACE_STDIO_WRITE_FUNCS.
40846         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
40847         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40848         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40849         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40850         * modules/stdio (Files): Add lib/stdio-write.c.
40851         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40852         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40853         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40854         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40855         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40856         REPLACE_FPRINTF_POSIX.
40857         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40858         REPLACE_PRINTF_POSIX.
40859         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40860         REPLACE_VFPRINTF_POSIX.
40861         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40862         REPLACE_VPRINTF_POSIX.
40863         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40864         SIGPIPE issue.
40865         * doc/posix-functions/fputc.texi: Likewise.
40866         * doc/posix-functions/fputs.texi: Likewise.
40867         * doc/posix-functions/fwrite.texi: Likewise.
40868         * doc/posix-functions/printf.texi: Likewise.
40869         * doc/posix-functions/putc.texi: Likewise.
40870         * doc/posix-functions/putchar.texi: Likewise.
40871         * doc/posix-functions/puts.texi: Likewise.
40872         * doc/posix-functions/vfprintf.texi: Likewise.
40873         * doc/posix-functions/vprintf.texi: Likewise.
40874
40875         * modules/safe-write (Depends-on): Add write.
40876
40877         * modules/sigpipe-tests: New file.
40878         * tests/test-sigpipe.c: New file.
40879         * tests/test-sigpipe.sh: New file.
40880
40881         * modules/write: New file.
40882         * lib/unistd.in.h: Include <sys/types.h>.
40883         (write): New declaration.
40884         * lib/write.c: New file.
40885         * m4/write.m4: New file.
40886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40887         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40888         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40889         GNULIB_WRITE, REPLACE_WRITE.
40890         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40891         and the SIGPIPE issue.
40892
40893         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40894         (raise): New declaration.
40895         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40896         (ext_signal): New function.
40897         (rpl_raise): New function.
40898         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40899         GNULIB_SIGNAL_H_SIGPIPE.
40900         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40901         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40902
40903         * modules/sigpipe: New file.
40904         * m4/sigpipe.m4: New file.
40905
40906 2008-09-25  Derek Price  <derek@ximbiot.com>
40907             Bruno Haible  <bruno@clisp.org>
40908
40909         * gnulib-tool (func_import): Report all license incompatibilities, not
40910         just the first one.
40911
40912 2008-09-25  Bruno Haible  <bruno@clisp.org>
40913
40914         * gnulib-tool (func_import): When computing the edits, consider not
40915         only the Makefile.ams that exist but also those that will be generated.
40916
40917 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40918
40919         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40920         fixes gnulib-tool --test warning about duplicate dependency.
40921
40922 2008-09-25  Bruno Haible  <bruno@clisp.org>
40923
40924         * gnulib-tool: Don't ask the user to perform edits in the generated
40925         Makefile.ams.
40926         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40927         apply to the Makefile.am being generated.
40928         (func_emit_tests_Makefile_am): Execute edits that apply to the
40929         Makefile.am being generated.
40930         (func_import): Setup list of Makefile.am edits before emitting the
40931         Makefile.ams, not at the end.
40932         (func_create_testdir): Update.
40933         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40934
40935 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40936
40937         * gnulib-tool (func_import): Store the --tests-base option in the
40938         comment in gnulib-cache.m4.
40939
40940 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40941
40942         * NEWS: Document increased portability that sys_select now provides.
40943
40944         * lib/sys_select.in.h: Install select wrapper.
40945         * lib/sys_socket.in.h: Use more descriptive name when there is no
40946         select wrapper.
40947         * lib/winsock-select.c: New.
40948         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40949         Require gl_HEADER_SYS_SOCKET.
40950         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40951         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40952         * tests/test-sys_select.c: Add functional tests.
40953
40954 2008-09-24  Eric Blake  <ebb9@byu.net>
40955
40956         open, fopen: close fd leak in last patch
40957         * lib/open.c (rpl_open): Close fd before returning error.
40958         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40959         * doc/posix-functions/open.texi (open): Document that Irix also
40960         has the bug.
40961         * doc/posix-functions/fopen.texi (fopen): Likewise.
40962         Reported by Paolo Bonzini.
40963
40964 2008-09-24  Bruno Haible  <bruno@clisp.org>
40965
40966         Ensure that a filename ending in a slash cannot be used to access a
40967         non-directory.
40968         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40969         to check whether it's really a directory.
40970         * lib/fopen.c: Include fcntl.h, unistd.h.
40971         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40972         and fdopen().
40973         * modules/fopen (Depends-on): Add unistd.
40974         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40975         * tests/test-fopen.c (main): Likewise.
40976         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40977         * doc/posix-functions/fopen.texi: Likewise.
40978         Reported by Eric Blake.
40979
40980 2008-09-23  Eric Blake  <ebb9@byu.net>
40981
40982         c-stack: avoid compiler optimizations when provoking overflow
40983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40984         recursion harder to optimize, to ensure a stack overflow occurs.
40985         * tests/test-c-stack.c (recurse): Likewise.
40986         Borrowed from libsigsegv.
40987
40988         c-stack: work around Irix sigaltstack bug
40989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40990         whether sigaltstack uses wrong end of stack_t (copied in part from
40991         libsigsegv).
40992         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40993         Irix bug, without requiring an over-allocation.
40994         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40995         bug.
40996
40997         fopen: document mingw bug on directories
40998         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40999         not allowing a stream visiting a directory, even though reading
41000         from such a stream is not portable.
41001
41002 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41003
41004         * lib/poll.c: Rewrite.
41005         * modules/poll: Depend on alloca.
41006
41007 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41008
41009         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41010         instead define prototypes for a full set of wrappers.  Ensure
41011         that Cygwin does not use the compatibility code, which is only
41012         for MinGW.
41013         * lib/winsock.c: New.
41014         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41015         * modules/sys_socket: Add lib/winsock.c.
41016
41017         * modules/poll-tests: Add errno and perror.
41018         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41019
41020 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41021
41022         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41023
41024 2008-09-23  Bruno Haible  <bruno@clisp.org>
41025
41026         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41027         * doc/glibc-functions/*: Likewise.
41028
41029 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41030
41031         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41032         success.
41033
41034 2008-09-22  Eric Blake  <ebb9@byu.net>
41035             Bruno Haible  <bruno@clisp.org>
41036
41037         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41038         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41039         supply %A but mishandle pseudo-NaN.
41040         Reported by Simon Josefsson.
41041
41042 2008-09-21  Bruno Haible  <bruno@clisp.org>
41043
41044         * tests/test-lock.c (main): Tweak skip message.
41045         * tests/test-tls.c (main): Likewise.
41046
41047 2008-09-21  Bruno Haible  <bruno@clisp.org>
41048
41049         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41050         whether 'struct sigaction' has sa_sigaction here...
41051         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41052         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41053
41054 2008-09-21  Bruno Haible  <bruno@clisp.org>
41055
41056         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41057         section.
41058         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41059         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41060         the new section.
41061         (Support for obsolete systems lacking POSIX:2001): New section.
41062         (String handling <string.h>): Move strdup to the new section.
41063         Suggested by Simon Josefsson and Paolo Bonzini.
41064
41065 2008-09-21  Bruno Haible  <bruno@clisp.org>
41066
41067         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41068         exponents in %e and %g results on 'long double'. Needed for mingw's
41069         improved *printf functions.
41070         * tests/test-vasprintf-posix.c (test_function): Likewise.
41071         * tests/test-snprintf-posix.h (test_function): Likewise.
41072         * tests/test-sprintf-posix.h (test_function): Likewise.
41073         Reported by Eric Blake.
41074
41075 2008-09-21  Bruno Haible  <bruno@clisp.org>
41076
41077         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41078         * tests/test-sprintf-posix.h (test_function): Likewise.
41079
41080 2008-09-21  Bruno Haible  <bruno@clisp.org>
41081
41082         * modules/getpass (Depends-on): Add strdup-posix.
41083
41084         New module 'strdup-posix'.
41085         * modules/strdup-posix: New file.
41086         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41087         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41089         REPLACE_STRDUP.
41090         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41091         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41093         strdup-posix.
41094
41095         * modules/strdup (Depends-on): Remove malloc-posix.
41096
41097 2008-09-20  Bruno Haible  <bruno@clisp.org>
41098
41099         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41100         Wildenhues.
41101
41102 2008-09-20  Bruno Haible  <bruno@clisp.org>
41103
41104         Ensure that wint_t gets defined on IRIX 5.3.
41105         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41106         * lib/wctype.in.h (wint_t): Likewise.
41107         (__wctype_wint_t): Remove type.
41108         (isw*): Use wint_t instead of __wctype_wint_t.
41109         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41110         * modules/wchar (Files): Add m4/wint_t.m4.
41111         (Makefile.am): Substitute HAVE_WINT_T.
41112         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41113         * tests/test-wctype.c: Check that wint_t is defined.
41114         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41115         * doc/posix-headers/wctype.texi: Likewise.
41116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41117
41118 2008-09-18  Bruno Haible  <bruno@clisp.org>
41119
41120         * gnulib-tool (func_exit): Update comment.
41121
41122 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41123
41124         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41125         assumes strdup exists and does not depend on strdup to return
41126         ENOMEM on out of memory conditions.
41127
41128 2008-09-18  Bruno Haible  <bruno@clisp.org>
41129
41130         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41131         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41132         digits for the exponent.
41133
41134 2008-09-18  Jim Meyering  <meyering@redhat.com>
41135             Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/vasnprintf.c (decimal_point_char): Define also if
41138         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41139
41140 2008-09-16  Bruno Haible  <bruno@clisp.org>
41141         and Eric Blake  <ebb9@byu.net>
41142
41143         vasnprintf: support Irix 5.3
41144         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41145         that mishandle long double infinity.
41146         Reported by Tom G. Christensen.
41147
41148 2008-09-16  Bruno Haible  <bruno@clisp.org>
41149
41150         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41151         Solaris 9.
41152         * doc/glibc-functions/alphasort.texi: Likewise.
41153         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41154
41155 2008-09-16  Jim Meyering  <meyering@redhat.com>
41156
41157         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41158         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41159         a umask modification leak out of a subshell.  Otherwise, the
41160         opensolaris /bin/sh would be accepted and thus cause unwarranted
41161         failures in the coreutils test suite.
41162
41163 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41164
41165         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41166         to succeed.
41167
41168 2008-09-16  Jim Meyering  <meyering@redhat.com>
41169
41170         avoid spurious test failure when library is built without ACL support
41171         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41172         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41173         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41174         * tests/test-copy-acl.sh: Likewise.
41175
41176 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41177
41178         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41179         based on character occurrence counts.
41180
41181 2008-09-15  Eric Blake  <ebb9@byu.net>
41182
41183         tests: avoid some compiler warnings
41184         * tests/test-memchr.c (main): Pass NULL indirectly.
41185         * tests/test-closein.c (main): Avoid unused variable.
41186
41187 2008-09-15  Bruno Haible  <bruno@clisp.org>
41188
41189         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41190         are missing on OpenBSD 4.0 individually.
41191         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41192
41193 2008-09-15  Bruno Haible  <bruno@clisp.org>
41194
41195         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41196         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41197         * doc/posix-functions/perror.texi: Likewise.
41198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41199         is missing.
41200         Reported by Eric Blake.
41201
41202         * lib/errno.in.h: Use replacement values >= 2000.
41203         Reported by Eric Blake.
41204
41205 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41206
41207         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41208         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41209         limit.
41210         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41211         compareseq was aborted.
41212
41213 2008-09-14  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41216         yvec_edit_count.
41217         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41218         (fstrcmp_bounded): Simplify result computation accordingly.
41219
41220 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41221
41222         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41223         (fstrcmp): Define in terms of fstrcmp_bounded.
41224         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41225         lower_bound argument.
41226         Return quickly if the result is certainly < lower_bound.
41227         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41228
41229 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41230
41231         * lib/diffseq.h (EARLY_ABORT): New macro.
41232         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41233         evaluates to true.
41234
41235 2008-09-14  Bruno Haible  <bruno@clisp.org>
41236
41237         * modules/perror-tests: New file.
41238         * tests/test-perror.sh: New file.
41239         * tests/test-perror.c: New file.
41240
41241         New module 'perror'.
41242         * lib/stdio.in.h (perror): New declaration.
41243         * lib/perror.c: New file.
41244         * m4/perror.m4: New file.
41245         * modules/perror: New file.
41246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41247         * doc/posix-functions/perror.texi: Mention the perror module.
41248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41249         REPLACE_PERROR.
41250         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41251         REPLACE_PERROR.
41252
41253 2008-09-14  Bruno Haible  <bruno@clisp.org>
41254
41255         * modules/stdio (Makefile.am): Reorder to match the order in
41256         lib/stdio.in.h.
41257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41258
41259 2008-09-13  Bruno Haible  <bruno@clisp.org>
41260
41261         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41262
41263 2008-09-13  Bruno Haible  <bruno@clisp.org>
41264
41265         Extend strerror to cover the added errno values.
41266         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41267         (rpl_strerror): Provide error messages for the added errno values and
41268         for the WSA* values.
41269         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41270         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41271         strerror.
41272         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41273         * modules/strerror (Depends-on): Add errno.
41274         * doc/posix-functions/strerror.texi: Document the change.
41275         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41276         and EOVERFLOW.
41277
41278 2008-09-13  Bruno Haible  <bruno@clisp.org>
41279
41280         * modules/EOVERFLOW: Remove file.
41281         * m4/eoverflow.m4: Remove file.
41282         * modules/EOVERFLOW-tests: Remove file.
41283         * tests/test-EOVERFLOW.c: Remove file.
41284         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41285         * modules/ftell (Depends-on): Likewise.
41286         * modules/getdelim (Depends-on): Likewise.
41287         * modules/getugroups (Depends-on): Likewise.
41288         * modules/poll (Depends-on): Likewise.
41289         * modules/snprintf (Depends-on): Likewise.
41290         * modules/sprintf-posix (Depends-on): Likewise.
41291         * modules/vasnprintf (Depends-on): Likewise.
41292         * modules/vasprintf (Depends-on): Likewise.
41293         * modules/vfprintf-posix (Depends-on): Likewise.
41294         * modules/vsnprintf (Depends-on): Likewise.
41295         * modules/vsprintf-posix (Depends-on): Likewise.
41296         * modules/xvasprintf (Depends-on): Likewise.
41297         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41298         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41299         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41300         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41301         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41302         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41303         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41304         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41305         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41306         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41307         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41308         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41309         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41310         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41311         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41312         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41313         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41314         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41315         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41316         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41317         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41318         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41319         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41320         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41321         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41322         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41323         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41324         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41325         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41326         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41327         * MODULES.html.sh: Remove EOVERFLOW.
41328         * NEWS: Mention the change.
41329
41330 2008-09-13  Bruno Haible  <bruno@clisp.org>
41331
41332         * modules/errno-tests: New file.
41333         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41334
41335         * lib/errno.in.h: New file.
41336         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41337         * modules/errno: New file.
41338         * doc/posix-headers/errno.texi: Update documentation.
41339         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41340
41341 2008-09-13  Bruno Haible  <bruno@clisp.org>
41342
41343         * tests/test-poll.c: Use #if for native Windows, rather than testing
41344         __MSVCRT__.
41345
41346 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41347             Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/glob.c: Don't include <pwd.h> on native Windows.
41350         (WINDOWS32): New macro.
41351         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41352
41353 2008-09-13  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41356         (ETIMEDOUT): Remove macro.
41357         (glthread_cond_timedwait_multithreaded): New declaration.
41358         (glthread_cond_timedwait): Use it.
41359         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41360         (glthread_cond_timedwait_multithreaded): New function.
41361
41362 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41363
41364         * modules/poll-tests: Do not check for io.h.
41365         * tests/test-poll.c: Check for __MSVCRT__ instead.
41366
41367 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41368
41369         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41370         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41371         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41372
41373 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41374
41375         * modules/poll-tests: New.
41376         * tests/test-poll.c: New.
41377
41378 2008-09-12  Eric Blake  <ebb9@byu.net>
41379
41380         frexp: test for NetBSD failure on -0.0
41381         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41382         not all, bugs from NetBSD 3.0 have been fixed.
41383         * doc/posix-functions/frexp.texi (frexp): Document bug.
41384         Reported by Thomas Klausner.
41385
41386         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41387         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41388         literal -0.0.
41389         Reported by Jonathan C. Patschke <jp@centtech.com>.
41390
41391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41392
41393         * lib/glthread/cond.h: Use dummy implementation also if
41394         USE_WIN32_THREADS.
41395
41396 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41397
41398         * modules/fnmatch-posix (License): Change to LGPLv2+.
41399         * modules/fnmatch-gnu (License): Likewise.
41400
41401 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41402
41403         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41404
41405 2008-09-11  Jim Meyering  <meyering@redhat.com>
41406
41407         * users.txt: Add gtk-vnc.
41408
41409 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41410
41411         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41412         rotate amounts.
41413
41414         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41415         required for 16-bit and 8-bit rotates.
41416         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41417         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41418         UINT8_MAX instead of hard-coded constants.
41419         Suggested by Paul Eggert.
41420
41421 2008-09-07  Bruno Haible  <bruno@clisp.org>
41422
41423         * tests/test-striconveh.c (main): Check behaviour when converting from
41424         UTF-7.
41425
41426         Make striconveh work better with stateful encodings.
41427         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41428         that iconv does not increment the inptr when returning -1/EINVAL.
41429
41430 2008-09-07  Bruno Haible  <bruno@clisp.org>
41431
41432         * build-aux/config.rpath: Update according to libtool-2.2.6.
41433         * build-aux/config.libpath: Likewise.
41434
41435 2008-09-06  Bruno Haible  <bruno@clisp.org>
41436
41437         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41438         * lib/freadptr.c (freadptr): Likewise.
41439         * lib/freadseek.c (freadptrinc): Likewise.
41440         Reported by Simon Josefsson.
41441
41442 2008-09-06  Bruno Haible  <bruno@clisp.org>
41443
41444         * modules/freadptr (License): Change to LGPLv2+.
41445         * modules/freadseek (License): Likewise.
41446         Suggested by Eric Blake.
41447
41448         * modules/memchr2 (License): Change to LGPLv2+.
41449         Approved by Eric Blake.
41450
41451 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41452             Bruno Haible  <bruno@clisp.org>
41453
41454         Make gnulib-tool work with native 'sed' on AIX.
41455         * gnulib-tool (sed_noop): New variable.
41456         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41457         func_add_or_update, func_create_testdir): Use it to initialize sed
41458         script variables.
41459         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41460
41461 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41462             Bruno Haible  <bruno@clisp.org>
41463
41464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41465         also works after #include directives.
41466
41467 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41468
41469         getdate.y: reject an out-of-range timezone value
41470         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41471         the range [-24...+24].  When specified with only one or two digits,
41472         * tests/test-getdate.c: Tests for the fix.
41473         * doc/getdate.texi: Document this change.
41474
41475 2008-09-03  Bruno Haible  <bruno@clisp.org>
41476
41477         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41478
41479 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41480
41481         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41482         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41483         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41484         Blake <ebb9@byu.net>.
41485
41486         * tests/test-bitrotate.c: Add more test vectors.
41487
41488 2008-09-02  Eric Blake  <ebb9@byu.net>
41489
41490         vasnprintf-posix: handle large precision via %.*d
41491         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41492         when handling it ourselves.
41493         * tests/test-vasnprintf-posix.c (test_function): Add test.
41494         * tests/test-snprintf-posix.h (test_function): Likewise.
41495         * tests/test-sprintf-posix.h (test_function): Likewise.
41496         * tests/test-vasprintf-posix.c (test_function): Likewise.
41497         Reported by Alain Guibert.
41498
41499 2008-09-01  Eric Blake  <ebb9@byu.net>
41500
41501         c-stack: make configure-time check more robust
41502         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41503         successful sigaction call.
41504         Reported by Tom G. Christensen.
41505
41506 2008-09-01  Bruno Haible  <bruno@clisp.org>
41507
41508         New module 'findprog-lgpl'.
41509         * modules/findprog-lgpl: New file.
41510         * lib/findprog-lgpl.c: New file.
41511         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41512         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41513         to decide whether to use strdup or xstrdup, concatenated_filename or
41514         xconcatenated_filename.
41515
41516 2008-09-01  Bruno Haible  <bruno@clisp.org>
41517
41518         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41519         'xconcat-filename' (GPL).
41520         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41521         (License): Change to LGPLv2+.
41522         * modules/xconcat-filename: New file.
41523         * lib/concat-filename.h (concatenated_filename): Change specification.
41524         (xconcatenated_filename): New declaration.
41525         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41526         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41527         memory situations.
41528         * lib/xconcat-filename.c: New file.
41529         * NEWS: Mention the change.
41530         * lib/findprog.c: Include concat-filename.h, not filename.h.
41531         (find_in_path): Use xconcatenated_filename instead of
41532         concatenated_filename.
41533         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41534         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41535         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41536         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41537         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41538         instead of concatenated_filename.
41539         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41540         (execute_java_class): Use xconcatenated_filename instead of
41541         concatenated_filename.
41542         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41543         * modules/javacomp (Depends-on): Likewise.
41544         * modules/javaexec (Depends-on): Likewise.
41545
41546 2008-09-01  Bruno Haible  <bruno@clisp.org>
41547
41548         Split module 'filename' into 'filename' and 'concat-filename'.
41549         * modules/filename: Keep only lib/filename.h.
41550         (License): Change to LGPLv2+.
41551         * modules/concat-filename: New file, extracted from modules/filename.
41552         * lib/filename.h (concatenated_filename): Remove declaration.
41553         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41554         * lib/concat-filename.c: Include concat-filename.h.
41555         * NEWS: Mention the change.
41556
41557 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41558
41559         * lib/bitrotate.h (rotl8, rotr8): Add.
41560
41561         * modules/bitrotate (configure.ac): Need
41562         AC_REQUIRE([AC_C_INLINE]).
41563         (Description): Mention stdint.h.  Reported by Bruno Haible
41564         <bruno@clisp.org>.
41565
41566         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41567         Paolo Bonzini <bonzini@gnu.org>.
41568
41569 2008-08-31  Bruno Haible  <bruno@clisp.org>
41570
41571         Assume Solaris specific bi-arch conventions on Solaris systems.
41572         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41573         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41575         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41576         like acl_libdirstem.
41577         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41578         acl_libdirstem.
41579         * NEWS: Mention the change.
41580         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41581
41582 2008-08-31  Jim Meyering  <meyering@redhat.com>
41583
41584         * lib/strftime.h: Add comments describing the two added arguments.
41585
41586         remove duplicate #include directives
41587         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41588         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41589
41590 2008-08-31  Bruno Haible  <bruno@clisp.org>
41591
41592         New module 'sigpipe-die'.
41593         * modules/sigpipe-die: New file.
41594         * lib/sigpipe-die.h: New file.
41595         * lib/sigpipe-die.c: New file.
41596         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41597
41598 2008-08-31  Bruno Haible  <bruno@clisp.org>
41599
41600         Don't override previously installed signal handlers.
41601         * lib/fatal-signal.c (saved_sigactions): New variable.
41602         (uninstall_handlers): Reset the signal to the saved handler, not
41603         to SIG_DFL (except when ignored).
41604         (install_handlers): Save the previous handlers.
41605
41606 2008-08-30  Bruno Haible  <bruno@clisp.org>
41607
41608         * gnulib-tool (func_reset_sigpipe): New function.
41609         (func_get_automake_snippet, func_modules_transitive_closure,
41610         func_import): Invoke it before a join command that reads from stdin,
41611         to avoid "echo: write error: Broken pipe" error messages on stderr.
41612         Reported by Sam Steingold <sds@gnu.org>.
41613
41614 2008-08-30  Bruno Haible  <bruno@clisp.org>
41615
41616         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41617         Code copied from m4/open.m4.
41618         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41619         access and the filename ends in a slash. Code copied from lib/open.c.
41620         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41621         * tests/test-fopen.c (main): Check against bug with trailing slash.
41622
41623 2008-08-29  Bruno Haible  <bruno@clisp.org>
41624
41625         Avoid some "gcc -pedantic" warnings.
41626         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41627         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41628         * lib/dirent.in.h: Likewise.
41629         * lib/fcntl.in.h: Likewise.
41630         * lib/float.in.h: Likewise.
41631         * lib/iconv.in.h: Likewise.
41632         * lib/inttypes.in.h: Likewise.
41633         * lib/locale.in.h: Likewise.
41634         * lib/math.in.h: Likewise.
41635         * lib/netinet_in.in.h: Likewise.
41636         * lib/search.in.h: Likewise.
41637         * lib/signal.in.h: Likewise.
41638         * lib/stdarg.in.h: Likewise.
41639         * lib/stdint.in.h: Likewise.
41640         * lib/stdio.in.h: Likewise.
41641         * lib/stdlib.in.h: Likewise.
41642         * lib/string.in.h: Likewise.
41643         * lib/strings.in.h: Likewise.
41644         * lib/sys_select.in.h: Likewise.
41645         * lib/sys_socket.in.h: Likewise.
41646         * lib/sys_stat.in.h: Likewise.
41647         * lib/sys_time.in.h: Likewise.
41648         * lib/sysexits.in.h: Likewise.
41649         * lib/time.in.h: Likewise.
41650         * lib/unistd.in.h: Likewise.
41651         * lib/wchar.in.h: Likewise.
41652         * lib/wctype.in.h: Likewise.
41653         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41654         * modules/fchdir (Makefile.am): Likewise.
41655         * modules/fcntl (Makefile.am): Likewise.
41656         * modules/float (Makefile.am): Likewise.
41657         * modules/iconv_open (Makefile.am): Likewise.
41658         * modules/inttypes (Makefile.am): Likewise.
41659         * modules/locale (Makefile.am): Likewise.
41660         * modules/math (Makefile.am): Likewise.
41661         * modules/netinet_in (Makefile.am): Likewise.
41662         * modules/search (Makefile.am): Likewise.
41663         * modules/signal (Makefile.am): Likewise.
41664         * modules/stdarg (Makefile.am): Likewise.
41665         * modules/stdint (Makefile.am): Likewise.
41666         * modules/stdio (Makefile.am): Likewise.
41667         * modules/stdlib (Makefile.am): Likewise.
41668         * modules/string (Makefile.am): Likewise.
41669         * modules/strings (Makefile.am): Likewise.
41670         * modules/sys_select (Makefile.am): Likewise.
41671         * modules/sys_socket (Makefile.am): Likewise.
41672         * modules/sys_stat (Makefile.am): Likewise.
41673         * modules/sys_time (Makefile.am): Likewise.
41674         * modules/sysexits (Makefile.am): Likewise.
41675         * modules/time (Makefile.am): Likewise.
41676         * modules/unistd (Makefile.am): Likewise.
41677         * modules/wchar (Makefile.am): Likewise.
41678         * modules/wctype (Makefile.am): Likewise.
41679         Reported by Reuben Thomas <rrt@sc3d.org>.
41680
41681 2008-08-29  Bruno Haible  <bruno@clisp.org>
41682
41683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41684         any more.
41685
41686 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41687
41688         * MODULES.html.sh (Misc): Add bitrotate.
41689
41690         * modules/bitrotate: New file.
41691
41692         * lib/bitrotate.h: New file.
41693
41694         * modules/bitrotate-tests: New file.
41695
41696         * tests/test-bitrotate.c: New file.
41697
41698         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41699         on the bitrotate module.
41700
41701         * lib/arctwo.c: Use new bitrotate module.
41702
41703 2008-08-29  Jim Meyering  <meyering@redhat.com>
41704
41705         bootstrap: merge changes from coreutils
41706         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41707         of copied files.  Remove a kludge, now that this is fixed.
41708         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41709         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41710         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41711
41712 2008-08-29  Bruno Haible  <bruno@clisp.org>
41713
41714         * MODULES.html.sh: Remove --cvs-urls option.
41715
41716 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41717
41718         maint.mk: adjust to file name change
41719         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41720
41721 2008-08-28  Jim Meyering  <meyering@redhat.com>
41722
41723         * modules/getndelim2 (License): Relicense to LGPLv2+.
41724         Approved by Richard Stallman for the version of 1995, and by
41725         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41726
41727 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41728
41729         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41730         dummy if one is not available.  Do not touch them if
41731         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41732         (getc_maybe_unlocked): New.
41733         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41734
41735 2008-08-26  Eric Blake  <ebb9@byu.net>
41736
41737         doc/INSTALL: resync from autoconf
41738         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41739         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41740         moving...
41741         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41742         * INSTALL: Regenerate.
41743         * INSTALL.ISO: New file.
41744         * INSTALL.UTF-8: Likewise.
41745
41746 2008-08-26  Jim Meyering  <meyering@redhat.com>
41747
41748         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41749         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41750         these definitions conditional, so that they may be overridden, too.
41751
41752 2008-08-26  Bruno Haible  <bruno@clisp.org>
41753
41754         Generate INSTALL file variants with prettier quotes.
41755         * doc/Makefile (INSTALL_PRELUDE): New macro.
41756         (INSTALL): Use it.
41757         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41758
41759 2008-08-26  Bruno Haible  <bruno@clisp.org>
41760
41761         Run makeinfo in an English locale.
41762         * doc/Makefile (MAKEINFO): New variable.
41763
41764 2008-08-26  Bruno Haible  <bruno@clisp.org>
41765
41766         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41767         Suggested by Eric Blake.
41768
41769 2008-08-25  Bruno Haible  <bruno@clisp.org>
41770
41771         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41772
41773 2008-08-25  Eric Blake  <ebb9@byu.net>
41774
41775         c-stack: test that stack overflow can be caught
41776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41777         that platform allows handling stack overflow; at least OS/2 EMX
41778         has sigaltstack, but crashes before transferring control to
41779         handler on stack overflow.
41780         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41781         check for HAVE_STACK_OVERFLOW_HANDLING.
41782         Reported by Elbert Pol.
41783
41784 2008-08-25  Bruno Haible  <bruno@clisp.org>
41785
41786         * doc/posix-functions/strftime.texi: Fix description of strftime
41787         module.
41788
41789 2008-08-24  Bruno Haible  <bruno@clisp.org>
41790
41791         * tests/uniwidth/test-uc_width2.c: New file.
41792         * tests/uniwidth/test-uc_width2.sh: New file.
41793         * modules/uniwidth/width-tests (Files): Add the new files.
41794         (TESTS): Add uniwidth/test-uc_width2.sh.
41795         (TESTS_ENVIRONMENT): New variable.
41796         (check_PROGRAMS): Add test-uc_width2.
41797         (test_uc_width2_SOURCES): New variable.
41798
41799         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41800         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41801         not 0x00AB.
41802         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41803
41804 2008-08-22  Eric Blake  <ebb9@byu.net>
41805
41806         test-lock, test-tls: mention why a test is skipped
41807         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41808         skipped.
41809         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41810
41811         count-one-bits: relax license
41812         * modules/count-one-bits (License): Relicense to LGPLv2+.
41813         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41814
41815 2008-08-22  Andreas Schwab  <schwab@suse.de>
41816
41817         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41818         Remove spurious space in assignment.
41819
41820 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41821
41822         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41823         Paul Eggert <eggert@CS.UCLA.EDU>.
41824
41825 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41826
41827         * modules/gettext: Add m4/threadlib.m4.
41828
41829 2008-08-19  Eric Blake  <ebb9@byu.net>
41830
41831         test-c-stack: fix compilation failure on FreeBSD 5.0
41832         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41833         headers before <sys/resource.h>.
41834         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41835         the bug.
41836         Reported by Nelson H. F. Beebe.
41837
41838         strverscmp: migrate from "strverscmp.h" to <string.h>
41839         * modules/string (Makefile.am): Add new hooks.
41840         * modules/strverscmp (Files): Remove strverscmp.h.
41841         (Depends-on): Add string.
41842         (configure.ac): Add indicator.
41843         (Include): Mention new header.
41844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41845         defaults.
41846         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41847         results.
41848         * lib/strverscmp.h: Delete.
41849         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41850         * tests/test-strverscmp.c (includes): Adjust client.
41851         * lib/check-version.c (includes): Likewise.
41852         * NEWS: Document the change.
41853
41854         strverscmp: add unit test
41855         * modules/strverscmp-tests: New file.
41856         * tests/test-strverscmp.c: Likewise.
41857
41858 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41859
41860         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41861         regarding Windows crypto stuff, from Mono.
41862
41863 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41864
41865         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41866         if present, for intel RND.  Return error on failures.
41867
41868 2008-08-18  Ben Pfaff  <blp@gnu.org>
41869
41870         gitlog-to-changelog: give better diagnostic for failed pipe-open
41871         * build-aux/gitlog-to-changelog: Improve error message: suggest
41872         that the version of Git may be too old.
41873
41874 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41875
41876         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41877         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41878
41879 2008-08-18  Bruno Haible  <bruno@clisp.org>
41880
41881         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41882         pthread_in_use().
41883
41884 2008-08-18  Bruno Haible  <bruno@clisp.org>
41885
41886         * lib/glthread/threadlib.c: Include <pthread.h>.
41887
41888 2008-08-18  Bruno Haible  <bruno@clisp.org>
41889
41890         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41891         glthread_recursive_lock_* macros.
41892         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41893         Fix syntax error.
41894
41895 2008-08-18  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/glthread/thread.c: Avoid forcing a context switch right after
41898         thread creation.
41899
41900 2008-08-17  Bruno Haible  <bruno@clisp.org>
41901
41902         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41903         * lib/glthread/thread.h: Provide Win32 specific implementation.
41904         * modules/thread (Files): Add lib/glthread/thread.c.
41905         (Depends-on): Add lock.
41906         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41907
41908 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41909
41910         New module 'yield'.
41911         * modules/yield: New file.
41912         * lib/glthread/yield.h: New file.
41913         * m4/yield.m4: New file.
41914         * MODULES.html.sh (Multithreading): Add yield.
41915
41916 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41917
41918         New module 'thread'.
41919         * modules/thread: New file.
41920         * lib/glthread/thread.h: New file.
41921         * m4/thread.m4: New file.
41922         * MODULES.html.sh (Multithreading): Add thread.
41923
41924 2008-08-17  Bruno Haible  <bruno@clisp.org>
41925
41926         * lib/glthread/lock.h: Include <stdlib.h> always.
41927         * lib/glthread/tls.h: Likewise.
41928         * lib/glthread/cond.h: Likewise.
41929
41930 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41931
41932         New module 'cond'.
41933         * modules/cond: New file.
41934         * lib/glthread/cond.h: New file.
41935         * lib/glthread/cond.c: New file.
41936         * m4/cond.m4: New file.
41937         * MODULES.html.sh (Multithreading): Add cond.
41938
41939 2008-08-16  Eric Blake  <ebb9@byu.net>
41940
41941         c-stack: fix regression on Irix 5.3 from 2008-06-21
41942         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41943         sa_sigaction...
41944         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41945         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41946         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41947         * modules/signal (Makefile.am): Use the value.
41948         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41949         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41950         * doc/posix-headers/signal.texi (signal.h): Document this
41951         portability issue.
41952         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41953         Reported by Tom G. Christensen.
41954
41955 2008-08-17  Bruno Haible  <bruno@clisp.org>
41956
41957         New module 'threadlib'.
41958         * modules/threadlib: New file.
41959         * lib/glthread/threadlib.c: New file, extracted from
41960         lib/glthread/lock.c.
41961         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41962         functions.
41963         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41964         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41965         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41966         macros.
41967         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41968         (gl_DISABLE_THREADS): Remove macro.
41969         * modules/lock (Files): Remove build-aux/config.rpath.
41970         (Depends-on): Remove havelib. Add threadlib.
41971         (configure.ac-early): Remove section.
41972         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41973         * modules/tls (Depends-on): Remove lock. Add threadlib.
41974         (Link): New section, copied from threadlib.
41975         * MODULES.html.sh (Multithreading): Add threadlib.
41976
41977 2008-08-14  Bruno Haible  <bruno@clisp.org>
41978
41979         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41980         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41981         glthread_rwlock_unlock, glthread_rwlock_destroy,
41982         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41983         glthread_recursive_lock_destroy): Define as macros always.
41984         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41985         glthread_lock_lock.
41986         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41987         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41988         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41989         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41990         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41991         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41992         (glthread_recursive_lock_lock_func): Renamed from
41993         glthread_recursive_lock_lock.
41994         (glthread_recursive_lock_unlock_func): Renamed from
41995         glthread_recursive_lock_unlock.
41996         (glthread_recursive_lock_destroy_func): Renamed from
41997         glthread_recursive_lock_destroy.
41998
41999 2008-08-14  Bruno Haible  <bruno@clisp.org>
42000
42001         * lib/glthread/lock.h: Renamed from lib/lock.h.
42002         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42003         * lib/glthread/tls.h: Renamed from lib/tls.h.
42004         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42005         * lib/fstrcmp.c: Update includes.
42006         * lib/strsignal.c: Update includes.
42007         * modules/lock (Files, Makefile.am): Update.
42008         (Include): Change to "glthread/lock.h".
42009         * modules/tls (Files, Makefile.am): Update.
42010         (Include): Change to "glthread/tls.h".
42011         * tests/test-lock.c: Update includes.
42012         * tests/test-tls.c: Update includes.
42013         * NEWS: Mention the renamed header files.
42014
42015 2008-08-11  Jim Meyering  <meyering@redhat.com>
42016
42017         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42018
42019 2008-08-11  Eric Blake  <ebb9@byu.net>
42020
42021         test-c-stack: avoid C99-ism
42022         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42023         before statement.
42024         Reported by Alain Guibert.
42025
42026 2008-08-10  Jim Meyering  <meyering@redhat.com>
42027
42028         ensure that return value of uinttostr et al are not ignored
42029         * lib/inttostr.h (__GNUC_PREREQ): Define.
42030         (__attribute_warn_unused_result__): Define.
42031         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42032
42033 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42034
42035         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42036         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42037
42038 2008-08-07  Jim Meyering  <meyering@redhat.com>
42039
42040         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42041
42042         * modules/mkstemp (License): Relicense under LGPLv2+.
42043         * modules/tempname (License): Likewise.
42044
42045 2008-08-06  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/poll.c (poll): Further micro-optimization.
42048
42049 2008-08-06  Jim Meyering  <meyering@redhat.com>
42050
42051         inet_pton.c: use locale-independent tolower
42052         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42053         (inet_pton6): Use c_tolower rather than tolower.
42054         * modules/inet_pton (Depends-on): Add c-ctype.
42055
42056 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42057
42058         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42059         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42060
42061 2008-08-06  Jim Meyering  <meyering@redhat.com>
42062
42063         * modules/inet_pton (License): Relicense under LGPLv2+.
42064
42065 2008-08-03  Bruno Haible  <bruno@clisp.org>
42066
42067         Additional non-aborting API for lock and tls.
42068         * lib/lock.h: Include <errno.h>.
42069         (glthread_lock_init): New macro/function.
42070         (gl_lock_init): Define as wrapper around glthread_lock_init.
42071         (glthread_lock_lock): New macro/function.
42072         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42073         (glthread_lock_unlock): New macro/function.
42074         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42075         (glthread_lock_destroy): New macro/function.
42076         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42077         (glthread_rwlock_init): New macro/function.
42078         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42079         (glthread_rwlock_rdlock): New macro/function.
42080         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42081         (glthread_rwlock_wrlock): New macro/function.
42082         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42083         (glthread_rwlock_unlock): New macro/function.
42084         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42085         (glthread_rwlock_destroy): New macro/function.
42086         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42087         (glthread_recursive_lock_init): New macro/function.
42088         (gl_recursive_lock_init): Define as wrapper around
42089         glthread_recursive_lock_init.
42090         (glthread_recursive_lock_lock): New macro/function.
42091         (gl_recursive_lock_lock): Define as wrapper around
42092         glthread_recursive_lock_lock.
42093         (glthread_recursive_lock_unlock): New macro/function.
42094         (gl_recursive_lock_unlock): Define as wrapper around
42095         glthread_recursive_lock_unlock.
42096         (glthread_recursive_lock_destroy): New macro/function.
42097         (gl_recursive_lock_destroy): Define as wrapper around
42098         glthread_recursive_lock_destroy.
42099         (glthread_once): New macro/function.
42100         (gl_once): Define as wrapper around glthread_once.
42101         Update function declarations.
42102         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42103         glthread_rwlock_init. Return error code.
42104         (glthread_rwlock_rdlock_multithreaded): Renamed from
42105         glthread_rwlock_rdlock. Return error code.
42106         (glthread_rwlock_wrlock_multithreaded): Renamed from
42107         glthread_rwlock_wrlock. Return error code.
42108         (glthread_rwlock_unlock_multithreaded): Renamed from
42109         glthread_rwlock_unlock. Return error code.
42110         (glthread_rwlock_destroy_multithreaded): Renamed from
42111         glthread_rwlock_destroy. Return error code.
42112         (glthread_recursive_lock_init_multithreaded): Renamed from
42113         glthread_recursive_lock_init. Return error code.
42114         (glthread_recursive_lock_lock_multithreaded): Renamed from
42115         glthread_recursive_lock_lock. Return error code.
42116         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42117         glthread_recursive_lock_unlock. Return error code.
42118         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42119         glthread_recursive_lock_destroy. Return error code.
42120         (glthread_once_call): Make static.
42121         (glthread_once_multithreaded): Renamed from glthread_once.
42122         * lib/tls.h: Include <errno.h>.
42123         (glthread_tls_key_init): New macro/function.
42124         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42125         (glthread_tls_set): New macro/function.
42126         (gl_tls_set): Define as wrapper around glthread_tls_set.
42127         (glthread_tls_key_destroy): New macro/function.
42128         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42129         Update function declarations.
42130         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42131         glthread_tls_get.
42132         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42133
42134 2008-08-04  Eric Blake  <ebb9@byu.net>
42135
42136         gnumakefile: use space, not TAB, outside of targets
42137         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42138
42139 2008-08-02  Jim Meyering  <meyering@redhat.com>
42140
42141         getdate.y: avoid locale-dependent date parsing failure
42142         In Turkish locales, getdate would fail to recognize keywords
42143         containing a lowercase "i".  The solution is not to rely on
42144         locale-sensitive case-conversion.
42145         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42146         (lookup_word): Use c_toupper in place of toupper.
42147         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42148         Reported by Vefa Bicakci <bicave@superonline.com> in
42149         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42150         * modules/getdate (Depends-on): Add c-ctype.
42151
42152 2008-08-02  Bruno Haible  <bruno@clisp.org>
42153
42154         * gnulib-tool (func_import): When updating or creating a .gitignore
42155         file, prepend each added line with a slash, and ignore leading slashes
42156         from the existing lines.
42157         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42158
42159 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42160
42161         Portability fix for GNU make 3.79.1.
42162         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42163         versions do not understand.
42164
42165 2008-08-01  Bruno Haible  <bruno@clisp.org>
42166
42167         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42168         * tests/test-isnanf.h (zero): New variable.
42169         (main): Avoid literal -0.0f.
42170         * tests/test-isnand.h (zero): New variable.
42171         (main): Avoid literal -0.0.
42172         * tests/test-isnanl.h (zero): New variable.
42173         (main): Avoid literal -0.0L.
42174         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42175         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42176         -0.0, -0.0L.
42177         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42178         (test_signbitd): Avoid literal -0.0.
42179         (test_signbitl): Avoid literal -0.0L.
42180         * tests/test-ceilf1.c (zero): New variable.
42181         (main): Avoid literal -0.0f.
42182         * tests/test-ceill.c (zero): New variable.
42183         (main): Avoid literal -0.0L.
42184         * tests/test-floorf1.c (zero): New variable.
42185         (main): Avoid literal -0.0f.
42186         * tests/test-floorl.c (zero): New variable.
42187         (main): Avoid literal -0.0L.
42188         * tests/test-roundf1.c (zero): New variable.
42189         (main): Avoid literal -0.0f.
42190         * tests/test-round1.c (zero): New variable.
42191         (main): Avoid literal -0.0.
42192         * tests/test-roundl.c (zero): New variable.
42193         (main): Avoid literal -0.0L.
42194         * tests/test-truncf1.c (zero): New variable.
42195         (main): Avoid literal -0.0f.
42196         * tests/test-trunc1.c (zero): New variable.
42197         (main): Avoid literal -0.0.
42198         * tests/test-truncl.c (zero): New variable.
42199         (main): Avoid literal -0.0L.
42200         * tests/test-frexp.c (zero): New variable.
42201         (main): Avoid literal -0.0.
42202         * tests/test-frexpl.c (zero): New variable.
42203         (main): Avoid literal -0.0L.
42204         * tests/test-ldexpl.c (zero): New variable.
42205         (main): Avoid literal -0.0L.
42206         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42207         (zerod, zerol): New variables.
42208         (test_function): Avoid literals -0.0, -0.0L.
42209         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42210         (zerod, zerol): New variables.
42211         (test_function): Avoid literals -0.0, -0.0L.
42212         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42213         (zerod, zerol): New variables.
42214         (test_function): Avoid literals -0.0, -0.0L.
42215         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42216         (zerod, zerol): New variables.
42217         (test_function): Avoid literals -0.0, -0.0L.
42218         * tests/test-strtod.c (zero): New variable.
42219         (main): Avoid literal -0.0.
42220         Reported by Jonathan C. Patschke <jp@centtech.com>.
42221
42222 2008-07-31  Jim Meyering  <meyering@redhat.com>
42223
42224         sha256.h: correct definition of SHA224_DIGEST_SIZE
42225         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42226         Reported by Paulie Pena IV <paulie4@gmail.com>.
42227         Define as 224 / 8, rather than as a literal.
42228         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42229         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42230         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42231
42232 2008-07-31  Bruno Haible  <bruno@clisp.org>
42233
42234         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42235         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42236         Reported by Jonathan Patschke <jp@centtech.com>.
42237
42238 2008-07-31  Bruno Haible  <bruno@clisp.org>
42239
42240         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42241         Reported by Paolo Bonzini <bonzini@gnu.org>.
42242
42243 2008-07-30  Eric Blake  <ebb9@byu.net>
42244
42245         test-strtod: allow compilation without -lm
42246         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42247         Reported by Dennis Clarke <blastwave@gmail.com>.
42248
42249 2008-07-28  Jim Meyering  <meyering@redhat.com>
42250
42251         bootstrap: work also when there are no .po files in po/
42252         * build-aux/bootstrap (update_po_files): Complete the change
42253         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42254
42255 2008-07-27  Jim Meyering  <meyering@redhat.com>
42256
42257         * users.txt: Add zile.
42258
42259 2008-07-26  Ben Pfaff  <blp@gnu.org>
42260
42261         Add missing dependencies on new m4/exponent[fdl].m4 files.
42262         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42263         * modules/isnand-nolibm: Add m4/exponentd.m4.
42264         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42265         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42266         m4/isnan[fdl].m4, because the macros actually used moved.
42267         Reported by Jim Meyering.
42268
42269 2008-07-14  Ben Pfaff  <blp@gnu.org>
42270
42271         Add isinf module.
42272         * lib/isinf.c: New file.
42273         * lib/math.in.h: Define isinf macro if we have decided to replace
42274         it.
42275         * m4/isinf.m4: New file.
42276         * m4/math_h.m4: Initialize and substitute variables for isinf
42277         module.
42278         * modules/isinf: New file.
42279         * modules/isinf-tests: New file.
42280         * modules/math: Add substitutions for new module.
42281         * tests/test-isinf.c: New file.
42282         * doc/posix-functions/isinf.texi: Mention new module.
42283         * MODULES.html.sh: Mention new module.
42284
42285 2008-07-14  Ben Pfaff  <blp@gnu.org>
42286
42287         Factor out some macros for use by additional modules.
42288         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42289         exponentf.m4.
42290         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42291         exponentd.m4.
42292         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42293         file exponentl.m4.
42294         * m4/exponentf.m4: New file.
42295         * m4/exponentd.m4: New file.
42296         * m4/exponentl.m4: New file.
42297         * modules/isnanf: Use new file m4/exponentf.m4.
42298         * modules/isnand: Use new file m4/exponentd.m4.
42299         * modules/isnanl: Use new file m4/exponentl.m4.
42300
42301 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42302
42303         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42304         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42305         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42306         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42307
42308         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42309         readlink on platforms without PATH_MAX.
42310
42311 2008-07-21  Eric Blake  <ebb9@byu.net>
42312
42313         Warn, not fail, on stale version.
42314         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42315
42316         Don't allow installation with stale devel version number.
42317         * top/GNUmakefile (_is-install-target): New macro.
42318         (_curr-ver): Forbid installation with stale version number.
42319
42320 2008-07-20  Bruno Haible  <bruno@clisp.org>
42321
42322         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42323         TESTS_ENVIRONMENT.
42324         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42325
42326 2008-07-20  Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/c-stack.h (c_stack_action): Add documentation.
42329         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42330
42331 2008-07-20  Bruno Haible  <bruno@clisp.org>
42332
42333         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42334         * modules/readlink (License): Likewise.
42335
42336 2008-07-17  Eric Blake  <ebb9@byu.net>
42337
42338         * modules/c-stack (Link): Fix typo.
42339
42340         Make c-stack use libsigsegv, when available.
42341         * modules/c-stack (Depends-on): Add libsigsegv.
42342         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42343         needed.
42344         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42345         (segv_handler, overflow_handler, c_stack_action)
42346         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42347         implementation when libsigsegv is available, but only when using
42348         the library is necessary.
42349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42350         comment, explaining why XSI check fails on Linux.
42351         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42352         * tests/test-c-stack2.sh: Tweak skip message.
42353         * NEWS: Document new link-time requirements.
42354
42355 2008-07-16  Eric Blake  <ebb9@byu.net>
42356
42357         c-stack: Expose false positives when not using libsigsegv.
42358         * modules/c-stack-tests (Files): Expand test.
42359         * tests/test-c-stack.c (main): Add means to conditionally trigger
42360         non-overflow SIGSEGV.
42361         * tests/test-c-stack2.sh: New file.
42362
42363 2008-07-14  Bruno Haible  <bruno@clisp.org>
42364
42365         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42366         Reported by Eric Blake.
42367
42368 2008-07-14  Sam Steingold  <sds@gnu.org>
42369             Bruno Haible  <bruno@clisp.org>
42370
42371         New module libsigsegv.
42372         * modules/libsigsegv: New file.
42373         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42374         modifications.
42375         * MODULES.html.sh (Signal handling): New section.
42376
42377 2008-07-14  Bruno Haible  <bruno@clisp.org>
42378
42379         * modules/unictype/ctype-* (Description): Add the word "function".
42380         Improves the resulting doc in MODULES.html.
42381
42382 2008-07-12  Ben Pfaff  <blp@gnu.org>
42383
42384         Add longlong module.
42385         * modules/longlong: New file.
42386
42387 2008-07-12  Bruno Haible  <bruno@clisp.org>
42388
42389         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42390         to empty.
42391
42392 2008-07-10  Ben Pfaff  <blp@gnu.org>
42393
42394         Add isnan module.
42395         * doc/posix-functions/isnan.texi: Mention new module.
42396         * lib/math.in.h: Define isnan macro if we have decided to replace
42397         it.
42398         * m4/isnan.m4: New file.
42399         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42400         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42401         also.
42402         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42403         redundancy.
42404         * m4/math_h.m4: Initialize and substitute variables for isnan
42405         module.
42406         * modules/isnan: New file.
42407         * modules/isnan-tests: New file.
42408         * modules/math: Add substitutions for new module.
42409         * tests/test-isnan.c: New file.
42410         * MODULES.html.sh: Mention new module.
42411
42412 2008-07-10  Ben Pfaff  <blp@gnu.org>
42413
42414         Add isnanf module.
42415         * lib/isnanf.m4: New file.
42416         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42417         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42418         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42419         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42420         * modules/isnanf: New file.
42421         * modules/isnanf-tests: New file.
42422         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42423         files.
42424         * tests/test-isnanf-nolibm.c: factored most of its contents into
42425         new file tests/test-isnanf.h.
42426         * tests/test-isnanf.h: New file.
42427         * tests/test-isnanf.c: New file.
42428         * MODULES.html.sh: Mention new module.
42429         * doc/glibc-functions/isnanf.texi: Mention new module.
42430
42431 2008-07-10  Ben Pfaff  <blp@gnu.org>
42432
42433         Add isnand module.
42434         * lib/isnand.h: New file.
42435         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42436         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42437         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42438         functionality also.
42439         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42440         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42441         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42442         * modules/isnand: New file.
42443         * modules/isnand-tests: New file.
42444         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42445         files.
42446         * tests/test-isnand-nolibm.c: factored most of its contents into
42447         new file tests/test-isnand.h.
42448         * tests/test-isnand.h: New file.
42449         * tests/test-isnand.c: New file.
42450         * MODULES.html.sh: Mention new module.
42451
42452 2008-07-10  Ben Pfaff  <blp@gnu.org>
42453
42454         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42455         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42456         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42457         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42458         * modules/isnanf-nolibm: Update references to renamed files.
42459         * modules/isnand-nolibm: Likewise.
42460         * modules/isnanf-nolibm-tests: Likewise.
42461         * modules/isnand-nolibm-tests: Likewise.
42462         * lib/frexp.c: Likewise.
42463         * lib/isfinite.c: Likewise.
42464         * lib/signbitd.c: Likewise.
42465         * lib/signbitf.c: Likewise.
42466         * lib/vasnprintf.c: Likewise.
42467         * tests/test-ceilf1.c: Likewise.
42468         * tests/test-ceilf2.c: Likewise.
42469         * tests/test-floorf1.c: Likewise.
42470         * tests/test-floorf2.c: Likewise.
42471         * tests/test-frexp.c: Likewise.
42472         * tests/test-round1.c: Likewise.
42473         * tests/test-round2.c: Likewise.
42474         * tests/test-roundf1.c: Likewise.
42475         * tests/test-strtod.c: Likewise.
42476         * tests/test-trunc1.c: Likewise.
42477         * tests/test-trunc2.c: Likewise.
42478         * tests/test-truncf1.c: Likewise.
42479         * tests/test-truncf2.c: Likewise.
42480         * NEWS: Mention the renamed header files.
42481
42482 2008-07-11  Jim Meyering  <meyering@redhat.com>
42483
42484         vc-list-files: make the last-resort awk code more portable
42485         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42486         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42487         does not support it.
42488
42489 2008-07-10  Eric Blake  <ebb9@byu.net>
42490
42491         Work with tar's bootstrap.
42492         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42493         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42494         an m4 comment.
42495
42496 2008-07-09  Jim Meyering  <meyering@redhat.com>
42497
42498         posix-shell.m4: fix typo that made this test malfunction
42499         * m4/posix-shell.m4: Remove capitalization in variable name.
42500
42501 2008-07-08  Bruno Haible  <bruno@clisp.org>
42502
42503         * m4/onceonly.m4: Update comments.
42504         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42505
42506 2008-07-04  Jim Meyering  <meyering@redhat.com>
42507
42508         * users.txt: Add vc-dwim.
42509         (bison, coreutils): Use the gitweb URL.
42510
42511 2008-07-03  Jim Meyering  <meyering@redhat.com>
42512
42513         * users.txt: Add libffcall.  From Sam Steingold.
42514
42515 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42516
42517         getdate.y: do not ignore TZ with relative day, month or year offset
42518         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42519         relative-date-handling, since otherwise, the latter would clobber the
42520         sole output (an updated Start value) of the tz-handling block.
42521         * tests/test-getdate.c: Tests for the fix
42522
42523 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42524
42525         Recognize 'foo_LIBRARIES += libgnu.a'.
42526         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42527         makefile snippet has already specified an installation location,
42528         also using '+='.
42529
42530 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42531
42532         getdate.y: factor out common actions
42533         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42534         Use them in place of open-coded actions.
42535
42536 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42537
42538         Add self-test for getdate module.
42539         * modules/getdate-tests: New file.
42540         * tests/test-getdate.c: New file.
42541
42542 2008-06-29  Bruno Haible  <bruno@clisp.org>
42543
42544         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42545         .gitignore.
42546         Reported by Sylvain Beucler <beuc@beuc.net>.
42547
42548 2008-06-29  Bruno Haible  <bruno@clisp.org>
42549
42550         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42551         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42552
42553 2008-06-29  Bruno Haible  <bruno@clisp.org>
42554
42555         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42556         EXTRA_DIST.
42557         Reported by Sylvain Beucler <beuc@beuc.net>.
42558
42559 2008-06-26  Jim Meyering  <meyering@redhat.com>
42560
42561         make several modules depend on the "open" module
42562         This provides slightly increased consistency when opening-for-write
42563         the name of a non-directory spelled with a trailing slash.
42564         * modules/chdir-safer: Likewise.
42565         * modules/chown: Likewise.
42566         * modules/clean-temp: Likewise.
42567         * modules/copy-file: Likewise.
42568         * modules/fchdir: Likewise.
42569         * modules/fcntl-safer: Likewise.
42570         * modules/pipe: Likewise.
42571         * modules/utime: Likewise.
42572         Prompted by Eric Blake and Bruno Haible.
42573
42574 2008-06-24  Andreas Schwab  <schwab@suse.de>
42575
42576         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42577         literals can be used as initializers for global variables.
42578
42579 2008-06-23  Eric Blake  <ebb9@byu.net>
42580
42581         Make gnulib-cache.m4 easier to diff.
42582         * gnulib-tool (func_import): Allow newlines when reading cached
42583         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42584
42585 2008-06-23  Bruno Haible  <bruno@clisp.org>
42586
42587         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42588         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42589         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42590         m4/signalblocking.m4.
42591         (gl_PREREQ_SIGACTION): Don't invoke it.
42592         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42593         gl_PREREQ_SIG_HANDLER_H.
42594         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42595         Don't check for sigaction here.
42596
42597 2008-06-23  Bruno Haible  <bruno@clisp.org>
42598
42599         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42600         (install_handlers): Don't set the SA_RESETHAND flag.
42601
42602 2008-06-23  Bruno Haible  <bruno@clisp.org>
42603
42604         * m4/sigaction.m4: Comment fixes.
42605         * lib/signal.in.h: Likewise.
42606
42607 2008-06-23  Eric Blake  <ebb9@byu.net>
42608
42609         Fix typo.
42610         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42611
42612         Avoid SA_ namespace.
42613         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42614         Reported by Ralf Wildenhues.
42615
42616         Avoid test failure due to SA_RESTORER.
42617         * tests/test-sigaction.c (SA_MASK): New macro.
42618         (main): Avoid failing due to extension flags being set.
42619         Reported by Jim Meyering.
42620
42621         Revert use of sig-handler.h in sigprocmask.c.
42622         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42623         it requires the existence of struct sigaction.
42624         * lib/sigprocmask.c (handler_t): Restore typedef.
42625         (rpl_signal, old_handlers): Use local type.
42626
42627 2008-06-22  Bruno Haible  <bruno@clisp.org>
42628
42629         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42630         conditionally.
42631         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42632
42633 2008-06-22  Bruno Haible  <bruno@clisp.org>
42634
42635         * doc/posix-functions/siginterrupt.texi: Move note.
42636
42637         * lib/signal.in.h (SA_RESTART): New macro.
42638         * lib/sigaction.c: Update comment.
42639
42640         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42641
42642         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42643         (gl_PREREQ_SIGPROCMASK): Invoke it.
42644         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42645
42646         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42647
42648         * lib/sigprocmask.c: Update a comment.
42649
42650 2008-06-21  Eric Blake  <ebb9@byu.net>
42651
42652         Use sigaction module rather than signal().
42653         * modules/c-stack (Depends-on): Add sigaction.
42654         * modules/fatal-signal (Depends-on): Likewise.
42655         * modules/nanosleep (Depends-on): Likewise.
42656         * modules/sigprocmask (Files): Add sig-handler.h.
42657         * modules/sigaction (Files): Likewise.
42658         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42659         Eggert.
42660         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42661         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42662         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42663         (init_fatal_signals): Likewise.
42664         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42665         (siginterrupt): Delete fallback.
42666         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42667         instead.
42668         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42669         siginterrupt.
42670
42671         New module sigaction, for mingw.
42672         * modules/sigaction: New module...
42673         * modules/sigaction-tests: ...and its test.
42674         * m4/sigaction.m4: New file.
42675         * lib/sigaction.c: Likewise.
42676         * tests/test-sigaction.c: Likewise.
42677         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42678         * modules/signal (Makefile.am): Likewise.
42679         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42680         needed.
42681         * doc/posix-headers/signal.texi (signal.h): Mention provided
42682         types.
42683         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42684         that sigaction is preferable.
42685         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42686         module.
42687         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42688         sigaction.
42689
42690         Improve robustness of sigprocmask by overriding signal.
42691         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42692         is in use.
42693         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42694         (SIGKILL, SIGSTOP): Provide fallbacks.
42695         (rpl_signal): Implement.
42696         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42697         signal can be called inside handlers.
42698
42699         Fix nanosleep module on mingw.
42700         * modules/nanosleep (Depends-on): Add sys_select.
42701         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42702
42703         Fix licensing of sigprocmask.
42704         * modules/raise (License): Relicense as LGPL.
42705
42706 2008-06-21  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42709         result if it contains question marks.
42710         Reported by Michael Geng <linux@michaelgeng.de>.
42711
42712 2008-06-19  Bruno Haible  <bruno@clisp.org>
42713
42714         Fix CVS-ism.
42715         * doc/gnulib.texi: Include updated-stamp.texi.
42716         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42717         (updated-stamp.texi): New rule.
42718         (gnulib.info): Depend on it.
42719         * doc/.gitignore: Add updated-stamp.texi.
42720         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42721
42722 2008-06-19  Bruno Haible  <bruno@clisp.org>
42723
42724         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42725         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42726
42727 2008-06-19  Eric Blake  <ebb9@byu.net>
42728
42729         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42730         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42731         Reported by Stepan Kasal.
42732
42733 2008-06-18  Bruno Haible  <bruno@clisp.org>
42734
42735         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42736         Reported by Eric Blake.
42737
42738 2008-06-18  Eric Blake  <ebb9@byu.net>
42739
42740         Work around cygwin 1.5.25 strsignal bug.
42741         * tests/test-strsignal.c: Allow for const char *.
42742         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42743
42744 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42745
42746         * users.txt: Update URL to article and add author/date
42747         information.
42748
42749 2008-06-17  Bruno Haible  <bruno@clisp.org>
42750
42751         New macro gl_DISABLE_THREADS.
42752         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42753         if the user did not pass --enable-threads or --disable-threads option.
42754         (gl_DISABLE_THREADS): New macro.
42755         Reported by Eric Blake <ebb9@byu.net>.
42756
42757 2008-06-17  Bruno Haible  <bruno@clisp.org>
42758
42759         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42760         when the macro ignores it.
42761         Based on a patch by Eric Blake <ebb9@byu.net>.
42762
42763 2008-06-17  Bruno Haible  <bruno@clisp.org>
42764
42765         * modules/tls (License): Change to LGPLv2+.
42766         Reported by Eric Blake.
42767
42768 2008-06-17  Eric Blake  <ebb9@byu.net>
42769
42770         Simplify c-stack prerequisites.
42771         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42772         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42773         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42774         check.
42775         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42776         <sys/resource.h>.
42777
42778         Move c-stack test into testsuite.
42779         * modules/c-stack-tests: New file.
42780         * lib/c-stack.c [DEBUG]: Move test program...
42781         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42782         fail test if sigaltstack is lacking.
42783         * tests/test-c-stack.sh: New driver file.
42784
42785 2008-06-16  Eric Blake  <ebb9@byu.net>
42786
42787         Use raise module consistently.
42788         * modules/fatal-signal (Depends-on): Add raise.
42789         * modules/sigprocmask (Depends-on): Likewise.
42790         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42791         * lib/sigprocmask.c (sigprocmask): Likewise.
42792         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42793         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42794
42795         Fix compliance bug in sigpending.
42796         * lib/sigprocmask.c (sigpending): Return pending array via
42797         parameter, not return value.
42798
42799 2008-06-14  Eric Blake  <ebb9@byu.net>
42800
42801         Improve obstack-printf test code.
42802         * tests/test-obstack-printf.c (test_function): Fix comment, and
42803         simplify usage of obstack_* in macros.  Add a test for coverage.
42804         Reported by Bruno Haible.
42805
42806 2008-06-14  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42809         array size as a constant, not as a const variable.
42810         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42811         AC_USE_SYSTEM_EXTENSIONS.
42812         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42813         Test whether the obstack_printf function actually exists.
42814         * modules/obstack-printf (Depends-on): Add extensions.
42815         (Include): Remove obstack.h.
42816         * modules/obstack-printf-posix (Depends-on): Add extensions.
42817         (Include): Remove obstack.h.
42818
42819 2008-06-13  Eric Blake  <ebb9@byu.net>
42820
42821         Add obstack-printf and obstack-printf-posix modules.
42822         * modules/obstack-printf: New file.
42823         * modules/obstack-printf-posix: Likewise.
42824         * MODULES.html.sh (Misc): Mention them.
42825         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42826         Likewise.
42827         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42828         Likewise.
42829         * modules/stdio (Makefile.am): Accomodate new modules.
42830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42831         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42832         Declare.
42833         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42834         functions.
42835         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42836         (gl_REPLACE_OBSTACK_PRINTF): New macros
42837         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42838         * tests/test-obstack-printf.c: New file.
42839         * modules/obstack-printf-tests: Likewise.
42840         * modules/obstack-printf-posix-tests: Likewise.
42841
42842 2008-06-11  Bruno Haible  <bruno@clisp.org>
42843
42844         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42845         * lib/open.c: Include errno.h.
42846         (open): Fail when attempting to write to a file that has a trailing
42847         slash.
42848         * tests/test-open.c (main): Test against trailing slash bug.
42849         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42850
42851 2008-06-10  Bruno Haible  <bruno@clisp.org>
42852
42853         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42854         for $? to work inside the trap command, with various /bin/sh-s.
42855         * tests/test-vc-list-files-cvs.sh: Likewise.
42856
42857 2008-06-10  Bruno Haible  <bruno@clisp.org>
42858
42859         * lib/acl-internal.h: Don't include gettext.h here.
42860         * lib/set-mode-acl.c: Include gettext.h here.
42861         * lib/copy-acl.c: Likewise.
42862
42863 2008-06-10  Bruno Haible  <bruno@clisp.org>
42864
42865         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42866         * lib/wait-process.c (wait_subprocess): Likewise.
42867         * lib/execute.h (execute): Add termsigp argument.
42868         * lib/execute.c (execute): Likewise.
42869         * lib/csharpcomp.c (compile_csharp_using_pnet,
42870         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42871         * lib/csharpexec.c (execute_csharp_using_pnet,
42872         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42873         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42874         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42875         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42876         is_jikes_present): Update.
42877         * lib/javaexec.c (execute_java_class): Update.
42878         * lib/javaversion.c (execute_and_read_line): Update.
42879         * NEWS: Document the changes.
42880         Reported by Eric Blake.
42881
42882 2008-06-10  Eric Blake  <ebb9@byu.net>
42883
42884         Add missing include.
42885         * tests/test-strstr.c (includes): Add <signal.h>.
42886         * tests/test-strcasestr.c (includes): Likewise.
42887         * tests/test-memmem.c (includes): Likewise.
42888
42889 2008-06-10  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/wait-process.c (wait_subprocess): Add an assertion.
42892
42893 2008-06-10  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42896
42897 2008-06-10  Bruno Haible  <bruno@clisp.org>
42898
42899         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42900         using alarm().
42901         * tests/test-strcasestr.c (main): Likewise.
42902         * tests/test-strstr.c (main): Likewise.
42903
42904 2008-06-09  Bruno Haible  <bruno@clisp.org>
42905
42906         Work around the Solaris 10 ACE ACLs ABI change.
42907         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42908         declare if ACL_NO_TRIVIAL is present.
42909         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42910         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42911         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42912         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42913         define if ACL_NO_TRIVIAL is present.
42914         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42915         and use the current ABI.
42916         (file_has_acl): Use same #if condition as elsewhere.
42917         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42918         in use, and use the current ABI.
42919         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42920         Reported by Jim Meyering.
42921
42922 2008-06-09  Eric Blake  <ebb9@byu.net>
42923
42924         Work around environments that (stupidly) ignore SIGALRM.
42925         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42926         before using alarm().
42927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42928         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42929         Reported by Ian Beckwith <ianb@erislabs.net>.
42930
42931         Produce autobuild blurb earlier in log.
42932         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42933
42934 2008-06-09  Jim Meyering  <meyering@redhat.com>
42935         and OndÅ™ej Vašík  <ovasik@redhat.com>
42936
42937         utimens.c: correct kernel bug work-around
42938         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42939         failure, not success, and the kernel bug we're trying to work
42940         around affects not just the utimensat call, but also the fallback
42941         futimens call.
42942         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42943         not success.
42944         [HAVE_FUTIMENS]: Use the same work-around, here.
42945
42946 2008-06-09  Jim Meyering  <meyering@redhat.com>
42947
42948         add more guards around definition of ACE_-related code
42949         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42950         ALLOW and ACE_OWNER are also defined.
42951
42952 2008-06-08  Bruno Haible  <bruno@clisp.org>
42953
42954         * lib/acl-internal.h: Add me as co-author.
42955         * lib/file-has-acl.c: Likewise.
42956         * lib/set-mode-acl.c: Likewise.
42957         * lib/copy-acl.c: Likewise.
42958
42959 2008-06-08  Bruno Haible  <bruno@clisp.org>
42960
42961         Add support for AIX ACLs.
42962         * lib/acl-internal.h (acl_nontrivial): New declaration.
42963         * lib/file-has-acl.c (acl_nontrivial): New function.
42964         (file_has_acl): Add implementation using AIX 4 ACL API.
42965         * lib/set-mode-acl.c (qset_acl): Likewise.
42966         * lib/copy-acl.c (qcopy_acl): Likewise.
42967
42968 2008-06-08  Bruno Haible  <bruno@clisp.org>
42969
42970         Add support for HP-UX ACLs.
42971         * lib/acl-internal.h (acl_nontrivial): New declaration.
42972         * lib/file-has-acl.c (acl_nontrivial): New function.
42973         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42974         * lib/set-mode-acl.c (qset_acl): Likewise.
42975         * lib/copy-acl.c (qcopy_acl): Likewise.
42976
42977 2008-06-08  Bruno Haible  <bruno@clisp.org>
42978
42979         Add support for Cygwin ACLs.
42980         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42981         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42982         the chmod_or_fchmod call.
42983         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42984
42985 2008-06-08  Bruno Haible  <bruno@clisp.org>
42986
42987         Fix bug with setuid modes in Solaris 10+ code.
42988         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42989         succeeded, when the mode contains some special bits.
42990
42991 2008-06-08  Bruno Haible  <bruno@clisp.org>
42992
42993         Add support for Solaris 7..10 ACLs.
42994         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42995         declarations.
42996         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42997         functions.
42998         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42999         * lib/set-mode-acl.c (qset_acl): Likewise.
43000         * lib/copy-acl.c (qcopy_acl): Likewise.
43001
43002 2008-06-08  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43005         declaration.
43006         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43007         (acl_access_nontrivial): Remove MacOS X case.
43008         (file_has_acl): Use acl_extended_nontrivial.
43009         * lib/copy-acl.c (qcopy_acl): Likewise.
43010
43011 2008-06-08  Bruno Haible  <bruno@clisp.org>
43012
43013         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43014
43015 2008-06-08  Jim Meyering  <meyering@redhat.com>
43016
43017         * modules/acl (Maintainer): Add Bruno Haible.
43018
43019 2008-06-07  Bruno Haible  <bruno@clisp.org>
43020
43021         Improve support for Tru64 ACLs.
43022         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43023         ACL on OSF/1.
43024
43025 2008-06-07  Bruno Haible  <bruno@clisp.org>
43026
43027         Add support for MacOS X ACLs.
43028         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43029         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43030         * lib/set-mode-acl.c (qset_acl): Likewise.
43031         * lib/copy-acl.c (qcopy_acl): Likewise.
43032
43033 2008-06-07  Bruno Haible  <bruno@clisp.org>
43034
43035         Fix memory leak introduced on 2008-05-22.
43036         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43037         use.
43038
43039 2008-06-07  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43042         to construct an empty ACL.
43043
43044 2008-06-07  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43047         precisely.
43048         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43049
43050 2008-06-07  Bruno Haible  <bruno@clisp.org>
43051
43052         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43053         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43054
43055 2008-06-07  Bruno Haible  <bruno@clisp.org>
43056
43057         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43058         regardless of POSIX.
43059         * doc/posix-functions/_longjmp.texi: Likewise.
43060         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43061         SystemV platform in this case.
43062
43063 2008-06-06  Eric Blake  <ebb9@byu.net>
43064
43065         Document abort() bugs.
43066         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43067
43068         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43069         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43070         sigsetjmp.
43071         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43072         siglongjmp, but only as a macro.
43073         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43074         is obsolete.
43075         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43076
43077         Tweak documentation to cover cygwin argz bugs.
43078         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43079         argz bug fix; no code change needed since no cygwin releases
43080         occurred between the last fix and the bug being tested.
43081         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43082         module and recently fixed cygwin bugs.
43083         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43084         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43085         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43086         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43087         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43088         Likewise.
43089         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43090         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43091         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43092         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43093         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43094         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43095         Likewise.
43096
43097         Avoid gcc warning on cygwin.
43098         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43099         !ACL_NO_TRIVIAL]: Avoid unused variable.
43100
43101 2008-06-05  Eric Blake  <ebb9@byu.net>
43102
43103         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43104         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43105         git-version-gen fails to come up with a version.
43106         Reported by Simon Josefsson.
43107
43108 2008-06-05  Jim Meyering  <meyering@redhat.com>
43109             Paul Eggert  <eggert@cs.ucla.edu>
43110
43111         utimens.c: work around a probable Linux kernel bug
43112         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43113         appears to be a kernel bug that causes utimensat to return 280
43114         instead of 0, indicating success.
43115
43116 2008-06-04  Bruno Haible  <bruno@clisp.org>
43117
43118         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43119         2008-06-01 commit.
43120
43121 2008-06-04  Bruno Haible  <bruno@clisp.org>
43122
43123         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43124         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43125         (file_has_acl): Use it. Save errno afterwards.
43126         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43127
43128 2008-06-03  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43131         draft code. Simplify #ifs.
43132         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43133         Put Solaris code after POSIX-draft code. Fix comments regarding
43134         Solaris 10, HP-UX. Mention Cygwin.
43135         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43136
43137 2008-06-03  Eric Blake  <ebb9@byu.net>
43138
43139         Provide fallback for older kernels.
43140         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43141         Provide runtime fallback if kernel lacks support.
43142         Reported by Mike Frysinger.
43143
43144 2008-06-02  Bruno Haible  <bruno@clisp.org>
43145
43146         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43147         it exists.
43148
43149 2008-06-02  Bruno Haible  <bruno@clisp.org>
43150
43151         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43152         * lib/copy-acl.c (qcopy_acl): Update comment.
43153
43154 2008-06-02  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43157         like ACL APIs.
43158
43159 2008-06-02  Bruno Haible  <bruno@clisp.org>
43160
43161         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43162         * tests/test-set-mode-acl.sh: Likewise.
43163         * tests/test-copy-acl.sh: Likewise.
43164         * tests/test-copy-file.sh: Likewise.
43165
43166 2008-06-02  Bruno Haible  <bruno@clisp.org>
43167
43168         * tests/test-file-has-acl.sh: Remove unused code.
43169
43170 2008-06-01  Bruno Haible  <bruno@clisp.org>
43171
43172         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43173         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43174         messages.
43175         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43176
43177 2008-06-01  Bruno Haible  <bruno@clisp.org>
43178
43179         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43180         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43181         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43182         APIs.
43183         * modules/acl-tests (configure.ac): Remove tests now contained in
43184         m4/acl.m4.
43185
43186 2008-06-02  Jim Meyering  <meyering@redhat.com>
43187
43188         announce-gen: use a better key-server host name
43189         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43190         it may be more consistently reliable.  Suggested by Werner Koch
43191         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43192
43193 2008-06-01  Bruno Haible  <bruno@clisp.org>
43194
43195         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43196         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43197
43198 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43199
43200         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43201
43202 2008-06-01  Bruno Haible  <bruno@clisp.org>
43203
43204         New ACL tests.
43205         * tests/test-file-has-acl.sh: New file.
43206         * tests/test-file-has-acl.c: New file.
43207         * tests/test-set-mode-acl.sh: New file.
43208         * tests/test-set-mode-acl.c: New file.
43209         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43210         * tests/test-copy-acl.c: New file.
43211         * modules/acl-tests: New file, based on modules/copy-file-tests.
43212         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43213         (Depends-on): Add acl-tests.
43214         (configure.ac): Remove checks.
43215         (Makefile.am): Don't create test-sameacls program here any more.
43216
43217 2008-06-01  Bruno Haible  <bruno@clisp.org>
43218
43219         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43220         * tests/test-sameacls.c: Include progname.h.
43221         (main): Invoke set_program_name. Portability fixes for MacOS X,
43222         Solaris, HP-UX.
43223
43224 2008-06-01  Bruno Haible  <bruno@clisp.org>
43225
43226         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43227         function.
43228         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43229
43230 2008-06-01  Bruno Haible  <bruno@clisp.org>
43231
43232         * modules/rpmatch (Depends-on): Add strdup.
43233
43234 2008-06-01  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/pipe.c: Include unistd-safer.h.
43237         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43238         * modules/pipe (Depends-on): Add unistd-safer.
43239
43240 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43241
43242         * modules/autobuild (configure.ac): Call AB_INIT.
43243
43244 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43245
43246         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43247         Suggested by Bruno Haible <bruno@clisp.org>.
43248
43249 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43250
43251         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43252         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43253         <bruno@clisp.org>.
43254
43255 2008-05-29  Eric Blake  <ebb9@byu.net>
43256
43257         Prefer new POSIX 200x interfaces over futimesat.
43258         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43259         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43260         when available.
43261         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43262
43263 2008-05-28  Bruno Haible  <bruno@clisp.org>
43264
43265         * modules/stpcpy (License): Change to LGPLv2+.
43266         Requested by David Lutterkort <dlutter@redhat.com>.
43267
43268 2008-05-27  Bruno Haible  <bruno@clisp.org>
43269
43270         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43271         current mingw.
43272         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43273
43274 2008-05-27  Bruno Haible  <bruno@clisp.org>
43275
43276         * modules/iconv_open (Link): New section, from module 'iconv'.
43277         * modules/striconv (Link): Likewise.
43278         * modules/striconveh (Link): Likewise.
43279         * modules/xstriconv (Link): Likewise.
43280         * modules/unicodeio (Link): Likewise.
43281         * modules/propername (Link): Likewise.
43282         Reported by Jim Meyering.
43283
43284 2008-05-26  Jim Meyering  <meyering@redhat.com>
43285
43286         sha256: do not artificially restrict buffer length to be < 2^32
43287         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43288         uint32_t to size_t.
43289         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43290         to match.
43291
43292         avoid unaligned access errors, e.g., on sparc
43293         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43294         direct access through a possibly-unaligned uint64* pointer.
43295         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43296         direct access through a possibly-unaligned uint32* pointer.
43297         Prompted by this patch from Tom "spot" Callaway:
43298         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43299
43300         sha512.c: fix typo in comment
43301         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43302
43303 2008-05-25  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43306         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43307         (Makefile.am): Update lib_SOURCES.
43308
43309 2008-05-25  Bruno Haible  <bruno@clisp.org>
43310
43311         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43312
43313 2008-05-25  Jim Meyering  <meyering@redhat.com>
43314
43315         useless-if-before-free: freed expr may have white-space differences
43316         * build-aux/useless-if-before-free: Recognize cases in which the
43317         freed expression differs from the tested one in embedded white
43318         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43319         $1 was used, so we can't make any regexp shy.  Improved tests now
43320         detect this.
43321
43322         useless-if-before-free: accept white space in the expression.
43323         * build-aux/useless-if-before-free: For now, any white space
43324         in the expression must be identical in the free argument.
43325
43326         useless-if-before-free: efficiency tweak
43327         * build-aux/useless-if-before-free: Make the expression-matching
43328         regexp "shy".
43329         Make the *outer* regexp shy, not the expr-matching one.
43330
43331         update code-in-comment to accept cast of free arg
43332         * build-aux/useless-if-before-free: Update regexp.
43333
43334 2008-05-25  Bruno Haible  <bruno@clisp.org>
43335
43336         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43337         * modules/copy-file-tests (Files, Makefile.am): Update.
43338         * tests/test-copy-file.c (func_test_copy): Update.
43339
43340 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43341
43342         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43343
43344 2008-05-23  Bruno Haible  <bruno@clisp.org>
43345
43346         Improve support for ACLs on OSF/1.
43347         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43348         Remove fallback for unknown flavors of ACLs.
43349
43350 2008-05-22  Bruno Haible  <bruno@clisp.org>
43351
43352         Add support for ACLs on OSF/1.
43353         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43354         replacements.
43355         (acl_free_text): New macro fallback.
43356         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43357         acl_free.
43358         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43359         acl_free_text function. Require AC_C_INLINE.
43360
43361 2008-05-22  Bruno Haible  <bruno@clisp.org>
43362
43363         Make copy_acl work on MacOS X 10.5.
43364         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43365         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43366         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43367         If MODE_INSIDE_ACL, don't assume that every system has the same text
43368         representation for ACLs as FreeBSD.
43369         * lib/copy-acl.c (copy_acl): Add support for platforms with
43370         !MODE_INSIDE_ACL.
43371         * lib/file-has-acl.c (file_has_acl): Likewise.
43372         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43373         FreeBSD, MacOS X, or IRIX, respectively.
43374
43375 2008-05-22  Bruno Haible  <bruno@clisp.org>
43376
43377         * lib/acl.h: Don't include <sys/acl.h>.
43378         (GETACLCNT): Move fallback to lib/acl-internal.h.
43379         * lib/acl-internal.h: Include <sys/acl.h> here.
43380         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43381
43382 2008-05-22  Bruno Haible  <bruno@clisp.org>
43383
43384         Split off copy_acl function to separate file.
43385         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43386         * lib/acl.c (copy_acl): Moved function to separate file.
43387         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43388         * modules/acl (Files): Add lib/copy-acl.c.
43389         (Makefiles.am): Augment lib_SOURCES.
43390
43391 2008-05-22  Bruno Haible  <bruno@clisp.org>
43392
43393         * modules/copy-file-tests: New file.
43394         * tests/test-copy-file.sh: New file.
43395         * tests/test-copy-file.c: New file.
43396         * tests/test-copy-file-sameacls.c: New file.
43397
43398 2008-05-22  Eric Blake  <ebb9@byu.net>
43399
43400         Avoid gcc warning.
43401         * tests/test-memcmp.c (main): Pass NULL indirectly.
43402
43403 2008-05-21  Bruno Haible  <bruno@clisp.org>
43404
43405         Add reference doc about ACLs.
43406         * doc/acl-resources.txt: New file.
43407         * doc/acl-cygwin.txt: New file.
43408
43409 2008-05-21  Bruno Haible  <bruno@clisp.org>
43410
43411         Avoid one more warning from gcc.
43412         * lib/vasnprintf.c (IF_LINT): Update comments.
43413         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43414
43415 2008-05-21  Jim Meyering  <meyering@redhat.com>
43416
43417         avoid a warning from gcc
43418         * lib/vasnprintf.c (IF_LINT): Define.
43419         (scale10_round_decimal_long_double):
43420         Use it to avoid a "may be used uninitialized" warning.
43421         (scale10_round_decimal_double): Likewise.
43422
43423 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43424
43425         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43426         declared.
43427
43428 2008-05-20  Bruno Haible  <bruno@clisp.org>
43429
43430         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43431         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43432
43433 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43434
43435         * modules/memcmp-tests: New file.
43436         * tests/test-memcmp.c: New file.
43437
43438 2008-05-19  Bruno Haible  <bruno@clisp.org>
43439
43440         * modules/propername (Notice, configure.ac): Put quoted "..." into
43441         --keyword option.
43442         * lib/propername.h: Update comments accordingly.
43443         Reported by Eric Blake.
43444
43445 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43446
43447         * modules/getpass-gnu (Depends-on): Add fseeko.
43448
43449 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43450
43451         * modules/base64-tests: New file.
43452
43453 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43454
43455         * lib/base64.c (base64_decode_ctx): If a decode context structure
43456         was passed in use it to ignore newlines.  If a context structure
43457         was _not_ passed in, continue to treat newlines as garbage (this
43458         is the historical behavior).  Formerly base64_decode.
43459         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43460         takes a decode context structure.
43461         * lib/base64.h (base64_decode): Macro for four-argument calls.
43462         (base64_decode_alloc): Likewise.
43463         * lib/base64.c (base64_decode_ctx): If a decode context structure
43464         was passed in use it to ignore newlines.  If a context structure
43465         was _not_ passed in, continue to treat newlines as garbage (this
43466         is the historical behavior).  Formerly base64_decode.
43467         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43468         takes a decode context structure.
43469         * lib/base64.h (base64_decode): Macro for four-argument calls.
43470         (base64_decode_alloc): Likewise.
43471
43472 2008-05-19  Jim Meyering  <meyering@redhat.com>
43473
43474         avoid a warning from gcc
43475         * lib/trim.c (IF_LINT): Define.
43476         (trim2): Use it to avoid a "may be used uninitialized" warning.
43477
43478         Fix doc typo.
43479         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43480
43481 2008-05-19  Bruno Haible  <bruno@clisp.org>
43482
43483         * doc/glibc-functions/getpass.texi: Document limits of other
43484         implementations.
43485
43486 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43487             Bruno Haible <bruno@clisp.org>
43488
43489         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43490
43491 2008-05-18  Bruno Haible  <bruno@clisp.org>
43492
43493         * modules/propername: New file, from GNU gettext.
43494         * lib/propername.h: New file, from GNU gettext.
43495         * lib/propername.c: New file, from GNU gettext.
43496         * MODULES.html.sh (Internationalization functions): Add propername.
43497
43498 2008-05-16  Jim Meyering  <meyering@redhat.com>
43499             Bruno Haible  <bruno@clisp.org>
43500
43501         Avoid some warnings from "gcc -Wshadow".
43502         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43503
43504 2008-05-15  Eric Blake  <ebb9@byu.net>
43505
43506         Extend previous patch to cygwin 1.7.0.
43507         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43508         fast implementation in cygwin >= 1.7.0.
43509         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43511
43512 2008-05-15  Bruno Haible  <bruno@clisp.org>
43513
43514         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43515         implementation in glibc >= 2.9.
43516         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43518
43519 2008-05-15  Bruno Haible  <bruno@clisp.org>
43520
43521         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43522         (Unicode string functions): Add unilbrk/*.
43523         Reported by Karl Berry.
43524
43525 2008-05-15  Eric Blake  <ebb9@byu.net>
43526
43527         Fix violation of <stdbool.h> replacement in regex.
43528         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43529         * lib/regexec.c (re_search_internal): Likewise.
43530         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43531
43532 2008-05-15  Jim Meyering  <meyering@redhat.com>
43533
43534         avoid distracting test output when git or cvs is not found
43535         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43536         * tests/test-vc-list-files-git.sh: Likewise.
43537
43538 2008-05-15  Eric Blake  <ebb9@byu.net>
43539
43540         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43541         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43542         glibc version.
43543         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43544         * doc/posix-functions/strstr.texi (strstr): Likewise.
43545         * lib/str-two-way.h (MAX): Sychronize with glibc.
43546
43547 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43548
43549         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43550         opr.ctx_type.
43551         (calc_first): Initialize constraint field.
43552         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43553         Fix grammar.
43554         (duplicate_node): Merge constraint field for all node types.
43555         (calc_eclosure_iter): Look at constraint field for all node types.
43556         * lib/regex_internal.c (create_cd_newstate): Don't look at
43557         opr.ctx_type.
43558
43559 2008-05-14  Bruno Haible  <bruno@clisp.org>
43560
43561         Help GCC to do better code generation.
43562         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43563         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43564         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43565         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43566         Declare with attribute 'malloc' if supported.
43567
43568 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43569
43570         use "echo STR|wc -c" rather than unportable "expr length STR"
43571         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43572         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43573
43574 2008-05-14  Jim Meyering  <meyering@redhat.com>
43575
43576         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43577         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43578         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43579         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43580         via Collin Lasse.
43581
43582 2008-05-14  Eric Blake  <ebb9@byu.net>
43583
43584         Avoid quadratic growth in gl_LIBSOURCES.
43585         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43586         Suggested by Bruno Haible.
43587
43588         Test xmemdup0.
43589         * modules/xmemdup0-tests: New file.
43590         * tests/test-xmemdup0.c: Likewise.
43591
43592 2008-05-13  Eric Blake  <ebb9@byu.net>
43593
43594         Split xmemdup0 into its own module.
43595         * modules/xmemdup0: New file.
43596         * lib/xmemdup0.h: Likewise.
43597         * lib/xmemdup0.c: Likewise.
43598         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43599         * lib/xalloc.h (xmemdup0): Remove.
43600         * lib/xmalloc.c (xmemdup0): Likewise.
43601
43602 2008-05-13  Eric Blake  <ebb9@byu.net>
43603             Bruno Haible  <bruno@clisp.org>
43604
43605         Reduce number of forks required during autoconf.
43606         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43607         and gl_LIBSOURCES_DIR.
43608         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43609         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43610         m4_syscmd per file.
43611         <m4_foreach_w>: Move...
43612         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43613
43614 2008-05-13  Eric Blake  <ebb9@byu.net>
43615
43616         * gnulib-tool: Fix various comment typos.
43617
43618 2008-05-12  Bruno Haible  <bruno@clisp.org>
43619
43620         Tailor the linebreaking algorithm.
43621         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43622
43623 2008-05-12  Bruno Haible  <bruno@clisp.org>
43624
43625         Update to Unicode 5.0.0.
43626         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43627         LBP_JV, LBP_JT. Redistribute values.
43628         (unilbrk_table): Change size.
43629         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43630         Unicode TR#14 rev. 22.
43631         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43632         LBP_JV, LBP_JT. Redistribute values.
43633         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43634         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43635         Update.
43636         * lib/unilbrk/lbrkprop1.h: Regenerated.
43637         * lib/unilbrk/lbrkprop2.h: Regenerated.
43638         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43639         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43640         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43641         Likewise.
43642         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43643         Likewise.
43644         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43645         result.
43646         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43647         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43648         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43649         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43650         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43651         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43652
43653 2008-05-11  Bruno Haible  <bruno@clisp.org>
43654
43655         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43656
43657 2008-05-11  Bruno Haible  <bruno@clisp.org>
43658
43659         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43660         * modules/unilbrk/gen-lbrk: New file.
43661
43662 2008-05-11  Bruno Haible  <bruno@clisp.org>
43663
43664         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43665         * m4/sha512.m4 (gl_SHA512): Likewise.
43666
43667 2008-05-11  Jim Meyering  <meyering@redhat.com>
43668
43669         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43670         * modules/crypto/sha256: New file.
43671         * modules/crypto/sha512: Likewise.
43672         * lib/sha256.c: Likewise.
43673         * lib/sha256.h: Likewise.
43674         * lib/sha512.c: Likewise.
43675         * lib/sha512.h: Likewise.
43676         * lib/u64.h: Likewise.
43677         * m4/sha256.m4: Likewise.
43678         * m4/sha512.m4: Likewise.
43679         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43680
43681 2008-05-10  Bruno Haible  <bruno@clisp.org>
43682
43683         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43684         (Input/Output <stdio.h>): Add xprintf.
43685         (Signal handling <signal.h>): Add strsignal.
43686         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43687         (Core language properties): Add func.
43688         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43689         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43690         strings.
43691         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43692         (Input/output): New section.
43693         (File system functions): Add openat-die, stat-macros.
43694         (Networking functions): Add sockets.
43695         (Unicode string functions): Add unictype/*.
43696         (Support for building libraries and executables): Add gperf.
43697         (Support for building documentation): Add agpl-3.0.
43698         (Misc): Add nocrash.
43699
43700 2008-05-10  Bruno Haible  <bruno@clisp.org>
43701
43702         * modules/unictype/gen-ctype: New file.
43703
43704 2008-05-10  Jim Meyering  <meyering@redhat.com>
43705
43706         Make chdir-safer.c more efficient on a system with no symlinks.
43707         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43708         also if ELOOP is zero.  Suggested by Bruno Haible.
43709
43710         Make chdir-safer.c slightly safer.
43711         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43712         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43713
43714         Avoid compile failure on systems without ELOOP (like mingw).
43715         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43716         Reported by Bruno Haible.
43717
43718 2008-05-10  Bruno Haible  <bruno@clisp.org>
43719
43720         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43721         (is_utf8_encoding): Use a case-insensitive comparison.
43722         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43723         streq.
43724
43725 2008-05-10  Bruno Haible  <bruno@clisp.org>
43726
43727         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43728         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43729         * lib/unilbrk/ulc-common.h (iconv_string_length,
43730         iconv_string_keeping_offsets): Remove declarations.
43731         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43732         Don't include <iconv.h>, streq.h, xsize.h.
43733         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43734         conversion.
43735         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43736         <iconv.h>, streq.h, xsize.h.
43737         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43738         conversion.
43739         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43740         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43741         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43742         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43743
43744 2008-05-10  Bruno Haible  <bruno@clisp.org>
43745
43746         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43747         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43748
43749         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43750         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43751
43752         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43753         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43754
43755         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43756         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43757
43758         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43759         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43760
43761         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43762         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43763
43764         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43765         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43766
43767         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43768         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43769
43770 2008-05-10  Bruno Haible  <bruno@clisp.org>
43771
43772         Split up 'linebreak' module.
43773         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43774         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43775         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43776         modifications.
43777         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43778         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43779         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43780         lib/linebreak.c.
43781         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43782         lib/linebreak.c.
43783         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43784         lib/linebreak.c.
43785         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43786         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43787         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43788         lib/linebreak.c.
43789         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43790         lib/linebreak.c.
43791         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43792         lib/linebreak.c.
43793         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43794         lib/linebreak.c.
43795         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43796         lib/linebreak.c.
43797         * modules/unilbrk/base: New file.
43798         * modules/unilbrk/tables: New file.
43799         * modules/unilbrk/u8-possible-linebreaks: New file.
43800         * modules/unilbrk/u16-possible-linebreaks: New file.
43801         * modules/unilbrk/u32-possible-linebreaks: New file.
43802         * modules/unilbrk/ulc-common: New file.
43803         * modules/unilbrk/ulc-possible-linebreaks: New file.
43804         * modules/unilbrk/u8-width-linebreaks: New file.
43805         * modules/unilbrk/u16-width-linebreaks: New file.
43806         * modules/unilbrk/u32-width-linebreaks: New file.
43807         * modules/unilbrk/ulc-width-linebreaks: New file.
43808         * lib/linebreak.h: Remove file.
43809         * lib/linebreak.c: Remove file.
43810         * m4/linebreak.m4: Remove file.
43811         * modules/linebreak: Remove file.
43812         * NEWS: Mention the changes.
43813
43814 2008-05-09  Eric Blake  <ebb9@byu.net>
43815
43816         Add xmemdup0.
43817         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43818         implementation.
43819         * lib/xmalloc.c (xmemdup0): New C implementation.
43820
43821 2008-05-08  Bruno Haible  <bruno@clisp.org>
43822
43823         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43824
43825 2008-05-07  Eric Blake  <ebb9@byu.net>
43826
43827         Support cross-compilation of <wctype.h>.
43828         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43829         AC_CACHE_CHECK.
43830
43831 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43832
43833         * build-aux/vc-list-files: Add support for bzr.
43834
43835 2008-05-03  Jim Meyering  <meyering@redhat.com>
43836
43837         avoid failed assertion with tight malloc
43838         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43839
43840 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43841
43842         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43843         are needed from arpa/inet.h.
43844         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43845         Reported by Bruno Haible.
43846
43847 2008-05-02  Jim Meyering  <meyering@redhat.com>
43848
43849         avoid compilation error on FreeBSD 6
43850         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43851
43852 2008-05-01  Jim Meyering  <meyering@redhat.com>
43853
43854         useless-if-before-free: correct --help's exit status description
43855         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43856         for one or more matches, etc.  Reported by Bruno Haible.
43857
43858         vc-list-files: make the stand-alone gnulib test work
43859         * modules/vc-list-files-tests (configure.ac):
43860         Define and AC_SUBST abs_aux_dir.
43861         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43862         $(abs_top_srcdir) to each script and having each of them
43863         duplicate the work of setting PATH, set PATH here, using
43864         the new variable, abs_aux_dir instead.
43865         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43866         * tests/test-vc-list-files-git.sh: Likewise.
43867         Reported by Bruno Haible.
43868
43869 2008-05-01  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43872         reallocation. Rename 'done' to 'found_delimiter'.
43873
43874 2008-05-01  Jim Meyering  <meyering@redhat.com>
43875
43876         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43877         * build-aux/vc-list-files: Use `...`, not $(...).
43878
43879 2008-04-30  Jim Meyering  <meyering@redhat.com>
43880
43881         add tests for vc-list-files
43882         * modules/vc-list-files-tests: New module.
43883         * tests/test-vc-list-files-cvs.sh: New file.
43884         * tests/test-vc-list-files-git.sh: New file.
43885
43886         avoid a warning from gcc
43887         * lib/getndelim2.c (IF_LINT): Define.
43888         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43889
43890         vc-list-files: work properly with build-aux/cvsu, too
43891         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43892         to all cvs-based clauses.
43893
43894         vc-list-files: work properly in the CVS+awk case, too
43895         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43896
43897         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43898         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43899         take more than one file argument, so .  Add quotes, just in case $dir
43900         ever contains a shell meta-character.  Prompted by Soren Hansen in
43901         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43902
43903 2008-04-29  Eric Blake  <ebb9@byu.net>
43904
43905         Optimize getndelim2 to use block operations when possible.
43906         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43907         freadseek, and memchr2.
43908         * lib/getndelim2.c (getndelim2): Use them for block reads.
43909
43910 2008-04-29  Bruno Haible  <bruno@clisp.org>
43911
43912         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43913         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43914         * modules/inet_ntop (Depends-on): Add extensions.
43915         * modules/inet_pton (Depends-on): Likewise.
43916         Reported by Simon Josefsson.
43917
43918 2008-04-29  Jim Meyering  <meyering@redhat.com>
43919
43920         When the is more than one match in a block, match all of them.
43921         * build-aux/useless-if-before-free: Iterate through each block
43922         until there are no more matches.
43923
43924         Fix broken useless-if-before-free script.
43925         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43926         the expression to match cast of argument to free-like function.
43927
43928 2008-04-29  Eric Blake  <ebb9@byu.net>
43929
43930         Use new header.
43931         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43932
43933 2008-04-29  Jim Meyering  <meyering@redhat.com>
43934
43935         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43936         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43937         by gnulib to exist and to declare e.g., inet_ntop.
43938         Don't include "inet_ntop.h", now removed.
43939
43940         * m4/arpa_inet_h.m4: Remove trailing blanks.
43941
43942 2008-04-29  Eric Blake  <ebb9@byu.net>
43943
43944         Silence valgrind on safe reads beyond potential array bounds.
43945         * lib/rawmemchr.valgrind: New file.
43946         * lib/strchrnul.valgrind: Likewise.
43947         * modules/rawmemchr (Files): Distribute new file.
43948         * modules/strchrnul (Files): Likewise.
43949         Suggested by Bruno Haible.
43950
43951 2008-04-29  Bruno Haible  <bruno@clisp.org>
43952
43953         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43954         (inet_ntop, inet_pton): Change portability warning's wording.
43955         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43956         Invoke gl_CHECK_NEXT_HEADERS.
43957         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43958         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43959         set ARPA_INET_H.
43960         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43961         * modules/arpa_inet (Description): No longer only for systems that
43962         lack it.
43963         (Depends-on): Add include_next.
43964         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43965         HAVE_ARPA_INET_H.
43966
43967 2008-04-29  Jim Meyering  <meyering@redhat.com>
43968
43969         * modules/mkdir (License): Re-license as LGPLv2+.
43970
43971 2008-04-29  Bruno Haible  <bruno@clisp.org>
43972
43973         * modules/rawmemchr (Maintainer): Set to Eric.
43974         * modules/strchrnul (Maintainer): Likewise.
43975
43976 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43977
43978         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43979         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43980
43981         * modules/arpa_inet (arpa/inet.h): Use them.
43982
43983 2008-04-28  Eric Blake  <ebb9@byu.net>
43984
43985         Test getndelim2.
43986         * modules/getndelim2-tests: New file.
43987         * tests/test-getndelim2.c: Likewise.
43988         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43989         stream.
43990         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43991
43992         * MODULES.html.sh: Document new module.
43993
43994 2008-04-20  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/c-stack.c (die): Use raise.
43997         * modules/c-stack (Depends-on): Add raise.
43998
43999 2008-04-28  Bruno Haible  <bruno@clisp.org>
44000
44001         Expect rpmatch to be declared.
44002         * lib/yesno.c (rpmatch): Remove declaration.
44003
44004         Declare rpmatch.
44005         * lib/stdlib.in.h (rpmatch): New declaration.
44006         * lib/rpmatch.c: Include <stdlib.h> first.
44007         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44008         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44010         HAVE_RPMATCH.
44011         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44013         (Include): Set to <stdlib.h>.
44014         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44015         HAVE_RPMATCH.
44016         * NEWS: Document the change.
44017
44018 2008-04-28  Bruno Haible  <bruno@clisp.org>
44019
44020         Change rpmatch to use nl_langinfo when appropriate.
44021         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44022         (N_): New macro.
44023         (localized_pattern): New function/macro.
44024         (try): Remove match, nomatch arguments. Copy the pattern into safe
44025         memory before caching it.
44026         (rpmatch): Use localized_pattern. Add translator comments.
44027         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44028         Suggested by Eric Blake.
44029         * modules/rpmatch (Depends-on): Add stdbool.
44030
44031 2008-04-28  Eric Blake  <ebb9@byu.net>
44032
44033         Add rawmemchr module, matching glibc.
44034         * modules/string (Makefile.am): New indicator.
44035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44036         * lib/string.in.h (rawmemchr): Declare when appropriate.
44037         * modules/rawmemchr: New file.
44038         * m4/rawmemchr.m4: Likewise.
44039         * lib/rawmemchr.c: Likewise.
44040         * modules/rawmemchr-tests: Likewise.
44041         * tests/test-rawmemchr.c: Likewise.
44042         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44043         module.
44044         * modules/strchrnul (Depends-on): Add rawmemchr.
44045         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44046
44047         Whitespace cleanup.
44048         * tests/test-strchrnul.c: Reindent.
44049         * lib/strchrnul.c: Likewise.
44050
44051         Optimize and test strchrnul.
44052         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44053         * modules/strchrnul-tests: New file.
44054         * tests/test-strchrnul.c: Likewise.
44055
44056         Remove intprops dependency.
44057         * modules/memchr (Depends-on): Remove intprops.
44058         * modules/memrchr (Depends-on): Likewise.
44059         * modules/memchr2 (Depends-on): Likewise.
44060         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44061         * lib/memrchr.c (__memrchr): Likewise.
44062         * lib/memrchr2.c (memchr2): Likewise.
44063         Reported by Simon Josefsson.
44064
44065 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44066
44067         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44068         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44069
44070 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44071
44072         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44073
44074         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44075
44076         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44077
44078         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44079         declarations.
44080         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44081
44082         * m4/inet_pton.m4: Don't check for header files.
44083
44084         * m4/inet_ntop.m4: Don't check for header files.
44085
44086 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44087
44088         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44089         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44090         trigger for cygwin).
44091         Reported by Bruno Haible  <bruno@clisp.org>.
44092
44093 2008-04-28  Bruno Haible  <bruno@clisp.org>
44094
44095         * doc/posix-functions/strdup.texi: Mention mingw problem.
44096
44097 2008-04-27  Bruno Haible  <bruno@clisp.org>
44098
44099         * modules/stat-time-tests (Depends-on): Add sleep.
44100         * tests/test-stat-time.c (force_unlink): New function.
44101         (cleanup): Use it.
44102         (test_mtime): Remove the ctime related tests.
44103         (test_ctime): New function, containing the ctime related tests.
44104         (main): Call test_ctime, except on native Windows platforms.
44105
44106 2008-04-27  Bruno Haible  <bruno@clisp.org>
44107
44108         * lib/rpmatch.c (rpmatch): Add some comments.
44109         Reported by James Youngman <jay@gnu.org>.
44110
44111 2008-04-27  Bruno Haible  <bruno@clisp.org>
44112
44113         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44114         quiet NaNs.
44115
44116 2008-04-27  Bruno Haible  <bruno@clisp.org>
44117
44118         Make test-yesno.sh work on mingw.
44119         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44120         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44121         (main): Set stdin to binary mode.
44122         * modules/yesno-tests (Depends-on): Add binary-io.
44123
44124 2008-04-27  Bruno Haible  <bruno@clisp.org>
44125
44126         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44127         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44128         argument that lie outside the IEEE 854 domain.
44129         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44130         (gl_ISFINITE): Use it.
44131         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44132
44133 2008-04-27  Bruno Haible  <bruno@clisp.org>
44134
44135         Allow local renaming in config.h.
44136         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44137
44138 2008-04-27  Bruno Haible  <bruno@clisp.org>
44139
44140         * lib/memchr.c (__memchr): Change type of 'i'.
44141         * lib/memchr2.c (memchr2): Likewise.
44142
44143 2008-04-26  Eric Blake  <ebb9@byu.net>
44144         and Bruno Haible  <bruno@clisp.org>
44145
44146         Optimize and test memrchr.
44147         * modules/memrchr (Depends-on): Add intprops.
44148         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44149         * modules/memrchr-tests: New file.
44150         * tests/test-memrchr.c: New file.
44151
44152 2008-04-26  Bruno Haible  <bruno@clisp.org>
44153
44154         Add tentative support for DragonFly BSD.
44155         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44156         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44157         fp.
44158         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44159         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44160         * lib/fpurge.c (fpurge): Likewise.
44161         * lib/freadable.c (freaadable): Likewise.
44162         * lib/freadahead.c (freadahead): Likewise.
44163         * lib/freading.c (freading): Likewise.
44164         * lib/freadptr.c (freadptr): Likewise.
44165         * lib/freadseek.c (freadptrinc): Likewise.
44166         * lib/fseeko.c (fseeko): Likewise.
44167         * lib/fseterr.c (fseterr): Likewise.
44168         * lib/fwritable.c (fwritable): Likewise.
44169         * lib/fwriting.c (fwriting): Likewise.
44170
44171 2008-04-26  Bruno Haible  <bruno@clisp.org>
44172
44173         * lib/stdio-impl.h: New file.
44174         * lib/fbufmode.c: Include stdio-impl.h.
44175         (fbufmode): Use fp_, remove redundant #defines.
44176         * lib/fflush.c: Include stdio-impl.h.
44177         (clear_ungetc_buffer): Remove redundant #defines.
44178         * lib/fpurge.c: Include stdio-impl.h.
44179         (fpurge): Remove redundant #defines.
44180         * lib/freadable.c: Include stdio-impl.h.
44181         (freadable): Remove redundant #defines.
44182         * lib/freadahead.c: Include stdio-impl.h.
44183         (freadahead): Remove redundant #defines.
44184         * lib/freading.c: Include stdio-impl.h.
44185         (freading): Remove redundant #defines.
44186         * lib/freadptr.c: Include stdio-impl.h.
44187         (freadptr): Remove redundant #defines.
44188         * lib/freadseek.c: Include stdio-impl.h.
44189         (freadptrinc): Remove redundant #defines.
44190         * lib/fseeko.c: Include stdio-impl.h.
44191         (rpl_fseeko): Remove redundant #defines.
44192         * lib/fseterr.c: Include stdio-impl.h.
44193         (fseterr): Remove redundant #defines.
44194         * lib/fwritable.c: Include stdio-impl.h.
44195         (fwritable: Remove redundant #defines.
44196         * lib/fwriting.c: Include stdio-impl.h.
44197         (fwriting): Remove redundant #defines.
44198         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44199         * modules/fflush (Files): Likewise.
44200         * modules/fpurge (Files): Likewise.
44201         * modules/freadable (Files): Likewise.
44202         * modules/freadahead (Files): Likewise.
44203         * modules/freading (Files): Likewise.
44204         * modules/freadptr (Files): Likewise.
44205         * modules/freadseek (Files): Likewise.
44206         * modules/fseeko (Files): Likewise.
44207         * modules/fseterr (Files): Likewise.
44208         * modules/fwritable (Files): Likewise.
44209         * modules/fwriting (Files): Likewise.
44210
44211 2008-04-26  Bruno Haible  <bruno@clisp.org>
44212
44213         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44214         restore_seek_optimization, update_fpos_cache): New functions, extracted
44215         from rpl_fflush.
44216         (rpl_fflush): Use them.
44217         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44218         (gl_REPLACE_FFLUSH): Use it.
44219
44220 2008-04-26  Bruno Haible  <bruno@clisp.org>
44221
44222         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44223         on Solaris.
44224         * tests/test-xstrtoimax.sh: Likewise.
44225         * tests/test-xstrtoumax.sh: Likewise.
44226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44227
44228 2008-04-26  Bruno Haible  <bruno@clisp.org>
44229
44230         * modules/memchr-tests: New file.
44231         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44232
44233 2008-04-26  Eric Blake  <ebb9@byu.net>
44234             Bruno Haible  <bruno@clisp.org>
44235
44236         * lib/memchr.c: Include intprops.h.
44237         (__memchr): Optimize parallel detection of matching bytes. Rename local
44238         variables. Add explanatory comments.
44239
44240 2008-04-26  Bruno Haible  <bruno@clisp.org>
44241
44242         Fix module 'memchr', broken since 2000-10-28.
44243         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44244
44245 2008-04-26  Bruno Haible  <bruno@clisp.org>
44246
44247         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44248         comments.
44249
44250 2008-04-25  Eric Blake  <ebb9@byu.net>
44251
44252         Use native fstatat on cygwin 1.7.0.
44253         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44254         first.
44255
44256 2008-04-23  Eric Blake  <ebb9@byu.net>
44257
44258         Improve memchr2 performance.
44259         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44260         NUL bytes.
44261         * modules/memchr2 (Depends-on): Use intprops.h.
44262
44263 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44264
44265         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44266         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44267         <blp@cs.stanford.edu>.
44268
44269 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44270
44271         * lib/arpa_inet.in.h: New file.
44272
44273         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44274         (Makefile.am): Sed in substitute header file.
44275
44276         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44277         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44278
44279         * modules/inet_ntop (configure.ac): Use
44280         gl_ARPA_INET_MODULE_INDICATOR.
44281
44282         * modules/inet_pton (configure.ac): Use
44283         gl_ARPA_INET_MODULE_INDICATOR.
44284
44285 2008-04-22  Jim Meyering  <meyering@redhat.com>
44286
44287         * modules/verify (License): Re-license as LGPLv2+.
44288
44289 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44290
44291         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44292         parameter to void* as per POSIX standard (MinGW uses char*).
44293
44294 2008-04-21  Bruno Haible  <bruno@clisp.org>
44295
44296         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44297         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44298         Define to replacements if REPLACE_ISWCNTRL is 1.
44299         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44300         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44301         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44302         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44303         what it fixes.
44304         * doc/posix-functions/iswalpha.texi: Likewise.
44305         * doc/posix-functions/iswblank.texi: Likewise.
44306         * doc/posix-functions/iswcntrl.texi: Likewise.
44307         * doc/posix-functions/iswdigit.texi: Likewise.
44308         * doc/posix-functions/iswgraph.texi: Likewise.
44309         * doc/posix-functions/iswlower.texi: Likewise.
44310         * doc/posix-functions/iswprint.texi: Likewise.
44311         * doc/posix-functions/iswpunct.texi: Likewise.
44312         * doc/posix-functions/iswspace.texi: Likewise.
44313         * doc/posix-functions/iswupper.texi: Likewise.
44314         * doc/posix-functions/iswxdigit.texi: Likewise.
44315         Reported by Alain Guibert.
44316
44317 2008-04-21  Bruno Haible  <bruno@clisp.org>
44318
44319         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44320         Patch by Alain Guibert.
44321
44322 2008-04-21  Bruno Haible  <bruno@clisp.org>
44323
44324         Fix test failures on mingw.
44325         * tests/test-xstrtol.c (print_no_progname): New function.
44326         (main): Install it in error_print_progname hook.
44327         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44328         * tests/test-xstrtoimax.sh: Likewise.
44329         * tests/test-xstrtoumax.sh: Likewise.
44330
44331 2008-04-21  Bruno Haible  <bruno@clisp.org>
44332
44333         Fix test failure on mingw.
44334         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44335
44336 2008-04-21  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44339         Actually assign a value.
44340
44341 2008-04-20  Bruno Haible  <bruno@clisp.org>
44342
44343         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44344         take 2.
44345         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44346         'canonicalize-lgpl' module is also used.
44347         * lib/canonicalize-lgpl.c: Undo last change.
44348         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44349
44350 2008-04-20  Bruno Haible  <bruno@clisp.org>
44351
44352         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44353         config.h. Provide _mkdir based fallback for mingw.
44354         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44355         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44356         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44357         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44358         rather than defining mkdir in config.h.
44359         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44360         (gl_SYS_STAT_H_DEFAULTS): New macro.
44361         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44362         HAVE_IO_H any more.
44363         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44364         HAVE_DECL_MKDIR and HAVE_IO_H.
44365
44366 2008-04-20  Bruno Haible  <bruno@clisp.org>
44367
44368         * lib/isapipe.c: Port to native Windows platforms.
44369
44370 2008-04-20  Bruno Haible  <bruno@clisp.org>
44371
44372         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44373
44374 2008-04-21  Eric Blake  <ebb9@byu.net>
44375
44376         Work around preprocessors that don't handle UINTMAX_MAX.
44377         * lib/memchr2.c (memchr2): Avoid embedded #if.
44378         Reported by Alain Guibert, fix suggested by Bruno Haible.
44379
44380 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44381
44382         * doc/posix-functions/strftime.texi (strftime): Explain better
44383         Windows incompatibility.  Suggested by Micah Cowan
44384         <micah@cowan.name>.
44385
44386 2008-04-20  Bruno Haible  <bruno@clisp.org>
44387
44388         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44389         unistr/u8-mblen.
44390
44391 2008-04-20  Bruno Haible  <bruno@clisp.org>
44392
44393         Fix test failure on platforms with non-GNU iconv.
44394         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44395         (U_TO_U8): Use it, rather than u16_to_u8.
44396         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44397         units at the end of the input string.
44398         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44399
44400 2008-04-20  Bruno Haible  <bruno@clisp.org>
44401
44402         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44403         when the resulting length is 0.
44404         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44405
44406 2008-04-20  Bruno Haible  <bruno@clisp.org>
44407
44408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44409         works.
44410         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44411
44412 2008-04-20  Bruno Haible  <bruno@clisp.org>
44413
44414         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44415         * modules/tsearch-tests (configure.ac): Test for initstate function.
44416
44417 2008-04-20  Bruno Haible  <bruno@clisp.org>
44418
44419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44420         for nlink_t if missing.
44421         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44422
44423 2008-04-19  Bruno Haible  <bruno@clisp.org>
44424
44425         Work around snprintf bug on Linux libc5.
44426         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44428         gl_SNPRINTF_SIZE1.
44429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44430         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44431         that test failed.
44432         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44433         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44434         * modules/snprintf (Files): Add m4/printf.m4.
44435         * modules/vsnprintf (Files): Likewise.
44436         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44437         * doc/posix-functions/vsnprintf.texi: Likewise.
44438
44439 2008-04-19  Bruno Haible  <bruno@clisp.org>
44440
44441         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44442         from 0.0058 to less than 10^-7.
44443
44444 2008-04-19  Bruno Haible  <bruno@clisp.org>
44445
44446         Fix rounding when a precision is given.
44447         * lib/vasnprintf.c (is_borderline): New function.
44448         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44449         9...9x.
44450         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44451         %e, %g.
44452         * tests/test-vasprintf-posix.c (test_function): Likewise.
44453         * tests/test-snprintf-posix.h (test_function): Likewise.
44454         * tests/test-sprintf-posix.h (test_function): Likewise.
44455         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44456         * tests/test-printf-posix.h (test_function): Likewise.
44457         * tests/test-printf-posix.output: Update.
44458         Reported by John Darrington <john@darrington.wattle.id.au> via
44459         Ben Pfaff <blp@cs.stanford.edu>.
44460
44461 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44462
44463         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44464         Suggested by Bruno Haible <bruno@clisp.org>.
44465
44466 2008-04-17  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44469         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44470         implementation.
44471         Patch by Bruce Merry <bmerry@gmail.com>.
44472
44473 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44474
44475         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44476         doesn't work under Windows.
44477
44478 2008-04-16  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44481         New macros.
44482         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44483         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44484         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44485         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44486         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44487         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44488         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44489         macros.
44490         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44491         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44492         Northern Sotho, Uighur.
44493
44494 2008-04-16  Bruno Haible  <bruno@clisp.org>
44495
44496         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44497         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44498         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44499         Reported by Daniel Bergström <daniel@octocode.com>.
44500
44501 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44502             Bruno Haible  <bruno@clisp.org>
44503
44504         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44505         function.
44506         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44507         New functions, mostly extracted from gl_locale_name_default.
44508         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44509
44510 2008-04-16  Eric Blake  <ebb9@byu.net>
44511
44512         Adjust strtod detection to catch glibc 2.7 bug.
44513         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44514         Reported by John Gatewood Ham.
44515
44516 2008-04-16  Bruno Haible  <bruno@clisp.org>
44517
44518         Add tentative support for Linux libc5.
44519         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44520         * lib/fpurge.c (fpurge): Likewise.
44521         * lib/freadable.c (freadable): Likewise.
44522         * lib/freadahead.c (freadahead): Likewise.
44523         * lib/freading.c (freading): Likewise.
44524         * lib/freadptr.c (freadptr): Likewise.
44525         * lib/freadseek.c (freadptrinc): Likewise.
44526         * lib/fseeko.c (rpl_fseeko): Likewise.
44527         * lib/fseterr.c (fseterr): Likewise.
44528         * lib/fwritable.c (fwritable): Likewise.
44529         * lib/fwriting.c (fwriting): Likewise.
44530         Reported by Alain Guibert <alguibert+bts@free.fr>.
44531
44532 2008-04-15  Bruno Haible  <bruno@clisp.org>
44533
44534         * modules/mathl (configure.ac): Define module indicator.
44535
44536 2008-04-15  Bruno Haible  <bruno@clisp.org>
44537
44538         * lib/logl.c (logl): Remove unused variables.
44539
44540 2008-04-15  Bruno Haible  <bruno@clisp.org>
44541
44542         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44543         fails.
44544
44545 2008-04-15  Bruno Haible  <bruno@clisp.org>
44546
44547         * lib/trim.c (trim2): Fix argument of isspace() macro.
44548
44549 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44550
44551         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44552         to 0.
44553         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44554
44555 2008-04-14  Bruno Haible  <bruno@clisp.org>
44556
44557         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44558         AC_LANG_PROGRAM argument.
44559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44560         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44562         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44563         * m4/math_h.m4 (gl_MATH_H): Likewise.
44564         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44565         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44566         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44567         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44568         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44569         * m4/regex.m4 (gl_REGEX): Likewise.
44570         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44571         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44573         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44574         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44575         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44576         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44577         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44578
44579 2008-04-14  Jim Meyering  <meyering@redhat.com>
44580
44581         test-strtod: fix typos: s/abs/fabs/
44582         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44583
44584 2008-04-13  Bruno Haible  <bruno@clisp.org>
44585
44586         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44587         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44588         module is also used and while not building the reloc-wrapper.
44589
44590 2008-04-13  Bruno Haible  <bruno@clisp.org>
44591
44592         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44593
44594 2008-04-13  Bruno Haible  <bruno@clisp.org>
44595
44596         Fix AIX compilation failure introduced on 2008-04-02.
44597         * tests/test-frexp.c (exp): Undefine before redefining.
44598         * tests/test-frexpl.c (exp): Likewise.
44599
44600 2008-04-13  Bruno Haible  <bruno@clisp.org>
44601
44602         Work around a HP-UX stdio bug.
44603         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44604         * tests/test-ftello.c (main): Likewise.
44605         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44606         * doc/posix-functions/ftello.texi: Likewise.
44607
44608 2008-04-13  Bruno Haible  <bruno@clisp.org>
44609
44610         Make test-signbit pass on HP-UX/hppa.
44611         * tests/test-signbit.c (minus_zerol): New variable.
44612         (test_signbitl): Use it.
44613
44614 2008-04-13  Bruno Haible  <bruno@clisp.org>
44615
44616         Make truncl work on OSF/1 4.0.
44617         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44618         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44619         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44621         HAVE_DECL_TRUNCL.
44622         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44623         HAVE_DECL_TRUNCL.
44624         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44625
44626 2008-04-13  Bruno Haible  <bruno@clisp.org>
44627
44628         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44629
44630 2008-04-13  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44633         expression, so as to avoid HP-UX 11 cc compiler bug.
44634
44635 2008-04-13  Bruno Haible  <bruno@clisp.org>
44636
44637         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44638
44639 2008-04-13  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/git-merge-changelog.c: Remove empty declaration outside of
44642         functions.
44643
44644 2008-04-13  Bruno Haible  <bruno@clisp.org>
44645
44646         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44647
44648 2008-04-13  Bruno Haible  <bruno@clisp.org>
44649
44650         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44651         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44652         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44653         also if it exists but lacks definitions of the SHUT_* macros.
44654         * modules/sys_socket (Description): Update.
44655         Reported by Elbert Pol <e.pol@chello.nl>.
44656
44657 2008-04-13  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/localcharset.c (OS2): Don't redefine if already defined.
44660         Reported by Elbert Pol <e.pol@chello.nl>.
44661
44662 2008-04-13  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/binary-io.h [__EMX__]: Include <io.h>.
44665         Reported by Elbert Pol <e.pol@chello.nl>.
44666
44667 2008-04-12  Bruno Haible  <bruno@clisp.org>
44668
44669         * lib/fpucw.h: Enable the definitions also for x86_64.
44670         Needed for NetBSD/x86_64.
44671         Reported by Thomas Klausner <tk@giga.or.at>.
44672
44673 2008-04-12  Bruno Haible  <bruno@clisp.org>
44674
44675         * tests/test-strtod.c: Include isnand.h.
44676         (main): Use isnand instead of isnan.
44677         Reported by Jim Meyering.
44678
44679 2008-04-12  Bruno Haible  <bruno@clisp.org>
44680
44681         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44682         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44683
44684 2008-04-12  Jim Meyering  <meyering@redhat.com>
44685
44686         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44687
44688 2008-04-12  Bruno Haible  <bruno@clisp.org>
44689
44690         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44691         Reported by Elbert Pol <e.pol@chello.nl>.
44692
44693 2008-04-12  Eric Blake  <ebb9@byu.net>
44694
44695         Work around Solaris 10 math.h bug.
44696         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44697         (gl_MATH_H_DEFAULTS): Set up default.
44698         * modules/math (Makefile.am): Replace new indicators.
44699         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44700         * tests/test-math.c (main): Test this.
44701         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44702         * doc/posix-headers/math.texi (math.h): Mention bug.
44703         Reported by Nelson H. F. Beebe and Jim Meyering.
44704
44705 2008-04-11  Bruno Haible  <bruno@clisp.org>
44706
44707         Adapt to future versions of Apple GCC.
44708         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44709         Reported by Peter O'Gorman <peter@pogma.com>.
44710
44711 2008-04-11  Bruno Haible  <bruno@clisp.org>
44712
44713         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44714
44715 2008-04-11  Bruno Haible  <bruno@clisp.org>
44716
44717         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44718
44719         * modules/getaddrinfo-tests (Makefile.am): Define
44720         test_getaddrinfo_LDADD.
44721
44722 2008-04-11  Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44725         (init): Fix syntax error.
44726         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44727         is declared.
44728
44729 2008-04-11  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44732         * modules/glob (Depends-on): Add stdbool.
44733
44734 2008-04-11  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/trim.c: Include <string.h>.
44737
44738 2008-04-11  Eric Blake  <ebb9@byu.net>
44739
44740         Avoid compile failure on OS/2.
44741         * lib/regex_internal.h (internal_function): Disable optimization
44742         on OS/2 (__EMX__), where it caused compiler error.
44743         Reported by Elbert Pol.
44744
44745 2008-04-11  Bruno Haible  <bruno@clisp.org>
44746
44747         Flush the standard error stream before aborting. Needed on mingw.
44748         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44749         * tests/test-array_list.c (ASSERT): Likewise.
44750         * tests/test-array_oset.c (ASSERT): Likewise.
44751         * tests/test-avltree_list.c (ASSERT): Likewise.
44752         * tests/test-avltree_oset.c (ASSERT): Likewise.
44753         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44754         * tests/test-binary-io.c (ASSERT): Likewise.
44755         * tests/test-byteswap.c (ASSERT): Likewise.
44756         * tests/test-c-ctype.c (ASSERT): Likewise.
44757         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44758         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44759         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44760         * tests/test-c-strstr.c (ASSERT): Likewise.
44761         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44762         * tests/test-canonicalize.c (ASSERT): Likewise.
44763         * tests/test-carray_list.c (ASSERT): Likewise.
44764         * tests/test-ceilf1.c (ASSERT): Likewise.
44765         * tests/test-ceilf2.c (ASSERT): Likewise.
44766         * tests/test-ceill.c (ASSERT): Likewise.
44767         * tests/test-count-one-bits.c (ASSERT): Likewise.
44768         * tests/test-fbufmode.c (ASSERT): Likewise.
44769         * tests/test-fflush2.c (ASSERT): Likewise.
44770         * tests/test-floorf1.c (ASSERT): Likewise.
44771         * tests/test-floorf2.c (ASSERT): Likewise.
44772         * tests/test-floorl.c (ASSERT): Likewise.
44773         * tests/test-fopen.c (ASSERT): Likewise.
44774         * tests/test-fpending.c (ASSERT): Likewise.
44775         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44776         * tests/test-fpurge.c (ASSERT): Likewise.
44777         * tests/test-freadable.c (ASSERT): Likewise.
44778         * tests/test-freadahead.c (ASSERT): Likewise.
44779         * tests/test-freading.c (ASSERT): Likewise.
44780         * tests/test-freadptr.c (ASSERT): Likewise.
44781         * tests/test-freadptr2.c (ASSERT): Likewise.
44782         * tests/test-freadseek.c (ASSERT): Likewise.
44783         * tests/test-freopen.c (ASSERT): Likewise.
44784         * tests/test-frexp.c (ASSERT): Likewise.
44785         * tests/test-frexpl.c (ASSERT): Likewise.
44786         * tests/test-fseek.c (ASSERT): Likewise.
44787         * tests/test-fseeko.c (ASSERT): Likewise.
44788         * tests/test-fstrcmp.c (ASSERT): Likewise.
44789         * tests/test-ftell.c (ASSERT): Likewise.
44790         * tests/test-ftello.c (ASSERT): Likewise.
44791         * tests/test-func.c (ASSERT): Likewise.
44792         * tests/test-fwritable.c (ASSERT): Likewise.
44793         * tests/test-fwriting.c (ASSERT): Likewise.
44794         * tests/test-getdelim.c (ASSERT): Likewise.
44795         * tests/test-getline.c (ASSERT): Likewise.
44796         * tests/test-i-ring.c (ASSERT): Likewise.
44797         * tests/test-iconv-utf.c (ASSERT): Likewise.
44798         * tests/test-iconv.c (ASSERT): Likewise.
44799         * tests/test-isfinite.c (ASSERT): Likewise.
44800         * tests/test-isnand.c (ASSERT): Likewise.
44801         * tests/test-isnanf.c (ASSERT): Likewise.
44802         * tests/test-isnanl.h (ASSERT): Likewise.
44803         * tests/test-ldexpl.c (ASSERT): Likewise.
44804         * tests/test-linked_list.c (ASSERT): Likewise.
44805         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44806         * tests/test-localename.c (ASSERT): Likewise.
44807         * tests/test-lseek.c (ASSERT): Likewise.
44808         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44809         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44810         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44811         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44812         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44813         * tests/test-mbschr.c (ASSERT): Likewise.
44814         * tests/test-mbscspn.c (ASSERT): Likewise.
44815         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44816         * tests/test-mbspbrk.c (ASSERT): Likewise.
44817         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44818         * tests/test-mbsrchr.c (ASSERT): Likewise.
44819         * tests/test-mbsspn.c (ASSERT): Likewise.
44820         * tests/test-mbsstr1.c (ASSERT): Likewise.
44821         * tests/test-mbsstr2.c (ASSERT): Likewise.
44822         * tests/test-mbsstr3.c (ASSERT): Likewise.
44823         * tests/test-memchr2.c (ASSERT): Likewise.
44824         * tests/test-memmem.c (ASSERT): Likewise.
44825         * tests/test-open.c (ASSERT): Likewise.
44826         * tests/test-printf-frexp.c (ASSERT): Likewise.
44827         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44828         * tests/test-printf-posix.c (ASSERT): Likewise.
44829         * tests/test-quotearg.c (ASSERT): Likewise.
44830         * tests/test-rbtree_list.c (ASSERT): Likewise.
44831         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44832         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44833         * tests/test-round1.c (ASSERT): Likewise.
44834         * tests/test-roundf1.c (ASSERT): Likewise.
44835         * tests/test-roundl.c (ASSERT): Likewise.
44836         * tests/test-signbit.c (ASSERT): Likewise.
44837         * tests/test-sleep.c (ASSERT): Likewise.
44838         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44839         * tests/test-snprintf.c (ASSERT): Likewise.
44840         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44841         * tests/test-stat-time.c (ASSERT): Likewise.
44842         * tests/test-strcasestr.c (ASSERT): Likewise.
44843         * tests/test-strerror.c (ASSERT): Likewise.
44844         * tests/test-striconv.c (ASSERT): Likewise.
44845         * tests/test-striconveh.c (ASSERT): Likewise.
44846         * tests/test-striconveha.c (ASSERT): Likewise.
44847         * tests/test-strsignal.c (ASSERT): Likewise.
44848         * tests/test-strstr.c (ASSERT): Likewise.
44849         * tests/test-strtod.c (ASSERT): Likewise.
44850         * tests/test-trunc1.c (ASSERT): Likewise.
44851         * tests/test-trunc2.c (ASSERT): Likewise.
44852         * tests/test-truncf1.c (ASSERT): Likewise.
44853         * tests/test-truncf2.c (ASSERT): Likewise.
44854         * tests/test-truncl.c (ASSERT): Likewise.
44855         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44856         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44857         * tests/test-vasnprintf.c (ASSERT): Likewise.
44858         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44859         * tests/test-vasprintf.c (ASSERT): Likewise.
44860         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44861         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44862         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44863         * tests/test-vsnprintf.c (ASSERT): Likewise.
44864         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44865         * tests/test-wcwidth.c (ASSERT): Likewise.
44866         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44867         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44868         * tests/test-xvasprintf.c (ASSERT): Likewise.
44869         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44870         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44871         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44872         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44873         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44874         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44875         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44876         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44877         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44878         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44879         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44880         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44881         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44882         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44883         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44884         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44885         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44886         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44887         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44888         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44889         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44890         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44891         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44892         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44893         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44894         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44895         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44896         * tests/unictype/test-combining.c (ASSERT): Likewise.
44897         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44898         * tests/unictype/test-digit.c (ASSERT): Likewise.
44899         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44900         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44901         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44902         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44903         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44904         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44905         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44906         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44907         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44908         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44909         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44910         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44911         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44912         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44913         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44914         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44915         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44916         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44917         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44918         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44919         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44920         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44921         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44922         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44923         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44924         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44925         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44926         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44927         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44928         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44929         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44930         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44931         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44932         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44933         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44934         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44935         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44936         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44937         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44938         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44939         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44940         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44941         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44942         Reported by Eric Blake.
44943
44944 2008-04-11  Bruno Haible  <bruno@clisp.org>
44945
44946         * lib/wchar.in.h: Tweak comment.
44947
44948 2008-04-11  Bruno Haible  <bruno@clisp.org>
44949
44950         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44951         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44952         gl_COMMON.
44953         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44954
44955 2008-04-11  Bruno Haible  <bruno@clisp.org>
44956
44957         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44958
44959 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44960
44961         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44962         of attempting to use non-existing /dev/*random.  Based on patch
44963         from Adam Strzelecki <ono@java.pl> in
44964         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44965
44966 2008-04-08  Bruno Haible  <bruno@clisp.org>
44967
44968         Add tentative support for emx+gcc.
44969         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44970         * lib/fpurge.c (fpurge): Likewise.
44971         * lib/freadable.c (freadable): Likewise.
44972         * lib/freadahead.c (freadahead): Likewise.
44973         * lib/freading.c (freading): Likewise.
44974         * lib/freadptr.c (freadptr): Likewise.
44975         * lib/freadseek.c (freadptrinc): Likewise.
44976         * lib/fseeko.c (rpl_fseeko): Likewise.
44977         * lib/fseterr.c (fseterr): Likewise.
44978         * lib/fwritable.c (fwritable): Likewise.
44979         * lib/fwriting.c (fwriting): Likewise.
44980         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44981
44982 2008-04-09  Eric Blake  <ebb9@byu.net>
44983
44984         Avoid some autoconf warnings.
44985         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44986         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44987         * m4/afs.m4 (gl_AFS): Likewise.
44988         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44989         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44991         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44992         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44993         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44994         (AC_CHECK_DECLS_ONCE): Likewise.
44995         Rename file...
44996         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44997         gnulib-tool requires autoconf 2.59 or better.
44998         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44999
45000 2008-04-08  Eric Blake  <ebb9@byu.net>
45001
45002         Use 'git describe --match' if present (added in git 1.5.5).
45003         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45004         if possible.
45005
45006 2008-04-08  Bruno Haible  <bruno@clisp.org>
45007
45008         Add tentative support for OpenServer.
45009         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45010         _ptr, _cnt.
45011         * lib/fpurge.c (fpurge): Likewise.
45012         * lib/freadable.c (freadable): Likewise.
45013         * lib/freadahead.c (freadahead): Likewise.
45014         * lib/freading.c (freading): Likewise.
45015         * lib/freadptr.c (freadptr): Likewise.
45016         * lib/freadseek.c (freadptrinc): Likewise.
45017         * lib/fseeko.c (rpl_fseeko): Likewise.
45018         * lib/fseterr.c (fseterr): Likewise.
45019         * lib/fwritable.c (fwritable): Likewise.
45020         * lib/fwriting.c (fwriting): Likewise.
45021         Reported by Roger Cornelius <rac@tenzing.org> and
45022         Brian K. White <brian@aljex.com>.
45023
45024 2008-04-06  Jim Meyering  <meyering@redhat.com>
45025
45026         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45027
45028 2008-04-06  Bruno Haible  <bruno@clisp.org>
45029
45030         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45031         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45032         * tests/test-printf-posix.sh: Likewise.
45033         * tests/test-vfprintf-posix.sh: Likewise.
45034         * tests/test-vprintf-posix.sh: Likewise.
45035         * tests/test-xprintf-posix.sh: Likewise.
45036
45037 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45038
45039         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45040         hide error from 'ls', needed on OS/2.
45041         Report by Elbert Pol <elbert.pol@gmail.com>.
45042
45043 2008-04-04  Eric Blake  <ebb9@byu.net>
45044
45045         Make test-fseeko.c failures meaningful.
45046         * tests/test-fseeko.c: Print line number on failure.
45047         * tests/test-fseek.c: Likewise.
45048         Reported by Nelson H. F. Beebe.
45049
45050         Improve strtod bug detection check.
45051         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45052         required for Solaris 10.
45053         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45054
45055 2008-04-04  Bruno Haible  <bruno@clisp.org>
45056
45057         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45058         by m4/setenv.m4.
45059
45060 2008-04-03  Eric Blake  <ebb9@byu.net>
45061
45062         Ensure sane .version contents.
45063         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45064         version string.
45065         * build-aux/git-version-gen: Improve documentation.
45066
45067         Make GNU make output nicer.
45068         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45069         MAKECMDGOALS to enforce message for all command line targets.  Set
45070         srcdir for use in maint.mk.
45071
45072         Another maintainer tweak.
45073         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45074         a target that regenerates version.
45075
45076 2008-04-03  Jim Meyering  <meyering@redhat.com>
45077
45078         vc-list-files: don't cause coreutils "make po-check" failure
45079         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45080
45081 2008-04-03  Eric Blake  <ebb9@byu.net>
45082
45083         Allow VPATH usage of vc-list-files.
45084         * build-aux/vc-list-files (scriptversion): Add timestamp.
45085         (options): Add --help, --version, -C.
45086         (CVS): Support installed cvsu.
45087
45088 2008-04-02  Bruno Haible  <bruno@clisp.org>
45089
45090         Avoid some "statement with no effect" warnings from gcc.
45091         * tests/test-wctype.c (main): Explicitly ignore unused values.
45092         Reported by Jim Meyering.
45093
45094 2008-04-02  Jim Meyering  <meyering@redhat.com>
45095
45096         Avoid some warnings from "gcc -Wshadow".
45097         * tests/test-frexp.c (exp): Define to a different identifier.
45098         * tests/test-frexpl.c (exp): Likewise.
45099
45100 2008-04-03  Jim Meyering  <meyering@redhat.com>
45101
45102         bootstrap: remove dangling *.[ch] symlinks from lib
45103         * build-aux/bootstrap [dangling symlink removal]: Move find's
45104         -depth option to precede all others, to avoid a warning.
45105         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45106
45107 2008-04-02  Bruno Haible  <bruno@clisp.org>
45108
45109         Avoid some warnings from "gcc -Wshadow".
45110         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45111         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45112         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45113         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45114         Reported by Jim Meyering.
45115
45116 2008-04-01  Bruno Haible  <bruno@clisp.org>
45117
45118         Fix test to work on IRIX 6.5 with cc.
45119         * tests/test-math.c (numeric_equal): New function.
45120         (main): Use it.
45121
45122 2008-04-01  Bruno Haible  <bruno@clisp.org>
45123
45124         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45125
45126 2008-04-01  Bruno Haible  <bruno@clisp.org>
45127
45128         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45130         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45131         (Depends-on): Remove math.
45132
45133         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45134         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45135         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45136         (Depends-on): Remove math.
45137
45138         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45139         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45140         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45141         (Depends-on): Remove math.
45142         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45143         (Depends-on): Remove math.
45144
45145         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45146         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45147         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45148         (Depends-on): Remove math.
45149         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45150         (Depends-on): Remove math.
45151
45152         * tests/test-round1.c: Include nan.h.
45153         (main): Use NaNd instead of NAN.
45154         * modules/round-tests (Files): Add tests/nan.h.
45155
45156         * tests/test-trunc1.c: Include nan.h.
45157         (main): Use NaNd instead of NAN.
45158         * modules/trunc-tests (Files): Add tests/nan.h.
45159
45160         * tests/test-roundf1.c: Include nan.h.
45161         (main): Use NaNf instead of NAN.
45162         * modules/roundf-tests (Files): Add tests/nan.h.
45163
45164         * tests/test-truncf1.c: Include nan.h.
45165         (main): Use NaNf instead of NAN.
45166         * modules/truncf-tests (Files): Add tests/nan.h.
45167
45168         * tests/test-ceilf1.c: Include nan.h.
45169         (main): Use NaNf instead of NAN.
45170         * modules/ceilf-tests (Files): Add tests/nan.h.
45171
45172         * tests/test-floorf1.c: Include nan.h.
45173         (main): Use NaNf instead of NAN.
45174         * modules/floorf-tests (Files): Add tests/nan.h.
45175
45176         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45177         (main): Use NaNf instead of NAN.
45178         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45179
45180         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45181         (main): Use NaNd instead of NAN.
45182         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45183
45184         * tests/test-frexp.c: Include nan.h.
45185         (main): Use NaNd instead of NAN.
45186         * modules/frexp-tests (Files): Add tests/nan.h.
45187
45188         * lib/isnan.c: Don't include <math.h>.
45189         (FUNC): Don't use NAN macro.
45190         * modules/isnand-nolibm (Depends-on): Remove math.
45191         * modules/isnanf-nolibm (Depends-on): Remove math.
45192         * modules/isnanl (Depends-on): Remove math.
45193         * modules/isnanl-nolibm (Depends-on): Remove math.
45194
45195         * tests/nan.h: New file.
45196
45197 2008-04-01  Eric Blake  <ebb9@byu.net>
45198
45199         Fix typos.
45200         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45201         values to be the right type.
45202
45203         For now, cater to gnulib strtod inaccuracies.
45204         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45205         fractional results.  While not as nice from a QoI perspective, it
45206         is a quicker patch than correctly implementing decimal to binary
45207         rounding.
45208
45209 2008-03-31  Eric Blake  <ebb9@byu.net>
45210
45211         Guarantee a definition of NAN.
45212         * lib/math.in.h (NAN): Define if missing.
45213         * tests/test-math.c (main): Test it.
45214         * doc/posix-headers/math.texi (math.h): Document this.
45215         * lib/isnan.c (rpl_isnand): Use it.
45216         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45217         * tests/test-floorf1.c (NaN): Likewise.
45218         * tests/test-frexp.c (NaN): Likewise.
45219         * tests/test-isnand.c (NaN): Likewise.
45220         * tests/test-isnanf.c (NaN): Likewise.
45221         * tests/test-round1.c (NaN): Likewise.
45222         * tests/test-roundf1.c (NaN): Likewise.
45223         * tests/test-snprintf-posix.h (NaN): Likewise.
45224         * tests/test-sprintf-posix.h (NaN): Likewise.
45225         * tests/test-trunc1.c (NaN): Likewise.
45226         * tests/test-truncf1.c (NaN): Likewise.
45227         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45228         * tests/test-vasprintf-posix.c (NaN): Likewise.
45229         * modules/isnand-nolibm (Depends-on): Add math.
45230         * modules/isnanf-nolibm (Depends-on): Likewise.
45231         * modules/isnanl (Depends-on): Likewise.
45232         * modules/isnanl-nolibm (Depends-on): Likewise.
45233         * modules/snprintf-posix-tests (Depends-on): Likewise.
45234         * modules/sprintf-posix-tests (Depends-on): Likewise.
45235         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45236         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45237         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45238         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45239
45240 2008-03-31  Bruno Haible  <bruno@clisp.org>
45241
45242         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45243         * doc/posix-functions/strtod.texi: Likewise.
45244
45245 2008-03-31  Bruno Haible  <bruno@clisp.org>
45246
45247         * tests/test-strtod.c (main): Don't use C99 syntax.
45248
45249 2008-03-31  Bruno Haible  <bruno@clisp.org>
45250
45251         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45252         Reported by Eric Blake.
45253
45254 2008-03-31  Jim Meyering  <meyering@redhat.com>
45255
45256         Don't compare actual signbit return values.
45257         * tests/test-strtod.c (main): Rather, compare only their
45258         zero/non-zero nature.
45259
45260 2008-03-31  Eric Blake  <ebb9@byu.net>
45261
45262         More strtod documentation.
45263         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45264         failures as distinct bugs.
45265
45266 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45267
45268         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45269         Problem reported by Erik Benada in
45270         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45271
45272 2008-03-30  Bruno Haible  <bruno@clisp.org>
45273
45274         * tests/test-strtod.c: Add comments about which assertion fails on which
45275         platform.
45276         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45277
45278 2008-03-30  Eric Blake  <ebb9@byu.net>
45279
45280         Test signbit behavior on zeros.
45281         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45282         (test_signbitd, test_signbitl): Likewise.
45283
45284         More strtod touchups.
45285         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45286         sign of negative underflow, for now.  Use .5, not .1.
45287         * doc/posix-functions/strtod.texi (strtod): Mention these
45288         limitations.
45289         Reported by Jim Meyering.
45290
45291 2008-03-30  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45294         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45295
45296 2008-03-30  Bruno Haible  <bruno@clisp.org>
45297
45298         Avoid failure when attempting to return empty iconv results on some
45299         platforms.
45300         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45301         allocation, don't report ENOMEM when the resulting string is empty.
45302
45303 2008-03-30  Bruno Haible  <bruno@clisp.org>
45304
45305         Fix buffer overrun.
45306         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45307         Don't consider the width for tmp_length. Check count against tmp_length
45308         before doing the padding. Ensure enough allocation during padding.
45309
45310 2008-03-30  Eric Blake  <ebb9@byu.net>
45311
45312         strtod touchups.
45313         * lib/strtod.c (strtod): Avoid compiler warnings.
45314         Reported by Jim Meyering.
45315
45316 2008-03-30  Bruno Haible  <bruno@clisp.org>
45317
45318         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45319         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45320         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45321         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45322         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45323         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45324         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45325         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45326
45327         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45328         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45329         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45330         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45331         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45332         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45333         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45334         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45335
45336         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45337         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45338         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45339         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45340         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45341         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45342         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45343         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45344
45345         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45346         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45347
45348         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45349         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45350
45351         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45352         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45353
45354         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45356         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45357
45358         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45360         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45361
45362         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45364         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45365
45366         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45368         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45369
45370         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45371         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45373         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45374         (Depends-on): Add EOVERFLOW.
45375         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45376         (Depends-on): Add EOVERFLOW.
45377         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45378         (Depends-on): Add EOVERFLOW.
45379         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45380         (Depends-on): Add EOVERFLOW.
45381         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45382         (Depends-on): Add EOVERFLOW.
45383         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45384         (Depends-on): Add EOVERFLOW.
45385         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45386         (Depends-on): Add EOVERFLOW.
45387         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45388         (Depends-on): Add EOVERFLOW.
45389
45390         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45391         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45392         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45393
45394         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45396         * modules/snprintf (Depends-on): Add EOVERFLOW.
45397
45398         * lib/poll.c (EOVERFLOW): Remove fallback.
45399         * modules/poll (Depends-on): Add EOVERFLOW.
45400
45401         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45402         * modules/getugroups (Depends-on): Add EOVERFLOW.
45403
45404         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45405         * modules/getdelim (Depends-on): Add EOVERFLOW.
45406
45407         * lib/ftell.c (EOVERFLOW): Remove fallback.
45408         * modules/ftell (Depends-on): Add EOVERFLOW.
45409
45410         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45411         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45412         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45413
45414         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45415
45416         * modules/EOVERFLOW-tests: New file.
45417         * tests/test-EOVERFLOW.c: New file.
45418
45419         * modules/EOVERFLOW: New file.
45420         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45421
45422 2008-03-30  Bruno Haible  <bruno@clisp.org>
45423
45424         Fix bug introduced on 2007-06-10.
45425         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45426         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45427
45428 2008-03-30  Bruno Haible  <bruno@clisp.org>
45429
45430         Improve freadseek's efficiency after ungetc.
45431         * lib/freadseek.c: Include freadahead.h.
45432         (freadptrinc): New function, extracted from freadseek.
45433         (freadseek): Use it in a loop. Use freadahead to determine the number
45434         of loop iterations.
45435         * modules/freadseek (Depends-on): Add freadahead.
45436         (configure.ac): Require AC_C_INLINE.
45437
45438 2008-03-30  Bruno Haible  <bruno@clisp.org>
45439
45440         * lib/freadseek.c (freadseek): Don't ignore the return value of
45441         freadptr.
45442
45443 2008-03-29  Eric Blake  <ebb9@byu.net>
45444
45445         Add hex float support.
45446         * modules/strtod (Depends-on): Add c-ctype.
45447         (Link): Mention POW_LIB.
45448         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45449         whitespace between 'e' and exponent.
45450         * tests/test-strtod.c (main): Enable hex float tests.
45451         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45452         now provides.
45453
45454         Document various strtod bugs, with some fixes.
45455         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45456         "-0x", "inf", "nan", and hex constants.
45457         * doc/posix-functions/atof.texi (atof): Likewise.
45458         * modules/stdlib (Makefile.am): Support strtod.
45459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45460         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45461         detect additional strtod bugs.
45462         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45463         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45464         bool where appropriate.  Parse 'inf' and 'nan'.
45465         * tests/test-strtod.c: New file.
45466         * modules/strtod (Depends-on): Add stdbool, stdlib.
45467         (configure.ac): Turn on module indicator.
45468         * modules/strtod-tests: New module.
45469
45470 2008-03-29  Eric Blake  <ebb9@byu.net>
45471
45472         Fix ftell on mingw.
45473         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45474         * modules/ftell-tests (Depends-on): Add binary-io.
45475         * modules/ftello-tests (Depends-on): Likewise.
45476         * tests/test-ftell.c (main): Enhance test to cover behavior after
45477         ungetc.  Enforce binary mode.
45478         * tests/test-ftello.c (main): Likewise.
45479
45480         Pass test-freadseek on cygwin.
45481         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45482         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45483         ungetc buffer.
45484
45485         * tests/test-fflush2.c (main): Fix typo.
45486
45487 2008-03-29  Bruno Haible  <bruno@clisp.org>
45488
45489         * tests/test-fflush2.c (main): Temporarily disable the contents of
45490         this test.
45491         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45492         Reported by Eric Blake.
45493
45494 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45495
45496         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45497         (GC_SHA224_DIGEST_SIZE): Add.
45498
45499         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45500         (gc_hash_digest_length): Likewise.
45501         (gc_hash_buffer): Likewise.
45502
45503 2008-03-25  Bruno Haible  <bruno@clisp.org>
45504
45505         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45506         detail which gettext release to use.
45507         Reported by Simon Josefsson.
45508
45509 2008-03-26  Jim Meyering  <meyering@redhat.com>
45510
45511         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45512         * modules/gnumakefile (clean-GNUmakefile): Also, use
45513         test ... && ... || : syntax rather than if-then ... fi.
45514
45515         gnumakefile: Don't double-quote-expand $(VPATH) value.
45516         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45517
45518 2008-03-24  Eric Blake  <ebb9@byu.net>
45519
45520         Alter GNUmakefile to install into top directory.
45521         * modules/maintainer-makefile: Split, and add dependency...
45522         * modules/gnumakefile: to this new module.
45523         * build-aux/GNUmakefile: Move...
45524         * top/GNUmakefile: ...here.
45525         * build-aux/maint.mk: Move...
45526         * top/maint.mk: ...here.
45527         * MODULES.html.sh (Support for maintaining...): Document new
45528         module.
45529
45530 2008-03-23  Bruno Haible  <bruno@clisp.org>
45531
45532         * gnulib-tool: New options --vc-files, --no-vc-files.
45533         (func_usage): Document them.
45534         (vc_files): New variable.
45535         (func_import): Consider vc_files.
45536         (func_create_testdir): Set vc_files to empty.
45537         Suggested by Jim Meyering and Karl Berry.
45538
45539 2008-03-23  Bruno Haible  <bruno@clisp.org>
45540
45541         Fix regex compilation error on HP-UX 11.
45542         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45543         * modules/regex (Files): Add m4/mbstate_t.m4.
45544         Reported by Ton Voon <ton.voon@altinity.com>.
45545
45546 2008-03-23  Bruno Haible  <bruno@clisp.org>
45547
45548         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45549
45550 2008-03-23  Eric Blake  <ebb9@byu.net>
45551             Bruno Haible  <bruno@clisp.org>
45552
45553         Install files from top/ in the destination directory.
45554         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45555         augmentation also for the files from top/.
45556         (func_import, func_create_testdir): Rewrite file names:
45557         top/filename -> filename.
45558
45559 2008-03-23  Bruno Haible  <bruno@clisp.org>
45560
45561         Tweak "gnulib --version" output.
45562         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45563
45564 2008-03-23  Bruno Haible  <bruno@clisp.org>
45565
45566         Tweak "gnulib --version" output.
45567         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45568         rather than contents of ChangeLog, when possible.
45569
45570 2008-03-21  Eric Blake  <ebb9@byu.net>
45571
45572         More --version tweaks.
45573         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45574         date of last ChangeLog entry.
45575
45576 2008-03-21  Jim Meyering  <meyering@redhat.com>
45577
45578         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45579
45580 2008-03-20  Eric Blake  <ebb9@byu.net>
45581
45582         VPATH fix.
45583         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45584
45585 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45586
45587         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45588         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45589
45590 2008-03-20  Eric Blake  <ebb9@byu.net>
45591
45592         Sync GNUmakefile with coreutils.
45593         * build-aux/GNUmakefile (have-Makefile): Rename...
45594         (_have-Makefile): ...to this, for namespace consideration.
45595         (GNUmakefile.cfg): Include, if present.
45596         (_autoreconf): Define a default.
45597         (_is-dist-target): New rule for rebuilds to pick up intra-release
45598         version.
45599         (maint-cfg.mk): Rename...
45600         (cfg.mk): ...to this.
45601
45602 2008-03-18  Jim Meyering  <meyering@redhat.com>
45603
45604         New script and module: mktempd
45605         * MODULES.html.sh (maint+release support): Add mktempd.
45606         * build-aux/mktempd: New file.
45607         * modules/mktempd: New file.
45608
45609 2008-03-15  Jim Meyering  <meyering@redhat.com>
45610
45611         Undo last change.
45612         * lib/sha1.c, lib/md5.c: 63 != ~63.
45613         Reported by Andreas Schwab.
45614
45615         sha1.c, md5.c: Hoist a redundant expression.
45616         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45617         "ctx->buflen" only once, before calling *_process_block.
45618         * lib/md5.c (md5_process_bytes): Likewise.
45619
45620 2008-03-14  Eric Blake  <ebb9@byu.net>
45621
45622         Bump copyright year in files generated by gnulib-tool.
45623         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45624         gnulib-tool, rather than hard-coding it.
45625
45626         Fix 'gnulib-tool --version' output to work with git.
45627         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45628         (startup): ...here.
45629         (func_version): Use it to invoke git-version-gen, rather than
45630         relying on CVS keyword expansion.  Modernize wording.
45631         (cvsdatestamp, last_checkin_date, version): Kill unused
45632         variables.
45633
45634 2008-03-12  Jim Meyering  <meyering@redhat.com>
45635
45636         Recognize optional cast of the argument to free.
45637         * build-aux/useless-if-before-free: Update regexps.
45638
45639         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45640
45641 2008-03-11  Bruno Haible  <bruno@clisp.org>
45642
45643         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45644         by a single package.
45645         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45646         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45647         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45648         Reported by Sam Steingold <sds@gnu.org>.
45649
45650 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45651
45652         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45653         repositories.
45654
45655 2008-03-11  Bruno Haible  <bruno@clisp.org>
45656
45657         Avoid conflicts between local macro definitions.
45658         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45659         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45660
45661 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45662             Bruno Haible  <bruno@clisp.org>
45663
45664         Make va_copy work with some version of xlc on AIX 5.1.
45665         * lib/stdarg.in.h: New file.
45666         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45667         On AIX, use a <stdarg.h> file substitute.
45668         * modules/stdarg (Files): Add lib/stdarg.in.h.
45669         (Depends-on): Add include_next.
45670         (Makefile.am): Build a stdarg.h substitute if requested.
45671         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45672
45673 2008-03-10  Bruno Haible  <bruno@clisp.org>
45674
45675         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45676         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45677         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45678
45679 2008-03-10  Bruno Haible  <bruno@clisp.org>
45680
45681         * modules/stdlib (Depends-on): Add include_next, remove
45682         absolute-header.
45683
45684 2008-03-09  Bruno Haible  <bruno@clisp.org>
45685
45686         * lib/freadahead.h (freadahead): Document more precisely.
45687         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45688         the sum of both buffer sizes.
45689         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45690         * NEWS: Document the change.
45691
45692 2008-03-09  Bruno Haible  <bruno@clisp.org>
45693
45694         Extend freadptr to return also the buffer size.
45695         * lib/freadptr.h (freadptr): Add sizep argument.
45696         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45697         (freadptr): Add sizep argument. Determine buffer size like freadahead
45698         does.
45699         * tests/test-freadptr.c: Don't include freadahead.h.
45700         (main): Adapt for new calling convention of freadptr.
45701         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45702         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45703         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45704         tests/test-freadptr2.sh.
45705         (Depends): Remove freadahead.
45706         (TESTS): Add test-freadptr2.sh.
45707         (check_PROGRAMS): Add test-freadptr2.
45708
45709 2008-03-09  Bruno Haible  <bruno@clisp.org>
45710
45711         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45712         Report and solution by Simon Josefsson.
45713
45714 2008-03-06  Bruno Haible  <bruno@clisp.org>
45715
45716         Make fflush after ungetc work on BSD platforms.
45717         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45718         * tests/test-fflush2.c: New file.
45719         * tests/test-fflush2.sh: New file.
45720         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45721         tests/test-fflush2.c.
45722         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45723         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45724
45725 2008-03-06  Eric Blake  <ebb9@byu.net>
45726
45727         Likewise for ftello.
45728         * modules/ftello (Dependencies): Add extensions.
45729         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45730
45731 2008-03-06  Bruno Haible  <bruno@clisp.org>
45732
45733         * modules/fseeko (Dependencies): Add extensions.
45734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45735         Needed on glibc systems.
45736
45737 2008-03-06  Bruno Haible  <bruno@clisp.org>
45738
45739         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45740         email address.
45741         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45742
45743 2008-03-06  Bruno Haible  <bruno@clisp.org>
45744
45745         * users.txt: Add libgnupdf.
45746
45747 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45748
45749         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45750         (Header File Substitutes, Function Substitutes,
45751         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45752         (Build robot for gnulib): Fix typo.
45753
45754 2008-03-06  Bruno Haible  <bruno@clisp.org>
45755
45756         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45757         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45758
45759 2008-03-06  Bruno Haible  <bruno@clisp.org>
45760
45761         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45762         * doc/gnulib.texi: Include it.
45763
45764 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45765
45766         * modules/func (License): Change license to unlimited; there was
45767         no LGPL parts in the module anyway.
45768
45769 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45770
45771         * modules/__func__: Renamed to modules/func.
45772         * modules/__func__-tests: Renamed to modules/func-tests.
45773         * tests/test-__func__.c: Renamed to tests/test-func.c.
45774         * m4/__func__.m4: Renamed to m4/func.m4.
45775         * doc/gnulib.texi (__func__): Section renamed to func.
45776         Suggested by Eric Blake <ebb9@byu.net>.
45777
45778 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45779
45780         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45781         about __func__.  Make example self-contained.  Suggested by Eric
45782         Blake <ebb9@byu.net>.
45783
45784         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45785         Suggested by Eric Blake <ebb9@byu.net>.
45786
45787 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45788
45789         * modules/__func__: New file.
45790         * modules/__func__-tests: New file.
45791         * tests/test-__func__.c: New file.
45792         * m4/__func__.m4: New file.
45793         * doc/gnulib.texi (__func__): Document __func__ module.
45794
45795 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45796
45797         * modules/byteswap (License): Re-license as LGPLv2+.
45798
45799 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45800
45801         * doc/Makefile: Add pdf target.
45802
45803 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45804
45805         * modules/inline (License): Use 'unlimited', since there are only
45806         *.m4 files in this module.
45807
45808 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45809             Bruno Haible  <bruno@clisp.org>
45810
45811         Add support for HP C 7.1 on OpenVMS 8.3.
45812         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45813
45814 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45815
45816         Update VMS specifics.
45817         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45818
45819 2008-03-02  Jim Meyering  <meyering@redhat.com>
45820
45821         Remove the last dependency on the "free" module.
45822         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45823         Reported by Bob Proulx.
45824
45825         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45826
45827         Remove useless "if" tests before free.  Deprecate "free" module.
45828         * doc/posix-functions/free.texi: Mention that this
45829         module is no longer useful.
45830         * modules/free (Notice): Say this module is obsolete.
45831         * modules/readutmp (Depends-on): Remove free.
45832         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45833         * lib/putenv.c (putenv): Likewise.
45834         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45835         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45836         * tests/test-c-strcasestr.c (main): Likewise.
45837         * tests/test-c-strstr.c (main): Likewise.
45838         * tests/test-mbscasestr1.c (main): Likewise.
45839         * tests/test-mbscasestr2.c (main): Likewise.
45840         * tests/test-mbsstr1.c (main): Likewise.
45841         * tests/test-mbsstr2.c (main): Likewise.
45842         * tests/test-memmem.c (main): Likewise.
45843         * tests/test-strcasestr.c (main): Likewise.
45844         * tests/test-striconv.c (main): Likewise.
45845         * tests/test-striconveh.c (main): Likewise.
45846         * tests/test-striconveha.c (main): Likewise.
45847         * tests/test-strstr.c (main): Likewise.
45848
45849         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45850
45851         bootstrap: sync from coreutils again
45852         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45853
45854 2008-03-01  Jim Meyering  <meyering@redhat.com>
45855
45856         bootstrap: sync from coreutils
45857         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45858         also when the target doesn't exist.
45859
45860 2008-03-01  Eric Blake  <ebb9@byu.net>
45861
45862         Fix bugs in last patch.
45863         * lib/memchr2.c (memchr2): Fix typo.
45864         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45865         extension.
45866         Reported by Bruce Korb.
45867
45868         New module 'memchr2'.
45869         * modules/memchr2: New file.
45870         * modules/memchr2-tests: Likewise.
45871         * lib/memchr2.h: Likewise.
45872         * lib/memchr2.c: Likewise, based on memchr.c.
45873         * tests/test-memchr2.c: New test.
45874         * MODULES.html.sh (String handling): Add memchr2.
45875
45876 2008-02-29  Bruno Haible  <bruno@clisp.org>
45877
45878         * modules/freadseek-tests: New file.
45879         * tests/test-freadseek.sh: New file.
45880         * tests/test-freadseek.c: New file.
45881
45882         New module 'freadseek'.
45883         * modules/freadseek: New file.
45884         * lib/freadseek.h: New file.
45885         * lib/freadseek.c: New file.
45886         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45887
45888 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45889
45890         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45891         wydawca.
45892
45893         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45894         program_invocation_name and program_invocation_short_name are
45895         present.
45896
45897 2008-02-28  Bruno Haible  <bruno@clisp.org>
45898
45899         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45900         * tests/test-freadptr.sh: Also test non-seekable stdin.
45901
45902 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45903
45904         * build-aux/bootstrap (source_base, m4_base)
45905         (doc_base, tests_base): New variables.
45906         (gnulib_tool_options): Do not hardcode base directories, use
45907         the above variables instead.
45908
45909 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45910
45911         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45912
45913 2008-02-28  Bruno Haible  <bruno@clisp.org>
45914
45915         * modules/freadptr-tests: New file.
45916         * tests/test-freadptr.sh: New file.
45917         * tests/test-freadptr.c: New file.
45918
45919         New module 'freadptr'.
45920         * modules/freadptr: New file.
45921         * lib/freadptr.h: New file.
45922         * lib/freadptr.c: New file.
45923         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45924
45925 2008-02-26  Karl Berry  <karl@freefriends.org>
45926
45927         Sync from Libtool:
45928         * libltdl/argz.c (argz_add, argz_count): New functions.
45929         * libltdl/argz.in.h: Declare them.
45930         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45931
45932 2008-02-22  Bruno Haible  <bruno@clisp.org>
45933
45934         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45935         is a pointer type.  Needed for HP-UX 10.
45936         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45937         * doc/posix-functions/gmtime_r.texi: Likewise.
45938         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45939
45940 2008-02-24  Bruno Haible  <bruno@clisp.org>
45941
45942         * modules/environ-tests: New file.
45943         * tests/test-environ.c: New file.
45944
45945         New module 'environ'.
45946         * modules/environ: New file.
45947         * lib/unistd.in.h (environ): New declaration.
45948         * m4/environ.m4: New file.
45949         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45950         after use.
45951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45952         HAVE_DECL_ENVIRON.
45953         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45954         HAVE_DECL_ENVIRON.
45955         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45956         wrong claim that 'environ' is missing on some systems.
45957         * modules/execute (Depends-on): Add environ.
45958         * lib/execute.c (environ): Remove fallback declaration.
45959         * modules/pipe (Depends-on): Add environ.
45960         * lib/pipe.c (environ): Remove fallback declaration.
45961         * modules/setenv (Depends-on): Add environ.
45962         * lib/setenv.c (environ): Remove fallback declaration.
45963         * modules/unsetenv (Depends-on): Add environ.
45964         * lib/unsetenv.c (environ): Remove fallback declaration.
45965         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45966         m4/environ.m4.
45967         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45968         (gl_PREREQ_UNSETENV): Likewise.
45969
45970 2008-02-24  Bruno Haible  <bruno@clisp.org>
45971
45972         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45973
45974 2008-02-20  Bob Proulx  <bob@proulx.com>
45975
45976         Enable use of older two part flavor 'git describe'.
45977         * build-aux/git-version-gen: If using the older two part flavor of
45978         git version then recreate the third part now present in the
45979         newer three part flavor of git describe.
45980
45981 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45982
45983         * lib/fts.c (fts_build): Typo correction to comment.
45984
45985 2008-02-17  Bruno Haible  <bruno@clisp.org>
45986
45987         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45988         generating no-op conflicts.
45989
45990 2008-02-17  Bruno Haible  <bruno@clisp.org>
45991
45992         Speed up by 10%.
45993         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45994         result_entries, rather than an index-based loop.
45995
45996 2008-02-17  Bruno Haible  <bruno@clisp.org>
45997
45998         Speed up by 25%.
45999         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46000         'hashcode_cached'.
46001         (entry_create): New function.
46002         (entry_hashcode): Use the cached hashcode if possible.
46003         (read_changelog_file, try_split_merged_entry): Use entry_create.
46004
46005 2008-02-17  Bruno Haible  <bruno@clisp.org>
46006
46007         Speed up from O(n^2) to O(n) for long ChangeLog files.
46008         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46009         (read_changelog_file): Change implementation of entries_reversed list
46010         to rbtreehash.
46011         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46012
46013 2008-02-17  Bruno Haible  <bruno@clisp.org>
46014
46015         New option --split-merged-entry.
46016         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46017         (find_paragraph_end, try_split_merged_entry): New functions.
46018         (long_options): Add option --split-merged-entry.
46019         (usage): Document option --split-merged-entry.
46020         (main): Implement option --split-merged-entry.
46021         Reported by Eric Blake.
46022
46023 2008-02-17  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/git-merge-changelog.c: Include c-strstr.h.
46026         (main): Support the "git pull --rebase" situation.
46027         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46028         Reported by Eric Blake.
46029
46030 2008-02-16  Eric Blake  <ebb9@byu.net>
46031
46032         Avoid doubling \ in common case of "c-maybe" quoting style.
46033         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46034         eliding outer quotes.
46035         * lib/quotearg.h: Document this.
46036         * tests/test-quotearg.c (result_strings, inputs, results_g)
46037         (flag_results, locale_results): Test it by adding a new string to
46038         each test group.
46039         (compare_strings): Test new string.
46040
46041 2008-02-13  Eric Blake  <ebb9@byu.net>
46042
46043         Avoid trigraph quoting in default output.
46044         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46045         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46046         unless explicitly requested.
46047         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46048
46049 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46050
46051         Don't rely on signed integer overflowing to negative value.
46052         * lib/getugroups.c (getugroups): Include <limits.h>.
46053         Instead, compare against INT_MAX, and increment only if the test passes.
46054
46055 2008-02-13  Jim Meyering  <meyering@redhat.com>
46056         and Eric Blake  <ebb9@byu.net>
46057
46058         Avoid shadowing warning and compile errors on Linux.
46059         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46060         forwarding macros on Linux.
46061         (dcgettext): Define a stub, for Linux.
46062         (results_g, main): Avoid warnings.
46063
46064 2008-02-12  Eric Blake  <ebb9@byu.net>
46065
46066         Silence warning in last patch.
46067         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46068
46069         Quotearg part 4: add tests, fix c-maybe colon quoting.
46070         * lib/quotearg.h: Improve documentation.
46071         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46072         escapes when adding outer quotes.  When quoting trigraphs, use
46073         valid C notation.  When quoting NUL, omit extra characters if next
46074         character is not digit.  Alter prototype.
46075         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46076         callers.
46077         * modules/quotearg-tests: New module.
46078         * tests/test-quotearg.c: New test.
46079
46080 2008-02-07  Eric Blake  <ebb9@byu.net>
46081
46082         Quotearg part 3: add flag to control outer quote elision.
46083         * lib/quotearg.h (c_maybe_quoting_style): New style.
46084         (enum quoting_flags): Better documentation of flags.
46085         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46086         c-maybe style.
46087         (quotearg_buffer_restyled): Handle new flag to elide outer
46088         quotes.
46089
46090         Quotearg part 2: add flag that can control NUL elision.
46091         * lib/quotearg.h (set_quoting_flags): New prototype.
46092         * lib/quotearg.c (struct quoting_options): Add flag field.
46093         (set_quoting_flags): New function.
46094         (quotearg_buffer_restyled): Add flags parameter.
46095         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46096         (quotearg_n_options): Set the flag, since length cannot be
46097         returned.
46098         (quoting_options_from_style): Default flags correctly.
46099
46100         Quotearg part 1: more wrappers, restore quotearg_char state.
46101         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46102         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46103         (quotearg_colon_mem): New wrappers.
46104         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46105         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46106         functions.
46107         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46108         (quotearg_colon_mem): New functions.
46109
46110 2008-02-11  Bruno Haible  <bruno@clisp.org>
46111
46112         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46113         library in the current directory: it does not work with parallel make.
46114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46115
46116 2008-02-11  Bruno Haible  <bruno@clisp.org>
46117
46118         * .gitattributes: New file.
46119
46120 2008-02-11  Jim Meyering  <meyering@redhat.com>
46121
46122         useless-if-before-free: Fix reversed exit values.
46123         * build-aux/useless-if-before-free: Use correct values
46124         for EXIT_MATCH and EXIT_NO_MATCH.
46125
46126         * build-aux/useless-if-before-free: Close stdout carefully.
46127
46128 2008-02-10  Bruno Haible  <bruno@clisp.org>
46129
46130         New module 'git-merge-changelog'.
46131         * modules/git-merge-changelog: New file.
46132         * lib/git-merge-changelog.c: New file.
46133
46134 2008-02-10  Jim Meyering  <meyering@redhat.com>
46135
46136         useless-if-before-free: New option: --list (-l).
46137
46138         useless-if-before-free: Don't exit immediately upon open failure.
46139         * build-aux/useless-if-before-free: Exit 2 for errors.
46140         Upon failure to open a file, don't exit immediately.
46141         Rather, just warn and continue with any remaining files.
46142
46143 2008-02-10  Bruno Haible  <bruno@clisp.org>
46144
46145         New abstract list operation 'node_set_value'.
46146         * lib/gl_list.h (gl_list_node_set_value): New function.
46147         (struct gl_list_implementation): New field node_set_value.
46148         * lib/gl_list.c (gl_list_node_set_value): New function.
46149         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46150         (gl_array_list_implementation): Update.
46151         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46152         (gl_carray_list_implementation): Update.
46153         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46154         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46155         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46156         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46157         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46158         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46159         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46160         Update.
46161         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46162         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46163         (gl_sublist_list_implementation): Update.
46164
46165 2008-02-10  Bruno Haible  <bruno@clisp.org>
46166
46167         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46168         Needed when ELEMENT is #defined to 'some_type *'.
46169
46170 2008-02-10  Jim Meyering  <meyering@redhat.com>
46171
46172         New script and module: useless-if-before-free
46173         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46174         * build-aux/useless-if-before-free: New file.
46175         * modules/useless-if-before-free: New file.
46176
46177         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46178
46179         xstrtol_error: Fix typo.
46180         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46181         s/exit_failure/exit_status/.
46182
46183 2008-02-09  Jim Meyering  <meyering@redhat.com>
46184
46185         New script and module: gitlog-to-changelog
46186         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46187         * modules/gitlog-to-changelog: New file.
46188         * build-aux/gitlog-to-changelog: New file.
46189
46190 2008-02-08  Jim Meyering  <meyering@redhat.com>
46191
46192         Avoid two "parameter unused" warnings.
46193         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46194         Mark "st" as used.
46195
46196         Use "git COMMAND", not "git-COMMAND".
46197         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46198         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46199         * build-aux/git-version-gen: Use "git status", not "git-status".
46200
46201 2008-02-07  Bruno Haible  <bruno@clisp.org>
46202
46203         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46204         Avoids a crash on Windows Vista.
46205         Reported by Adam Strzelecki <ono@java.pl> via
46206         Simon Josefsson <simon@josefsson.org>.
46207
46208 2008-02-06  Bruno Haible  <bruno@clisp.org>
46209
46210         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46211         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46212         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46214         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46216         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46217         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46225         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46226         left-adjust flag.
46227         * tests/test-snprintf-posix.h (test_function): Likewise.
46228         * tests/test-sprintf-posix.h (test_function): Likewise.
46229         * tests/test-vasprintf-posix.c (test_function): Likewise.
46230         * doc/posix-functions/fprintf.texi: Update.
46231         * doc/posix-functions/printf.texi: Update.
46232         * doc/posix-functions/snprintf.texi: Update.
46233         * doc/posix-functions/sprintf.texi: Update.
46234         * doc/posix-functions/vfprintf.texi: Update.
46235         * doc/posix-functions/vprintf.texi: Update.
46236         * doc/posix-functions/vsnprintf.texi: Update.
46237         * doc/posix-functions/vsprintf.texi: Update.
46238         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46239
46240 2008-02-06  Bruno Haible  <bruno@clisp.org>
46241
46242         Fix bug introduced on 2008-01-26.
46243         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46244
46245 2008-02-06  Bruno Haible  <bruno@clisp.org>
46246
46247         Fix bug introduced on 2007-06-10.
46248         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46249         !NEED_PRINTF_FLAG_ZERO.
46250
46251 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46252
46253         getloadavg: use libperfstat on AIX5
46254         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46255
46256 2008-02-03  Bruno Haible  <bruno@clisp.org>
46257
46258         * lib/diffseq.h: Add comments about required #includes.
46259         Reported by Michael Biggs <gnulib@doubleplum.net>.
46260
46261 2008-02-01  Bruno Haible  <bruno@clisp.org>
46262
46263         * users.txt: Add gnuit.
46264
46265 2008-01-31  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/md4.c (set_uint32): Mark as inline.
46268         * lib/md5.c (set_uint32): Likewise.
46269         * lib/sha1.c (set_uint32): Likewise.
46270         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46271         * m4/md5.m4 (gl_MD5): Likewise.
46272         * m4/sha1.m4 (gl_SHA1): Likewise.
46273
46274 2008-01-31  Jim Meyering  <meyering@redhat.com>
46275
46276         Use "sizeof VAR", rather than a literal "4".
46277         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46278         * lib/md4.c (md4_read_ctx): Likewise.
46279         * lib/sha1.c (sha1_read_ctx): Likewise.
46280
46281 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46282
46283         * tests/test-sha1.c: New file, based on test-md5.c.
46284
46285         * modules/crypto/sha1-tests: New file.
46286
46287 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46288
46289         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46290
46291 2008-01-31  Jim Meyering  <meyering@redhat.com>
46292
46293         Prefer "sizeof v" over the equivalent "4".
46294         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46295         * lib/md5.c (set_uint32): Likewise.
46296         * lib/sha1.c (set_uint32): Likewise.
46297
46298 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46299
46300         * lib/sha1.c (set_uint32): Mark function as static.
46301
46302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46303
46304         md2: clarify comments to say that alignment is not required.
46305         * lib/md2.h: Remove warning about alignment in comment.
46306         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46307         never been required.
46308
46309 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46310
46311         md4: adapt alignment constraint fix from sha1.
46312         * lib/md4.c (set_uint32): New function, from sha1.c
46313         (md4_read_ctx): Use it.
46314         (md4_finish_ctx): Doc fix.
46315         * lib/md4.h: Doc fix.
46316
46317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46318
46319         md5: adapt alignment constraint fix from sha1.
46320         * lib/md5.c (set_uint32): New function, from sha1.c
46321         (md5_read_ctx): Use it.
46322         (md5_finish_ctx): Doc fix.
46323         * lib/md5.h: Doc fix.
46324
46325 2008-01-30  Peter Palfrader  <weasel@debian.org>
46326
46327         sha1: remove the result buffer alignment constraint
46328         * lib/sha1.c (set_uint32): New function.
46329         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46330         constraint.
46331         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46332         * lib/sha1.h: Likewise.
46333
46334 2008-01-30  Andreas Schwab  <schwab@suse.de>
46335             Bruno Haible  <bruno@clisp.org>
46336
46337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46338         correct definition of LDBL_MIN_EXP.
46339
46340 2008-01-30  Karl Berry  <karl@gnu.org>
46341
46342         * config/srclist-update: try to preserve x bit on updates.
46343         * config/srclistvars.sh: update for karl.
46344
46345 2008-01-29  Jim Meyering  <meyering@redhat.com>
46346
46347         vasnprintf.c: Avoid warning about unused label
46348         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46349         "overflow" label definition and associated code with the
46350         same cpp condition that guards the sole use of that label.
46351
46352 2008-01-26  Bruno Haible  <bruno@clisp.org>
46353
46354         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46355         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46356         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46357         * lib/isnanl-nolibm.h (isnanl): Likewise.
46358         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46359
46360 2008-01-26  Bruno Haible  <bruno@clisp.org>
46361
46362         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46363         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46364
46365 2008-01-26  Bruno Haible  <bruno@clisp.org>
46366
46367         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46368         GCC >= 4.0 built-in.
46369         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46370
46371 2008-01-26  Bruno Haible  <bruno@clisp.org>
46372
46373         Rename isnan, applicable to 'double' only, to isnand.
46374         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46375         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46376         (configure.ac): Update.
46377         (Include): Replace "isnan.h" with "isnand.h".
46378         * m4/isnand.m4: Renamed from m4/isnan.m4.
46379         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46380         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46381         instead of isnan.c.
46382         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46383         instead of HAVE_ISNAN_IN_LIBC.
46384         (isnand): Renamed from isnan.
46385         * lib/isnand.c: New file.
46386         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46387         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46388         (Makefile.am): Update.
46389         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46390         Include isnand.h instead of isnan.h.
46391         (main): Test isnand instead of isnan.
46392         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46393         isnan-nolibm.
46394         * modules/frexp (Depends-on): Likewise.
46395         * modules/frexp-tests (Depends-on): Likewise.
46396         * modules/frexp-nolibm (Depends-on): Likewise.
46397         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46398         * modules/isfinite (Depends-on): Likewise.
46399         * modules/round-tests (Depends-on): Likewise.
46400         * modules/signbit (Depends-on): Likewise.
46401         * modules/signbit-tests (Depends-on): Likewise.
46402         * modules/snprintf-posix (Depends-on): Likewise.
46403         * modules/sprintf-posix (Depends-on): Likewise.
46404         * modules/trunc-tests (Depends-on): Likewise.
46405         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46406         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46407         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46408         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46409         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46410         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46411         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46412         * modules/vasnprintf-posix (Depends-on): Likewise.
46413         * modules/vasprintf-posix (Depends-on): Likewise.
46414         * modules/vfprintf-posix (Depends-on): Likewise.
46415         * modules/vsnprintf-posix (Depends-on): Likewise.
46416         * modules/vsprintf-posix (Depends-on): Likewise.
46417         * lib/frexp.c: Include isnand.h instead of isnan.h.
46418         (ISNAN): Set to isnand instead of isnan.
46419         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46420         (gl_isfinited): Use isnand instead of isnan.
46421         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46422         (gl_signbitd): Use isnand instead of isnan.
46423         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46424         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46425         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46426         (main): Use isnand instead of isnan.
46427         * tests/test-round1.c: Include isnand.h.
46428         (main): Use isnand instead of isnan.
46429         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46430         (ISNAN): Set to isnand instead of isnan.
46431         * tests/test-trunc1.c: Include isnand.h.
46432         (main): Use isnand instead of isnan.
46433         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46434         (equal): Use isnand instead of isnan.
46435         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46436         isnand-nolibm.
46437         * NEWS: Mention the change.
46438
46439 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46440             Bruno Haible  <bruno@clisp.org>
46441
46442         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46443         the GCC builtins for signbits are present and set
46444         REPLACE_SIGNBIT_USING_GCC if so.
46445         * lib/math.in.h (signbit): Define using GCC builtins if
46446         REPLACE_SIGNBIT_USING_GCC is set.
46447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46448         REPLACE_SIGNBIT_USING_GCC.
46449         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46450
46451 2008-01-25  Jim Meyering  <meyering@redhat.com>
46452
46453         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46454         * lib/poll.c: Include <config.h>, not "config.h".
46455         * tests/test-getaddrinfo.c: Likewise.
46456
46457 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46458
46459         * modules/sockets-tests: New file.
46460
46461 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46462
46463         * modules/sockets: New module, can be used to call WSA_Startup and
46464         WSA_Cleanup when needed.
46465
46466         * lib/sockets.h, lib/sockets.c: New files.
46467
46468         * m4/sockets.m4: New file.
46469
46470         * tests/test-sockets.c: New file.
46471
46472 2008-01-19  Bruno Haible  <bruno@clisp.org>
46473
46474         * doc/posix-headers: Renamed from doc/headers.
46475         * doc/posix-functions: Renamed from doc/functions.
46476         * doc/gnulib.texi: Update.
46477
46478 2008-01-19  Bruno Haible  <bruno@clisp.org>
46479
46480         * doc/glibc-functions/strcasestr.texi: Include contents of
46481         doc/functions/strcasestr.texi, fixing the list of platforms.
46482         * doc/functions/strcasestr.texi: Remove file.
46483
46484 2008-01-19  Bruno Haible  <bruno@clisp.org>
46485
46486         * doc/glibc-functions/memmem.texi: Include contents of
46487         doc/functions/memmem.texi.
46488         * doc/functions/memmem.texi: Remove file.
46489
46490 2008-01-18  Bruno Haible  <bruno@clisp.org>
46491
46492         * doc/glibc-functions/*.texi: New files.
46493         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46494         to use the new files.
46495
46496 2008-01-17  Bruno Haible  <bruno@clisp.org>
46497
46498         * tests/test-gethostname.c (main): Fix printf statement.
46499
46500 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46501
46502         * modules/gethostname-tests: New file.
46503
46504         * tests/test-gethostname.c: New file.
46505
46506 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46507
46508         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46509         used by the UNAME case.  Reported by Bruno Haible
46510         <bruno@clisp.org>.
46511
46512 2008-01-17  Eric Blake  <ebb9@byu.net>
46513
46514         Convert c-strcasestr to be more efficient.
46515         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46516         (Depends-on): Add c-strcase, remove malloca, strnlen.
46517         * tests/test-c-strcasestr.c (main): Enhance test.
46518         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46519
46520 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46521
46522         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46523         Use it in creating po/Makevars.
46524
46525 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46526
46527         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46528         Applications that requires it should initialize libgcrypt
46529         manually.
46530
46531 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46532
46533         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46534
46535 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46536
46537         Fix problem with getdate on mingw32 reported by Simon Josefsson
46538         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46539         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46540         tzname", when deciding whether to declare tzname.
46541         * lib/strftime.c (tzname): Likewise.
46542
46543 2008-01-15  Bruno Haible  <bruno@clisp.org>
46544
46545         Work around a MacOS X 10.5 bug in frexpl().
46546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46547         * doc/functions/frexpl.texi: Document the bug.
46548         Reported by Elias Pipping <pipping@gentoo.org>.
46549
46550 2008-01-14  Eric Blake  <ebb9@byu.net>
46551
46552         Touch up previous patch.
46553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46554         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46555
46556         Convert strcasestr module to use Two-Way algorithm.
46557         * modules/strcasestr-simple: New module, based on the old
46558         strcasestr, but with Two-Way rather than KMP.
46559         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46560         * lib/string.in.h (rpl_strcasestr): Declare.
46561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46562         performance.
46563         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46564         * modules/string (Makefile.am): Support strcasestr.
46565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46566         * modules/strcasestr-tests (Depends-on): Check for alarm.
46567         * tests/test-strcasestr.c: Augment test.
46568         * lib/str-two-way.h: Clean up stray macro.
46569         * NEWS: Document new module.
46570         * MODULES.html.sh (string handling): Likewise.
46571         * doc/functions/strcasestr.texi: New file.
46572         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46573         here, since it is not a POSIX function.
46574
46575 2008-01-14  Colin Watson  <cjwatson@debian.org>
46576             Bruno Haible  <bruno@clisp.org>
46577
46578         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46579         works fine; if not, set REPLACE_STRSIGNAL.
46580         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46582         REPLACE_STRSIGNAL.
46583         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46584         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46585         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46586
46587 2008-01-14  Bruno Haible  <bruno@clisp.org>
46588
46589         * modules/strsignal (Include): Change to <string.h>.
46590
46591 2008-01-14  Colin Watson  <cjwatson@debian.org>
46592
46593         * modules/argp (Notice): Add a notice recommending to change
46594         XGETTEXT_OPTIONS.
46595         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46596
46597 2008-01-13  Colin Watson  <cjwatson@debian.org>
46598
46599         * modules/strsignal-tests: New file.
46600         * tests/test-strsignal.c: New file.
46601
46602         * lib/strsignal.c: New file, from glibc with modifications.
46603         * lib/siglist.h: New file, from glibc with modifications.
46604         * lib/string.in.h (strsignal): New declaration.
46605         * m4/strsignal.m4: New file.
46606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46607         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46608         * modules/strsignal: New file.
46609         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46610         HAVE_DECL_STRSIGNAL.
46611
46612 2008-01-13  Bruno Haible  <bruno@clisp.org>
46613
46614         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46615         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46616         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46617         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46618
46619 2008-01-13  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46622         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46623         * lib/argp.h (__attribute__): Likewise.
46624         * lib/c-stack.c (__attribute__): Likewise.
46625         * lib/error.h (__attribute__): Likewise.
46626         * lib/fts.c (__attribute__): Likewise.
46627         * lib/openat.h (__attribute__): Likewise.
46628         * lib/stdio.in.h (__attribute__): Likewise.
46629         * lib/string.in.h (__attribute__): Likewise.
46630         * lib/utimens.c (__attribute__): Likewise.
46631         * lib/vasnprintf.h (__attribute__): Likewise.
46632         * lib/xalloc.h (__attribute__): Likewise.
46633         * lib/xprintf.h (__attribute__): Likewise.
46634         * lib/xstrtol.h (__attribute__): Likewise.
46635         * lib/xvasprintf.h (__attribute__): Likewise.
46636
46637 2008-01-12  Bruno Haible  <bruno@clisp.org>
46638
46639         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46640         * doc/glibc-headers/a.out.texi: New file.
46641         * doc/glibc-headers/aliases.texi: New file.
46642         * doc/glibc-headers/alloca.texi: New file.
46643         * doc/glibc-headers/ar.texi: New file.
46644         * doc/glibc-headers/argp.texi: New file.
46645         * doc/glibc-headers/argz.texi: New file.
46646         * doc/glibc-headers/byteswap.texi: New file.
46647         * doc/glibc-headers/crypt.texi: New file.
46648         * doc/glibc-headers/endian.texi: New file.
46649         * doc/glibc-headers/envz.texi: New file.
46650         * doc/glibc-headers/err.texi: New file.
46651         * doc/glibc-headers/error.texi: New file.
46652         * doc/glibc-headers/execinfo.texi: New file.
46653         * doc/glibc-headers/fpu_control.texi: New file.
46654         * doc/glibc-headers/fstab.texi: New file.
46655         * doc/glibc-headers/fts.texi: New file.
46656         * doc/glibc-headers/getopt.texi: New file.
46657         * doc/glibc-headers/ieee754.texi: New file.
46658         * doc/glibc-headers/ifaddrs.texi: New file.
46659         * doc/glibc-headers/libintl.texi: New file.
46660         * doc/glibc-headers/mcheck.texi: New file.
46661         * doc/glibc-headers/mntent.texi: New file.
46662         * doc/glibc-headers/obstack.texi: New file.
46663         * doc/glibc-headers/paths.texi: New file.
46664         * doc/glibc-headers/printf.texi: New file.
46665         * doc/glibc-headers/pty.texi: New file.
46666         * doc/glibc-headers/resolv.texi: New file.
46667         * doc/glibc-headers/shadow.texi: New file.
46668         * doc/glibc-headers/sysexits.texi: New file.
46669         * doc/glibc-headers/ttyent.texi: New file.
46670
46671 2008-01-12  Jim Meyering  <meyering@redhat.com>
46672
46673         announce-gen: emit Gnulib's git-based version string.
46674         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46675         New option --gnulib-version=V, where V is expected to be
46676         the output of running git describe in the gnulib directory.
46677         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46678         not useful, and plan to stop publishing an xdelta file with each
46679         coreutils release.
46680
46681         * build-aux/announce-gen: Also check for lzma-compressed files.
46682
46683 2008-01-11  Bruno Haible  <bruno@clisp.org>
46684
46685         * tests/test-memmem.c (main): Increase maximum allowed time.
46686         * tests/test-strstr.c (main): Likewise.
46687
46688 2008-01-11  Bruno Haible  <bruno@clisp.org>
46689
46690         * doc/functions/memmem.texi: Add more precisions about platforms.
46691         * doc/functions/strstr.texi: Likewise.
46692
46693 2008-01-10  Eric Blake  <ebb9@byu.net>
46694
46695         * m4/strstr.m4: Delete cruft from copy-n-paste.
46696         Reported by Bruno Haible.
46697
46698 2008-01-10  Bruno Haible  <bruno@clisp.org>
46699
46700         Make c-strstr rely on strstr.
46701         * lib/c-strstr.c: Don't include str-kmp.h.
46702         (c_strstr): Define in terms of strstr.
46703         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46704         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46705
46706 2008-01-10  Bruno Haible  <bruno@clisp.org>
46707
46708         * doc/gnulib.texi (String Functions in C Locale): New section.
46709         * doc/c-ctype.texi: New file.
46710         * doc/c-strcase.texi: New file.
46711         * doc/c-strcaseeq.texi: New file.
46712         * doc/c-strcasestr.texi: New file.
46713         * doc/c-strstr.texi: New file.
46714         * doc/c-strtod.texi: New file.
46715         * doc/c-strtold.texi: New file.
46716
46717 2008-01-10  Eric Blake  <ebb9@byu.net>
46718
46719         * lib/relocatable.h: Fix a comment.
46720
46721 2008-01-10  Eric Blake  <ebb9@byu.net>
46722
46723         Share two-way algorithm.
46724         * lib/str-two-way.h: New file, merged from...
46725         * lib/memmem.c: ...here...
46726         * lib/strstr.c: ...and here.
46727         * modules/memmem (Files): Use it.
46728         * modules/strstr (Files): Likewise.
46729
46730         Avoid quadratic strstr implementations.
46731         * lib/strstr.c: New file.
46732         * m4/strstr.m4: Likewise.
46733         * modules/strstr: Likewise.
46734         * modules/strstr-tests: Likewise.
46735         * tests/test-strstr.c: Likewise.
46736         * lib/string.in.h (rpl_strstr): Declare.
46737         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46739         * modules/string (Makefile.am): Likewise.
46740         * MODULES.html.sh (string handling): Mention new module.
46741         * doc/functions/strstr.texi (strstr): Document the bug.
46742
46743 2008-01-10  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/relocatable.h (relocate): State whether result is freshly
46746         allocated or not.
46747         * lib/relocatable.c (relocate): Return a freshly allocated string
46748         instead of a pointer to a privately held string.
46749         Reported by Sylvain Beucler <beuc@gnu.org>.
46750
46751 2008-01-10  Colin Watson  <cjwatson@debian.org>
46752
46753         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46754         s/S_ISNLK/S_ISLNK/.
46755
46756 2008-01-09  Bruno Haible  <bruno@clisp.org>
46757
46758         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46759         and other files.
46760         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46761         if it's only a guess.
46762         * modules/memmem: Simplify by depending on memmem-simple.
46763
46764 2008-01-09  Bruno Haible  <bruno@clisp.org>
46765
46766         Work around OpenBSD 4.0 tdelete() bug.
46767         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46768         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46769         macros and don't redefine the enum values.
46770         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46771         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46772         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46773
46774 2008-01-09  Bruno Haible  <bruno@clisp.org>
46775
46776         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46777         (main): Don't perform the tests if setlocale did not install a UTF-8
46778         locale. Needed on OpenBSD 4.0.
46779         * modules/wcwidth-tests (Depends-on): Add localcharset.
46780
46781 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46782
46783         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46784         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46785         * NEWS: announce this.
46786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46787
46788 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46789         and Eric Blake  <ebb9@byu.net>
46790
46791         Add memmem-simple module.
46792         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46793         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46794         * modules/memmem-simple: New file.
46795         * modules/memmem (Description): Tweak.
46796         * MODULES.html.sh (string handling): Mention new module.
46797         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46798         addressed by memmem-simple.
46799         * NEWS: Document the difference.
46800
46801 2008-01-09  Eric Blake  <ebb9@byu.net>
46802
46803         Give gcc some memmem optimization hints.
46804         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46805         (strcasestr): Declare as pure.
46806         * modules/memmem (Maintainer): Claim my implementation.
46807
46808 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46809
46810         Support AIX 6.1 and higher.
46811         * build-aux/config.libpath: Likewise.
46812         * build-aux/config.rpath: Likewise.
46813
46814 2008-01-08  Jim Meyering  <meyering@redhat.com>
46815             Bruno Haible  <bruno@clisp.org>
46816
46817         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46818         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46819         Reported by Peter Fales in
46820         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46821
46822 2008-01-08  Bruno Haible  <bruno@clisp.org>
46823
46824         * modules/unictype/category-of (Depends-on): Add
46825         unictype/category-none.
46826         * modules/unictype/category-and-tests (Depends-on): Add
46827         unictype/category-{L,N,Lu,Nd}.
46828         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46829         * modules/unictype/category-or-tests (Depends-on): Add
46830         unictype/category-{L,N}.
46831         * modules/unictype/category-name-tests (Depends-on): Add
46832         unictype/category-{Z,Nl}.
46833         Reported by Simon Josefsson.
46834
46835 2008-01-08  Bruno Haible  <bruno@clisp.org>
46836
46837         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46838         convention better.
46839         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46840         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46841         Reported by Peter Miller <millerp@canb.auug.org.au>.
46842
46843 2008-01-08  Eric Blake  <ebb9@byu.net>
46844
46845         Rewrite memmem to guarantee linear complexity without malloc.
46846         * lib/memmem.c (memmem): Use Two-Way rather than
46847         Knuth-Morris-Pratt, to allow O(1) space usage.
46848         (critical_factorization, two_way_short_needle)
46849         (two_way_long_needle): New functions.
46850         (knuth_morris_pratt): Delete.
46851         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46852         Add stdint.
46853         * tests/test-memmem.c (main): Add tests for periodic needle and
46854         sublinear performance.
46855         * doc/functions/memmem.texi (memmem): Document other deficiencies
46856         in cygwin and older glibc.
46857
46858 2008-01-08  Bruno Haible  <bruno@clisp.org>
46859
46860         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46861         augmentation.
46862
46863 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46864
46865         Add a configure time option: --disable-acl.
46866         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46867         AC_ARG_ENABLE(acl).
46868
46869 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46870
46871         * tests/test-localename.c: Don't include obsolete "setenv.h".
46872
46873         * modules/localename-tests (Depends-on): Need unsetenv.
46874
46875 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46876
46877         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46878
46879 2008-01-06  Colin Watson  <cjwatson@debian.org>
46880
46881         * users.txt: Add man-db.
46882
46883 2008-01-07  Bruno Haible  <bruno@clisp.org>
46884
46885         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46886         previous section name.
46887
46888 2008-01-07  Bruno Haible  <bruno@clisp.org>
46889
46890         * lib/progname.c (set_program_name): Don't strip off a leading
46891         "lt-" prefix outside a .libs directory.
46892         Suggested by Paul Eggert.
46893
46894 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46895             Bruno Haible  <bruno@clisp.org>
46896
46897         Improve memory cleanup in 'relocatable' module.
46898         * lib/relocatable.h (compute_curr_prefix): Change return type to
46899         'char *'.
46900         * lib/relocatable.c (compute_curr_prefix): Change return type to
46901         'char *'. Free curr_installdir after use.
46902         (relocate): Free curr_prefix_better after use.
46903         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46904
46905 2008-01-01  Bruno Haible  <bruno@clisp.org>
46906
46907         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46908         failure on older glibc systems.
46909         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46910
46911 2008-01-05  Eric Blake  <ebb9@byu.net>
46912
46913         Avoid quadratic system memmem.
46914         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46915         Reported by Ralf Wildenhues.
46916
46917         Fix memmem test for mingw.
46918         * modules/memmem-tests (configure.ac): Check for alarm.
46919         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46920         it.
46921         * doc/functions/memmem.texi: New file.
46922         * doc/gnulib.texi (Function Substitutes): Add memmem.
46923         Reported by Bruno Haible.
46924
46925 2008-01-04  Bruno Haible  <bruno@clisp.org>
46926
46927         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46928         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46929         gl_HEADER_STRING_H_DEFAULTS.
46930
46931 2008-01-04  Eric Blake  <ebb9@byu.net>
46932
46933         Shorten duration of memmem test.
46934         * tests/test-memmem.c (main): Use alarm to declare failure if test
46935         is taking too long.
46936         Reported by Ralf Wildenhues.
46937
46938 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46939
46940         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46941         string, needed by strerror.
46942
46943 2008-01-03  Colin Watson  <cjwatson@debian.org>
46944             Bruno Haible  <bruno@clisp.org>
46945
46946         * doc/gnulib-tool.texi (Localization): New section.
46947
46948 2008-01-02  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46951         variables to 'unsigned char *' type.
46952         Reported by Paul Eggert.
46953
46954 2008-01-02  Jim Meyering  <jim@meyering.net>
46955
46956         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46957
46958 2007-12-31  Jim Meyering  <jim@meyering.net>
46959
46960         Avoid use of private FTS type name.
46961         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46962
46963 2007-12-30  Karl Berry  <karl@gnu.org>
46964
46965         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46966         work around defect in Texinfo and/or the standalone Info browser.
46967
46968 2007-12-30  Bruno Haible  <bruno@clisp.org>
46969
46970         Unify 5 copies of the KMP code.
46971         * lib/str-kmp.h: New file.
46972         * lib/c-strcasestr.c: Include str-kmp.h.
46973         (knuth_morris_pratt): Remove function.
46974         (c_strcasestr): Update.
46975         * lib/c-strstr.c: Include str-kmp.h.
46976         (knuth_morris_pratt): Remove function.
46977         (c_strcasestr): Update.
46978         * lib/mbscasestr.c: Include str-kmp.h.
46979         (knuth_morris_pratt_unibyte): Remove function.
46980         * lib/mbsstr.c: Include str-kmp.h.
46981         (knuth_morris_pratt_unibyte): Remove function.
46982         * lib/strcasestr.c: Include str-kmp.h.
46983         (knuth_morris_pratt): Remove function.
46984         (strcasestr): Update.
46985         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46986         * modules/c-strstr (Files): Likewise.
46987         * modules/mbscasestr (Files): Likewise.
46988         * modules/mbsstr (Files): Likewise.
46989         * modules/strcasestr (Files): Likewise.
46990         Suggested by Paul Eggert.
46991
46992 2007-12-30  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46995         defined.
46996
46997 2007-12-30  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/xmalloca.h: Include xalloc.h.
47000         (xnmalloca): New macro.
47001
47002 2007-12-30  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/malloca.h (nmalloca): New macro.
47005         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47006         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47007         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47008         knuth_morris_pratt_multibyte): Likewise.
47009         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47010         knuth_morris_pratt_multibyte): Likewise.
47011         * lib/memmem.c (knuth_morris_pratt): Likewise.
47012         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47013
47014 2007-12-25  Bruno Haible  <bruno@clisp.org>
47015
47016         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47017         * lib/glob.c: Don't include openat.h.
47018         (link_exists2_p): Add back the code that deals with the
47019         !GLOB_ALTDIRFUNC case.
47020         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47021         let it do the filename concatenation.
47022         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47023         * modules/glob (Depends-on): Remove openat.
47024
47025 2007-12-31  Bruno Haible  <bruno@clisp.org>
47026
47027         * modules/dirfd (License): Change to LGPLv2+.
47028         Approved by Jim Meyering.
47029
47030 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47031
47032         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47033         when multiplying M by sizeof (size_t).
47034
47035 2007-12-10  Martin Lambers  <marlam@marlam.de>
47036
47037         Override getpagesize on mingw.
47038         * lib/getpagesize.c: New file.
47039         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47040         * modules/getpagesize (Files): Add lib/getpagesize.c.
47041         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47043         REPLACE_GETPAGESIZE.
47044         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47045
47046 2007-12-25  Bruno Haible  <bruno@clisp.org>
47047
47048         * modules/localcharset (Notice): New field.
47049         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47050         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47051
47052 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47053             Bruno Haible  <bruno@clisp.org>
47054
47055         Avoid using the syntax symbol() in formatted documentation.
47056         * MODULES.html.sh (func_module): When replacing symbol() with a
47057         hyperlink, remove the parentheses. Show an error if some remain.
47058         Recognize and render the '...' syntax.
47059         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47060         Rework. Add paragraph about GCC's inlining.
47061         * doc/alloca.texi: Likewise.
47062         * doc/error.texi: Remove parentheses from symbol reference.
47063         * doc/gnulib-intro.texi: Likewise.
47064         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47065         * modules/fnmatch (Description): Reword to say "the ... function".
47066         * modules/full-read (Description): Likewise.
47067         * modules/full-write (Description): Likewise.
47068         * modules/safe-read (Description): Likewise.
47069         * modules/safe-write (Description): Likewise.
47070         * modules/strchrnul (Description): Likewise.
47071         * modules/trim (Description): Likewise.
47072         * modules/error (Description): Remove parentheses from symbol
47073         references.
47074         * modules/verror (Description): Likewise.
47075         Reported by Karl Berry.
47076
47077 2007-12-25  Bruno Haible  <bruno@clisp.org>
47078
47079         Fixup after 2007-10-16 commit.
47080         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47081
47082 2007-12-24  Bruno Haible  <bruno@clisp.org>
47083
47084         Make --enable-relocatable work with DESTDIR.
47085         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47086         to compute installdir from destprog.
47087         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47088         also set the RELOC_DESTDIR variable.
47089         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47090
47091 2007-12-24  Bruno Haible  <bruno@clisp.org>
47092
47093         Fix link error due to xalloc_die().
47094         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47095         of xreadlink.
47096         * lib/relocwrapper.c: Update comments.
47097         * build-aux/install-reloc: Remove xreadlink.c from file list.
47098         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47099         xreadlink.c.
47100         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47101
47102 2007-12-24  Bruno Haible  <bruno@clisp.org>
47103
47104         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47105         * lib/setenv.h: Remove file.
47106         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47107         lib/setenv.h.
47108         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47109         (Depends-on): Add stdlib.
47110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47111         gl_FUNC_UNSETENV.
47112         (Include): Replace setenv.h with <stdlib.h>.
47113         * modules/unsetenv: New file.
47114         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47115         * lib/unsetenv.c: Include <stdlib.h> first.
47116         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47117         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47118         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47119         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47120         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47121         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47123         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47124         * doc/functions/unsetenv.texi: Update.
47125         * modules/xsetenv (Depends-on): Add unsetenv.
47126         * modules/getdate (Depends-on): Likewise.
47127         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47128         * lib/xsetenv.c: Don't include setenv.h.
47129         * lib/getdate.y: Likewise.
47130         * lib/relocwrapper.c: Likewise.
47131         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47132         (Depends-on): Add stdlib.
47133         * NEWS: Mention the changes.
47134         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47135
47136 2007-12-23  Bruno Haible  <bruno@clisp.org>
47137
47138         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47139         indentation.
47140
47141 2007-12-23  Bruno Haible  <bruno@clisp.org>
47142
47143         * lib/c-strcasestr.c: Add more comments.
47144         * lib/c-strstr.c: Likewise.
47145         * lib/mbscasestr.c: Likewise.
47146         * lib/mbsstr.c: Likewise.
47147         * lib/strcasestr.c: Likewise.
47148         * lib/memmem.c: Likewise.
47149
47150 2007-12-23  Bruno Haible  <bruno@clisp.org>
47151
47152         * tests/test-memmem.c: Include <string.h> first.
47153
47154 2007-12-22  Bruno Haible  <bruno@clisp.org>
47155
47156         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47157         the contents of $testsbase.
47158         Reported by Ralf Wildenhues.
47159
47160 2007-12-22  Bruno Haible  <bruno@clisp.org>
47161
47162         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47163         two variables local_ldadd_before, local_ldadd_last.
47164
47165 2007-12-20  Eric Blake  <ebb9@byu.net>
47166
47167         Work around circular library issue when cross-compiling.
47168         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47169         that progname.o does not need to pull in rpl_memcmp.
47170
47171 2007-12-19  Eric Blake  <ebb9@byu.net>
47172
47173         Fix memmem to avoid O(n^2) worst-case complexity.
47174         * lib/memmem.c (knuth_morris_pratt): New function.
47175         (memmem): Use it if first few naive iterations fail.
47176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47177         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47178         * modules/memchr (License): Likewise.
47179         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47180         malloca.
47181         * tests/test-memmem.c: Rewrite, borrowing ideas from
47182         test-mbsstr1.c; the old version wouldn't even compile!
47183         * modules/memmem-tests: New file.
47184         * lib/string.in.h (rpl_memmem): Add declaration.
47185         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47187         REPLACE_MEMMEM.
47188
47189 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47190
47191         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47192         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47193         before any system include files, and undef after them all.  This
47194         should fix a problem on VMS reported by John E. Malmberg in
47195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47196
47197 2007-12-17  Eric Blake  <ebb9@byu.net>
47198
47199         Revert addition of verify, for BSD/OS.
47200         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47201         can't handle large files, for the sake of obsolete platforms.
47202         * modules/fseeko (Depends-on): Remove verify.
47203         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47204         * doc/functions/ftello.texi (ftello): Likewise.
47205         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47206         Reported by Larry Jones.
47207
47208 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47209
47210         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47211         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47212
47213 2007-12-17  Jim Meyering  <meyering@redhat.com>
47214
47215         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47216         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47217         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47218         * modules/getcwd (Depends-on): Add openat.
47219         Reported by Petr Salinger.
47220
47221 2007-12-17  Bruno Haible  <bruno@clisp.org>
47222
47223         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47224         avoid a segmentation fault of the configure test on x86_64 systems.
47225
47226 2007-12-15  Jim Meyering  <meyering@redhat.com>
47227
47228         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47229
47230 2007-12-13  Eric Blake  <ebb9@byu.net>
47231
47232         Another fseek test.
47233         * tests/test-fseek.c (main): Also test ungetc handling.
47234         * tests/test-fseeko.c (main): Likewise.
47235         * modules/fseeko (Depends-on): Add verify.
47236         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47237         large.
47238         Reported by Larry Jones.
47239
47240         Fix fseeko on mingw.
47241         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47242         seek.
47243
47244         Beef up fseek tests.
47245         * tests/test-fseek.c (main): Also test eof handling.
47246         * tests/test-fseeko.c (main): Likewise.
47247         Reported by Larry Jones.
47248
47249 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47250
47251         Fix fseeko on BSD-based platforms.
47252         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47253         successful seek.
47254
47255 2007-12-12  Eric Blake  <ebb9@byu.net>
47256
47257         Allow circular dependency of separate libtests.a
47258         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47259         when use_libtests.
47260
47261 2007-12-11  Eric Blake  <ebb9@byu.net>
47262
47263         Fix bug with -0.0L in previous patch.
47264         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47265         * tests/test-isnan.c (main): Also test on zeroes.
47266         * tests/test-isnanf.c (main): Likewise.
47267         * tests/test-isnanl.h (main): Likewise.
47268
47269         Detect pseudo-denormals on x86 even when cross-compiling.
47270         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47271         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47272         invalid bit patterns that happen to satisfy ==.
47273
47274         Avoid link failures with separate libtests.a.
47275         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47276         last, to satisfy circular dependencies.
47277
47278 2007-12-11  Eric Blake  <ebb9@byu.net>
47279         and Bruno Haible  <bruno@clisp.org>
47280
47281         Fix OpenBSD 4.0 <float.h> handling of long double.
47282         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47283         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47284         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47285
47286 2007-12-11  Jim Meyering  <meyering@redhat.com>
47287
47288         * users.txt: Add libvirt.
47289
47290         Support versions of autoconf prior to 2.59c.
47291         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47292         if it is not already defined.
47293
47294 2007-12-09  Bruno Haible  <bruno@clisp.org>
47295
47296         Let 'gnulib-tool --import' collect sources needed for the tests in
47297         tests/ rather than in lib/.
47298         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47299         argument. If true, add rules to generate libtests.a, and put libtests.a
47300         into $(LDADD). Consider source files in subdirectories and set
47301         uses_subdirs.
47302         (func_emit_initmacro_start, func_emit_initmacro_end,
47303         func_emit_initmacro_done): Pass all arguments explicitly.
47304         (func_import): Determine two module lists main_modules,
47305         testsrelated_modules. Determine use_libtests. Determine two variables
47306         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47307         instead of just sed_transform_lib_file. Determine two variables
47308         main_files and testsrelated_files. Compute 'files' as the union of
47309         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47310         func_add_or_update. In the generated gnulib-comp.m4, collect the
47311         object files for tests/ in different variables than those for lib/.
47312         Substitute LIBTESTS_LIBDEPS.
47313         (func_create_testdir): Combine the uses_subdirs results from
47314         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47315
47316 2007-12-09  Bruno Haible  <bruno@clisp.org>
47317
47318         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47319         the build-aux directory.
47320
47321 2007-12-09  Bruno Haible  <bruno@clisp.org>
47322
47323         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47324         introduced on 2006-09-09.
47325
47326 2007-12-07  Jim Meyering  <meyering@redhat.com>
47327
47328         Let these macros work also with autoconf-2.59.
47329         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47330         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47331         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47332
47333 2007-12-06  Jim Meyering  <meyering@redhat.com>
47334
47335         Avoid a configure-time syntax error in gl_FUNC_ACL.
47336         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47337         function in each branch, before testing the cache variable.
47338
47339 2007-12-04  Eric Blake  <ebb9@byu.net>
47340
47341         Make scripts executable.
47342         * build-aux/config.guess: Add execute permissions.
47343         * build-aux/config.sub: Likewise.
47344         * build-aux/gendocs.sh: Likewise.
47345
47346         Fix frexp on mingw.
47347         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47348         cross-compiling.
47349         * doc/functions/frexp.texi (frexp): Document the bug.
47350
47351         Make cygwin fseeko check more reliable.
47352         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47353         version numbers, rather than unrelated feature check.
47354         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47355         * doc/functions/ftello.texi (ftello): Likewise.
47356         Reported by Bruno Haible.
47357
47358         * m4/strerror.m4: Bump version number.
47359
47360 2007-12-03  Bruno Haible  <bruno@clisp.org>
47361
47362         * doc/functions/mprotect.texi: Mention the mingw problem.
47363
47364 2007-12-03  Eric Blake  <ebb9@byu.net>
47365
47366         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47367         REPLACE_STRERROR is initialized before this macro.
47368
47369 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47370
47371         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47372         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47373         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47374         put -lsec in even for programs other than 'ls'.  This fixes a problem
47375         for gettext reported by Bruno Haible in
47376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47377         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47378         Add support for Solaris 10.  This isn't efficient, but should get the
47379         job done for now.
47380
47381 2007-12-03  James Youngman  <jay@gnu.org>
47382
47383         * doc/regexprops-generic.texi: change "an close-group" to "a
47384         close-group" and "illegal" to "not allowed".
47385
47386 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47387
47388         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47389         pr_byname.h. Needed for the rare case when the maintainer has done
47390         "make maintainer-clean" in the source directory and then attempts a
47391         build outside the source directory.
47392         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47393         scripts_byname.h.
47394
47395 2007-12-02  Martin Lambers <marlam@marlam.de>
47396             Bruno Haible  <bruno@clisp.org>
47397
47398         * lib/getpagesize.h: Remove file.
47399         * lib/unistd.in.h: Include declaration of getpagesize here.
47400         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47401         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47402         HAVE_SYS_PARAM_H.
47403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47404         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47405         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47406         (Depends-on): Add unistd.
47407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47408         (Include): Use <unistd.h> instead of getpagesize.h.
47409         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47410         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47411         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47412         gl_GETPAGESIZE invocation, already handled by module dependency.
47413         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47414
47415 2007-12-02  Bruno Haible  <bruno@clisp.org>
47416
47417         * modules/strings-tests: New file.
47418         * tests/test-strings.c: New file.
47419
47420         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47421         * lib/strings.in.h: New file.
47422         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47423         * m4/strings_h.m4: New file.
47424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47425         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47426         * modules/strings: New file.
47427         * modules/string (Makefile.am): Update.
47428         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47429         Reported by Karl Berry.
47430
47431 2007-12-01  Eric Blake  <ebb9@byu.net>
47432
47433         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47434         accomodate fix in cygwin 1.5.25.
47435
47436 2007-12-01  Jim Meyering  <meyering@redhat.com>
47437
47438         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47439         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47440         that would inhibit utf8-optimization of a regexp containing line-
47441         or buffer-anchors, e.g., `^', `$'.
47442
47443 2007-11-30  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47446         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47447         glthread_recursive_lock_init.
47448         * lib/lock.c (glthread_recursive_lock_init)
47449         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47450         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47451
47452 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47453
47454         New function qset_acl, like set_acl but with syscall semantics.
47455         * lib/acl.h (qset_acl): New decl.
47456         * lib/acl.c (qset_acl): New function.
47457         (set_acl): Use new function.  Use more-consistent diagnostics.
47458
47459 2007-11-28  Jim Meyering  <meyering@redhat.com>
47460
47461         * modules/physmem (License): Change from GPL to LGPLv2+.
47462
47463 2007-11-26  Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47466         'long double' type has excess precision.
47467         Reported by Jim Meyering in
47468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47469
47470 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47471
47472         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47473         Sync from <http://gnu.org/licenses>.
47474         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47475         with license text from same location.
47476         * doc/maintain.texi, doc/standards.texi:  Sync from
47477         <http://savannah.gnu.org/projects/gnustandards>.
47478
47479 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47480         and Jim Meyering  <meyering@redhat.com>
47481
47482         Adjust getdate' grammar to accept a slightly more regular language.
47483         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47484         Before, the former was rejected.
47485         * lib/getdate.y (digits_to_date_time): New function, factored
47486         out of ...
47487         (number): ...here.  Just call digits_to_date_time.
47488         (hybrid): New non-terminal to handle an <unsigned number,
47489         signed relative offset> sequence consistently.
47490
47491 2007-11-18  Jim Meyering  <meyering@redhat.com>
47492
47493         Pull my changes from coreutils:
47494         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47495         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47496         use of $gnulib_tool_option_extras, so that it's separated from the
47497         preceding argument.
47498
47499         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47500         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47501         parent destination directories before copying a file into place.
47502
47503 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47504
47505         bootstrap: work also with 4-argument variant of AC_INIT
47506         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47507
47508 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         Port test-getaddrinfo to Solaris.
47511         Problem reported by Bruno Haible in
47512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47513         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47514         explanation of setting 'hints'.
47515         Don't reject an implementation merely because it returns EAI_SERVICE.
47516         (EAI_SERVICE): Define to 0 if not defined.
47517
47518 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47519
47520         The license of gnu-make and posix-shell is now "GPLed build tool".
47521         * modules/gnu-make (License): Likewise.
47522         * modules/posix-shell (License): Likewise.
47523
47524         New module posix-shell, for determining a POSIX shell
47525         or perhaps something that is close enough to a POSIX shell.
47526         * m4/posix-shell.m4: New file.
47527         * modules/posix-shell: New file.
47528
47529         * MODULES.html.sh: Mention new module.
47530
47531         New module gnu-make, for determining whether we're using GNU Make.
47532         * m4/gnu-make.m4: New file.
47533         * modules/gnu-make: New file.
47534         * MODULES.html.sh: Mention new module.
47535
47536 2007-11-14  Jim Meyering  <meyering@redhat.com>
47537
47538         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47539         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47540         use this macro to create a function _definition_.
47541         Remove useless "#undef ARGMATCH_DIE".
47542
47543 2007-11-14  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/config.charset: Update for OpenBSD 4.1.
47546         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47547
47548 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47549
47550         Document 64-bit #if problems in stdint.texi.
47551         * doc/headers/stdint.texi (stdint.h): Mention problems with
47552         64-bit-#if, and how to work around them.
47553
47554         Don't insist on 'long long int' support in the preprocessor.  It
47555         breaks too many things.  For example, PRIdMAX still uses a 'long
47556         long int' format with the latest Sun compiler, even though
47557         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47558         preprocessor problem.  This causes the latest coreutils to dump
47559         core on Solaris 10 sparc with the Sun C compiler.
47560         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47561         the troublesome expressions at configure-time, not at #if-time.
47562         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47563         preprocessor.
47564         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47565         compile-time C checks, done at 'configure'-time.
47566         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47567         * modules/inttypes (Makefile): Substitute the new symbols that
47568         gl_INTTYPES_H now generates.
47569         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47570
47571 2007-11-12  Bruno Haible  <bruno@clisp.org>
47572
47573         Tests for Unicode character classification functions.
47574
47575         * modules/unictype/bidicategory-byname-tests: New file.
47576         * modules/unictype/bidicategory-name-tests: New file.
47577         * modules/unictype/bidicategory-of-tests: New file.
47578         * modules/unictype/bidicategory-test-tests: New file.
47579         * modules/unictype/block-list-tests: New file.
47580         * modules/unictype/block-of-tests: New file.
47581         * modules/unictype/block-test-tests: New file.
47582         * modules/unictype/category-C-tests: New file.
47583         * modules/unictype/category-Cc-tests: New file.
47584         * modules/unictype/category-Cf-tests: New file.
47585         * modules/unictype/category-Cn-tests: New file.
47586         * modules/unictype/category-Co-tests: New file.
47587         * modules/unictype/category-Cs-tests: New file.
47588         * modules/unictype/category-L-tests: New file.
47589         * modules/unictype/category-Ll-tests: New file.
47590         * modules/unictype/category-Lm-tests: New file.
47591         * modules/unictype/category-Lo-tests: New file.
47592         * modules/unictype/category-Lt-tests: New file.
47593         * modules/unictype/category-Lu-tests: New file.
47594         * modules/unictype/category-M-tests: New file.
47595         * modules/unictype/category-Mc-tests: New file.
47596         * modules/unictype/category-Me-tests: New file.
47597         * modules/unictype/category-Mn-tests: New file.
47598         * modules/unictype/category-N-tests: New file.
47599         * modules/unictype/category-Nd-tests: New file.
47600         * modules/unictype/category-Nl-tests: New file.
47601         * modules/unictype/category-No-tests: New file.
47602         * modules/unictype/category-P-tests: New file.
47603         * modules/unictype/category-Pc-tests: New file.
47604         * modules/unictype/category-Pd-tests: New file.
47605         * modules/unictype/category-Pe-tests: New file.
47606         * modules/unictype/category-Pf-tests: New file.
47607         * modules/unictype/category-Pi-tests: New file.
47608         * modules/unictype/category-Po-tests: New file.
47609         * modules/unictype/category-Ps-tests: New file.
47610         * modules/unictype/category-S-tests: New file.
47611         * modules/unictype/category-Sc-tests: New file.
47612         * modules/unictype/category-Sk-tests: New file.
47613         * modules/unictype/category-Sm-tests: New file.
47614         * modules/unictype/category-So-tests: New file.
47615         * modules/unictype/category-Z-tests: New file.
47616         * modules/unictype/category-Zl-tests: New file.
47617         * modules/unictype/category-Zp-tests: New file.
47618         * modules/unictype/category-Zs-tests: New file.
47619         * modules/unictype/category-and-not-tests: New file.
47620         * modules/unictype/category-and-tests: New file.
47621         * modules/unictype/category-byname-tests: New file.
47622         * modules/unictype/category-name-tests: New file.
47623         * modules/unictype/category-none-tests: New file.
47624         * modules/unictype/category-of-tests: New file.
47625         * modules/unictype/category-or-tests: New file.
47626         * modules/unictype/category-test-withtable-tests: New file.
47627         * modules/unictype/combining-class-tests: New file.
47628         * modules/unictype/ctype-alnum-tests: New file.
47629         * modules/unictype/ctype-alpha-tests: New file.
47630         * modules/unictype/ctype-blank-tests: New file.
47631         * modules/unictype/ctype-cntrl-tests: New file.
47632         * modules/unictype/ctype-digit-tests: New file.
47633         * modules/unictype/ctype-graph-tests: New file.
47634         * modules/unictype/ctype-lower-tests: New file.
47635         * modules/unictype/ctype-print-tests: New file.
47636         * modules/unictype/ctype-punct-tests: New file.
47637         * modules/unictype/ctype-space-tests: New file.
47638         * modules/unictype/ctype-upper-tests: New file.
47639         * modules/unictype/ctype-xdigit-tests: New file.
47640         * modules/unictype/decimal-digit-tests: New file.
47641         * modules/unictype/digit-tests: New file.
47642         * modules/unictype/mirror-tests: New file.
47643         * modules/unictype/numeric-tests: New file.
47644         * modules/unictype/property-alphabetic-tests: New file.
47645         * modules/unictype/property-ascii-hex-digit-tests: New file.
47646         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47647         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47648         * modules/unictype/property-bidi-block-separator-tests: New file.
47649         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47650         * modules/unictype/property-bidi-common-separator-tests: New file.
47651         * modules/unictype/property-bidi-control-tests: New file.
47652         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47653         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47654         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47655         * modules/unictype/property-bidi-european-digit-tests: New file.
47656         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47657         * modules/unictype/property-bidi-left-to-right-tests: New file.
47658         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47659         * modules/unictype/property-bidi-other-neutral-tests: New file.
47660         * modules/unictype/property-bidi-pdf-tests: New file.
47661         * modules/unictype/property-bidi-segment-separator-tests: New file.
47662         * modules/unictype/property-bidi-whitespace-tests: New file.
47663         * modules/unictype/property-byname-tests: New file.
47664         * modules/unictype/property-combining-tests: New file.
47665         * modules/unictype/property-composite-tests: New file.
47666         * modules/unictype/property-currency-symbol-tests: New file.
47667         * modules/unictype/property-dash-tests: New file.
47668         * modules/unictype/property-decimal-digit-tests: New file.
47669         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47670         * modules/unictype/property-deprecated-tests: New file.
47671         * modules/unictype/property-diacritic-tests: New file.
47672         * modules/unictype/property-extender-tests: New file.
47673         * modules/unictype/property-format-control-tests: New file.
47674         * modules/unictype/property-grapheme-base-tests: New file.
47675         * modules/unictype/property-grapheme-extend-tests: New file.
47676         * modules/unictype/property-grapheme-link-tests: New file.
47677         * modules/unictype/property-hex-digit-tests: New file.
47678         * modules/unictype/property-hyphen-tests: New file.
47679         * modules/unictype/property-id-continue-tests: New file.
47680         * modules/unictype/property-id-start-tests: New file.
47681         * modules/unictype/property-ideographic-tests: New file.
47682         * modules/unictype/property-ids-binary-operator-tests: New file.
47683         * modules/unictype/property-ids-trinary-operator-tests: New file.
47684         * modules/unictype/property-ignorable-control-tests: New file.
47685         * modules/unictype/property-iso-control-tests: New file.
47686         * modules/unictype/property-join-control-tests: New file.
47687         * modules/unictype/property-left-of-pair-tests: New file.
47688         * modules/unictype/property-line-separator-tests: New file.
47689         * modules/unictype/property-logical-order-exception-tests: New file.
47690         * modules/unictype/property-lowercase-tests: New file.
47691         * modules/unictype/property-math-tests: New file.
47692         * modules/unictype/property-non-break-tests: New file.
47693         * modules/unictype/property-not-a-character-tests: New file.
47694         * modules/unictype/property-numeric-tests: New file.
47695         * modules/unictype/property-other-alphabetic-tests: New file.
47696         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47697         * modules/unictype/property-other-grapheme-extend-tests: New file.
47698         * modules/unictype/property-other-id-continue-tests: New file.
47699         * modules/unictype/property-other-id-start-tests: New file.
47700         * modules/unictype/property-other-lowercase-tests: New file.
47701         * modules/unictype/property-other-math-tests: New file.
47702         * modules/unictype/property-other-uppercase-tests: New file.
47703         * modules/unictype/property-paired-punctuation-tests: New file.
47704         * modules/unictype/property-paragraph-separator-tests: New file.
47705         * modules/unictype/property-pattern-syntax-tests: New file.
47706         * modules/unictype/property-pattern-white-space-tests: New file.
47707         * modules/unictype/property-private-use-tests: New file.
47708         * modules/unictype/property-punctuation-tests: New file.
47709         * modules/unictype/property-quotation-mark-tests: New file.
47710         * modules/unictype/property-radical-tests: New file.
47711         * modules/unictype/property-sentence-terminal-tests: New file.
47712         * modules/unictype/property-soft-dotted-tests: New file.
47713         * modules/unictype/property-space-tests: New file.
47714         * modules/unictype/property-terminal-punctuation-tests: New file.
47715         * modules/unictype/property-test-tests: New file.
47716         * modules/unictype/property-titlecase-tests: New file.
47717         * modules/unictype/property-unassigned-code-value-tests: New file.
47718         * modules/unictype/property-unified-ideograph-tests: New file.
47719         * modules/unictype/property-uppercase-tests: New file.
47720         * modules/unictype/property-variation-selector-tests: New file.
47721         * modules/unictype/property-white-space-tests: New file.
47722         * modules/unictype/property-xid-continue-tests: New file.
47723         * modules/unictype/property-xid-start-tests: New file.
47724         * modules/unictype/property-zero-width-tests: New file.
47725         * modules/unictype/scripts-tests: New file.
47726         * modules/unictype/syntax-c-ident-tests: New file.
47727         * modules/unictype/syntax-c-whitespace-tests: New file.
47728         * modules/unictype/syntax-java-ident-tests: New file.
47729         * modules/unictype/syntax-java-whitespace-tests: New file.
47730         * tests/unictype/test-bidi_byname.c: New file.
47731         * tests/unictype/test-bidi_name.c: New file.
47732         * tests/unictype/test-bidi_of.c: New file.
47733         * tests/unictype/test-bidi_test.c: New file.
47734         * tests/unictype/test-block_list.c: New file.
47735         * tests/unictype/test-block_of.c: New file.
47736         * tests/unictype/test-block_test.c: New file.
47737         * tests/unictype/test-categ_and.c: New file.
47738         * tests/unictype/test-categ_and_not.c: New file.
47739         * tests/unictype/test-categ_byname.c: New file.
47740         * tests/unictype/test-categ_name.c: New file.
47741         * tests/unictype/test-categ_none.c: New file.
47742         * tests/unictype/test-categ_of.c: New file.
47743         * tests/unictype/test-categ_or.c: New file.
47744         * tests/unictype/test-categ_test_withtable.c: New file.
47745         * tests/unictype/test-combining.c: New file.
47746         * tests/unictype/test-decdigit.c: New file.
47747         * tests/unictype/test-digit.c: New file.
47748         * tests/unictype/test-mirror.c: New file.
47749         * tests/unictype/test-numeric.c: New file.
47750         * tests/unictype/test-pr_byname.c: New file.
47751         * tests/unictype/test-pr_test.c: New file.
47752         * tests/unictype/test-predicate-part1.h: New file.
47753         * tests/unictype/test-predicate-part2.h: New file.
47754         * tests/unictype/test-scripts.c: New file.
47755         * tests/unictype/test-sy_c_ident.c: New file.
47756         * tests/unictype/test-sy_java_ident.c: New file.
47757
47758         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47759         for Unicode 5.0.0.
47760         * tests/unictype/test-categ_Cc.c: Likewise.
47761         * tests/unictype/test-categ_Cf.c: Likewise.
47762         * tests/unictype/test-categ_Cn.c: Likewise.
47763         * tests/unictype/test-categ_Co.c: Likewise.
47764         * tests/unictype/test-categ_Cs.c: Likewise.
47765         * tests/unictype/test-categ_L.c: Likewise.
47766         * tests/unictype/test-categ_Ll.c: Likewise.
47767         * tests/unictype/test-categ_Lm.c: Likewise.
47768         * tests/unictype/test-categ_Lo.c: Likewise.
47769         * tests/unictype/test-categ_Lt.c: Likewise.
47770         * tests/unictype/test-categ_Lu.c: Likewise.
47771         * tests/unictype/test-categ_M.c: Likewise.
47772         * tests/unictype/test-categ_Mc.c: Likewise.
47773         * tests/unictype/test-categ_Me.c: Likewise.
47774         * tests/unictype/test-categ_Mn.c: Likewise.
47775         * tests/unictype/test-categ_N.c: Likewise.
47776         * tests/unictype/test-categ_Nd.c: Likewise.
47777         * tests/unictype/test-categ_Nl.c: Likewise.
47778         * tests/unictype/test-categ_No.c: Likewise.
47779         * tests/unictype/test-categ_P.c: Likewise.
47780         * tests/unictype/test-categ_Pc.c: Likewise.
47781         * tests/unictype/test-categ_Pd.c: Likewise.
47782         * tests/unictype/test-categ_Pe.c: Likewise.
47783         * tests/unictype/test-categ_Pf.c: Likewise.
47784         * tests/unictype/test-categ_Pi.c: Likewise.
47785         * tests/unictype/test-categ_Po.c: Likewise.
47786         * tests/unictype/test-categ_Ps.c: Likewise.
47787         * tests/unictype/test-categ_S.c: Likewise.
47788         * tests/unictype/test-categ_Sc.c: Likewise.
47789         * tests/unictype/test-categ_Sk.c: Likewise.
47790         * tests/unictype/test-categ_Sm.c: Likewise.
47791         * tests/unictype/test-categ_So.c: Likewise.
47792         * tests/unictype/test-categ_Z.c: Likewise.
47793         * tests/unictype/test-categ_Zl.c: Likewise.
47794         * tests/unictype/test-categ_Zp.c: Likewise.
47795         * tests/unictype/test-categ_Zs.c: Likewise.
47796         * tests/unictype/test-ctype_alnum.c: Likewise.
47797         * tests/unictype/test-ctype_alpha.c: Likewise.
47798         * tests/unictype/test-ctype_blank.c: Likewise.
47799         * tests/unictype/test-ctype_cntrl.c: Likewise.
47800         * tests/unictype/test-ctype_digit.c: Likewise.
47801         * tests/unictype/test-ctype_graph.c: Likewise.
47802         * tests/unictype/test-ctype_lower.c: Likewise.
47803         * tests/unictype/test-ctype_print.c: Likewise.
47804         * tests/unictype/test-ctype_punct.c: Likewise.
47805         * tests/unictype/test-ctype_space.c: Likewise.
47806         * tests/unictype/test-ctype_upper.c: Likewise.
47807         * tests/unictype/test-ctype_xdigit.c: Likewise.
47808         * tests/unictype/test-decdigit.h: Likewise.
47809         * tests/unictype/test-digit.h: Likewise.
47810         * tests/unictype/test-numeric.h: Likewise.
47811         * tests/unictype/test-pr_alphabetic.c: Likewise.
47812         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47813         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47814         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47815         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47816         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47817         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47818         * tests/unictype/test-pr_bidi_control.c: Likewise.
47819         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47820         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47821         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47822         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47823         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47824         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47825         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47826         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47827         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47828         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47829         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47830         * tests/unictype/test-pr_combining.c: Likewise.
47831         * tests/unictype/test-pr_composite.c: Likewise.
47832         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47833         * tests/unictype/test-pr_dash.c: Likewise.
47834         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47835         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47836         * tests/unictype/test-pr_deprecated.c: Likewise.
47837         * tests/unictype/test-pr_diacritic.c: Likewise.
47838         * tests/unictype/test-pr_extender.c: Likewise.
47839         * tests/unictype/test-pr_format_control.c: Likewise.
47840         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47841         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47842         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47843         * tests/unictype/test-pr_hex_digit.c: Likewise.
47844         * tests/unictype/test-pr_hyphen.c: Likewise.
47845         * tests/unictype/test-pr_id_continue.c: Likewise.
47846         * tests/unictype/test-pr_id_start.c: Likewise.
47847         * tests/unictype/test-pr_ideographic.c: Likewise.
47848         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47849         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47850         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47851         * tests/unictype/test-pr_iso_control.c: Likewise.
47852         * tests/unictype/test-pr_join_control.c: Likewise.
47853         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47854         * tests/unictype/test-pr_line_separator.c: Likewise.
47855         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47856         * tests/unictype/test-pr_lowercase.c: Likewise.
47857         * tests/unictype/test-pr_math.c: Likewise.
47858         * tests/unictype/test-pr_non_break.c: Likewise.
47859         * tests/unictype/test-pr_not_a_character.c: Likewise.
47860         * tests/unictype/test-pr_numeric.c: Likewise.
47861         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47862         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47863         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47864         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47865         * tests/unictype/test-pr_other_id_start.c: Likewise.
47866         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47867         * tests/unictype/test-pr_other_math.c: Likewise.
47868         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47869         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47870         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47871         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47872         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47873         * tests/unictype/test-pr_private_use.c: Likewise.
47874         * tests/unictype/test-pr_punctuation.c: Likewise.
47875         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47876         * tests/unictype/test-pr_radical.c: Likewise.
47877         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47878         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47879         * tests/unictype/test-pr_space.c: Likewise.
47880         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47881         * tests/unictype/test-pr_titlecase.c: Likewise.
47882         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47883         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47884         * tests/unictype/test-pr_uppercase.c: Likewise.
47885         * tests/unictype/test-pr_variation_selector.c: Likewise.
47886         * tests/unictype/test-pr_white_space.c: Likewise.
47887         * tests/unictype/test-pr_xid_continue.c: Likewise.
47888         * tests/unictype/test-pr_xid_start.c: Likewise.
47889         * tests/unictype/test-pr_zero_width.c: Likewise.
47890         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47891         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47892
47893 2007-11-12  Bruno Haible  <bruno@clisp.org>
47894
47895         Unicode character classification functions.
47896         * lib/unictype.h: New file.
47897         * modules/unictype/base: New file.
47898         * modules/unictype/category-L: New file.
47899         * modules/unictype/category-Lu: New file.
47900         * modules/unictype/category-Ll: New file.
47901         * modules/unictype/category-Lt: New file.
47902         * modules/unictype/category-Lm: New file.
47903         * modules/unictype/category-Lo: New file.
47904         * modules/unictype/category-M: New file.
47905         * modules/unictype/category-Mn: New file.
47906         * modules/unictype/category-Mc: New file.
47907         * modules/unictype/category-Me: New file.
47908         * modules/unictype/category-N: New file.
47909         * modules/unictype/category-Nd: New file.
47910         * modules/unictype/category-Nl: New file.
47911         * modules/unictype/category-No: New file.
47912         * modules/unictype/category-P: New file.
47913         * modules/unictype/category-Pc: New file.
47914         * modules/unictype/category-Pd: New file.
47915         * modules/unictype/category-Ps: New file.
47916         * modules/unictype/category-Pe: New file.
47917         * modules/unictype/category-Pi: New file.
47918         * modules/unictype/category-Pf: New file.
47919         * modules/unictype/category-Po: New file.
47920         * modules/unictype/category-S: New file.
47921         * modules/unictype/category-Sm: New file.
47922         * modules/unictype/category-Sc: New file.
47923         * modules/unictype/category-Sk: New file.
47924         * modules/unictype/category-So: New file.
47925         * modules/unictype/category-Z: New file.
47926         * modules/unictype/category-Zs: New file.
47927         * modules/unictype/category-Zl: New file.
47928         * modules/unictype/category-Zp: New file.
47929         * modules/unictype/category-C: New file.
47930         * modules/unictype/category-Cc: New file.
47931         * modules/unictype/category-Cf: New file.
47932         * modules/unictype/category-Cs: New file.
47933         * modules/unictype/category-Co: New file.
47934         * modules/unictype/category-Cn: New file.
47935         * modules/unictype/category-or: New file.
47936         * modules/unictype/category-of: New file.
47937         * modules/unictype/category-test: New file.
47938         * modules/unictype/category-test-withtable: New file.
47939         * modules/unictype/category-byname: New file.
47940         * modules/unictype/category-none: New file.
47941         * modules/unictype/category-and: New file.
47942         * modules/unictype/category-and-not: New file.
47943         * modules/unictype/category-name: New file.
47944         * modules/unictype/combining-class: New file.
47945         * modules/unictype/category-all: New file.
47946         * modules/unictype/bidicategory-all: New file.
47947         * modules/unictype/bidicategory-byname: New file.
47948         * modules/unictype/bidicategory-name: New file.
47949         * modules/unictype/bidicategory-of: New file.
47950         * modules/unictype/bidicategory-test: New file.
47951         * modules/unictype/decimal-digit: New file.
47952         * modules/unictype/digit: New file.
47953         * modules/unictype/numeric: New file.
47954         * modules/unictype/mirror: New file.
47955         * modules/unictype/property-white-space: New file.
47956         * modules/unictype/property-alphabetic: New file.
47957         * modules/unictype/property-other-alphabetic: New file.
47958         * modules/unictype/property-not-a-character: New file.
47959         * modules/unictype/property-default-ignorable-code-point: New file.
47960         * modules/unictype/property-other-default-ignorable-code-point: New
47961         file.
47962         * modules/unictype/property-deprecated: New file.
47963         * modules/unictype/property-logical-order-exception: New file.
47964         * modules/unictype/property-variation-selector: New file.
47965         * modules/unictype/property-private-use: New file.
47966         * modules/unictype/property-unassigned-code-value: New file.
47967         * modules/unictype/property-uppercase: New file.
47968         * modules/unictype/property-other-uppercase: New file.
47969         * modules/unictype/property-lowercase: New file.
47970         * modules/unictype/property-other-lowercase: New file.
47971         * modules/unictype/property-titlecase: New file.
47972         * modules/unictype/property-soft-dotted: New file.
47973         * modules/unictype/property-id-start: New file.
47974         * modules/unictype/property-other-id-start: New file.
47975         * modules/unictype/property-id-continue: New file.
47976         * modules/unictype/property-other-id-continue: New file.
47977         * modules/unictype/property-xid-start: New file.
47978         * modules/unictype/property-xid-continue: New file.
47979         * modules/unictype/property-pattern-white-space: New file.
47980         * modules/unictype/property-pattern-syntax: New file.
47981         * modules/unictype/property-join-control: New file.
47982         * modules/unictype/property-grapheme-base: New file.
47983         * modules/unictype/property-grapheme-extend: New file.
47984         * modules/unictype/property-other-grapheme-extend: New file.
47985         * modules/unictype/property-grapheme-link: New file.
47986         * modules/unictype/property-bidi-control: New file.
47987         * modules/unictype/property-bidi-left-to-right: New file.
47988         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47989         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47990         * modules/unictype/property-bidi-european-digit: New file.
47991         * modules/unictype/property-bidi-eur-num-separator: New file.
47992         * modules/unictype/property-bidi-eur-num-terminator: New file.
47993         * modules/unictype/property-bidi-arabic-digit: New file.
47994         * modules/unictype/property-bidi-common-separator: New file.
47995         * modules/unictype/property-bidi-block-separator: New file.
47996         * modules/unictype/property-bidi-segment-separator: New file.
47997         * modules/unictype/property-bidi-whitespace: New file.
47998         * modules/unictype/property-bidi-non-spacing-mark: New file.
47999         * modules/unictype/property-bidi-boundary-neutral: New file.
48000         * modules/unictype/property-bidi-pdf: New file.
48001         * modules/unictype/property-bidi-embedding-or-override: New file.
48002         * modules/unictype/property-bidi-other-neutral: New file.
48003         * modules/unictype/property-hex-digit: New file.
48004         * modules/unictype/property-ascii-hex-digit: New file.
48005         * modules/unictype/property-ideographic: New file.
48006         * modules/unictype/property-unified-ideograph: New file.
48007         * modules/unictype/property-radical: New file.
48008         * modules/unictype/property-ids-binary-operator: New file.
48009         * modules/unictype/property-ids-trinary-operator: New file.
48010         * modules/unictype/property-zero-width: New file.
48011         * modules/unictype/property-space: New file.
48012         * modules/unictype/property-non-break: New file.
48013         * modules/unictype/property-iso-control: New file.
48014         * modules/unictype/property-format-control: New file.
48015         * modules/unictype/property-dash: New file.
48016         * modules/unictype/property-hyphen: New file.
48017         * modules/unictype/property-punctuation: New file.
48018         * modules/unictype/property-line-separator: New file.
48019         * modules/unictype/property-paragraph-separator: New file.
48020         * modules/unictype/property-quotation-mark: New file.
48021         * modules/unictype/property-sentence-terminal: New file.
48022         * modules/unictype/property-terminal-punctuation: New file.
48023         * modules/unictype/property-currency-symbol: New file.
48024         * modules/unictype/property-math: New file.
48025         * modules/unictype/property-other-math: New file.
48026         * modules/unictype/property-paired-punctuation: New file.
48027         * modules/unictype/property-left-of-pair: New file.
48028         * modules/unictype/property-combining: New file.
48029         * modules/unictype/property-composite: New file.
48030         * modules/unictype/property-decimal-digit: New file.
48031         * modules/unictype/property-numeric: New file.
48032         * modules/unictype/property-diacritic: New file.
48033         * modules/unictype/property-extender: New file.
48034         * modules/unictype/property-ignorable-control: New file.
48035         * modules/unictype/property-test: New file.
48036         * modules/unictype/property-byname: New file.
48037         * modules/unictype/property-all: New file.
48038         * modules/unictype/scripts: New file.
48039         * modules/unictype/scripts-all: New file.
48040         * modules/unictype/block-of: New file.
48041         * modules/unictype/block-test: New file.
48042         * modules/unictype/block-list: New file.
48043         * modules/unictype/block-all: New file.
48044         * modules/unictype/syntax-c-whitespace: New file.
48045         * modules/unictype/syntax-java-whitespace: New file.
48046         * modules/unictype/syntax-c-ident: New file.
48047         * modules/unictype/syntax-java-ident: New file.
48048         * modules/unictype/ctype-alnum: New file.
48049         * modules/unictype/ctype-alpha: New file.
48050         * modules/unictype/ctype-cntrl: New file.
48051         * modules/unictype/ctype-digit: New file.
48052         * modules/unictype/ctype-graph: New file.
48053         * modules/unictype/ctype-lower: New file.
48054         * modules/unictype/ctype-print: New file.
48055         * modules/unictype/ctype-punct: New file.
48056         * modules/unictype/ctype-space: New file.
48057         * modules/unictype/ctype-upper: New file.
48058         * modules/unictype/ctype-xdigit: New file.
48059         * modules/unictype/ctype-blank: New file.
48060         * lib/unictype/bidi_byname.c: New file.
48061         * lib/unictype/bidi_name.c: New file.
48062         * lib/unictype/bidi_of.c: New file.
48063         * lib/unictype/bidi_test.c: New file.
48064         * lib/unictype/bitmap.h: New file.
48065         * lib/unictype/block_test.c: New file.
48066         * lib/unictype/blocks.c: New file.
48067         * lib/unictype/categ_C.c: New file.
48068         * lib/unictype/categ_Cc.c: New file.
48069         * lib/unictype/categ_Cf.c: New file.
48070         * lib/unictype/categ_Cn.c: New file.
48071         * lib/unictype/categ_Co.c: New file.
48072         * lib/unictype/categ_Cs.c: New file.
48073         * lib/unictype/categ_L.c: New file.
48074         * lib/unictype/categ_Ll.c: New file.
48075         * lib/unictype/categ_Lm.c: New file.
48076         * lib/unictype/categ_Lo.c: New file.
48077         * lib/unictype/categ_Lt.c: New file.
48078         * lib/unictype/categ_Lu.c: New file.
48079         * lib/unictype/categ_M.c: New file.
48080         * lib/unictype/categ_Mc.c: New file.
48081         * lib/unictype/categ_Me.c: New file.
48082         * lib/unictype/categ_Mn.c: New file.
48083         * lib/unictype/categ_N.c: New file.
48084         * lib/unictype/categ_Nd.c: New file.
48085         * lib/unictype/categ_Nl.c: New file.
48086         * lib/unictype/categ_No.c: New file.
48087         * lib/unictype/categ_P.c: New file.
48088         * lib/unictype/categ_Pc.c: New file.
48089         * lib/unictype/categ_Pd.c: New file.
48090         * lib/unictype/categ_Pe.c: New file.
48091         * lib/unictype/categ_Pf.c: New file.
48092         * lib/unictype/categ_Pi.c: New file.
48093         * lib/unictype/categ_Po.c: New file.
48094         * lib/unictype/categ_Ps.c: New file.
48095         * lib/unictype/categ_S.c: New file.
48096         * lib/unictype/categ_Sc.c: New file.
48097         * lib/unictype/categ_Sk.c: New file.
48098         * lib/unictype/categ_Sm.c: New file.
48099         * lib/unictype/categ_So.c: New file.
48100         * lib/unictype/categ_Z.c: New file.
48101         * lib/unictype/categ_Zl.c: New file.
48102         * lib/unictype/categ_Zp.c: New file.
48103         * lib/unictype/categ_Zs.c: New file.
48104         * lib/unictype/categ_and.c: New file.
48105         * lib/unictype/categ_and_not.c: New file.
48106         * lib/unictype/categ_byname.c: New file.
48107         * lib/unictype/categ_name.c: New file.
48108         * lib/unictype/categ_none.c: New file.
48109         * lib/unictype/categ_of.c: New file.
48110         * lib/unictype/categ_or.c: New file.
48111         * lib/unictype/categ_test.c: New file.
48112         * lib/unictype/combining.c: New file.
48113         * lib/unictype/ctype_alnum.c: New file.
48114         * lib/unictype/ctype_alpha.c: New file.
48115         * lib/unictype/ctype_blank.c: New file.
48116         * lib/unictype/ctype_cntrl.c: New file.
48117         * lib/unictype/ctype_digit.c: New file.
48118         * lib/unictype/ctype_graph.c: New file.
48119         * lib/unictype/ctype_lower.c: New file.
48120         * lib/unictype/ctype_print.c: New file.
48121         * lib/unictype/ctype_punct.c: New file.
48122         * lib/unictype/ctype_space.c: New file.
48123         * lib/unictype/ctype_upper.c: New file.
48124         * lib/unictype/ctype_xdigit.c: New file.
48125         * lib/unictype/decdigit.c: New file.
48126         * lib/unictype/digit.c: New file.
48127         * lib/unictype/identsyntaxmap.h: New file.
48128         * lib/unictype/mirror.c: New file.
48129         * lib/unictype/numeric.c: New file.
48130         * lib/unictype/pr_alphabetic.c: New file.
48131         * lib/unictype/pr_ascii_hex_digit.c: New file.
48132         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48133         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48134         * lib/unictype/pr_bidi_block_separator.c: New file.
48135         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48136         * lib/unictype/pr_bidi_common_separator.c: New file.
48137         * lib/unictype/pr_bidi_control.c: New file.
48138         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48139         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48140         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48141         * lib/unictype/pr_bidi_european_digit.c: New file.
48142         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48143         * lib/unictype/pr_bidi_left_to_right.c: New file.
48144         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48145         * lib/unictype/pr_bidi_other_neutral.c: New file.
48146         * lib/unictype/pr_bidi_pdf.c: New file.
48147         * lib/unictype/pr_bidi_segment_separator.c: New file.
48148         * lib/unictype/pr_bidi_whitespace.c: New file.
48149         * lib/unictype/pr_byname.c: New file.
48150         * lib/unictype/pr_byname.gperf: New file.
48151         * lib/unictype/pr_combining.c: New file.
48152         * lib/unictype/pr_composite.c: New file.
48153         * lib/unictype/pr_currency_symbol.c: New file.
48154         * lib/unictype/pr_dash.c: New file.
48155         * lib/unictype/pr_decimal_digit.c: New file.
48156         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48157         * lib/unictype/pr_deprecated.c: New file.
48158         * lib/unictype/pr_diacritic.c: New file.
48159         * lib/unictype/pr_extender.c: New file.
48160         * lib/unictype/pr_format_control.c: New file.
48161         * lib/unictype/pr_grapheme_base.c: New file.
48162         * lib/unictype/pr_grapheme_extend.c: New file.
48163         * lib/unictype/pr_grapheme_link.c: New file.
48164         * lib/unictype/pr_hex_digit.c: New file.
48165         * lib/unictype/pr_hyphen.c: New file.
48166         * lib/unictype/pr_id_continue.c: New file.
48167         * lib/unictype/pr_id_start.c: New file.
48168         * lib/unictype/pr_ideographic.c: New file.
48169         * lib/unictype/pr_ids_binary_operator.c: New file.
48170         * lib/unictype/pr_ids_trinary_operator.c: New file.
48171         * lib/unictype/pr_ignorable_control.c: New file.
48172         * lib/unictype/pr_iso_control.c: New file.
48173         * lib/unictype/pr_join_control.c: New file.
48174         * lib/unictype/pr_left_of_pair.c: New file.
48175         * lib/unictype/pr_line_separator.c: New file.
48176         * lib/unictype/pr_logical_order_exception.c: New file.
48177         * lib/unictype/pr_lowercase.c: New file.
48178         * lib/unictype/pr_math.c: New file.
48179         * lib/unictype/pr_non_break.c: New file.
48180         * lib/unictype/pr_not_a_character.c: New file.
48181         * lib/unictype/pr_numeric.c: New file.
48182         * lib/unictype/pr_other_alphabetic.c: New file.
48183         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48184         * lib/unictype/pr_other_grapheme_extend.c: New file.
48185         * lib/unictype/pr_other_id_continue.c: New file.
48186         * lib/unictype/pr_other_id_start.c: New file.
48187         * lib/unictype/pr_other_lowercase.c: New file.
48188         * lib/unictype/pr_other_math.c: New file.
48189         * lib/unictype/pr_other_uppercase.c: New file.
48190         * lib/unictype/pr_paired_punctuation.c: New file.
48191         * lib/unictype/pr_paragraph_separator.c: New file.
48192         * lib/unictype/pr_pattern_syntax.c: New file.
48193         * lib/unictype/pr_pattern_white_space.c: New file.
48194         * lib/unictype/pr_private_use.c: New file.
48195         * lib/unictype/pr_punctuation.c: New file.
48196         * lib/unictype/pr_quotation_mark.c: New file.
48197         * lib/unictype/pr_radical.c: New file.
48198         * lib/unictype/pr_sentence_terminal.c: New file.
48199         * lib/unictype/pr_soft_dotted.c: New file.
48200         * lib/unictype/pr_space.c: New file.
48201         * lib/unictype/pr_terminal_punctuation.c: New file.
48202         * lib/unictype/pr_test.c: New file.
48203         * lib/unictype/pr_titlecase.c: New file.
48204         * lib/unictype/pr_unassigned_code_value.c: New file.
48205         * lib/unictype/pr_unified_ideograph.c: New file.
48206         * lib/unictype/pr_uppercase.c: New file.
48207         * lib/unictype/pr_variation_selector.c: New file.
48208         * lib/unictype/pr_white_space.c: New file.
48209         * lib/unictype/pr_xid_continue.c: New file.
48210         * lib/unictype/pr_xid_start.c: New file.
48211         * lib/unictype/pr_zero_width.c: New file.
48212         * lib/unictype/scripts.c: New file.
48213         * lib/unictype/sy_c_ident.c: New file.
48214         * lib/unictype/sy_c_whitespace.c: New file.
48215         * lib/unictype/sy_java_ident.c: New file.
48216         * lib/unictype/sy_java_whitespace.c: New file.
48217
48218         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48219         Unicode 5.0.0.
48220         * lib/unictype/blocks.h: Likewise.
48221         * lib/unictype/categ_C.h: Likewise.
48222         * lib/unictype/categ_Cc.h: Likewise.
48223         * lib/unictype/categ_Cf.h: Likewise.
48224         * lib/unictype/categ_Cn.h: Likewise.
48225         * lib/unictype/categ_Co.h: Likewise.
48226         * lib/unictype/categ_Cs.h: Likewise.
48227         * lib/unictype/categ_L.h: Likewise.
48228         * lib/unictype/categ_Ll.h: Likewise.
48229         * lib/unictype/categ_Lm.h: Likewise.
48230         * lib/unictype/categ_Lo.h: Likewise.
48231         * lib/unictype/categ_Lt.h: Likewise.
48232         * lib/unictype/categ_Lu.h: Likewise.
48233         * lib/unictype/categ_M.h: Likewise.
48234         * lib/unictype/categ_Mc.h: Likewise.
48235         * lib/unictype/categ_Me.h: Likewise.
48236         * lib/unictype/categ_Mn.h: Likewise.
48237         * lib/unictype/categ_N.h: Likewise.
48238         * lib/unictype/categ_Nd.h: Likewise.
48239         * lib/unictype/categ_Nl.h: Likewise.
48240         * lib/unictype/categ_No.h: Likewise.
48241         * lib/unictype/categ_P.h: Likewise.
48242         * lib/unictype/categ_Pc.h: Likewise.
48243         * lib/unictype/categ_Pd.h: Likewise.
48244         * lib/unictype/categ_Pe.h: Likewise.
48245         * lib/unictype/categ_Pf.h: Likewise.
48246         * lib/unictype/categ_Pi.h: Likewise.
48247         * lib/unictype/categ_Po.h: Likewise.
48248         * lib/unictype/categ_Ps.h: Likewise.
48249         * lib/unictype/categ_S.h: Likewise.
48250         * lib/unictype/categ_Sc.h: Likewise.
48251         * lib/unictype/categ_Sk.h: Likewise.
48252         * lib/unictype/categ_Sm.h: Likewise.
48253         * lib/unictype/categ_So.h: Likewise.
48254         * lib/unictype/categ_Z.h: Likewise.
48255         * lib/unictype/categ_Zl.h: Likewise.
48256         * lib/unictype/categ_Zp.h: Likewise.
48257         * lib/unictype/categ_Zs.h: Likewise.
48258         * lib/unictype/categ_of.h: Likewise.
48259         * lib/unictype/combining.h: Likewise.
48260         * lib/unictype/ctype_alnum.h: Likewise.
48261         * lib/unictype/ctype_alpha.h: Likewise.
48262         * lib/unictype/ctype_blank.h: Likewise.
48263         * lib/unictype/ctype_cntrl.h: Likewise.
48264         * lib/unictype/ctype_digit.h: Likewise.
48265         * lib/unictype/ctype_graph.h: Likewise.
48266         * lib/unictype/ctype_lower.h: Likewise.
48267         * lib/unictype/ctype_print.h: Likewise.
48268         * lib/unictype/ctype_punct.h: Likewise.
48269         * lib/unictype/ctype_space.h: Likewise.
48270         * lib/unictype/ctype_upper.h: Likewise.
48271         * lib/unictype/ctype_xdigit.h: Likewise.
48272         * lib/unictype/decdigit.h: Likewise.
48273         * lib/unictype/digit.h: Likewise.
48274         * lib/unictype/mirror.h: Likewise.
48275         * lib/unictype/numeric.h: Likewise.
48276         * lib/unictype/pr_alphabetic.h: Likewise.
48277         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48278         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48279         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48280         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48281         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48282         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48283         * lib/unictype/pr_bidi_control.h: Likewise.
48284         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48285         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48286         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48287         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48288         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48289         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48290         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48291         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48292         * lib/unictype/pr_bidi_pdf.h: Likewise.
48293         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48294         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48295         * lib/unictype/pr_combining.h: Likewise.
48296         * lib/unictype/pr_composite.h: Likewise.
48297         * lib/unictype/pr_currency_symbol.h: Likewise.
48298         * lib/unictype/pr_dash.h: Likewise.
48299         * lib/unictype/pr_decimal_digit.h: Likewise.
48300         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48301         * lib/unictype/pr_deprecated.h: Likewise.
48302         * lib/unictype/pr_diacritic.h: Likewise.
48303         * lib/unictype/pr_extender.h: Likewise.
48304         * lib/unictype/pr_format_control.h: Likewise.
48305         * lib/unictype/pr_grapheme_base.h: Likewise.
48306         * lib/unictype/pr_grapheme_extend.h: Likewise.
48307         * lib/unictype/pr_grapheme_link.h: Likewise.
48308         * lib/unictype/pr_hex_digit.h: Likewise.
48309         * lib/unictype/pr_hyphen.h: Likewise.
48310         * lib/unictype/pr_id_continue.h: Likewise.
48311         * lib/unictype/pr_id_start.h: Likewise.
48312         * lib/unictype/pr_ideographic.h: Likewise.
48313         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48314         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48315         * lib/unictype/pr_ignorable_control.h: Likewise.
48316         * lib/unictype/pr_iso_control.h: Likewise.
48317         * lib/unictype/pr_join_control.h: Likewise.
48318         * lib/unictype/pr_left_of_pair.h: Likewise.
48319         * lib/unictype/pr_line_separator.h: Likewise.
48320         * lib/unictype/pr_logical_order_exception.h: Likewise.
48321         * lib/unictype/pr_lowercase.h: Likewise.
48322         * lib/unictype/pr_math.h: Likewise.
48323         * lib/unictype/pr_non_break.h: Likewise.
48324         * lib/unictype/pr_not_a_character.h: Likewise.
48325         * lib/unictype/pr_numeric.h: Likewise.
48326         * lib/unictype/pr_other_alphabetic.h: Likewise.
48327         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48328         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48329         * lib/unictype/pr_other_id_continue.h: Likewise.
48330         * lib/unictype/pr_other_id_start.h: Likewise.
48331         * lib/unictype/pr_other_lowercase.h: Likewise.
48332         * lib/unictype/pr_other_math.h: Likewise.
48333         * lib/unictype/pr_other_uppercase.h: Likewise.
48334         * lib/unictype/pr_paired_punctuation.h: Likewise.
48335         * lib/unictype/pr_paragraph_separator.h: Likewise.
48336         * lib/unictype/pr_pattern_syntax.h: Likewise.
48337         * lib/unictype/pr_pattern_white_space.h: Likewise.
48338         * lib/unictype/pr_private_use.h: Likewise.
48339         * lib/unictype/pr_punctuation.h: Likewise.
48340         * lib/unictype/pr_quotation_mark.h: Likewise.
48341         * lib/unictype/pr_radical.h: Likewise.
48342         * lib/unictype/pr_sentence_terminal.h: Likewise.
48343         * lib/unictype/pr_soft_dotted.h: Likewise.
48344         * lib/unictype/pr_space.h: Likewise.
48345         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48346         * lib/unictype/pr_titlecase.h: Likewise.
48347         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48348         * lib/unictype/pr_unified_ideograph.h: Likewise.
48349         * lib/unictype/pr_uppercase.h: Likewise.
48350         * lib/unictype/pr_variation_selector.h: Likewise.
48351         * lib/unictype/pr_white_space.h: Likewise.
48352         * lib/unictype/pr_xid_continue.h: Likewise.
48353         * lib/unictype/pr_xid_start.h: Likewise.
48354         * lib/unictype/pr_zero_width.h: Likewise.
48355         * lib/unictype/scripts.h: Likewise.
48356         * lib/unictype/scripts_byname.gperf: Likewise.
48357         * lib/unictype/sy_c_ident.h: Likewise.
48358         * lib/unictype/sy_c_whitespace.h: Likewise.
48359         * lib/unictype/sy_java_ident.h: Likewise.
48360         * lib/unictype/sy_java_whitespace.h: Likewise.
48361
48362         * lib/unictype/Makefile: New file.
48363         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48364         glibc.
48365         * lib/unictype/3level.h: New file, copied from glibc.
48366         * lib/unictype/3levelbit.h: New file.
48367
48368 2007-11-11  Bruno Haible  <bruno@clisp.org>
48369
48370         * modules/gperf: New file.
48371         * modules/iconv_open (Depends-on): Add it.
48372         (Makefile.am): Remove the GPERF definition.
48373
48374 2007-11-11  Bruno Haible  <bruno@clisp.org>
48375
48376         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48377         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48378
48379 2007-11-11  Bruno Haible  <bruno@clisp.org>
48380
48381         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48382         (usage): Remove function.
48383
48384 2007-11-11  Bruno Haible  <bruno@clisp.org>
48385
48386         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48387         gl_FUNC_CEILF_LIBS.
48388         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48389         gl_FUNC_CEIL_LIBS.
48390         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48391         gl_FUNC_CEILL_LIBS.
48392         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48393         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48394         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48395
48396 2007-11-11  Bruno Haible  <bruno@clisp.org>
48397
48398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48399         roundf were declared but do not exist on functions.
48400         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48401         roundl were declared but do not exist on functions.
48402         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48403         HAVE_FLOORL_AND_CEILL, respectively.
48404         Needed for Sun C on Solaris 10.
48405
48406 2007-11-11  Bruno Haible  <bruno@clisp.org>
48407
48408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48409         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48410         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48411         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48413         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48414         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48415         HAVE_DECL_ROUNDF.
48416         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48417         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48419         of HAVE_DECL_ROUND*.
48420         * modules/math (Makefile.am): Update.
48421
48422 2007-11-10  Bruno Haible  <bruno@clisp.org>
48423
48424         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48425         ptrdiff_t as m4/intl.m4.
48426
48427 2007-11-10  Jim Meyering  <meyering@redhat.com>
48428
48429         Avoid link failure for the argmatch test.
48430         * tests/test-argmatch.c (usage): Define function to avoid a link
48431         failure: argmatch_die requires a usage function.
48432
48433 2007-11-09  Bruno Haible  <bruno@clisp.org>
48434
48435         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48436         * doc/functions/vsnprintf.texi: Likewise.
48437         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48438         with a size argument < 2.
48439
48440 2007-11-09  Bruno Haible  <bruno@clisp.org>
48441
48442         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48443         buffer. Fixes an inefficiency introduced on 2007-11-03.
48444
48445 2007-11-09  Bruno Haible  <bruno@clisp.org>
48446
48447         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48448         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48449
48450 2007-11-08  Jim Meyering  <meyering@redhat.com>
48451
48452         Change cache variable name prefix "jm_" to "gl_" everywhere.
48453         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48454         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48455         * m4/uptime.m4: s/gl_/jm_/
48456
48457 2007-11-07  Bruno Haible  <bruno@clisp.org>
48458
48459         Update to GNU gettext 0.17.
48460         * m4/intl.m4: Update to GNU gettext 0.17.
48461         * m4/po.m4: Likewise.
48462         * modules/gettext (Files): Remove m4/ulonglong.m4.
48463         (configure.ac): Require gettext infrastructure from version 0.17.
48464
48465 2007-11-06  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48468         symbolic values are not defined in a public header.
48469         * lib/freadable.c (freadable) [QNX]: Likewise.
48470         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48471         * lib/freading.c (freading) [QNX]: Likewise.
48472         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48473         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48474         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48475         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48476         Reported by Alain Magloire.
48477
48478         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48479
48480 2007-11-05  Bruno Haible  <bruno@clisp.org>
48481
48482         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48483         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48484         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48485         Reported by Eric Blake.
48486
48487 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48488             Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48491         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48492         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48493         (malloc): Undefine also before including <stdlib.h>.
48494         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48495         Needed on OSF/1 4.0.
48496
48497 2007-11-05  Jim Meyering  <meyering@redhat.com>
48498
48499         git-version-gen: sync from coreutils.
48500         * build-aux/git-version-gen: Add comments.
48501         Change the first '-' to '.' in the snapshot version string,
48502         e.g., 6.9-377-08144 -> 6.9.377-08144
48503         Remove first parameter.
48504         Don't declare a version "-dirty" merely because a time
48505         stamp has changed.
48506
48507 2007-11-04  Bruno Haible  <bruno@clisp.org>
48508
48509         * lib/lock.h: Protect all macro definitions containing an 'if'
48510         statement through a "do { ... } while (0)".
48511         * lib/tls.h: Likewise.
48512
48513 2007-11-04  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48516
48517 2007-11-04  Bruno Haible  <bruno@clisp.org>
48518
48519         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48520         * modules/fprintf-posix (Depends-on): Add nocrash.
48521         * modules/snprintf-posix (Depends-on): Likewise.
48522         * modules/sprintf-posix (Depends-on): Likewise.
48523         * modules/vasnprintf-posix (Depends-on): Likewise.
48524         * modules/vasprintf-posix (Depends-on): Likewise.
48525         * modules/vfprintf-posix (Depends-on): Likewise.
48526         * modules/vsnprintf-posix (Depends-on): Likewise.
48527         * modules/vsprintf-posix (Depends-on): Likewise.
48528         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48529         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48530         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48531         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48533         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48534         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48535
48536 2007-11-04  Bruno Haible  <bruno@clisp.org>
48537
48538         * modules/nocrash: New file.
48539         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48540         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48541
48542 2007-11-04  Bruno Haible  <bruno@clisp.org>
48543
48544         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48545         precision handling.
48546         * tests/test-vasprintf-posix.c (test_function): Likewise.
48547         * tests/test-snprintf-posix.h (test_function): Likewise.
48548         * tests/test-sprintf-posix.h (test_function): Likewise.
48549
48550         Fix *printf behaviour for large precisions on mingw and BeOS.
48551         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48552         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48554         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48556         gl_PRINTF_PRECISION and test its result. Invoke
48557         gl_PREREQ_VASNPRINTF_PRECISION.
48558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48565         * doc/functions/fprintf.texi: Update.
48566         * doc/functions/printf.texi: Update.
48567         * doc/functions/snprintf.texi: Update.
48568         * doc/functions/sprintf.texi: Update.
48569         * doc/functions/vfprintf.texi: Update.
48570         * doc/functions/vprintf.texi: Update.
48571         * doc/functions/vsnprintf.texi: Update.
48572         * doc/functions/vsprintf.texi: Update.
48573
48574 2007-11-04  Bruno Haible  <bruno@clisp.org>
48575
48576         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48577
48578 2007-11-04  Bruno Haible  <bruno@clisp.org>
48579
48580         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48581         Reported by Sylvain Beucler <beuc@gnu.org>.
48582
48583 2007-11-03  Bruno Haible  <bruno@clisp.org>
48584
48585         * tests/test-fprintf-posix2.sh: New file.
48586         * tests/test-fprintf-posix2.c: New file.
48587         * modules/fprintf-posix-tests (Files): Add them.
48588         (TESTS): Add test-fprintf-posix2.sh.
48589         (configure.ac): Check for getrlimit and setrlimit.
48590         (check_PROGRAMS): Add test-fprintf-posix2.
48591
48592         * tests/test-printf-posix2.sh: New file.
48593         * tests/test-printf-posix2.c: New file.
48594         * modules/printf-posix-tests (Files): Add them.
48595         (TESTS): Add test-printf-posix2.sh.
48596         (configure.ac): Check for getrlimit and setrlimit.
48597         (check_PROGRAMS): Add test-printf-posix2.
48598
48599         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48600         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48601         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48602         (decode_double): New function, copied from decode_long_double.
48603         (scale10_round_decimal_decoded): New function, extracted from
48604         scale10_round_decimal_long_double.
48605         (scale10_round_decimal_long_double): Use it.
48606         (scale10_round_decimal_double): New function.
48607         (floorlog10): New function.
48608         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48610         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48612         gl_PRINTF_ENOMEM and test its result. Invoke
48613         gl_PREREQ_VASNPRINTF_ENOMEM.
48614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48621         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48622         * modules/snprintf-posix (Depends-on): Likewise.
48623         * modules/sprintf-posix (Depends-on): Likewise.
48624         * modules/vasnprintf-posix (Depends-on): Likewise.
48625         * modules/vasprintf-posix (Depends-on): Likewise.
48626         * modules/vfprintf-posix (Depends-on): Likewise.
48627         * modules/vsnprintf-posix (Depends-on): Likewise.
48628         * modules/vsprintf-posix (Depends-on): Likewise.
48629         * doc/functions/fprintf.texi: Update.
48630         * doc/functions/printf.texi: Update.
48631         * doc/functions/snprintf.texi: Update.
48632         * doc/functions/sprintf.texi: Update.
48633         * doc/functions/vfprintf.texi: Update.
48634         * doc/functions/vprintf.texi: Update.
48635         * doc/functions/vsnprintf.texi: Update.
48636         * doc/functions/vsprintf.texi: Update.
48637
48638 2007-11-03  Bruno Haible  <bruno@clisp.org>
48639
48640         * modules/frexp-nolibm-tests: New file.
48641
48642         * modules/frexp-nolibm: New file.
48643         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48644
48645 2007-11-03  Bruno Haible  <bruno@clisp.org>
48646
48647         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48648         value is C99 compliant.
48649         Needed for OSF/1 5.1.
48650
48651 2007-11-03  Bruno Haible  <bruno@clisp.org>
48652
48653         Fix out-of-memory handling of vasnprintf.
48654         * lib/printf-parse.c: Include <errno.h>.
48655         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48656         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48657         is already set.
48658
48659 2007-11-02  Eric Blake  <ebb9@byu.net>
48660
48661         Fix tests on cygwin.
48662         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48663
48664 2007-11-01  Bruno Haible  <bruno@clisp.org>
48665
48666         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48667         warning.
48668         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48669         needed for POSIX compatibility.
48670
48671 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48672
48673         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48674         for compatibility with GNU.
48675
48676 2007-11-01  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48679         (putenv): Renamed from rpl_putenv. Change argument type from
48680         'const char *' to 'char *'.
48681         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48682         of defining putenv in config.h, just set REPLACE_PUTENV.
48683         * modules/putenv (Depends-on): Add stdlib.
48684         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48685         (Include): Use <stdlib.h>.
48686         * lib/stdlib.in.h (putenv): New declaration.
48687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48688         REPLACE_PUTENV.
48689         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48690         REPLACE_PUTENV.
48691         Needed for MacOS X 10.5.0.
48692         Reported by Peter O'Gorman <peter@pogma.com>.
48693
48694 2007-11-01  Jim Meyering  <meyering@redhat.com>
48695
48696         Treat an empty date string exactly like "0".
48697         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48698         if the remaining date string (to be parsed) is empty, use "0".
48699         Reported by Mischa Molhoek and discussed in this thread:
48700         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48701
48702 2007-10-31  Bruno Haible  <bruno@clisp.org>
48703
48704         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48705         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48706         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48707         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48708         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48709         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48710
48711 2007-10-31  Bruno Haible  <bruno@clisp.org>
48712
48713         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48714         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48715         (AC_TYPE_LONG_LONG_INT): Use it.
48716         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48717         it as well.
48718         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48719         to m4/longlong.m4.
48720         * modules/stdint (Files): Remove m4/ulonglong.m4.
48721         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48722         m4/ulonglong.m4.
48723         * modules/strtoumax (Files): Likewise.
48724
48725 2007-10-30  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/xvasprintf-posix: New file.
48728         Suggested by Eric Blake.
48729
48730 2007-10-30  Bruno Haible  <bruno@clisp.org>
48731
48732         * modules/xprintf-posix-tests: New file.
48733         * tests/test-xprintf-posix.sh: New file.
48734         * tests/test-xprintf-posix.c: New file.
48735         * tests/test-xfprintf-posix.c: New file.
48736
48737         * modules/xprintf-posix: New file.
48738
48739 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48740
48741         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48742         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48743         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48744
48745 2007-10-29  Bruno Haible  <bruno@clisp.org>
48746
48747         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48748         contain the special marker '_cv_'.
48749         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48751         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48752         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48753         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48754         Reported by Ralf Wildenhues.
48755
48756 2007-10-29  Bruno Haible  <bruno@clisp.org>
48757
48758         * gnulib-tool (func_import): When --lgpl is not specified, set
48759         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48760         GPLv3.
48761         Reported by Simon Josefsson.
48762
48763 2007-10-28  Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48766         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48767         HAVE_DECL_ISFINITE.
48768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48769         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48770         HAVE_DECL_ISFINITE.
48771
48772 2007-10-28  Bruno Haible  <bruno@clisp.org>
48773
48774         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48775         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48776
48777 2007-10-28  Bruno Haible  <bruno@clisp.org>
48778
48779         Fix link errors with Sun C 5.0 on Solaris 10.
48780         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48781         function is declared but not present in the compiler's libm.
48782         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48783         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48784         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48785         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48786         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48787         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48788         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48790         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48791         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48792         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48793         HAVE_DECL_FLOORL.
48794
48795 2007-10-28  Bruno Haible  <bruno@clisp.org>
48796
48797         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48798         gl_FUNC_FLOORL. Cache the result.
48799         (gl_FUNC_FLOORL): Use it.
48800         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48801         gl_FUNC_CEILL. Cache the result.
48802         (gl_FUNC_CEILL): Use it.
48803
48804         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48805         gl_FUNC_FLOOR. Cache the result.
48806         (gl_FUNC_FLOOR): Use it.
48807         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48808         gl_FUNC_CEIL. Cache the result.
48809         (gl_FUNC_CEIL): Use it.
48810
48811         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48812         gl_FUNC_FLOORF. Cache the result.
48813         (gl_FUNC_FLOORF): Use it.
48814         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48815         gl_FUNC_CEILF. Cache the result.
48816         (gl_FUNC_CEILF): Use it.
48817
48818 2007-10-28  Bruno Haible  <bruno@clisp.org>
48819
48820         * gnulib-tool: Allow specifying the LGPL version number through
48821         --lgpl=2 or --lgpl=3.
48822         (func_usage): Document --lgpl with argument.
48823         Handle --lgpl=... arguments.
48824         (func_import): Recognize also gl_LGPL calls with an argument. When
48825         --lgpl=2 is used and the module's license is just LGPL, report an
48826         error. Set sed_transform_lib_file according to the lgpl variable. In
48827         the generated files, use --lgpl or gl_LGPL invocations with argument,
48828         if necessary.
48829         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48830         an LGPv2+ license.
48831         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48832         gl_LGPL macro.
48833
48834 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48835             Bruno Haible  <bruno@clisp.org>
48836
48837         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48838         (u16_uctomb_aux): Likewise.
48839         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48840         !HAVE_INLINE.
48841         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48842
48843 2007-10-28  Bruno Haible  <bruno@clisp.org>
48844
48845         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48846         Invoke AM_GETTEXT_OPTION if it exists.
48847         * modules/vasprintf: Likewise.
48848         * modules/verror: Likewise.
48849         * modules/xprintf: Likewise.
48850         * modules/xvasprintf: Likewise.
48851
48852 2007-10-27  Ben Pfaff  <blp@gnu.org>
48853
48854         * lib/math.in.h: Define isfinite macro and prototypes for
48855         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48856         implementations.
48857         * m4/math_h.m4: New substitutions for isfinite module.
48858         * lib/isfinite.c: New file.
48859         * m4/isfinite.m4: New file.
48860         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48861         * modules/isfinite: New file.
48862         * modules/isfinite-tests: New file.
48863         * tests/tests-isfinite.c: New file.
48864         * doc/functions/isfinite.texi: Mention isfinite module.
48865         * MODULES.html.sh: Mention new module.
48866
48867 2007-10-27  Ben Pfaff  <blp@gnu.org>
48868
48869         Ralf Wildenhues reported that Tru64 4.0D declares the round
48870         functions but does not have definitions.
48871         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48872         cannot be found in any library, set the output variable to
48873         "missing" instead of "".
48874         * m4/round.m4: Also use our substitute if we cannot find round in
48875         any library, even if it is declared.
48876         * m4/roundf.m4: Likewise for roundf.
48877         * m4/roundl.m4: Likewise for roundl.
48878         * lib/math.in.h: Undefine roundf, round, roundl before defining
48879         their replacements, to allow for hypothetical systems where these
48880         may be defined as macros but not available in libraries.
48881
48882 2007-10-27  Bruno Haible  <bruno@clisp.org>
48883
48884         * doc/gnulib.texi: Invoke @firstparagraphindent.
48885         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48886         changes in gnulib.
48887         (Source changes): New section.
48888
48889 2007-10-26  Bruno Haible  <bruno@clisp.org>
48890
48891         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48892         borrowed from autoconf.
48893
48894 2007-10-26  Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48897         strerror returned the empty string. Needed on HP-UX 11.00.
48898
48899 2007-10-24  Micah Cowan  <micah@cowan.name>
48900
48901         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48902         * build-aux/bootstrap: Remove support for now-unnecessary option,
48903         --cvs-user, and envvars CVS_USER, CVS_RSH.
48904
48905 2007-10-24  Jim Meyering  <meyering@redhat.com>
48906
48907         Avoid diagnostics from sha1sum when there is no cached checksum.
48908         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48909         if the po.s1 file hasn't been created yet.
48910
48911         * build-aux/bootstrap: Sync from coreutils:
48912         2007-10-24  Jim Meyering  <meyering@redhat.com>
48913         Get gnulib from the git repository, not from an obsolete cvs one.
48914         * build-aux/bootstrap: Suggestion from Micah Cowan.
48915         2007-10-04  Jim Meyering  <jim@meyering.net>
48916         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48917         (update_po_files): Work also when there are no .po files in po/.
48918
48919 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48920
48921         * README: Append ".git" to git and cg examples.
48922         Problem reported by Benoit Sigoure.
48923
48924 2007-10-23  Micah Cowan  <micah@cowan.name>
48925
48926         * users.txt: Add wget.
48927
48928 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48929
48930         Fix linking of some unistdio tests on FreeBSD.
48931         * modules/unistdio/u16-vsnprintf-tests
48932         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48933         * modules/unistdio/u16-vsprintf-tests
48934         (test_u16_vsnprintf1_LDADD): Likewise.
48935         * modules/unistdio/u32-vsnprintf-tests
48936         (test_u32_vsnprintf1_LDADD): Likewise.
48937         * modules/unistdio/u32-vsprintf-tests
48938         (test_u32_vsprintf1_LDADD): Likewise.
48939         * modules/unistdio/u8-vsnprintf-tests
48940         (test_u8_vsnprintf1_LDADD): Likewise.
48941         * modules/unistdio/u8-vsprintf-tests
48942         (test_u8_vsprintf1_LDADD): Likewise.
48943         * modules/unistdio/ulc-vsnprintf-tests
48944         (test_ulc_vsnprintf1_LDADD): Likewise.
48945         * modules/unistdio/ulc-vsprintf-tests
48946         (test_ulc_vsprintf1_LDADD): Likewise.
48947
48948         Fix linking of some uniconv tests on FreeBSD.
48949         * modules/uniconv/u16-conv-from-enc-tests
48950         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48951         * modules/uniconv/u16-conv-to-enc-tests
48952         (test_u16_conv_to_enc_LDADD): Likewise.
48953         * modules/uniconv/u16-strconv-from-enc-tests
48954         (test_u16_strconv_from_enc_LDADD): Likewise.
48955         * modules/uniconv/u16-strconv-to-enc-tests
48956         (test_u16_strconv_to_enc_LDADD): Likewise.
48957         * modules/uniconv/u32-conv-from-enc-tests
48958         (test_u32_conv_from_enc_LDADD): Likewise.
48959         * modules/uniconv/u32-conv-to-enc-tests
48960         (test_u32_conv_to_enc_LDADD): Likewise.
48961         * modules/uniconv/u32-strconv-from-enc-tests
48962         (test_u32_strconv_from_enc_LDADD): Likewise.
48963         * modules/uniconv/u32-strconv-to-enc-tests
48964         (test_u32_strconv_to_enc_LDADD): Likewise.
48965         * modules/uniconv/u8-conv-from-enc-tests
48966         (test_u8_conv_from_enc_LDADD): Likewise.
48967         * modules/uniconv/u8-conv-to-enc-tests
48968         (test_u8_conv_to_enc_LDADD): Likewise.
48969         * modules/uniconv/u8-strconv-from-enc-tests
48970         (test_u8_strconv_from_enc_LDADD): Likewise.
48971         * modules/uniconv/u8-strconv-to-enc-tests
48972         (test_u8_strconv_to_enc_LDADD): Likewise.
48973
48974 2007-10-22  Bruno Haible  <bruno@clisp.org>
48975
48976         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48977         size.
48978
48979 2007-10-22  Eric Blake  <ebb9@byu.net>
48980
48981         Tweak x*printf documentation.
48982         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48983         variable name and comments.
48984         Suggested by Bruno Haible.
48985
48986 2007-10-22  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/acl.c (copy_acl): Fix file name in comment.
48989
48990 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48991
48992         Fix Tru64 problem with stdbool.h.
48993         * lib/stdbool.in.h (false, true):
48994         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48995         Don't declare as an enum in this situation; it runs afoul of Tru64.
48996         Problem reported by Steven M. Schweda in
48997         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48998
48999 2007-10-22  Eric Blake  <ebb9@byu.net>
49000
49001         Also wrap vf?printf.
49002         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49003         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49004         (xvprintf, xvfprintf): New functions.
49005
49006 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49007
49008         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49009         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49010
49011         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49012         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49013
49014 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49015
49016         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49017         by Bruno Haible.
49018
49019 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49020
49021         * lib/getloadavg.c
49022         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49023         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49024
49025         * tests/test-i-ring.c: Work for C89.
49026
49027 2007-10-22  Bruno Haible  <bruno@clisp.org>
49028
49029         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49030         -1u, in preprocessor expression, so that we don't test for the bug
49031         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49033
49034 2007-10-22  Eric Blake  <ebb9@byu.net>
49035
49036         * tests/test-yesno.sh: Silence stderr during test.
49037
49038 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49039
49040         * modules/crypto/gc-camellia: New file.
49041
49042         * m4/gc-camellia.m4: New file.
49043
49044         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49045
49046         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49047
49048 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49049
49050         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49051         --help to stdout.  Reported by sms@antinode.org (Steven
49052         M. Schweda).
49053
49054 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49055
49056         * users.txt: Fix link to libksba.
49057
49058 2007-10-21  Ben Pfaff  <blp@gnu.org>
49059
49060         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49061         round.c roundf implementation that depends on floorf and ceilf to
49062         be tested unconditionally.
49063
49064 2007-10-21  Ben Pfaff  <blp@gnu.org>
49065
49066         * m4/check-libm-func.m4: Removed.
49067         * m4/check-math-lib.m4: New file.
49068         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49069         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49070         definition and lack of AC_LIBOBJ([roundf]).
49071         * m4/roundl.m4: Ditto, and similarly for roundl.
49072         * modules/round: Reference new m4 file.
49073         * modules/roundf: Ditto.
49074         * modules/roundl: Ditto.
49075         * tests/test-round2.c (main): Use ROUND instead of round.
49076         Bug report from Bruno Haible.
49077
49078 2007-10-21  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49081         context.
49082
49083 2007-10-21  Bruno Haible  <bruno@clisp.org>
49084
49085         * tests/test-wcwidth.c (main): Allow negative result for some control
49086         characters.
49087
49088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49089         Needed on OSF/1 5.1.
49090
49091 2007-10-21  Bruno Haible  <bruno@clisp.org>
49092
49093         * tests/test-floorf1.c: Include isnanf.h.
49094         (main): Use isnanf() instead of isnan().
49095         * tests/test-ceilf1.c: Include isnanf.h.
49096         (main): Use isnanf() instead of isnan().
49097         * tests/test-truncf1.c: Include isnanf.h.
49098         (main): Use isnanf() instead of isnan().
49099         * tests/test-roundf1.c: Include isnanf.h.
49100         (main): Use isnanf() instead of isnan().
49101
49102 2007-10-21  Eric Blake  <ebb9@byu.net>
49103
49104         * users.txt: Update URL for m4.
49105
49106 2007-10-21  Bruno Haible  <bruno@clisp.org>
49107
49108         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49109
49110 2007-10-21  Bruno Haible  <bruno@clisp.org>
49111
49112         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49113         Git's management files if the CVS files are not present.
49114
49115 2007-10-20  Bruno Haible  <bruno@clisp.org>
49116
49117         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49118         gcc-3.4.x.
49119
49120 2007-10-20  Ben Pfaff  <blp@gnu.org>
49121
49122         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49123         implementations.
49124         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49125         * lib/round.c: New file.
49126         * lib/roundf.c: New file.
49127         * lib/roundl.c: New file.
49128         * m4/round.m4: New file.
49129         * m4/roundf.m4: New file.
49130         * m4/roundl.m4: New file.
49131         * m4/check-libm-func-m4: New file.
49132         * modules/math: Replace round, roundf, roundl related @VARS@ in
49133         math.in.h.
49134         * modules/round: New file.
49135         * modules/round-tests: New file.
49136         * modules/roundf: New file.
49137         * modules/roundf-tests: New file.
49138         * modules/roundl: New file.
49139         * modules/roundl-tests: New file.
49140         * tests/test-round1.c: New file.
49141         * tests/test-round2.c: New file.
49142         * tests/test-roundf1.c: New file.
49143         * tests/test-roundf2.c: New file.
49144         * tests/test-roundl.c: New file.
49145         * doc/functions/round.texi: Mention round module.
49146         * doc/functions/roundf.texi: Mention roundf module.
49147         * doc/functions/roundl.texi: Mention roundl module.
49148         * MODULES.html.sh: Mention new modules.
49149         Thanks to Bruno Haible for suggestions.
49150
49151 2007-10-20  Jim Meyering  <meyering@redhat.com>
49152
49153         * lib/xprintf.c: Include <config.h> unconditionally.
49154
49155         Change xprintf's license to GPL.
49156         * modules/xprintf (License): s/LGPL/GPL/, since this module
49157         depends on modules (exit and exitfail) which are GPL.
49158         Suggestion from Bruno Haible.
49159
49160         xprintf fixes.
49161         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49162         Use a clearer diagnostic.
49163         Patch from Bruno Haible.
49164
49165 2007-10-20  Bruno Haible  <bruno@clisp.org>
49166
49167         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49168         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49169         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49170
49171 2007-10-20  Bruno Haible  <bruno@clisp.org>
49172
49173         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49174         precision in the comparison result > x - 1 or similar.
49175         * tests/test-ceilf2.c (correct_result_p): Likewise.
49176         * tests/test-truncf2.c (correct_result_p): Likewise.
49177         * tests/test-trunc2.c (correct_result_p): Likewise.
49178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49179
49180 2007-10-20  Bruno Haible  <bruno@clisp.org>
49181
49182         * modules/ceil: New file.
49183         * m4/ceil.m4: New file.
49184         * doc/functions/ceil.texi: Mention the 'ceil' module.
49185
49186 2007-10-20  Bruno Haible  <bruno@clisp.org>
49187
49188         * modules/floor: New file.
49189         * m4/floor.m4: New file.
49190         * doc/functions/floor.texi: Mention the 'floor' module.
49191
49192 2007-10-20  Bruno Haible  <bruno@clisp.org>
49193
49194         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49195         of %a.
49196         * modules/floorf-tests (Depends-on): Likewise.
49197         * modules/truncf-tests (Depends-on): Likewise.
49198         * modules/trunc-tests (Depends-on): Likewise.
49199         Reported by Ben Pfaff.
49200
49201 2007-10-19  Jim Meyering  <meyering@redhat.com>
49202
49203         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49204         Don't bother testing specific errno values.  Just test ferror.
49205
49206         New module: xprintf
49207         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49208
49209 2007-10-19  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49212         syntax.
49213         * modules/javaexec (Makefile.am): Likewise.
49214         * modules/relocatable-prog (Makefile.am): Likewise.
49215         Suggested by Jim Meyering.
49216
49217 2007-10-18  Bruno Haible  <bruno@clisp.org>
49218
49219         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49220         Reported by Jim Meyering.
49221
49222 2007-10-18  Eric Blake  <ebb9@byu.net>
49223
49224         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49225
49226 2007-10-18  Bruno Haible  <bruno@clisp.org>
49227
49228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49229         the format string into writable memory. Needed in Fortify conditions.
49230
49231 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49232             Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49235         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49236         * modules/trim (Depends-on): Add mbchar.
49237         (configure.ac): Add gl_FUNC_MBRTOWC.
49238         (Makefile.am): Augment lib_SOURCES.
49239
49240 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49241
49242         Modify glob.c to use fstatat and dirfd, to simplify it.
49243         Suggested by Eric Blake.
49244         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49245         Don't include <stdbool.h>; not used.
49246         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49247         (link_exists_p): Simplify implementation, since we can now assume
49248         dirfd and fstatat.
49249         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49250
49251 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49252
49253         * gnulib-tool (func_get_dependencies): Fix sed script to
49254         match only tests.
49255
49256 2007-10-17  Bruno Haible  <bruno@clisp.org>
49257
49258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49259         allow locale names without encoding suffix.
49260         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49261         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49262
49263 2007-10-16  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49266         * lib/getgroups.c (getgroups): Likewise.
49267         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49268
49269 2007-10-16  Bruno Haible  <bruno@clisp.org>
49270
49271         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49272         * modules/malloc-posix (License): Likewise.
49273         * modules/realloc-posix (License): Likewise.
49274         * modules/calloc-posix (License): Likewise.
49275         * modules/intprops (License): Change from GPL to LGPL, with
49276         Paul Eggert's approval.
49277
49278 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49279
49280         Merge glibc changes into lib/glob.c.
49281
49282         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49283         2007-10-15 04:59:03 UTC.  Here are the changes:
49284
49285         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49286
49287         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49288
49289         * lib/glob.c: Add some branch prediction throughout.
49290
49291         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49292
49293         [BZ #5103]
49294         * lib/glob.c (glob): Recognize patterns starting \/.
49295
49296         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49297
49298         [BZ #3996]
49299         * lib/glob.c (attribute_hidden): Define if not defined.
49300         (glob): Unescape dirname, filename or username when needed and not
49301         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49302         is NULL.  Handle unescaped [ in pattern without closing ].
49303         Don't pass GLOB_CHECK down to recursive glob for directories.
49304         (__glob_pattern_type): New function.
49305         (__glob_pattern_p): Implement using __glob_pattern_type.
49306         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49307         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49308         Remove unreachable code.
49309
49310         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49311
49312         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49313         explain why there are no leaks.
49314
49315         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49316
49317         [BZ #3253]
49318         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49319         time, rather allocate increasingly bigger arrays of pointers, if
49320         possible with alloca, if too large with malloc.
49321
49322 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49323
49324         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49325         Problem reported by H.Merijn Brand in
49326         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49328         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49329
49330 2007-10-15  Bruno Haible  <bruno@clisp.org>
49331
49332         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49333         with explicit rpl_ prefix.
49334         * lib/fopen.c (fopen): Likewise.
49335         * lib/freopen.c (freopen): Likewise.
49336         * lib/iconv.c (iconv): Likewise.
49337         * lib/iconv_close.c (iconv_close): Likewise.
49338
49339 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49340
49341         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49342
49343 2007-10-15  Bruno Haible  <bruno@clisp.org>
49344
49345         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49346         <stddef.h> instead of <stdlib.h> since we only need NULL.
49347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49348
49349 2007-10-15  Bruno Haible  <bruno@clisp.org>
49350
49351         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49352         Replace paragraph talking about LIBOBJS.
49353         Reported by Colin Watson <cjwatson@debian.org>.
49354
49355 2007-10-15  Bruno Haible  <bruno@clisp.org>
49356
49357         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49358         <stdlib.h> before using NULL.
49359
49360 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49361
49362         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49363         Reported by Albert Chin <china@thewrittenword.com>.
49364
49365 2007-10-14  Bruno Haible  <bruno@clisp.org>
49366
49367         * modules/iconv_open-utf-tests: New file.
49368         * tests/test-iconv-utf.c: New file.
49369
49370         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49371         * modules/iconv_open-utf: New file.
49372         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49373         (iconv, iconv_close): New declarations.
49374         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49375         be defined.
49376         (iconv_open): Add special handling of conversion between UTF-8 and
49377         UTF-{16,32}{BE,LE}.
49378         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49379         * lib/iconv_close.c: New file.
49380         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49381         gl_FUNC_ICONV_OPEN.
49382         (gl_FUNC_ICONV_OPEN): Use it.
49383         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49384         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49385         and REPLACE_ICONV_UTF.
49386         * modules/iconv_open (Depends-on): Add c-strcase.
49387         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49388         ICONV_CONST.
49389         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49390
49391 2007-10-13  Albert Chin  <china@thewrittenword.com>
49392             Bruno Haible  <bruno@clisp.org>
49393
49394         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49395         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49396
49397 2007-10-13  Bruno Haible  <bruno@clisp.org>
49398
49399         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49400         defined, use the ISO C99 inline semantics.
49401         * lib/argp.h (ARGP_EI): Likewise.
49402
49403 2007-10-13  Bruno Haible  <bruno@clisp.org>
49404
49405         Handle 'inline' change in gcc 4.3.0.
49406         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49407         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49408         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49409         argp_fmtstream_point): Disable 'extern' declaration if the function
49410         definition is going to be provided inline.
49411         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49412         semantics, not the ISO C99 inline semantics.
49413         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49414         'extern' declaration if the function definition is going to be provided
49415         inline.
49416         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49417         the GNU C inline semantics, not the ISO C99 inline semantics. With
49418         GCC 4.2, avoid a warning.
49419
49420 2007-10-13  Bruno Haible  <bruno@clisp.org>
49421
49422         * lib/freading.h (freading): Enable the use of __freading for
49423         glibc >= 2.7.
49424         * lib/freading.c (freading): Likewise.
49425
49426 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49427
49428         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49429         "warning: C99 inline functions are not supported; using GNU89".
49430
49431 2007-10-12  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49434         of 2.
49435         * tests/test-ceilf2.c: New file.
49436         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49437
49438         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49439         * modules/ceilf-tests: Update.
49440
49441 2007-10-12  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49444         of 2.
49445         * tests/test-floorf2.c: New file.
49446         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49447
49448         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49449         * modules/floorf-tests: Update.
49450
49451 2007-10-12  Bruno Haible  <bruno@clisp.org>
49452
49453         * tests/test-trunc2.c: New file.
49454         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49455
49456         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49457         * modules/trunc-tests: Update.
49458
49459 2007-10-12  Bruno Haible  <bruno@clisp.org>
49460
49461         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49462         of 2.
49463         * tests/test-truncf2.c: New file.
49464         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49465
49466         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49467         * modules/truncf-tests: Update.
49468
49469 2007-10-11  Eric Blake  <ebb9@byu.net>
49470
49471         Don't claim strerror is broken on Interix.
49472         * doc/functions/strerror.texi (strerror): Known broken systems are
49473         now Solaris 8, and not Interix.
49474         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49475         Interix on cross-compile.
49476         Reported by Martin Koeppe in
49477         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49478
49479 2007-10-11  Bruno Haible  <bruno@clisp.org>
49480
49481         * modules/i-ring-tests: New file.
49482         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49483         instead of assert.
49484
49485 2007-10-11  Bruno Haible  <bruno@clisp.org>
49486
49487         * modules/filenamecat-tests: New file.
49488         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49489         * lib/filenamecat.c: Remove test code.
49490
49491 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49492
49493         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49494
49495         * lib/strerror.c: Include <string.h> always, to test interface,
49496         and to remove the need for the dummy.
49497         Include intprops.h to compute width instead of doing it ourselves
49498         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49499         (strerror): Define it to return NULL if there's no system strerror.
49500         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49501         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49502         ancient pre-strerror Unix systems well any more.  Saying "unknown
49503         system error" is enough.
49504         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49505         simpler strerror.c implementation.
49506         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49507         Simplify the tests to reflect the simpler strerror implementation.
49508         * modules/strerror (Depends-on): Add intprops.
49509
49510 2007-10-09  Eric Blake  <ebb9@byu.net>
49511
49512         Silence test-fpending.
49513         * modules/fpending-tests (Files): Add wrapper script.
49514         * tests/test-fpending.sh: New file.
49515
49516 2007-10-09  Bruno Haible  <bruno@clisp.org>
49517
49518         * MODULES.html.sh (func_module): Don't create a hyperlink for
49519         function names like 'printf_frexp'.
49520         (Misc): Add crc, memxor.
49521         (Characteristics of floating types): New section.
49522         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49523         isnanf-nolibm, signbit, trunc, truncf, truncl.
49524         (Enhancements for ISO C 99 functions): New subsection Input/output.
49525         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49526         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49527         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49528         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49529         (Enhancements for POSIX:2001 functions): Add chdir-long.
49530         (File system functions): Add areadlink, chdir-safer, read-file.
49531         Remove cycle-check.
49532         (File system as inode set): New section.
49533         (Date and time): Add gethrxtime.
49534         (Multithreading): Add openmp.
49535         (Internationalization functions): Add localename.
49536         (Unicode string functions): Add unistr/u*-mbsnlen.
49537         (Support for maintaining and releasing projects): Add git-version-gen.
49538         (Lone files): Remove directories.
49539
49540 2007-10-08  Ben Pfaff  <blp@gnu.org>
49541
49542         * lib/xmalloca.h: Fix typo in comment.
49543
49544 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49545
49546         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49547         when avoiding problems with integer overflow.  Use a portable test
49548         instead.
49549
49550 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49551
49552         * modules/dummy (License): Change to LGPLv2+.
49553         * modules/float (License): Likewise
49554         * modules/realloc (License): Likewise
49555         * modules/stdlib (License): Likewise
49556
49557 2007-10-07  Bruno Haible  <bruno@clisp.org>
49558
49559         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49560         * floor.c (TWO_MANT_DIG): Likewise.
49561         * ceil.c (TWO_MANT_DIG): Likewise.
49562         Reported by Ben Pfaff.
49563
49564 2007-10-07  Bruno Haible  <bruno@clisp.org>
49565
49566         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49567         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49568         * lib/frexp.c (FUNC): Likewise.
49569         * lib/printf-frexp.h (printf_frexp): Likewise.
49570         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49571         * lib/printf-frexp.c (FUNC): Likewise.
49572         Suggested by Jim Meyering.
49573
49574 2007-10-07  Jim Meyering  <meyering@redhat.com>
49575
49576         Make xnanosleep's integer overflow test more robust.
49577         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49578         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49579
49580 2007-10-07  Bruno Haible  <bruno@clisp.org>
49581
49582         * NEWS: Mention the license change.
49583
49584         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49585         abbreviations in the modules files.
49586
49587         Change copyright notice from GPLv2+ to GPLv3+.
49588         * README: Change copyright notice.
49589         * MODULES.html.sh: Likewise.
49590         * build-aux/bootstrap.conf: Likewise.
49591         * build-aux/config.libpath: Likewise.
49592         * build-aux/csharpcomp.sh.in: Likewise.
49593         * build-aux/csharpexec.sh.in: Likewise.
49594         * build-aux/install-reloc: Likewise.
49595         * build-aux/javacomp.sh.in: Likewise.
49596         * build-aux/javaexec.sh.in: Likewise.
49597         * build-aux/ldd.sh.in: Likewise.
49598         * build-aux/reloc-ldflags: Likewise.
49599         * build-aux/relocatable.sh.in: Likewise.
49600         * build-aux/x-to-1.in: Likewise.
49601         * check-module: Likewise.
49602         * config/srclistvars.sh: Likewise.
49603         * gnulib-tool: Likewise.
49604         * lib/acl-internal.h: Likewise.
49605         * lib/acl.c: Likewise.
49606         * lib/acl.h: Likewise.
49607         * lib/acl_entries.c: Likewise.
49608         * lib/areadlink-with-size.c: Likewise.
49609         * lib/areadlink.c: Likewise.
49610         * lib/areadlink.h: Likewise.
49611         * lib/argmatch.c: Likewise.
49612         * lib/argmatch.h: Likewise.
49613         * lib/argp-ba.c: Likewise.
49614         * lib/argp-eexst.c: Likewise.
49615         * lib/argp-fmtstream.c: Likewise.
49616         * lib/argp-fmtstream.h: Likewise.
49617         * lib/argp-fs-xinl.c: Likewise.
49618         * lib/argp-help.c: Likewise.
49619         * lib/argp-namefrob.h: Likewise.
49620         * lib/argp-parse.c: Likewise.
49621         * lib/argp-pin.c: Likewise.
49622         * lib/argp-pv.c: Likewise.
49623         * lib/argp-pvh.c: Likewise.
49624         * lib/argp-xinl.c: Likewise.
49625         * lib/argp.h: Likewise.
49626         * lib/at-func.c: Likewise.
49627         * lib/atanl.c: Likewise.
49628         * lib/backupfile.c: Likewise.
49629         * lib/backupfile.h: Likewise.
49630         * lib/basename.c: Likewise.
49631         * lib/binary-io.h: Likewise.
49632         * lib/byteswap.in.h: Likewise.
49633         * lib/c-stack.c: Likewise.
49634         * lib/c-stack.h: Likewise.
49635         * lib/c-strcasestr.c: Likewise.
49636         * lib/c-strcasestr.h: Likewise.
49637         * lib/c-strstr.c: Likewise.
49638         * lib/c-strstr.h: Likewise.
49639         * lib/c-strtod.c: Likewise.
49640         * lib/calloc.c: Likewise.
49641         * lib/canon-host.c: Likewise.
49642         * lib/canon-host.h: Likewise.
49643         * lib/canonicalize-lgpl.c: Likewise.
49644         * lib/canonicalize.c: Likewise.
49645         * lib/canonicalize.h: Likewise.
49646         * lib/ceil.c: Likewise.
49647         * lib/ceilf.c: Likewise.
49648         * lib/ceill.c: Likewise.
49649         * lib/chdir-long.c: Likewise.
49650         * lib/chdir-long.h: Likewise.
49651         * lib/chdir-safer.c: Likewise.
49652         * lib/chdir-safer.h: Likewise.
49653         * lib/chown.c: Likewise.
49654         * lib/classpath.c: Likewise.
49655         * lib/classpath.h: Likewise.
49656         * lib/clean-temp.c: Likewise.
49657         * lib/clean-temp.h: Likewise.
49658         * lib/cloexec.c: Likewise.
49659         * lib/close-stream.c: Likewise.
49660         * lib/closein.c: Likewise.
49661         * lib/closein.h: Likewise.
49662         * lib/closeout.c: Likewise.
49663         * lib/closeout.h: Likewise.
49664         * lib/concat-filename.c: Likewise.
49665         * lib/copy-file.c: Likewise.
49666         * lib/copy-file.h: Likewise.
49667         * lib/count-one-bits.h: Likewise.
49668         * lib/crc.c: Likewise.
49669         * lib/crc.h: Likewise.
49670         * lib/creat-safer.c: Likewise.
49671         * lib/csharpcomp.c: Likewise.
49672         * lib/csharpcomp.h: Likewise.
49673         * lib/csharpexec.c: Likewise.
49674         * lib/csharpexec.h: Likewise.
49675         * lib/cycle-check.c: Likewise.
49676         * lib/cycle-check.h: Likewise.
49677         * lib/diacrit.c: Likewise.
49678         * lib/diacrit.h: Likewise.
49679         * lib/diffseq.h: Likewise.
49680         * lib/dirchownmod.c: Likewise.
49681         * lib/dirent.in.h: Likewise.
49682         * lib/dirfd.c: Likewise.
49683         * lib/dirfd.h: Likewise.
49684         * lib/dirname.c: Likewise.
49685         * lib/dirname.h: Likewise.
49686         * lib/dummy.c: Likewise.
49687         * lib/dup-safer.c: Likewise.
49688         * lib/dup2.c: Likewise.
49689         * lib/eealloc.h: Likewise.
49690         * lib/error.c: Likewise.
49691         * lib/error.h: Likewise.
49692         * lib/euidaccess.c: Likewise.
49693         * lib/exclude.c: Likewise.
49694         * lib/exclude.h: Likewise.
49695         * lib/execute.c: Likewise.
49696         * lib/execute.h: Likewise.
49697         * lib/exitfail.c: Likewise.
49698         * lib/exitfail.h: Likewise.
49699         * lib/expl.c: Likewise.
49700         * lib/fatal-signal.c: Likewise.
49701         * lib/fatal-signal.h: Likewise.
49702         * lib/fbufmode.c: Likewise.
49703         * lib/fbufmode.h: Likewise.
49704         * lib/fchdir.c: Likewise.
49705         * lib/fchmodat.c: Likewise.
49706         * lib/fchownat.c: Likewise.
49707         * lib/fcntl--.h: Likewise.
49708         * lib/fcntl-safer.h: Likewise.
49709         * lib/fcntl.in.h: Likewise.
49710         * lib/fd-safer.c: Likewise.
49711         * lib/fflush.c: Likewise.
49712         * lib/file-has-acl.c: Likewise.
49713         * lib/file-set.c: Likewise.
49714         * lib/file-type.c: Likewise.
49715         * lib/file-type.h: Likewise.
49716         * lib/fileblocks.c: Likewise.
49717         * lib/filemode.c: Likewise.
49718         * lib/filemode.h: Likewise.
49719         * lib/filename.h: Likewise.
49720         * lib/filenamecat.c: Likewise.
49721         * lib/filenamecat.h: Likewise.
49722         * lib/findprog.c: Likewise.
49723         * lib/findprog.h: Likewise.
49724         * lib/float.in.h: Likewise.
49725         * lib/floor.c: Likewise.
49726         * lib/floorf.c: Likewise.
49727         * lib/floorl.c: Likewise.
49728         * lib/fopen-safer.c: Likewise.
49729         * lib/fopen.c: Likewise.
49730         * lib/fpending.c: Likewise.
49731         * lib/fpending.h: Likewise.
49732         * lib/fprintf.c: Likewise.
49733         * lib/fprintftime.h: Likewise.
49734         * lib/fpucw.h: Likewise.
49735         * lib/fpurge.c: Likewise.
49736         * lib/fpurge.h: Likewise.
49737         * lib/freadable.c: Likewise.
49738         * lib/freadable.h: Likewise.
49739         * lib/freadahead.c: Likewise.
49740         * lib/freadahead.h: Likewise.
49741         * lib/freading.c: Likewise.
49742         * lib/freading.h: Likewise.
49743         * lib/free.c: Likewise.
49744         * lib/freopen.c: Likewise.
49745         * lib/frexp.c: Likewise.
49746         * lib/frexpl.c: Likewise.
49747         * lib/fseek.c: Likewise.
49748         * lib/fseterr.c: Likewise.
49749         * lib/fseterr.h: Likewise.
49750         * lib/fstatat.c: Likewise.
49751         * lib/fstrcmp.c: Likewise.
49752         * lib/fstrcmp.h: Likewise.
49753         * lib/fsusage.c: Likewise.
49754         * lib/fsusage.h: Likewise.
49755         * lib/ftell.c: Likewise.
49756         * lib/ftello.c: Likewise.
49757         * lib/fts-cycle.c: Likewise.
49758         * lib/fts.c: Likewise.
49759         * lib/fts_.h: Likewise.
49760         * lib/full-read.c: Likewise.
49761         * lib/full-read.h: Likewise.
49762         * lib/full-write.c: Likewise.
49763         * lib/full-write.h: Likewise.
49764         * lib/fwritable.c: Likewise.
49765         * lib/fwritable.h: Likewise.
49766         * lib/fwriteerror.c: Likewise.
49767         * lib/fwriteerror.h: Likewise.
49768         * lib/fwriting.c: Likewise.
49769         * lib/fwriting.h: Likewise.
49770         * lib/gcd.c: Likewise.
49771         * lib/gcd.h: Likewise.
49772         * lib/getcwd.c: Likewise.
49773         * lib/getdate.h: Likewise.
49774         * lib/getdate.y: Likewise.
49775         * lib/getdomainname.c: Likewise.
49776         * lib/getdomainname.h: Likewise.
49777         * lib/getgroups.c: Likewise.
49778         * lib/gethostname.c: Likewise.
49779         * lib/gethrxtime.c: Likewise.
49780         * lib/gethrxtime.h: Likewise.
49781         * lib/getloadavg.c: Likewise.
49782         * lib/getndelim2.c: Likewise.
49783         * lib/getndelim2.h: Likewise.
49784         * lib/getnline.c: Likewise.
49785         * lib/getnline.h: Likewise.
49786         * lib/getopt.c: Likewise.
49787         * lib/getopt.in.h: Likewise.
49788         * lib/getopt1.c: Likewise.
49789         * lib/getopt_int.h: Likewise.
49790         * lib/getpagesize.h: Likewise.
49791         * lib/getsubopt.c: Likewise.
49792         * lib/gettime.c: Likewise.
49793         * lib/getugroups.c: Likewise.
49794         * lib/getugroups.h: Likewise.
49795         * lib/getusershell.c: Likewise.
49796         * lib/gl_anyavltree_list1.h: Likewise.
49797         * lib/gl_anyavltree_list2.h: Likewise.
49798         * lib/gl_anyhash_list1.h: Likewise.
49799         * lib/gl_anyhash_list2.h: Likewise.
49800         * lib/gl_anylinked_list1.h: Likewise.
49801         * lib/gl_anylinked_list2.h: Likewise.
49802         * lib/gl_anyrbtree_list1.h: Likewise.
49803         * lib/gl_anyrbtree_list2.h: Likewise.
49804         * lib/gl_anytree_list1.h: Likewise.
49805         * lib/gl_anytree_list2.h: Likewise.
49806         * lib/gl_anytree_oset.h: Likewise.
49807         * lib/gl_anytreehash_list1.h: Likewise.
49808         * lib/gl_anytreehash_list2.h: Likewise.
49809         * lib/gl_array_list.c: Likewise.
49810         * lib/gl_array_list.h: Likewise.
49811         * lib/gl_array_oset.c: Likewise.
49812         * lib/gl_array_oset.h: Likewise.
49813         * lib/gl_avltree_list.c: Likewise.
49814         * lib/gl_avltree_list.h: Likewise.
49815         * lib/gl_avltree_oset.c: Likewise.
49816         * lib/gl_avltree_oset.h: Likewise.
49817         * lib/gl_avltreehash_list.c: Likewise.
49818         * lib/gl_avltreehash_list.h: Likewise.
49819         * lib/gl_carray_list.c: Likewise.
49820         * lib/gl_carray_list.h: Likewise.
49821         * lib/gl_linked_list.c: Likewise.
49822         * lib/gl_linked_list.h: Likewise.
49823         * lib/gl_linkedhash_list.c: Likewise.
49824         * lib/gl_linkedhash_list.h: Likewise.
49825         * lib/gl_list.c: Likewise.
49826         * lib/gl_list.h: Likewise.
49827         * lib/gl_oset.c: Likewise.
49828         * lib/gl_oset.h: Likewise.
49829         * lib/gl_rbtree_list.c: Likewise.
49830         * lib/gl_rbtree_list.h: Likewise.
49831         * lib/gl_rbtree_oset.c: Likewise.
49832         * lib/gl_rbtree_oset.h: Likewise.
49833         * lib/gl_rbtreehash_list.c: Likewise.
49834         * lib/gl_rbtreehash_list.h: Likewise.
49835         * lib/gl_sublist.c: Likewise.
49836         * lib/gl_sublist.h: Likewise.
49837         * lib/group-member.c: Likewise.
49838         * lib/group-member.h: Likewise.
49839         * lib/hard-locale.c: Likewise.
49840         * lib/hard-locale.h: Likewise.
49841         * lib/hash-pjw.c: Likewise.
49842         * lib/hash-pjw.h: Likewise.
49843         * lib/hash-triple.c: Likewise.
49844         * lib/hash.c: Likewise.
49845         * lib/hash.h: Likewise.
49846         * lib/human.c: Likewise.
49847         * lib/human.h: Likewise.
49848         * lib/i-ring.c: Likewise.
49849         * lib/i-ring.h: Likewise.
49850         * lib/idcache.c: Likewise.
49851         * lib/imaxabs.c: Likewise.
49852         * lib/imaxdiv.c: Likewise.
49853         * lib/inet_pton.c: Likewise.
49854         * lib/inet_pton.h: Likewise.
49855         * lib/intprops.h: Likewise.
49856         * lib/inttostr.c: Likewise.
49857         * lib/inttostr.h: Likewise.
49858         * lib/inttypes.in.h: Likewise.
49859         * lib/isapipe.c: Likewise.
49860         * lib/isdir.c: Likewise.
49861         * lib/isnan.c: Likewise.
49862         * lib/isnan.h: Likewise.
49863         * lib/isnanf.c: Likewise.
49864         * lib/isnanf.h: Likewise.
49865         * lib/isnanl-nolibm.h: Likewise.
49866         * lib/isnanl.c: Likewise.
49867         * lib/isnanl.h: Likewise.
49868         * lib/javacomp.c: Likewise.
49869         * lib/javacomp.h: Likewise.
49870         * lib/javaexec.c: Likewise.
49871         * lib/javaexec.h: Likewise.
49872         * lib/javaversion.c: Likewise.
49873         * lib/javaversion.h: Likewise.
49874         * lib/javaversion.java: Likewise.
49875         * lib/lbrkprop.h: Likewise.
49876         * lib/lchmod.h: Likewise.
49877         * lib/lchown.c: Likewise.
49878         * lib/ldexpl.c: Likewise.
49879         * lib/linebreak.c: Likewise.
49880         * lib/linebreak.h: Likewise.
49881         * lib/linebuffer.c: Likewise.
49882         * lib/linebuffer.h: Likewise.
49883         * lib/locale.in.h: Likewise.
49884         * lib/logl.c: Likewise.
49885         * lib/long-options.c: Likewise.
49886         * lib/long-options.h: Likewise.
49887         * lib/lstat.c: Likewise.
49888         * lib/lstat.h: Likewise.
49889         * lib/math.in.h: Likewise.
49890         * lib/mbchar.c: Likewise.
49891         * lib/mbchar.h: Likewise.
49892         * lib/mbfile.h: Likewise.
49893         * lib/mbiter.h: Likewise.
49894         * lib/mbscasecmp.c: Likewise.
49895         * lib/mbscasestr.c: Likewise.
49896         * lib/mbschr.c: Likewise.
49897         * lib/mbscspn.c: Likewise.
49898         * lib/mbslen.c: Likewise.
49899         * lib/mbsncasecmp.c: Likewise.
49900         * lib/mbsnlen.c: Likewise.
49901         * lib/mbspbrk.c: Likewise.
49902         * lib/mbspcasecmp.c: Likewise.
49903         * lib/mbsrchr.c: Likewise.
49904         * lib/mbssep.c: Likewise.
49905         * lib/mbsspn.c: Likewise.
49906         * lib/mbsstr.c: Likewise.
49907         * lib/mbstok_r.c: Likewise.
49908         * lib/mbswidth.c: Likewise.
49909         * lib/mbswidth.h: Likewise.
49910         * lib/mbuiter.h: Likewise.
49911         * lib/memcasecmp.c: Likewise.
49912         * lib/memcasecmp.h: Likewise.
49913         * lib/memchr.c: Likewise.
49914         * lib/memcmp.c: Likewise.
49915         * lib/memcoll.c: Likewise.
49916         * lib/memcoll.h: Likewise.
49917         * lib/memcpy.c: Likewise.
49918         * lib/memrchr.c: Likewise.
49919         * lib/mkancesdirs.c: Likewise.
49920         * lib/mkdir-p.c: Likewise.
49921         * lib/mkdir-p.h: Likewise.
49922         * lib/mkdir.c: Likewise.
49923         * lib/mkdirat.c: Likewise.
49924         * lib/mkdtemp.c: Likewise.
49925         * lib/mkstemp-safer.c: Likewise.
49926         * lib/mkstemp.c: Likewise.
49927         * lib/modechange.c: Likewise.
49928         * lib/modechange.h: Likewise.
49929         * lib/mountlist.c: Likewise.
49930         * lib/mountlist.h: Likewise.
49931         * lib/mpsort.c: Likewise.
49932         * lib/nanosleep.c: Likewise.
49933         * lib/obstack.c: Likewise.
49934         * lib/obstack.h: Likewise.
49935         * lib/open-safer.c: Likewise.
49936         * lib/open.c: Likewise.
49937         * lib/openat-die.c: Likewise.
49938         * lib/openat-priv.h: Likewise.
49939         * lib/openat-proc.c: Likewise.
49940         * lib/openat.c: Likewise.
49941         * lib/openat.h: Likewise.
49942         * lib/pagealign_alloc.c: Likewise.
49943         * lib/pagealign_alloc.h: Likewise.
49944         * lib/physmem.c: Likewise.
49945         * lib/physmem.h: Likewise.
49946         * lib/pipe-safer.c: Likewise.
49947         * lib/pipe.c: Likewise.
49948         * lib/pipe.h: Likewise.
49949         * lib/posixtm.c: Likewise.
49950         * lib/posixtm.h: Likewise.
49951         * lib/posixver.c: Likewise.
49952         * lib/printf-frexp.c: Likewise.
49953         * lib/printf-frexp.h: Likewise.
49954         * lib/printf-frexpl.c: Likewise.
49955         * lib/printf-frexpl.h: Likewise.
49956         * lib/printf.c: Likewise.
49957         * lib/progname.c: Likewise.
49958         * lib/progname.h: Likewise.
49959         * lib/progreloc.c: Likewise.
49960         * lib/putenv.c: Likewise.
49961         * lib/quote.c: Likewise.
49962         * lib/quote.h: Likewise.
49963         * lib/quotearg.c: Likewise.
49964         * lib/quotearg.h: Likewise.
49965         * lib/raise.c: Likewise.
49966         * lib/readline.c: Likewise.
49967         * lib/readline.h: Likewise.
49968         * lib/readlink.c: Likewise.
49969         * lib/readtokens.c: Likewise.
49970         * lib/readtokens.h: Likewise.
49971         * lib/readtokens0.c: Likewise.
49972         * lib/readtokens0.h: Likewise.
49973         * lib/readutmp.c: Likewise.
49974         * lib/readutmp.h: Likewise.
49975         * lib/realloc.c: Likewise.
49976         * lib/relocwrapper.c: Likewise.
49977         * lib/rename-dest-slash.c: Likewise.
49978         * lib/rename.c: Likewise.
49979         * lib/rmdir.c: Likewise.
49980         * lib/rpmatch.c: Likewise.
49981         * lib/safe-read.c: Likewise.
49982         * lib/safe-read.h: Likewise.
49983         * lib/safe-write.c: Likewise.
49984         * lib/safe-write.h: Likewise.
49985         * lib/same-inode.h: Likewise.
49986         * lib/same.c: Likewise.
49987         * lib/same.h: Likewise.
49988         * lib/save-cwd.c: Likewise.
49989         * lib/save-cwd.h: Likewise.
49990         * lib/savedir.c: Likewise.
49991         * lib/savedir.h: Likewise.
49992         * lib/savewd.c: Likewise.
49993         * lib/savewd.h: Likewise.
49994         * lib/search.in.h: Likewise.
49995         * lib/setenv.c: Likewise.
49996         * lib/setenv.h: Likewise.
49997         * lib/settime.c: Likewise.
49998         * lib/sh-quote.c: Likewise.
49999         * lib/sh-quote.h: Likewise.
50000         * lib/sig2str.c: Likewise.
50001         * lib/sig2str.h: Likewise.
50002         * lib/signal.in.h: Likewise.
50003         * lib/signbitd.c: Likewise.
50004         * lib/signbitf.c: Likewise.
50005         * lib/signbitl.c: Likewise.
50006         * lib/sigprocmask.c: Likewise.
50007         * lib/sincosl.c: Likewise.
50008         * lib/sleep.c: Likewise.
50009         * lib/sprintf.c: Likewise.
50010         * lib/sqrtl.c: Likewise.
50011         * lib/stat-time.h: Likewise.
50012         * lib/stdio--.h: Likewise.
50013         * lib/stdio-safer.h: Likewise.
50014         * lib/stdlib--.h: Likewise.
50015         * lib/stdlib-safer.h: Likewise.
50016         * lib/stdlib.in.h: Likewise.
50017         * lib/stpcpy.c: Likewise.
50018         * lib/stpncpy.c: Likewise.
50019         * lib/strchrnul.c: Likewise.
50020         * lib/strcspn.c: Likewise.
50021         * lib/strerror.c: Likewise.
50022         * lib/strftime.c: Likewise.
50023         * lib/strftime.h: Likewise.
50024         * lib/striconveh.c: Likewise.
50025         * lib/striconveh.h: Likewise.
50026         * lib/striconveha.c: Likewise.
50027         * lib/striconveha.h: Likewise.
50028         * lib/stripslash.c: Likewise.
50029         * lib/strnlen1.c: Likewise.
50030         * lib/strnlen1.h: Likewise.
50031         * lib/strtod.c: Likewise.
50032         * lib/strtoimax.c: Likewise.
50033         * lib/strtok_r.c: Likewise.
50034         * lib/strtol.c: Likewise.
50035         * lib/strtoll.c: Likewise.
50036         * lib/strtoul.c: Likewise.
50037         * lib/strtoull.c: Likewise.
50038         * lib/sysexits.in.h: Likewise.
50039         * lib/tempname.c: Likewise.
50040         * lib/tempname.h: Likewise.
50041         * lib/timespec.h: Likewise.
50042         * lib/tls.c: Likewise.
50043         * lib/tls.h: Likewise.
50044         * lib/tmpdir.c: Likewise.
50045         * lib/tmpdir.h: Likewise.
50046         * lib/tmpfile-safer.c: Likewise.
50047         * lib/tmpfile.c: Likewise.
50048         * lib/trigl.c: Likewise.
50049         * lib/trigl.h: Likewise.
50050         * lib/trim.c: Likewise.
50051         * lib/trim.h: Likewise.
50052         * lib/trunc.c: Likewise.
50053         * lib/truncf.c: Likewise.
50054         * lib/truncl.c: Likewise.
50055         * lib/tsearch.c: Likewise.
50056         * lib/unicodeio.c: Likewise.
50057         * lib/unicodeio.h: Likewise.
50058         * lib/unistd--.h: Likewise.
50059         * lib/unistd-safer.h: Likewise.
50060         * lib/unistdio/ulc-fprintf.c: Likewise.
50061         * lib/unistdio/ulc-vfprintf.c: Likewise.
50062         * lib/unlinkdir.c: Likewise.
50063         * lib/unlinkdir.h: Likewise.
50064         * lib/unlocked-io.h: Likewise.
50065         * lib/unsetenv.c: Likewise.
50066         * lib/userspec.c: Likewise.
50067         * lib/utime.c: Likewise.
50068         * lib/utimecmp.c: Likewise.
50069         * lib/utimecmp.h: Likewise.
50070         * lib/utimens.c: Likewise.
50071         * lib/verify.h: Likewise.
50072         * lib/verror.c: Likewise.
50073         * lib/verror.h: Likewise.
50074         * lib/version-etc-fsf.c: Likewise.
50075         * lib/version-etc.c: Likewise.
50076         * lib/version-etc.h: Likewise.
50077         * lib/vfprintf.c: Likewise.
50078         * lib/vprintf.c: Likewise.
50079         * lib/vsprintf.c: Likewise.
50080         * lib/w32spawn.h: Likewise.
50081         * lib/wait-process.c: Likewise.
50082         * lib/wait-process.h: Likewise.
50083         * lib/wcwidth.c: Likewise.
50084         * lib/write-any-file.c: Likewise.
50085         * lib/xalloc-die.c: Likewise.
50086         * lib/xalloc.h: Likewise.
50087         * lib/xasprintf.c: Likewise.
50088         * lib/xgetcwd.c: Likewise.
50089         * lib/xgetcwd.h: Likewise.
50090         * lib/xgetdomainname.c: Likewise.
50091         * lib/xgetdomainname.h: Likewise.
50092         * lib/xgethostname.c: Likewise.
50093         * lib/xmalloc.c: Likewise.
50094         * lib/xmalloca.c: Likewise.
50095         * lib/xmalloca.h: Likewise.
50096         * lib/xmemcoll.c: Likewise.
50097         * lib/xnanosleep.c: Likewise.
50098         * lib/xreadlink.c: Likewise.
50099         * lib/xreadlink.h: Likewise.
50100         * lib/xsetenv.c: Likewise.
50101         * lib/xsetenv.h: Likewise.
50102         * lib/xstriconv.c: Likewise.
50103         * lib/xstriconv.h: Likewise.
50104         * lib/xstrndup.c: Likewise.
50105         * lib/xstrndup.h: Likewise.
50106         * lib/xstrtod.c: Likewise.
50107         * lib/xstrtod.h: Likewise.
50108         * lib/xstrtol-error.c: Likewise.
50109         * lib/xstrtol.c: Likewise.
50110         * lib/xstrtol.h: Likewise.
50111         * lib/xtime.h: Likewise.
50112         * lib/xvasprintf.c: Likewise.
50113         * lib/xvasprintf.h: Likewise.
50114         * lib/yesno.c: Likewise.
50115         * lib/yesno.h: Likewise.
50116         * posix-modules: Likewise.
50117         * tests/test-alloca-opt.c: Likewise.
50118         * tests/test-arcfour.c: Likewise.
50119         * tests/test-arctwo.c: Likewise.
50120         * tests/test-argmatch.c: Likewise.
50121         * tests/test-argp-2.sh: Likewise.
50122         * tests/test-argp.c: Likewise.
50123         * tests/test-arpa_inet.c: Likewise.
50124         * tests/test-array_list.c: Likewise.
50125         * tests/test-array_oset.c: Likewise.
50126         * tests/test-atexit.c: Likewise.
50127         * tests/test-avltree_list.c: Likewise.
50128         * tests/test-avltree_oset.c: Likewise.
50129         * tests/test-avltreehash_list.c: Likewise.
50130         * tests/test-base64.c: Likewise.
50131         * tests/test-binary-io.c: Likewise.
50132         * tests/test-byteswap.c: Likewise.
50133         * tests/test-c-ctype.c: Likewise.
50134         * tests/test-c-strcasecmp.c: Likewise.
50135         * tests/test-c-strcasestr.c: Likewise.
50136         * tests/test-c-strncasecmp.c: Likewise.
50137         * tests/test-c-strstr.c: Likewise.
50138         * tests/test-canonicalize-lgpl.c: Likewise.
50139         * tests/test-canonicalize.c: Likewise.
50140         * tests/test-carray_list.c: Likewise.
50141         * tests/test-ceilf.c: Likewise.
50142         * tests/test-ceill.c: Likewise.
50143         * tests/test-count-one-bits.c: Likewise.
50144         * tests/test-crc.c: Likewise.
50145         * tests/test-dirname.c: Likewise.
50146         * tests/test-fbufmode.c: Likewise.
50147         * tests/test-fcntl.c: Likewise.
50148         * tests/test-fflush.c: Likewise.
50149         * tests/test-floorf.c: Likewise.
50150         * tests/test-floorl.c: Likewise.
50151         * tests/test-fopen.c: Likewise.
50152         * tests/test-fprintf-posix.c: Likewise.
50153         * tests/test-fprintf-posix.h: Likewise.
50154         * tests/test-fpurge.c: Likewise.
50155         * tests/test-freadable.c: Likewise.
50156         * tests/test-freadahead.c: Likewise.
50157         * tests/test-freading.c: Likewise.
50158         * tests/test-freopen.c: Likewise.
50159         * tests/test-frexp.c: Likewise.
50160         * tests/test-frexpl.c: Likewise.
50161         * tests/test-fseek.c: Likewise.
50162         * tests/test-fseeko.c: Likewise.
50163         * tests/test-fseterr.c: Likewise.
50164         * tests/test-fstrcmp.c: Likewise.
50165         * tests/test-ftell.c: Likewise.
50166         * tests/test-ftello.c: Likewise.
50167         * tests/test-fwritable.c: Likewise.
50168         * tests/test-fwriting.c: Likewise.
50169         * tests/test-getaddrinfo.c: Likewise.
50170         * tests/test-getpass.c: Likewise.
50171         * tests/test-gettimeofday.c: Likewise.
50172         * tests/test-hmac-md5.c: Likewise.
50173         * tests/test-hmac-sha1.c: Likewise.
50174         * tests/test-iconv.c: Likewise.
50175         * tests/test-iconvme.c: Likewise.
50176         * tests/test-inttypes.c: Likewise.
50177         * tests/test-isnan.c: Likewise.
50178         * tests/test-isnanf.c: Likewise.
50179         * tests/test-isnanl-nolibm.c: Likewise.
50180         * tests/test-isnanl.c: Likewise.
50181         * tests/test-isnanl.h: Likewise.
50182         * tests/test-ldexpl.c: Likewise.
50183         * tests/test-linked_list.c: Likewise.
50184         * tests/test-linkedhash_list.c: Likewise.
50185         * tests/test-locale.c: Likewise.
50186         * tests/test-localename.c: Likewise.
50187         * tests/test-lock.c: Likewise.
50188         * tests/test-lseek.c: Likewise.
50189         * tests/test-malloca.c: Likewise.
50190         * tests/test-math.c: Likewise.
50191         * tests/test-mbscasecmp.c: Likewise.
50192         * tests/test-mbscasestr1.c: Likewise.
50193         * tests/test-mbscasestr2.c: Likewise.
50194         * tests/test-mbscasestr3.c: Likewise.
50195         * tests/test-mbscasestr4.c: Likewise.
50196         * tests/test-mbschr.c: Likewise.
50197         * tests/test-mbscspn.c: Likewise.
50198         * tests/test-mbsncasecmp.c: Likewise.
50199         * tests/test-mbspbrk.c: Likewise.
50200         * tests/test-mbspcasecmp.c: Likewise.
50201         * tests/test-mbsrchr.c: Likewise.
50202         * tests/test-mbsspn.c: Likewise.
50203         * tests/test-mbsstr1.c: Likewise.
50204         * tests/test-mbsstr2.c: Likewise.
50205         * tests/test-mbsstr3.c: Likewise.
50206         * tests/test-md5.c: Likewise.
50207         * tests/test-memmem.c: Likewise.
50208         * tests/test-netinet_in.c: Likewise.
50209         * tests/test-open.c: Likewise.
50210         * tests/test-printf-frexp.c: Likewise.
50211         * tests/test-printf-frexpl.c: Likewise.
50212         * tests/test-printf-posix.c: Likewise.
50213         * tests/test-printf-posix.h: Likewise.
50214         * tests/test-rbtree_list.c: Likewise.
50215         * tests/test-rbtree_oset.c: Likewise.
50216         * tests/test-rbtreehash_list.c: Likewise.
50217         * tests/test-read-file.c: Likewise.
50218         * tests/test-rijndael.c: Likewise.
50219         * tests/test-search.c: Likewise.
50220         * tests/test-signbit.c: Likewise.
50221         * tests/test-sleep.c: Likewise.
50222         * tests/test-snprintf-posix.c: Likewise.
50223         * tests/test-snprintf-posix.h: Likewise.
50224         * tests/test-snprintf.c: Likewise.
50225         * tests/test-sprintf-posix.c: Likewise.
50226         * tests/test-sprintf-posix.h: Likewise.
50227         * tests/test-stat-time.c: Likewise.
50228         * tests/test-stdbool.c: Likewise.
50229         * tests/test-stdint.c: Likewise.
50230         * tests/test-stdio.c: Likewise.
50231         * tests/test-stdlib.c: Likewise.
50232         * tests/test-stpncpy.c: Likewise.
50233         * tests/test-strcasestr.c: Likewise.
50234         * tests/test-striconv.c: Likewise.
50235         * tests/test-striconveh.c: Likewise.
50236         * tests/test-striconveha.c: Likewise.
50237         * tests/test-string.c: Likewise.
50238         * tests/test-sys_select.c: Likewise.
50239         * tests/test-sys_socket.c: Likewise.
50240         * tests/test-sys_stat.c: Likewise.
50241         * tests/test-sys_time.c: Likewise.
50242         * tests/test-sysexits.c: Likewise.
50243         * tests/test-time.c: Likewise.
50244         * tests/test-tls.c: Likewise.
50245         * tests/test-trunc.c: Likewise.
50246         * tests/test-truncf.c: Likewise.
50247         * tests/test-truncl.c: Likewise.
50248         * tests/test-unistd.c: Likewise.
50249         * tests/test-vasnprintf-posix.c: Likewise.
50250         * tests/test-vasnprintf-posix2.c: Likewise.
50251         * tests/test-vasnprintf.c: Likewise.
50252         * tests/test-vasprintf-posix.c: Likewise.
50253         * tests/test-vasprintf.c: Likewise.
50254         * tests/test-verify.c: Likewise.
50255         * tests/test-vfprintf-posix.c: Likewise.
50256         * tests/test-vprintf-posix.c: Likewise.
50257         * tests/test-vsnprintf-posix.c: Likewise.
50258         * tests/test-vsnprintf.c: Likewise.
50259         * tests/test-vsprintf-posix.c: Likewise.
50260         * tests/test-wchar.c: Likewise.
50261         * tests/test-wctype.c: Likewise.
50262         * tests/test-wcwidth.c: Likewise.
50263         * tests/test-xstrtol.c: Likewise.
50264         * tests/test-xvasprintf.c: Likewise.
50265         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50266         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50267         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50268         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50269         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50270         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50271         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50272         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50273         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50274         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50275         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50276         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50277         * tests/uniname/test-uninames.c: Likewise.
50278         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50279         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50280         * tests/unistdio/test-u16-printf1.h: Likewise.
50281         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50282         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50283         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50284         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50285         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50286         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50287         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50288         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50289         * tests/unistdio/test-u32-printf1.h: Likewise.
50290         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50291         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50292         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50293         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50294         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50295         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50296         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50297         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50298         * tests/unistdio/test-u8-printf1.h: Likewise.
50299         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50300         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50301         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50302         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50303         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50304         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50305         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50306         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50307         * tests/unistdio/test-ulc-printf1.h: Likewise.
50308         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50309         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50310         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50311         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50312         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50313         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50314         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50315         * tests/uniwidth/test-u16-width.c: Likewise.
50316         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50317         * tests/uniwidth/test-u32-width.c: Likewise.
50318         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50319         * tests/uniwidth/test-u8-width.c: Likewise.
50320         * tests/uniwidth/test-uc_width.c: Likewise.
50321         * config/srclist-update: Likewise.
50322         (fixlicense): Update to GPLv3+.
50323
50324         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50325         * tests/test-tsearch.c: Change copyright notice.
50326
50327         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50328         * lib/c-strcaseeq.h: Change copyright notice.
50329         * lib/streq.h: Likewise.
50330         * lib/uniconv.h: Likewise.
50331         * lib/uniconv/u-conv-from-enc.h: Likewise.
50332         * lib/uniconv/u-conv-to-enc.h: Likewise.
50333         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50334         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50335         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50336         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50337         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50338         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50339         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50340         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50341         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50342         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50343         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50344         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50345         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50346         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50347         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50348         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50349         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50350         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50351         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50352         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50353         * lib/uniname.h: Likewise.
50354         * lib/uniname/uniname.c: Likewise.
50355         * lib/unistdio.h: Likewise.
50356         * lib/unistdio/u-asnprintf.h: Likewise.
50357         * lib/unistdio/u-asprintf.h: Likewise.
50358         * lib/unistdio/u-printf-args.c: Likewise.
50359         * lib/unistdio/u-printf-args.h: Likewise.
50360         * lib/unistdio/u-printf-parse.h: Likewise.
50361         * lib/unistdio/u-snprintf.h: Likewise.
50362         * lib/unistdio/u-sprintf.h: Likewise.
50363         * lib/unistdio/u-vasprintf.h: Likewise.
50364         * lib/unistdio/u-vsnprintf.h: Likewise.
50365         * lib/unistdio/u-vsprintf.h: Likewise.
50366         * lib/unistdio/u16-asnprintf.c: Likewise.
50367         * lib/unistdio/u16-asprintf.c: Likewise.
50368         * lib/unistdio/u16-printf-parse.c: Likewise.
50369         * lib/unistdio/u16-snprintf.c: Likewise.
50370         * lib/unistdio/u16-sprintf.c: Likewise.
50371         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50372         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50373         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50374         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50375         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50376         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50377         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50378         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50379         * lib/unistdio/u16-vasnprintf.c: Likewise.
50380         * lib/unistdio/u16-vasprintf.c: Likewise.
50381         * lib/unistdio/u16-vsnprintf.c: Likewise.
50382         * lib/unistdio/u16-vsprintf.c: Likewise.
50383         * lib/unistdio/u32-asnprintf.c: Likewise.
50384         * lib/unistdio/u32-asprintf.c: Likewise.
50385         * lib/unistdio/u32-printf-parse.c: Likewise.
50386         * lib/unistdio/u32-snprintf.c: Likewise.
50387         * lib/unistdio/u32-sprintf.c: Likewise.
50388         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50389         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50390         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50391         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50392         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50393         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50394         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50395         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50396         * lib/unistdio/u32-vasnprintf.c: Likewise.
50397         * lib/unistdio/u32-vasprintf.c: Likewise.
50398         * lib/unistdio/u32-vsnprintf.c: Likewise.
50399         * lib/unistdio/u32-vsprintf.c: Likewise.
50400         * lib/unistdio/u8-asnprintf.c: Likewise.
50401         * lib/unistdio/u8-asprintf.c: Likewise.
50402         * lib/unistdio/u8-printf-parse.c: Likewise.
50403         * lib/unistdio/u8-snprintf.c: Likewise.
50404         * lib/unistdio/u8-sprintf.c: Likewise.
50405         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50406         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50407         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50408         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50409         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50410         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50411         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50412         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50413         * lib/unistdio/u8-vasnprintf.c: Likewise.
50414         * lib/unistdio/u8-vasprintf.c: Likewise.
50415         * lib/unistdio/u8-vsnprintf.c: Likewise.
50416         * lib/unistdio/u8-vsprintf.c: Likewise.
50417         * lib/unistdio/ulc-asnprintf.c: Likewise.
50418         * lib/unistdio/ulc-asprintf.c: Likewise.
50419         * lib/unistdio/ulc-printf-parse.c: Likewise.
50420         * lib/unistdio/ulc-snprintf.c: Likewise.
50421         * lib/unistdio/ulc-sprintf.c: Likewise.
50422         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50423         * lib/unistdio/ulc-vasprintf.c: Likewise.
50424         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50425         * lib/unistdio/ulc-vsprintf.c: Likewise.
50426         * lib/unistr.h: Likewise.
50427         * lib/unistr/u-cpy-alloc.h: Likewise.
50428         * lib/unistr/u-cpy.h: Likewise.
50429         * lib/unistr/u-endswith.h: Likewise.
50430         * lib/unistr/u-move.h: Likewise.
50431         * lib/unistr/u-set.h: Likewise.
50432         * lib/unistr/u-startswith.h: Likewise.
50433         * lib/unistr/u-stpcpy.h: Likewise.
50434         * lib/unistr/u-stpncpy.h: Likewise.
50435         * lib/unistr/u-strcat.h: Likewise.
50436         * lib/unistr/u-strcpy.h: Likewise.
50437         * lib/unistr/u-strcspn.h: Likewise.
50438         * lib/unistr/u-strdup.h: Likewise.
50439         * lib/unistr/u-strlen.h: Likewise.
50440         * lib/unistr/u-strncat.h: Likewise.
50441         * lib/unistr/u-strncpy.h: Likewise.
50442         * lib/unistr/u-strnlen.h: Likewise.
50443         * lib/unistr/u-strpbrk.h: Likewise.
50444         * lib/unistr/u-strspn.h: Likewise.
50445         * lib/unistr/u-strstr.h: Likewise.
50446         * lib/unistr/u-strtok.h: Likewise.
50447         * lib/unistr/u16-check.c: Likewise.
50448         * lib/unistr/u16-chr.c: Likewise.
50449         * lib/unistr/u16-cmp.c: Likewise.
50450         * lib/unistr/u16-cpy-alloc.c: Likewise.
50451         * lib/unistr/u16-cpy.c: Likewise.
50452         * lib/unistr/u16-endswith.c: Likewise.
50453         * lib/unistr/u16-mblen.c: Likewise.
50454         * lib/unistr/u16-mbsnlen.c: Likewise.
50455         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50456         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50457         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50458         * lib/unistr/u16-mbtouc.c: Likewise.
50459         * lib/unistr/u16-mbtoucr.c: Likewise.
50460         * lib/unistr/u16-move.c: Likewise.
50461         * lib/unistr/u16-next.c: Likewise.
50462         * lib/unistr/u16-prev.c: Likewise.
50463         * lib/unistr/u16-set.c: Likewise.
50464         * lib/unistr/u16-startswith.c: Likewise.
50465         * lib/unistr/u16-stpcpy.c: Likewise.
50466         * lib/unistr/u16-stpncpy.c: Likewise.
50467         * lib/unistr/u16-strcat.c: Likewise.
50468         * lib/unistr/u16-strchr.c: Likewise.
50469         * lib/unistr/u16-strcmp.c: Likewise.
50470         * lib/unistr/u16-strcpy.c: Likewise.
50471         * lib/unistr/u16-strcspn.c: Likewise.
50472         * lib/unistr/u16-strdup.c: Likewise.
50473         * lib/unistr/u16-strlen.c: Likewise.
50474         * lib/unistr/u16-strmblen.c: Likewise.
50475         * lib/unistr/u16-strmbtouc.c: Likewise.
50476         * lib/unistr/u16-strncat.c: Likewise.
50477         * lib/unistr/u16-strncmp.c: Likewise.
50478         * lib/unistr/u16-strncpy.c: Likewise.
50479         * lib/unistr/u16-strnlen.c: Likewise.
50480         * lib/unistr/u16-strpbrk.c: Likewise.
50481         * lib/unistr/u16-strrchr.c: Likewise.
50482         * lib/unistr/u16-strspn.c: Likewise.
50483         * lib/unistr/u16-strstr.c: Likewise.
50484         * lib/unistr/u16-strtok.c: Likewise.
50485         * lib/unistr/u16-to-u32.c: Likewise.
50486         * lib/unistr/u16-to-u8.c: Likewise.
50487         * lib/unistr/u16-uctomb-aux.c: Likewise.
50488         * lib/unistr/u16-uctomb.c: Likewise.
50489         * lib/unistr/u32-check.c: Likewise.
50490         * lib/unistr/u32-chr.c: Likewise.
50491         * lib/unistr/u32-cmp.c: Likewise.
50492         * lib/unistr/u32-cpy-alloc.c: Likewise.
50493         * lib/unistr/u32-cpy.c: Likewise.
50494         * lib/unistr/u32-endswith.c: Likewise.
50495         * lib/unistr/u32-mblen.c: Likewise.
50496         * lib/unistr/u32-mbsnlen.c: Likewise.
50497         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50498         * lib/unistr/u32-mbtouc.c: Likewise.
50499         * lib/unistr/u32-mbtoucr.c: Likewise.
50500         * lib/unistr/u32-move.c: Likewise.
50501         * lib/unistr/u32-next.c: Likewise.
50502         * lib/unistr/u32-prev.c: Likewise.
50503         * lib/unistr/u32-set.c: Likewise.
50504         * lib/unistr/u32-startswith.c: Likewise.
50505         * lib/unistr/u32-stpcpy.c: Likewise.
50506         * lib/unistr/u32-stpncpy.c: Likewise.
50507         * lib/unistr/u32-strcat.c: Likewise.
50508         * lib/unistr/u32-strchr.c: Likewise.
50509         * lib/unistr/u32-strcmp.c: Likewise.
50510         * lib/unistr/u32-strcpy.c: Likewise.
50511         * lib/unistr/u32-strcspn.c: Likewise.
50512         * lib/unistr/u32-strdup.c: Likewise.
50513         * lib/unistr/u32-strlen.c: Likewise.
50514         * lib/unistr/u32-strmblen.c: Likewise.
50515         * lib/unistr/u32-strmbtouc.c: Likewise.
50516         * lib/unistr/u32-strncat.c: Likewise.
50517         * lib/unistr/u32-strncmp.c: Likewise.
50518         * lib/unistr/u32-strncpy.c: Likewise.
50519         * lib/unistr/u32-strnlen.c: Likewise.
50520         * lib/unistr/u32-strpbrk.c: Likewise.
50521         * lib/unistr/u32-strrchr.c: Likewise.
50522         * lib/unistr/u32-strspn.c: Likewise.
50523         * lib/unistr/u32-strstr.c: Likewise.
50524         * lib/unistr/u32-strtok.c: Likewise.
50525         * lib/unistr/u32-to-u16.c: Likewise.
50526         * lib/unistr/u32-to-u8.c: Likewise.
50527         * lib/unistr/u32-uctomb.c: Likewise.
50528         * lib/unistr/u8-check.c: Likewise.
50529         * lib/unistr/u8-chr.c: Likewise.
50530         * lib/unistr/u8-cmp.c: Likewise.
50531         * lib/unistr/u8-cpy-alloc.c: Likewise.
50532         * lib/unistr/u8-cpy.c: Likewise.
50533         * lib/unistr/u8-endswith.c: Likewise.
50534         * lib/unistr/u8-mblen.c: Likewise.
50535         * lib/unistr/u8-mbsnlen.c: Likewise.
50536         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50537         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50538         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50539         * lib/unistr/u8-mbtouc.c: Likewise.
50540         * lib/unistr/u8-mbtoucr.c: Likewise.
50541         * lib/unistr/u8-move.c: Likewise.
50542         * lib/unistr/u8-next.c: Likewise.
50543         * lib/unistr/u8-prev.c: Likewise.
50544         * lib/unistr/u8-set.c: Likewise.
50545         * lib/unistr/u8-startswith.c: Likewise.
50546         * lib/unistr/u8-stpcpy.c: Likewise.
50547         * lib/unistr/u8-stpncpy.c: Likewise.
50548         * lib/unistr/u8-strcat.c: Likewise.
50549         * lib/unistr/u8-strchr.c: Likewise.
50550         * lib/unistr/u8-strcmp.c: Likewise.
50551         * lib/unistr/u8-strcpy.c: Likewise.
50552         * lib/unistr/u8-strcspn.c: Likewise.
50553         * lib/unistr/u8-strdup.c: Likewise.
50554         * lib/unistr/u8-strlen.c: Likewise.
50555         * lib/unistr/u8-strmblen.c: Likewise.
50556         * lib/unistr/u8-strmbtouc.c: Likewise.
50557         * lib/unistr/u8-strncat.c: Likewise.
50558         * lib/unistr/u8-strncmp.c: Likewise.
50559         * lib/unistr/u8-strncpy.c: Likewise.
50560         * lib/unistr/u8-strnlen.c: Likewise.
50561         * lib/unistr/u8-strpbrk.c: Likewise.
50562         * lib/unistr/u8-strrchr.c: Likewise.
50563         * lib/unistr/u8-strspn.c: Likewise.
50564         * lib/unistr/u8-strstr.c: Likewise.
50565         * lib/unistr/u8-strtok.c: Likewise.
50566         * lib/unistr/u8-to-u16.c: Likewise.
50567         * lib/unistr/u8-to-u32.c: Likewise.
50568         * lib/unistr/u8-uctomb-aux.c: Likewise.
50569         * lib/unistr/u8-uctomb.c: Likewise.
50570         * lib/unitypes.h: Likewise.
50571         * lib/uniwidth.h: Likewise.
50572         * lib/uniwidth/cjk.h: Likewise.
50573         * lib/uniwidth/u16-strwidth.c: Likewise.
50574         * lib/uniwidth/u16-width.c: Likewise.
50575         * lib/uniwidth/u32-strwidth.c: Likewise.
50576         * lib/uniwidth/u32-width.c: Likewise.
50577         * lib/uniwidth/u8-strwidth.c: Likewise.
50578         * lib/uniwidth/u8-width.c: Likewise.
50579         * lib/uniwidth/width.c: Likewise.
50580
50581 2007-10-07  Bruno Haible  <bruno@clisp.org>
50582
50583         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50584         The file is still under LGPL (see modules/inttypes).
50585
50586 2007-10-06  Bruno Haible  <bruno@clisp.org>
50587
50588         * modules/trunc (Dependencies): Add 'extensions'.
50589         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50590         Reported by Ben Pfaff <blp@gnu.org>.
50591
50592 2007-10-06  Bruno Haible  <bruno@clisp.org>
50593
50594         * modules/freopen-tests: New file.
50595         * tests/test-freopen.c: New file.
50596
50597         * modules/fopen-tests: New file.
50598         * tests/test-fopen.c: New file.
50599
50600         * modules/fopen: New file.
50601         * lib/fopen.c: New file.
50602         * m4/fopen.m4: New file.
50603         * modules/freopen: New file.
50604         * lib/freopen.c: New file.
50605         * m4/freopen.m4: New file.
50606         * lib/stdio.in.h (fopen, freopen): New declarations.
50607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50608         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50609         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50610         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50611         * doc/functions/fopen.texi: Mention the 'fopen' module.
50612         * doc/functions/freopen.texi: Mention the 'freopen' module.
50613
50614 2007-10-06  Bruno Haible  <bruno@clisp.org>
50615
50616         * modules/open-tests: New file.
50617         * tests/test-open.c: New file.
50618
50619         * modules/open: New file.
50620         * lib/open.c: New file.
50621         * m4/open.m4: New file.
50622         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50623         lib/open.c does.
50624         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50625         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50626         macros.
50627         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50628         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50629         REPLACE_OPEN.
50630         * doc/functions/open.texi: Mention the 'open' module.
50631
50632 2007-10-04  Bruno Haible  <bruno@clisp.org>
50633
50634         * modules/ceill-tests: New file.
50635         * tests/test-ceill.c: New file.
50636
50637         * modules/ceill: New file.
50638         * lib/ceill.c: Replace entire file.
50639         * m4/ceill.m4: New file.
50640         * lib/math.in.h (ceill): Replace declaration.
50641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50642         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50643         * doc/functions/ceill.texi: Mention the 'ceill' module.
50644         * modules/mathl (Files): Remove lib/ceill.c.
50645         (Depends-on): Add ceill.
50646
50647 2007-10-04  Bruno Haible  <bruno@clisp.org>
50648
50649         * modules/ceilf-tests: New file.
50650         * tests/test-ceilf.c: New file.
50651
50652         * modules/ceilf: New file.
50653         * lib/ceil.c: New file.
50654         * lib/ceilf.c: New file.
50655         * m4/ceilf.m4: New file.
50656         * lib/math.in.h (ceilf): New declaration.
50657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50658         HAVE_DECL_CEILF.
50659         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50660         HAVE_DECL_CEILF.
50661         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50662
50663 2007-10-04  Bruno Haible  <bruno@clisp.org>
50664
50665         * modules/floorl-tests: New file.
50666         * tests/test-floorl.c: New file.
50667
50668         * modules/floorl: New file.
50669         * lib/floorl.c: Replace entire file.
50670         * m4/floorl.m4: New file.
50671         * lib/math.in.h (floorl): Replace declaration.
50672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50673         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50674         * doc/functions/floorl.texi: Mention the 'floorl' module.
50675         * modules/mathl (Files): Remove lib/floorl.c.
50676         (Depends-on): Add floorl.
50677
50678 2007-10-04  Bruno Haible  <bruno@clisp.org>
50679
50680         * modules/floorf-tests: New file.
50681         * tests/test-floorf.c: New file.
50682
50683         * modules/floorf: New file.
50684         * lib/floor.c: New file.
50685         * lib/floorf.c: New file.
50686         * m4/floorf.m4: New file.
50687         * lib/math.in.h (floorf): New declaration.
50688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50689         HAVE_DECL_FLOORF.
50690         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50691         HAVE_DECL_FLOORF.
50692         * doc/functions/floorf.texi: Mention the 'floorf' module.
50693
50694 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50695             Bruno Haible  <bruno@clisp.org>
50696
50697         Advertise for the Git server instead of the CVS server.
50698         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50699         repository instead of the CVS one.
50700         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50701         about all VCS systems generically.
50702         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50703
50704 2007-10-04  Bruno Haible  <bruno@clisp.org>
50705
50706         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50707         means.
50708         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50709
50710 2007-10-04  Bruno Haible  <bruno@clisp.org>
50711
50712         * modules/truncl-tests: New file.
50713         * tests/test-truncl.c: New file.
50714
50715         * modules/truncl: New file.
50716         * lib/truncl.c: New file.
50717         * m4/truncl.m4: New file.
50718         * lib/math.in.h (truncl): New declaration.
50719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50720         HAVE_DECL_TRUNCL.
50721         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50722         HAVE_DECL_TRUNCL.
50723         * doc/functions/truncl.texi: Mention the 'truncl' module.
50724
50725 2007-10-04  Bruno Haible  <bruno@clisp.org>
50726
50727         * modules/truncf-tests: New file.
50728         * tests/test-truncf.c: New file.
50729
50730         * modules/truncf: New file.
50731         * lib/trunc.c: Make paramerizable through USE_* macros.
50732         * lib/truncf.c: New file.
50733         * m4/truncf.m4: New file.
50734         * lib/math.in.h (truncf): New declaration.
50735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50736         HAVE_DECL_TRUNCF.
50737         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50738         HAVE_DECL_TRUNCF.
50739         * doc/functions/truncf.texi: Mention the 'truncf' module.
50740
50741 2007-10-03  Bruno Haible  <bruno@clisp.org>
50742
50743         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50744         augmentation also for tests modules.
50745         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50746         * modules/atexit-tests (Makefile.am): Likewise.
50747         * modules/binary-io-tests (Makefile.am): Likewise.
50748         * modules/c-strcase-tests (Makefile.am): Likewise.
50749         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50750         * modules/canonicalize-tests (Makefile.am): Likewise.
50751         * modules/closein-tests (Makefile.am): Likewise.
50752         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50753         * modules/freadahead-tests (Makefile.am): Likewise.
50754         * modules/fseek-tests (Makefile.am): Likewise.
50755         * modules/fseeko-tests (Makefile.am): Likewise.
50756         * modules/ftell-tests (Makefile.am): Likewise.
50757         * modules/ftello-tests (Makefile.am): Likewise.
50758         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50759         * modules/isnanl-tests (Makefile.am): Likewise.
50760         * modules/lseek-tests (Makefile.am): Likewise.
50761         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50762         * modules/mbscasestr-tests (Makefile.am): Likewise.
50763         * modules/mbschr-tests (Makefile.am): Likewise.
50764         * modules/mbscspn-tests (Makefile.am): Likewise.
50765         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50766         * modules/mbspbrk-tests (Makefile.am): Likewise.
50767         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50768         * modules/mbsrchr-tests (Makefile.am): Likewise.
50769         * modules/mbsspn-tests (Makefile.am): Likewise.
50770         * modules/mbsstr-tests (Makefile.am): Likewise.
50771         * modules/printf-posix-tests (Makefile.am): Likewise.
50772         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50773         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50774         * modules/tsearch-tests (Makefile.am): Likewise.
50775         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50776         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50777         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50778         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50779         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50780         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50781         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50782         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50783         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50784         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50785         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50786         * modules/xstrtol-tests (Makefile.am): Likewise.
50787         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50788         * modules/yesno-tests (Makefile.am): Likewise.
50789
50790 2007-10-03  Bruno Haible  <bruno@clisp.org>
50791
50792         * modules/trunc-tests: New file.
50793         * tests/test-trunc.c: New file.
50794
50795         * modules/trunc: New file.
50796         * lib/trunc.c: New file.
50797         * m4/trunc.m4: New file.
50798         * lib/math.in.h (trunc): New declaration.
50799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50800         HAVE_DECL_TRUNC.
50801         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50802         HAVE_DECL_TRUNC.
50803         * doc/functions/trunc.texi: Mention the 'trunc' module.
50804
50805 2007-10-03  Bruno Haible  <bruno@clisp.org>
50806
50807         * tests/test-fpending.c: New file, mostly copied
50808         from coreutils/lib/t-fpending.c.
50809         * modules/fpending-tests: New file.
50810
50811 2007-10-03  Bruno Haible  <bruno@clisp.org>
50812
50813         Port the stdio extensions to QNX (untested).
50814         * lib/fseterr.c (fseterr): Add support for QNX.
50815         * lib/fbufmode.c (fbufmode): Likewise.
50816         * lib/freadable.c (freadable): Likewise.
50817         * lib/fwritable.c (fwritable): Likewise.
50818         * lib/freading.c (freading): Likewise.
50819         * lib/fwriting.c (fwriting): Likewise.
50820         * lib/freadahead.c (freadahed): Likewise.
50821         * lib/fpurge.c (fpurge): Likewise.
50822         * lib/fseeko.c (rpl_fseeko): Likewise.
50823
50824 2007-10-03  Bruno Haible  <bruno@clisp.org>
50825             Jim Meyering  <jim@meyering.net>
50826             Eric Blake  <ebb9@byu.net>
50827
50828         * doc/relocatable.texi: Use @command instead of @program.
50829
50830 2007-10-02  Jim Meyering  <jim@meyering.net>
50831
50832         Perform one more "_.h" -> ".in.h" substitution.
50833         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50834         instead of unistd_.h here, too.
50835
50836 2007-10-01  Bruno Haible  <bruno@clisp.org>
50837
50838         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50839         Needed for the alloca-opt module.
50840
50841 2007-09-30  Bruno Haible  <bruno@clisp.org>
50842
50843         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50844         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50845         alloca_.h.
50846         * lib/argz.in.h: Renamed from lib/argz_.h.
50847         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50848         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50849         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50850         byteswap_.h.
50851         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50852         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50853         dirent_.h.
50854         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50855         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50856         fcntl_.h.
50857         * lib/float.in.h: Renamed from lib/float_.h.
50858         * modules/float (Files, Makefile.am): Use float.in.h instead of
50859         float_.h.
50860         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50861         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50862         fnmatch_.h.
50863         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50864         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50865         getopt_.h.
50866         * lib/glob.in.h: Renamed from lib/glob_.h.
50867         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50868         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50869         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50870         iconv_.h.
50871         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50872         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50873         inttypes_.h.
50874         * lib/locale.in.h: Renamed from lib/locale_.h.
50875         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50876         locale_.h.
50877         * lib/math.in.h: Renamed from lib/math_.h.
50878         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50879         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50880         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50881         of netinet_in_.h. Add dependency.
50882         * lib/poll.in.h: Renamed from lib/poll_.h.
50883         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50884         * lib/search.in.h: Renamed from lib/search_.h.
50885         * modules/search (Files, Makefile.am): Use search.in.h instead of
50886         search_.h.
50887         * lib/signal.in.h: Renamed from lib/signal_.h.
50888         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50889         _signal.h.
50890         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50891         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50892         stdbool_.h.
50893         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50894         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50895         stdint_.h.
50896         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50897         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50898         stdio_.h.
50899         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50900         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50901         stdlib_.h.
50902         * lib/string.in.h: Renamed from lib/string_.h.
50903         * modules/string (Files, Makefile.am): Use string.in.h instead of
50904         string_.h.
50905         * doc/gnulib-tool.texi (Initial import): Update.
50906         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50907         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50908         of sys_select_.h. Add dependency.
50909         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50910         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50911         of sys_socket_.h.
50912         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50913         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50914         sys_stat_.h.
50915         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50916         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50917         sys_time_.h.
50918         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50919         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50920         sysexits_.h.
50921         * lib/time.in.h: Renamed from lib/time_.h.
50922         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50923         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50924         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50925         unistd_.h.
50926         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50927         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50928         wchar_.h.
50929         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50930         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50931         wctype_.h.
50932         * build-aux/bootstrap (slurp): Update.
50933         * lib/.cppi-disable: Update.
50934
50935 2007-09-30  Bruno Haible  <bruno@clisp.org>
50936
50937         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50938         Needed on BeOS.
50939
50940 2007-09-30  Bruno Haible  <bruno@clisp.org>
50941
50942         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50943
50944 2007-09-29  Bruno Haible  <bruno@clisp.org>
50945
50946         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50947
50948 2007-09-29  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50951         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50952         * build-aux/install-reloc: Compile also areadlink.c.
50953         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50954
50955 2007-09-29  Bruno Haible  <bruno@clisp.org>
50956
50957         * gnulib-tool (func_emit_initmacro_done): Indentation.
50958
50959 2007-09-29  Bruno Haible  <bruno@clisp.org>
50960
50961         * README: Add CVS checkout update instructions.
50962         Info from Bob Proulx <bob@proulx.com>.
50963
50964 2007-09-28  Eric Blake  <ebb9@byu.net>
50965
50966         Provide move-if-change.
50967         * build-aux/move-if-change: New file, based on best practice
50968         rather than any canonical upstream location.
50969
50970 2007-09-28  Jim Meyering  <jim@meyering.net>
50971
50972         Fix canonicalize loop-detection corner case.
50973         Do not attempt to stat the symlink values stored via seen_triple.
50974         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50975         on linux-2.6.18, (but not 2.6.22).
50976         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50977         triple_compare.  The former compares dev,ino,filename, while the latter
50978         would actually stat dirname(filename) when dev and ino were equal.
50979         * lib/hash-triple.c: Install <string.h>.
50980         (STREQ): Define.
50981         (triple_compare_ino_str): New function.
50982         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50983
50984 2007-09-28  Eric Blake  <ebb9@byu.net>
50985
50986         Enforce that AC_REPLACE_FUNCS files exist.
50987         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50988         override check for typos.
50989
50990         Fix test-closein on Solaris 10.
50991         * tests/test-closein.c (main): Don't assume stdin can be inherited
50992         closed on all systems.
50993         * tests/test-closein.sh: Likewise.
50994         Reported by Piotr Tarnowski.
50995
50996 2007-09-28  Jim Meyering  <jim@meyering.net>
50997
50998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50999
51000 2007-09-27  Jim Meyering  <jim@meyering.net>
51001
51002         canonicalize: Avoid a false-positive cycle failure.
51003         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51004         Sort.  Remove cycle-check.
51005         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51006         not cycle-check.h.
51007         (seen_triple): New function.
51008         (canonicalize_filename_mode): Use it instead of cycle-check.
51009         * tests/test-canonicalize.c: Add a test for this bug.
51010         * tests/test-canonicalize.sh: Set up and run the test.
51011
51012         New module, file-set, from coreutils.
51013         * modules/file-set: Define it.
51014         * lib/file-set.c, lib/file-set.h: Implement.
51015
51016         New module, hash-triple, from coreutils.
51017         * modules/hash-triple: Define it.
51018         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51019
51020 2007-09-25  Eric Blake  <ebb9@byu.net>
51021
51022         Fix strerror on Interix.
51023         * lib/string_.h (strerror): Declare replacement.
51024         * doc/functions/strerror.texi (strerror): Document the Interix
51025         shortcoming.
51026         * modules/string (Makefile.am): Support new hooks.
51027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51028         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51029         gl_FUNC_STRERROR_SEPARATE.
51030         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51031         * lib/strerror.c (rpl_strerror): Provide replacement.
51032         * modules/strerror (Depends-on): Add string.
51033         (configure.ac): Detect use of module.
51034         * tests/test-strerror.c: New file.
51035         * modules/strerror-tests: New test module.
51036         * modules/argp (Depends-on): Add strerror.
51037         * modules/error (Depends-on): Likewise.
51038         Reported by Martin Koeppe.
51039
51040 2007-09-24  Bruno Haible  <bruno@clisp.org>
51041
51042         * README: Update git instructions.
51043
51044 2007-09-24  Eric Blake  <ebb9@byu.net>
51045
51046         Revert fpending breakage from 2007-09-08.
51047         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51048         __fpending.c.
51049
51050 2007-09-24  Jim Meyering  <jim@meyering.net>
51051
51052         filenamecat.c: Add a test.
51053         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51054         showing how the function works when DIR is the empty string.
51055
51056 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51057
51058         * tests/test-canonicalize.sh: Turn on executable bit.
51059
51060 2007-09-19  Eric Blake  <ebb9@byu.net>
51061
51062         * README: Update CVS instructions.
51063
51064 2007-09-18  Bruno Haible  <bruno@clisp.org>
51065
51066         * modules/areadlink: New file.
51067         * lib/areadlink.h (areadlink): New declaration.
51068         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51069
51070 2007-09-17  Jim Meyering  <jim@meyering.net>
51071
51072         * lib/savewd.c (ESTALE) [!defined]: Define.
51073         Reported to be required on Interix by Martin Koeppe.
51074
51075 2007-09-17  Bruno Haible  <bruno@clisp.org>
51076
51077         * gnulib-tool (func_version): Use $version.
51078
51079 2007-09-16  Bruno Haible  <bruno@clisp.org>
51080
51081         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51082         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51083         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51084         Reported by Greg Schafer <gschafer@zip.com.au>.
51085
51086 2007-09-15  Bruno Haible  <bruno@clisp.org>
51087
51088         * gnulib-tool (sed): Try a little harder to make bash understand the
51089         alias.
51090         Reported by Bruce Korb <bruce.korb@gmail.com>.
51091
51092 2007-09-13  Eric Blake  <ebb9@byu.net>
51093
51094         * ChangeLog: Remove conflict markers.
51095
51096 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51097
51098         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51099         Reported by Bruno Haible <bruno@clisp.org>.
51100
51101 2007-09-12  Bruno Haible  <bruno@clisp.org>
51102
51103         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51104         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51105         is not defined.
51106
51107 2007-09-12  Eric Blake  <ebb9@byu.net>
51108
51109         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51110         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51111         Autoconf definition.
51112         * modules/euidaccess (Depends-on): Add extensions, for
51113         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51114         * modules/fnmatch (Depends-on): Likewise.
51115         * modules/getaddrinfo (Depends-on): Likewise.
51116         * modules/getdelim (Depends-on): Likewise.
51117         * modules/getline (Depends-on): Likewise.
51118         * modules/getsubopt (Depends-on): Likewise.
51119         * modules/gettext (Depends-on): Likewise.
51120         * modules/group-member (Depends-on): Likewise.
51121         * modules/mbchar (Depends-on): Likewise.
51122         * modules/memmem (Depends-on): Likewise.
51123         * modules/mempcpy (Depends-on): Likewise.
51124         * modules/memrchr (Depends-on): Likewise.
51125         * modules/pagealign_alloc (Depends-on): Likewise.
51126         * modules/readutmp (Depends-on): Likewise.
51127         * modules/stpcpy (Depends-on): Likewise.
51128         * modules/stpncpy (Depends-on): Likewise.
51129         * modules/strchrnul (Depends-on): Likewise.
51130         * modules/strndup (Depends-on): Likewise.
51131         * modules/strsep (Depends-on): Likewise.
51132         * modules/strverscmp (Depends-on): Likewise.
51133         * modules/vasprintf (Depends-on): Likewise.
51134         * modules/wcwidth (Depends-on): Likewise.
51135         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51136         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51137         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51138         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51139         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51140         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51141         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51142         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51143         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51144         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51146         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51147         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51148         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51149         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51150         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51151         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51152         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51153         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51156         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51157         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51158         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51159         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51161         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51162         so that lock.m4 can be used in gettext without extensions module.
51163
51164 2007-09-11  Bruno Haible  <bruno@clisp.org>
51165
51166         * m4/isc-posix.m4: Remove file.
51167         Suggested by Eric Blake.
51168
51169 2007-09-11  Eric Blake  <ebb9@byu.net>
51170
51171         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51172
51173 2007-09-10  Bruno Haible  <bruno@clisp.org>
51174
51175         * posix-modules: Fix typo in error message.
51176         Reported by Matt <mkraai@beckman.com>.
51177
51178 2007-09-09  Bruno Haible  <bruno@clisp.org>
51179
51180         * doc/functions/getdelim.texi: Update list of platforms lacking the
51181         function.
51182         * doc/functions/getline.texi: Likewise.
51183
51184 2007-09-09  Jim Meyering  <jim@meyering.net>
51185
51186         * lib/hash.c (hash_initialize): Detect calloc failure.
51187         Reported by Bruno Haible.
51188
51189 2007-09-09  Bruno Haible  <bruno@clisp.org>
51190
51191         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51192         malloc or realloc fails.
51193
51194 2007-09-09  Bruno Haible  <bruno@clisp.org>
51195
51196         * modules/getcwd (Depends-on): Add malloc-posix.
51197         * modules/glob (Depends-on): Likewise.
51198         * modules/putenv (Depends-on): Likewise.
51199         * modules/strdup (Depends-on): Likewise.
51200         * modules/getdelim (Depends-on): Add realloc-posix.
51201         * modules/read-file (Depends-on): Likewise.
51202
51203 2007-09-09  Bruno Haible  <bruno@clisp.org>
51204
51205         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51206         (gl_FUNC_MALLOC_POSIX): Require it.
51207         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51208         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51209         * modules/realloc (Files): Add m4/malloc.m4.
51210         * modules/calloc (Files): Likewise.
51211
51212 2007-09-09  Bruno Haible  <bruno@clisp.org>
51213
51214         * modules/malloc-posix: New file.
51215         * modules/malloc (Depends-on): Add malloc-posix.
51216         * lib/malloc.c: Include errno.h.
51217         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51218         and a POSIX-compatible malloc into a single function. Set ENOMEM
51219         when returning NULL.
51220         * m4/malloc.m4: New file.
51221         * doc/functions/malloc.texi: Mention the malloc-posix module.
51222         * lib/stdlib_.h (malloc): New declaration.
51223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51224         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51225         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51226         and HAVE_MALLOC_POSIX.
51227
51228 2007-09-09  Bruno Haible  <bruno@clisp.org>
51229
51230         * modules/realloc-posix: New file.
51231         * modules/realloc (Depends-on): Add realloc-posix.
51232         * lib/realloc.c: Include errno.h.
51233         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51234         and a POSIX-compatible realloc into a single function. Set ENOMEM
51235         when returning NULL.
51236         * m4/realloc.m4: New file.
51237         * doc/functions/realloc.texi: Mention the realloc-posix module.
51238         * lib/stdlib_.h (realloc): New declaration.
51239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51240         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51241         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51242         and HAVE_REALLOC_POSIX.
51243
51244 2007-09-09  Bruno Haible  <bruno@clisp.org>
51245
51246         * modules/calloc-posix: New file.
51247         * modules/calloc (Depends-on): Add calloc-posix.
51248         * lib/calloc.c: Include errno.h.
51249         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51250         and a POSIX-compatible calloc into a single function. Set ENOMEM
51251         when returning NULL.
51252         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51253         * doc/functions/calloc.texi: Mention the calloc-posix module.
51254         * lib/stdlib_.h (calloc): New declaration.
51255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51256         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51257         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51258         and HAVE_CALLOC_POSIX.
51259
51260 2007-09-09  Bruno Haible  <bruno@clisp.org>
51261
51262         Allow for modules to show an arbitrary notice.
51263         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51264         * gnulib-tool: New option --extract-notice.
51265         (func_usage): Document it.
51266         (sed_extract_prog): Update.
51267         (func_get_notice): New function.
51268         (func_modules_notice): New function.
51269         (func_import, func_create_testdir): Invoke it.
51270         Suggested by Jim Meyering.
51271
51272 2007-09-09  Bruno Haible  <bruno@clisp.org>
51273
51274         * gnulib-tool: New options --verbose, --quiet.
51275         (func_usage): Document them.
51276         (verbose): New variable.
51277         (func_execute_command): New function.
51278         (func_import): Don't show the module list and the file list if
51279         $verbose < 0.
51280         (func_create_testdir): Likewise. Use func_execute_command.
51281         (func_create_megatestdir): Use func_execute_command.
51282
51283 2007-09-08  Bruno Haible  <bruno@clisp.org>
51284
51285         * gnulib-tool (func_import): Prefer rsync over wget when available,
51286         for fetching the PO files.
51287
51288 2007-09-08  Bruno Haible  <bruno@clisp.org>
51289
51290         * posix-modules: New file. Portions copied from gnulib-tool.
51291         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51292
51293 2007-09-08  Jim Meyering  <jim@meyering.net>
51294
51295         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51296         * lib/fpending.h: Rename from __fpending.h.
51297         * lib/fpending.c: Rename from __fpending.c.
51298         Include "fpending.h", not "__fpending.h".
51299         * lib/__fpending.h, lib/__fpending.c: Remove files.
51300         * modules/fpending (Files): Reflect new file names.
51301         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51302
51303 2007-09-08  Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/inttypes-h.m4: Remove stub file.
51306
51307 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51308
51309         * doc/headers/stdint.texi: Discuss #include_next issue.
51310
51311 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51314
51315 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51316
51317         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51318         in variable name.
51319
51320 2007-09-03  Jim Meyering  <jim@meyering.net>
51321
51322         New module: git-version-gen.
51323         * modules/git-version-gen: New file.
51324
51325         Import changes from coreutils for bootstrap script.
51326
51327         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51328
51329         bootstrap: uses rsync to download the .po files
51330         * build-aux/bootstrap (po_download_command_format): New global.
51331         (download_po_files): Use rsync.
51332         (update_po_files): Don't remove .po files after download,
51333         so future rsync runs can take advantage of the copies.
51334
51335         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51336
51337         Solve the unnecessary-.po-file-regeneration problem once and for all.
51338         * build-aux/bootstrap (download_po_files): New function, renamed from
51339         get_translations.  Now, downloads, but doesn't update LINGUAS.
51340         (update_po_files): New function.
51341
51342         bootstrap: Ignore more.
51343         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51344         uniwidth to e.g., lib/.gitignore.
51345         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51346
51347         * build-aux/bootstrap: New setting: vc_ignore.
51348         (insert_sorted_if_absent): Create $file if absent.
51349         Adapt to new, possibly empty, list: $vc_ignore.
51350
51351         bootstrap: generate more ignorable names
51352         * build-aux/bootstrap (slurp): When generating ignorable names,
51353         also map .sin to .sed, .gperf to .c, and .y to .c.
51354
51355 2007-09-03  Jim Meyering  <jim@meyering.net>
51356
51357         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51358         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51359
51360 2007-09-02  Bruno Haible  <bruno@clisp.org>
51361
51362         Fix mis-recognition of 'mcs' on QNX 6.
51363         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51364         output contains the string "Mono".
51365         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51366         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51367
51368 2007-09-01  Bruno Haible  <bruno@clisp.org>
51369
51370         Fix collision between uniwidth/* and linebreak modules.
51371         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51372         u32_width): Remove declarations.
51373         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51374         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51375         streq3, streq2, streq1, streq0): Remove functions.
51376         (STREQ): Remove macro.
51377         (is_cjk_encoding): Remove function.
51378         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51379         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51380         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51381         * NEWS: Document the change.
51382
51383 2007-09-01  Bruno Haible  <bruno@clisp.org>
51384
51385         * lib/streq.h: Add double-inclusion guard.
51386
51387 2007-09-01  Karl Berry  <karl@gnu.org>
51388
51389         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51390
51391 2007-08-28  Jim Meyering  <jim@meyering.net>
51392
51393         Rename mreadlink_with_size to areadlink_with_size.
51394         * NEWS: Document the change.
51395         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51396         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51397         * lib/mreadlink.h: Rename this to...
51398         * lib/areadlink.h: ...this.
51399         * modules/mreadlink-with-size: Rename this to...
51400         * modules/areadlink-with-size: ...this.
51401         * lib/canonicalize.c: Reflect the renaming.
51402         * modules/canonicalize: Likewise.
51403
51404 2007-08-26  Bruno Haible  <bruno@clisp.org>
51405
51406         * gnulib-tool (func_import): When deciding which files to remove,
51407         consider also dangling symbolic links.
51408         Reported by Eric Blake.
51409
51410 2007-08-26  Bruno Haible  <bruno@clisp.org>
51411
51412         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51413
51414 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51415
51416         * lib/readline.c: Don't include getline.h, the prototype is now
51417         found in stdio.h.
51418
51419 2007-08-23  Jim Meyering  <jim@meyering.net>
51420
51421         Getdelim touchup.
51422         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51423         around the funlockfile call, since funlockfile never sets errno.
51424         Don't set errno upon failed realloc.
51425
51426 2007-08-22  Eric Blake  <ebb9@byu.net>
51427
51428         Getline touchups.
51429         * lib/getdelim.c (getdelim): Revert regression that required *n to
51430         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51432         getdelim, rather than whether implementation is missing.
51433         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51434         * lib/stdio_.h (getline): Also declare if replacement is
51435         required.
51436         * doc/functions/getdelim.texi: New file.
51437         * doc/functions/getline.texi: Likewise.
51438         * doc/gnulib.texi (Function Substitutes): Add new files.
51439         Reported by Bruno Haible.
51440
51441 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51442
51443         * users.txt: Add Guile.
51444
51445 2007-08-22  Eric Blake  <ebb9@byu.net>
51446
51447         * tests/test-getdelim.c (main): Use remove, not unlink.
51448         * tests/test-getline.c (main): Likewise.
51449
51450         Move getline and getdelim into stdio.h, per POSIX 200x.
51451         * modules/getline (Files): Remove getline.h.
51452         (Depends-on): Add stdio.
51453         (configure.ac): Add module indicator.
51454         * modules/getdelim (Files): Remove getdelim.h.
51455         (Depends-on): Add stdio.
51456         (configure.ac): Add module indicator.
51457         * modules/stdio (Makefile.am): Work with new indicators.
51458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51459         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51460         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51461         * lib/getdelim.h: Delete.
51462         * lib/getline.h: Delete.
51463         * lib/stdio_.h (getdelim, getline): Declare.
51464         * modules/getdelim-tests: New module.
51465         * modules/getline-tests: Likewise.
51466         * tests/test-getdelim.c: New file.
51467         * tests/test-getline.c: Likewise.
51468         * NEWS: Document the change.
51469         * lib/getline.c: Update choice of header.
51470         * lib/csharpcomp.c: Likewise.
51471         * lib/getpass.c: Likewise.
51472         * lib/javacomp.c: Likewise.
51473         * lib/javaversion.c: Likewise.
51474         * lib/yesno.c: Likewise.
51475         * lib/getdelim.c: Likewise.
51476         (getdelim): Set errno on failure, and avoid memory leak.
51477
51478 2007-08-19  Bruno Haible  <bruno@clisp.org>
51479
51480         * modules/closein (Depends-on): Add freadahead.
51481         * lib/closein.c: Include freadahead.h.
51482         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51483         is zero.
51484
51485 2007-08-19  Bruno Haible  <bruno@clisp.org>
51486
51487         * modules/freadahead-tests: New file.
51488         * tests/test-freadahead.sh: New file.
51489         * tests/test-freadahead.c: New file.
51490
51491         * modules/freadahead: New file.
51492         * lib/freadahead.h: New file.
51493         * lib/freadahead.c: New file.
51494         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51495         fbufmode, fpurge, freadable, fwritable.
51496
51497 2007-08-19  Eric Blake  <ebb9@byu.net>
51498
51499         Test yesno in combination with closein.
51500         * lib/yesno.c (yesno): Document use of stdin.
51501         * modules/yesno-tests (Files): New module.
51502         * tests/test-yesno.c (main): New file.
51503         * tests/test-yesno.sh: Likewise.
51504
51505 2007-08-19  Bruno Haible  <bruno@clisp.org>
51506
51507         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51508         * lib/fseeko.c (rpl_fseeko): Likewise.
51509         * lib/fseterr.c (fseterr): Likewise.
51510
51511 2007-08-19  Bruno Haible  <bruno@clisp.org>
51512
51513         * tests/test-lseek.c (main): Disable a test for BeOS.
51514         * doc/functions/lseek.texi: Document the BeOS bug.
51515
51516 2007-08-19  Bruno Haible  <bruno@clisp.org>
51517             Eric Blake  <ebb9@byu.net>
51518
51519         * lib/lseek.c: Include <sys/stat.h>.
51520         (rpl_lseek): Add workaround code also for Unix platforms.
51521         Needed for BeOS.
51522         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51523         * doc/functions/lseek.texi: Document BeOS definiency.
51524
51525 2007-08-18  Bruno Haible  <bruno@clisp.org>
51526
51527         * modules/fstrcmp-tests: New file.
51528         * tests/test-fstrcmp.c: New file.
51529
51530 2007-08-18  Bruno Haible  <bruno@clisp.org>
51531
51532         * modules/fstrcmp: New file, from GNU gettext with modifications.
51533         * lib/fstrcmp.h: New file, from GNU gettext.
51534         * lib/fstrcmp.c: New file, from GNU gettext.
51535         * MODULES.html.sh (String handling): Add fstrcmp.
51536
51537 2007-08-18  Bruno Haible  <bruno@clisp.org>
51538
51539         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51540         'bool'.
51541         (diag, compareseq): Remove const from the ctxt argument.
51542         (USE_HEURISTIC): Undefine at the end.
51543
51544 2007-08-18  Jim Meyering  <jim@meyering.net>
51545
51546         New file: lib/idcache.h
51547         * NEWS: Mention the addition.
51548         * modules/idcache (Files): Add lib/idcache.h
51549         * lib/idcache.c: Include "idcache.h".
51550         Don't include <sys/types.h>.
51551         Add a FIXME comment.
51552         Move file-scoped "static" declarations to the top.
51553         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51554
51555 2007-08-17  Bruno Haible  <bruno@clisp.org>
51556         and Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         * MODULES.html.sh: Add diffseq.
51559         * modules/diffseq: New file.
51560         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51561         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51562
51563 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51564
51565         Import changes from coreutils for bootstrap script.
51566
51567         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51568
51569         * build-aux/bootstrap (slurp): Work even in environments where
51570         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51571         current code does not slurp files whose names start with ".", and
51572         this looks like it might be a troublesome area.
51573
51574         2007-07-11  Jim Meyering  <jim@meyering.net>
51575
51576         If there's a GPL vN copyright comment, require that N == 3.
51577
51578         2007-07-08  Jim Meyering  <jim@meyering.net>
51579
51580         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51581         * build-aux/bootstrap (mam_template): Move definition out of loop.
51582
51583         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51584
51585         * build-aux/bootstrap (symlink_to_dir): Rename function from
51586         symlink_to_gnulib.  Add a directory parameter.  Update all
51587         callers.
51588         (cp_mark_as_generated): Also check for -- and link to -- files in
51589         gl/.
51590
51591         2007-07-08  Jim Meyering  <jim@meyering.net>
51592
51593         Adapt to deeper hierarchy in gnulib.
51594         * build-aux/bootstrap (symlink_to_dir): If the destination
51595         directory doesn't exist, create it. This is required at least for
51596         "lib/uniwidth/cjk.h".
51597
51598         2007-05-15  Jim Meyering  <jim@meyering.net>
51599
51600         * build-aux/bootstrap: Now that generated Makefile.am files
51601         are no longer under version control, they must be created at
51602         bootstrap time.
51603
51604 2007-08-14  Ben Pfaff  <blp@gnu.org>
51605
51606         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51607
51608 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51609
51610         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51611         given the changes below.
51612         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51613         even on hosts that have padding bits beyond the supported 64.
51614
51615 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51616
51617         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51618         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51619         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51620         depends on it.
51621         (xstrtol_error): Remove.
51622         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51623         but with a different signature.
51624         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51625         * lib/xstrtol-error.c: Include exitfail.h.
51626         (xstrtol_fatal): New function, with a different signature from the
51627         old xstrtol_error, so that the caller need not worry about passing
51628         in an exit status, or about storage management of the option argument.
51629         (xstrtol_error): Now a static function.  Redo signature to
51630         implement xstrtol_fatal.  Output the correct number of hyphens in
51631         front of the option so that the caller need not worry about
51632         storage management.
51633         (N_): New macro.
51634         (_): Remove; not used now.
51635         * modules/xstrtol: Depend on getopt.
51636         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51637         of old STRTOL_FATAL_ERROR macro.
51638         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51639         of test program.
51640         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51641         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51642
51643 2007-08-08  Eric Blake  <ebb9@byu.net>
51644
51645         * lib/xstrtol-error.c: Add missing include.
51646
51647         Move xstrtol messages into gnulib domain, when --pobase is used.
51648         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51649         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51650         * modules/xstrtol (Files): Distribute new file.
51651         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51652         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51653         * tests/test-xstrtol.c: ...into new file.
51654         * tests/test-xstrtoul.c: Also test xstrtoul.
51655         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51656         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51657         * tests/test-xstrtol.sh: Drive the tests.
51658         * tests/test-xstrtoimax.sh: Likewise.
51659         * tests/test-xstrtoumax.sh: Likewise.
51660         * modules/xstrtol-tests: New module.
51661         * modules/xstrtoimax-tests: Likewise.
51662         * modules/xstrtoumax-tests: Likewise.
51663
51664 2007-08-08  Jim Meyering  <jim@meyering.net>
51665
51666         New function: mfile_name_concat.
51667         * lib/filenamecat.c (mfile_name_concat): New function, just like
51668         file_name_concat, but return NULL upon failure rather than exiting
51669         with a diagnostic.
51670         * lib/filenamecat.h: Declare it.
51671
51672 2007-08-07  Bruno Haible  <bruno@clisp.org>
51673
51674         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51675         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51676         warning from gcc.
51677         Reported by Eric Blake.
51678
51679 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51680
51681         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51682         * modules/crypto/arcfour (License): Likewise.
51683         * modules/crypto/des-tests (License): Likewise.
51684         * modules/crypto/gc-arctwo-tests (License): Likewise.
51685         * modules/crypto/gc-des-tests (License): Likewise.
51686         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51687         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51688         * modules/crypto/gc-md2-tests (License): Likewise.
51689         * modules/crypto/gc-md4-tests (License): Likewise.
51690         * modules/crypto/gc-md5-tests (License): Likewise.
51691         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51692         * modules/crypto/gc-rijndael-tests (License): Likewise.
51693         * modules/crypto/gc-sha1-tests (License): Likewise.
51694         * modules/crypto/gc-tests (License): Likewise.
51695         * modules/crypto/hmac-md5 (License): Likewise.
51696         * modules/crypto/hmac-sha1 (License): Likewise.
51697         * modules/crypto/md2-tests (License): Likewise.
51698         * modules/crypto/md4-tests (License): Likewise.
51699         * modules/crypto/md5 (License): Likewise.
51700         * modules/crypto/rijndael (License): Likewise.
51701         * modules/crypto/sha1 (License): Likewise.
51702         * modules/memxor (License): Likewise.
51703
51704 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51705         and Bruno Haible  <bruno@clisp.org>
51706
51707         * NEWS: Describe interface changes to human, xstrtol.
51708         * lib/human.h: Include <xstrtol.h>.
51709         (human_options): Return enum strtol_error, not int.  Remove
51710         bool arg; take int * instead.
51711         * lib/human.c: Don't include "gettext.h".
51712         (_): Remove; no longer used.
51713         Don't include <xstrtol.h>, since human.h does it.
51714         (human_options): Adjust to abovementioned interface changes.
51715         Do not report error to stderr; that's now the caller's
51716         responsibility.
51717         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51718         interface change.
51719         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51720         Str, Argument_type_string.  All uses changed.  Put " argument"
51721         in diagnostics to make them clearer.  Change wording of suffix
51722         message for clarity.
51723         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51724         Argument_type_string.
51725         (STRTOL_FATAL_WARN): Remove; no longer used.
51726         * modules/human (Depends-on): Remove gettext-h.
51727
51728 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51729
51730         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51731
51732 2007-07-31  Bruno Haible  <bruno@clisp.org>
51733
51734         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51735         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51736         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51737
51738 2007-07-31  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51741         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51742
51743 2007-07-30  Bruno Haible  <bruno@clisp.org>
51744
51745         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51746         * modules/c-ctype (License): Likewise.
51747         * modules/c-strcase (License): Likewise.
51748         * modules/check-version (License): Likewise.
51749         * modules/iconv (License): Likewise.
51750         * modules/iconv_open (License): Likewise.
51751         * modules/read-file (License): Likewise.
51752         * modules/striconv (License): Likewise.
51753         * modules/strverscmp (License): Likewise.
51754         * modules/vasprintf (License): Likewise.
51755         * modules/crypto/des (License): Likewise.
51756         * modules/crypto/gc (License): Likewise.
51757         * modules/crypto/gc-arcfour (License): Likewise.
51758         * modules/crypto/gc-arctwo (License): Likewise.
51759         * modules/crypto/gc-des (License): Likewise.
51760         * modules/crypto/gc-hmac-md5 (License): Likewise.
51761         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51762         * modules/crypto/gc-md2 (License): Likewise.
51763         * modules/crypto/gc-md4 (License): Likewise.
51764         * modules/crypto/gc-md5 (License): Likewise.
51765         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51766         * modules/crypto/gc-random (License): Likewise.
51767         * modules/crypto/gc-rijndael (License): Likewise.
51768         * modules/crypto/gc-sha1 (License): Likewise.
51769         * modules/crypto/md2 (License): Likewise.
51770         * modules/crypto/md4 (License): Likewise.
51771
51772 2007-07-30  Jim Meyering  <jim@meyering.net>
51773
51774         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51775         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51776         it has valid stat data.  This bug would cause du not to count the
51777         sizes of inaccessible directories.
51778         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51779         in <http://bugzilla.redhat.com/250077>.
51780
51781 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51782             Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51785         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51786         #include_next, gives a diagnostic about it, but reports no error in
51787         the exit code.
51788         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51789
51790 2007-07-24  Ben Pfaff  <blp@gnu.org>
51791
51792         Improve name: "count-one-bits" is better than "popcount".
51793         * MODULES.html.sh: Update name.
51794         * lib/popcount.h: Renamed lib/count-one-bits.h.
51795         (popcount): Renamed count_one_bits.
51796         (popcountl): Renamed count_one_bits_l.
51797         (popcountll): Renamed count_one_bits_ll.
51798         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51799         * modules/popcount: Renamed module/count-one-bits.
51800         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51801         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51802
51803 2007-07-23  Ben Pfaff  <blp@gnu.org>
51804
51805         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51806         better code generation, and add U to large constants to avoid
51807         warnings, in non-GCC case.
51808         Suggested by Bruno Haible.
51809
51810 2007-07-23  Ben Pfaff  <blp@gnu.org>
51811
51812         * lib/popcount.h: Use verify_true instead of if...abort.
51813         * modules/popcount: Depend on verify module.
51814         Suggested by Jim Meyering.
51815
51816 2007-07-23  Bruno Haible  <bruno@clisp.org>
51817
51818         * gnulib-tool (func_import): Create a .cvsignore file also when the
51819         directory is not yet in CVS but the toplevel directory is. When
51820         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51821         Reported by Karl Berry.
51822
51823 2007-07-22  Ben Pfaff  <blp@gnu.org>
51824
51825         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51826         case.
51827         Suggested by Eric Blake.
51828
51829 2007-07-22  Ben Pfaff  <blp@gnu.org>
51830
51831         New module: popcount.
51832         * MODULES.html.sh: Add popcount.
51833         * modules/popcount: New file.
51834         * modules/popcount-tests: New file.
51835         * tests/test-popcount.c: New file.
51836         * lib/popcount.h: New file.
51837         * m4/popcount.m4: New file.
51838
51839 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         * build-aux/announce-gen: Update to GPLv3.
51842
51843         * build-aux/config.guess: Update from config.
51844
51845 2007-07-21  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51848         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51849
51850 2007-07-20  Jim Meyering  <jim@meyering.net>
51851
51852         * check-module: Diagnose a self-dependency.
51853
51854 2007-07-19  Bruno Haible  <bruno@clisp.org>
51855
51856         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51857         empty.
51858         Reported by Eric Blake.
51859
51860 2007-07-18  Bruno Haible  <bruno@clisp.org>
51861
51862         * gnulib-tool: New options --po-base, --po-domain.
51863         (func_usage): Document them.
51864         (pobase, po_domain): New variables.
51865         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51866         DEFAULT_TEXT_DOMAIN.
51867         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51868         (func_import): Consider pobase and po_domain. Create a po/ directory.
51869         (func_create_testdir): Set pobase and po_domain to empty.
51870         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51871         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51872
51873 2007-07-18  Bruno Haible  <bruno@clisp.org>
51874
51875         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51876         EXTRA_DIST augmentation for files in build-aux/.
51877
51878 2007-07-16  Bruno Haible  <bruno@clisp.org>
51879
51880         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51881         * modules/getdelim (License): Likewise.
51882
51883 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51884
51885         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51886         * modules/d-type (License): Likewise.
51887         * modules/extensions (License): Likewise.
51888         * modules/fnmatch (License): Likewise.
51889         * modules/fseeko (License): Likewise.
51890         * modules/getaddrinfo (License): Likewise.
51891         * modules/getline (License): Likewise.
51892         * modules/getlogin_r (License): Likewise.
51893         * modules/getpass (License): Likewise.
51894         * modules/gettimeofday (License): Likewise.
51895         * modules/glob (License): Likewise.
51896         * modules/inet_ntop (License): Likewise.
51897         * modules/malloc (License): Likewise.
51898         * modules/malloca (License): Likewise.
51899         * modules/memmem (License): Likewise.
51900         * modules/mempcpy (License): Likewise.
51901         * modules/memset (License): Likewise.
51902         * modules/minmax (License): Likewise.
51903         * modules/mktime (License): Likewise.
51904         * modules/netinet_in (License): Likewise.
51905         * modules/pathmax (License): Likewise.
51906         * modules/poll (License): Likewise.
51907         * modules/regex (License): Likewise.
51908         * modules/snprintf (License): Likewise.
51909         * modules/stdbool (License): Likewise.
51910         * modules/stdint (License): Likewise.
51911         * modules/stdio (License): Likewise.
51912         * modules/strcase (License): Likewise.
51913         * modules/strcasestr (License): Likewise.
51914         * modules/strdup (License): Likewise.
51915         * modules/string (License): Likewise.
51916         * modules/strndup (License): Likewise.
51917         * modules/strnlen (License): Likewise.
51918         * modules/strpbrk (License): Likewise.
51919         * modules/strptime (License): Likewise.
51920         * modules/strsep (License): Likewise.
51921         * modules/sys_select (License): Likewise.
51922         * modules/sys_socket (License): Likewise.
51923         * modules/sys_stat (License): Likewise.
51924         * modules/sys_time (License): Likewise.
51925         * modules/time (License): Likewise.
51926         * modules/time_r (License): Likewise.
51927         * modules/timegm (License): Likewise.
51928         * modules/unistd (License): Likewise.
51929         * modules/vsnprintf (License): Likewise.
51930         * modules/wctype (License): Likewise.
51931
51932 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51933
51934         * modules/argz (License): LGPLv2+.
51935
51936 2007-07-15  Karl Berry  <karl@gnu.org>
51937
51938         * doc/gnulib.texi: revise node structure per new fdl.texi.
51939
51940 2007-07-14  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51943         the output file.
51944         * lib/uniname/uninames.h: Regenerated.
51945
51946 2007-07-14  Karl Berry  <karl@gnu.org>
51947
51948         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51949         omitting sectioning and index commands.
51950
51951 2007-07-13  Bruno Haible  <bruno@clisp.org>
51952
51953         New gnulib-tool option --more-symlinks.
51954         * gnulib-tool (func_usage): Document --more-symlinks.
51955         (do_copyrights): New variable.
51956         Recognize option --more-symlinks.
51957         (func_import): Don't add a copyright notice transform to
51958         sed_transform_lib_file if do_copyrights is empty.
51959
51960 2007-07-13  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/vasnprintf.c (decimal_point_char): Define also if
51963         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51964         && !NEED_PRINTF_DIRECTIVE_A.
51965         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51966         Gary V. Vaughan <gary@gnu.org>.
51967
51968 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51969
51970         * lib/inttypes_.h: Undo previous change, since it was fixed
51971         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51972
51973 2007-07-13  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51976         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51977
51978 2007-07-13  Jim Meyering  <jim@meyering.net>
51979
51980         df: Don't fail for Tru64's "file-on-file mount".
51981         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51982         so we fall through and use statfs instead.  Details here:
51983         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51984         Reported by Albert Chin.
51985
51986 2007-07-13  Bruno Haible  <bruno@clisp.org>
51987
51988         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51989         * modules/configmake (License): Likewise.
51990         * modules/gettext (License): Likewise.
51991         * modules/gettext-h (License): Likewise.
51992         * modules/include_next (License): Likewise.
51993         * modules/link-warning (License): Likewise.
51994         * modules/localcharset (License): Likewise.
51995         * modules/localename (License): Likewise.
51996         * modules/lock (License): Likewise.
51997         * modules/relocatable-lib-lgpl (License): Likewise.
51998         * modules/size_max (License): Likewise.
51999         * modules/vasnprintf (License): Likewise.
52000         * modules/wchar (License): Likewise.
52001         * modules/xsize (License): Likewise.
52002
52003 2007-07-13  Bruno Haible  <bruno@clisp.org>
52004
52005         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52006         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52007
52008 2007-07-12  Bruno Haible  <bruno@clisp.org>
52009
52010         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52011         in the modules files.
52012
52013 2007-07-11  Karl Berry  <karl@gnu.org>
52014
52015         * MODULES.html.sh (func_module): use
52016          sed -e '\|^'"${includefile}"'$|d'
52017          instead of /.../d, to avoid errors on $includefile's containing /.
52018
52019 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52020
52021         * gnulib-tool (func_import): Avoid duplication of --avoid
52022         statements
52023         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52024         names to `_' in variable names.
52025
52026 2007-07-10  Eric Blake  <ebb9@byu.net>
52027
52028         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52029         * NEWS: Document this change.
52030
52031 2007-07-08  Bruno Haible  <bruno@clisp.org>
52032
52033         Update to Unicode 5.0.
52034         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52035         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52036         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52037         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52038         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52039         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52040         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52041         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52042         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52043         U+10A3F, U+1D242..U+1D244.
52044         (nonspacing_table_ind): Update.
52045         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52046         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52047
52048 2007-07-08  Bruno Haible  <bruno@clisp.org>
52049
52050         Update to Unicode 5.0.
52051         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52052         code transform. Extend the name index field of unicode_name_to_code and
52053         unicode_code_to_name from 16 to 24 bits.
52054         * lib/uniname/uniname.c (unicode_character_name,
52055         unicode_name_character): Add the range 0x12xxx to the code transform.
52056         * lib/uniname/uninames.h: Regenerated.
52057         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52058
52059 2007-07-07  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/wcwidth-tests: New file.
52062         * tests/test-wcwidth.c: New file.
52063
52064         Work around MacOS X wcwidth() bug.
52065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52066         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52067         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52068         original wcwidth in non-UTF-8 locales.
52069         * modules/wcwidth (Depends-on): Add localcharset, streq,
52070         uniwidth/width.
52071         * doc/functions/wcwidth.texi: Update.
52072
52073 2007-07-07  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52076         (wcwidth): New declaration.
52077         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52078         macros.
52079         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52080         here. Prepare for creating <wchar.h> unconditionally.
52081         * modules/wchar (Depends-on): Add link-warning.
52082         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52083         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52084         * lib/wcwidth.h: Remove file.
52085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52086         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52087         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52088         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52089         (Include): Replace wcwidth.h with <wchar.h>.
52090         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52091         * lib/mbchar.h: Don't include wcwidth.h.
52092         * lib/mbswidth.c: Likewise.
52093         * NEWS: Mention the change.
52094
52095 2007-07-07  Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52098         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52099         definition with an external declaration.
52100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52101         defined as a function. Remove AC_C_INLINE requirement.
52102         * modules/wcwidth (Files): Add lib/wcwidth.c.
52103         (Makefile.am): Remove redundant statement.
52104
52105 2007-07-07  Bruno Haible  <bruno@clisp.org>
52106
52107         * MODULES.html.sh (Unicode string functions): Add the new modules.
52108
52109         * tests/uniwidth/test-u32-strwidth.c: New file.
52110         * modules/uniwidth/u32-strwidth-tests: New file.
52111
52112         * lib/uniwidth/u32-strwidth.c: New file.
52113         * modules/uniwidth/u32-strwidth: New file.
52114
52115         * tests/uniwidth/test-u16-strwidth.c: New file.
52116         * modules/uniwidth/u16-strwidth-tests: New file.
52117
52118         * lib/uniwidth/u16-strwidth.c: New file.
52119         * modules/uniwidth/u16-strwidth: New file.
52120
52121         * tests/uniwidth/test-u8-strwidth.c: New file.
52122         * modules/uniwidth/u8-strwidth-tests: New file.
52123
52124         * lib/uniwidth/u8-strwidth.c: New file.
52125         * modules/uniwidth/u8-strwidth: New file.
52126
52127         * tests/uniwidth/test-u32-width.c: New file.
52128         * modules/uniwidth/u32-width-tests: New file.
52129
52130         * lib/uniwidth/u32-width.c: New file.
52131         * modules/uniwidth/u32-width: New file.
52132
52133         * tests/uniwidth/test-u16-width.c: New file.
52134         * modules/uniwidth/u16-width-tests: New file.
52135
52136         * lib/uniwidth/u16-width.c: New file.
52137         * modules/uniwidth/u16-width: New file.
52138
52139         * tests/uniwidth/test-u8-width.c: New file.
52140         * modules/uniwidth/u8-width-tests: New file.
52141
52142         * lib/uniwidth/u8-width.c: New file.
52143         * modules/uniwidth/u8-width: New file.
52144
52145         * tests/uniwidth/test-uc_width.c: New file.
52146         * modules/uniwidth/width-tests: New file.
52147
52148         * lib/uniwidth/width.c: New file, from GNU libiconv.
52149         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52150         * modules/uniwidth/width: New file.
52151
52152         * lib/uniwidth.h: New file, from GNU libiconv.
52153         * modules/uniwidth/base: New file.
52154
52155 2007-07-07  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/uniname.h: New file, from GNU gettext.
52158         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52159         * lib/uniname/uninames.h: New file, from GNU gettext.
52160         * lib/uniname/uniname.c: New file, from GNU gettext.
52161         * tests/uniname/test-uninames.sh: New file.
52162         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52163         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52164         * modules/uniname/base: New file.
52165         * modules/uniname/uniname: New file.
52166         * modules/uniname/uniname-tests: New file.
52167         * MODULES.html.sh (Unicode string functions): Add the new modules.
52168
52169 2007-07-06  Bruno Haible  <bruno@clisp.org>
52170
52171         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52172
52173 2007-07-06  Bruno Haible  <bruno@clisp.org>
52174
52175         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52176         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52177         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52178         include <sys/time.h>.
52179         Reported by Eric Blake.
52180
52181 2007-07-06  Eric Blake  <ebb9@byu.net>
52182
52183         Fix testing canonicalize on cygwin.
52184         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52185         Revert patch from 2007-06-19.
52186         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52187         canonicalize module is also in use.
52188         * tests/test-canonicalize.c: New file.
52189         * tests/test-canonicalize.sh: Likewise.
52190         * modules/canonicalize-tests: Likewise.
52191
52192 2007-07-06  Jim Meyering  <jim@meyering.net>
52193
52194         * lib/getugroups.c (getugroups): Detect getgrent failure.
52195         Adjust comment to reflect reality: this function may return -1.
52196
52197 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52198
52199         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52200         the new TP address.
52201         (usage): Fix typo
52202         (gnulib_mk): New variable.
52203
52204 2007-07-05  Jim Meyering  <jim@meyering.net>
52205
52206         Don't let endgrent clobber errno, no matter how improbable.
52207         * lib/getugroups.c (getugroups): Save and restore errno around
52208         endgrent call.
52209
52210         Close the group DB even when failing with 2^31 or more members.
52211         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52212
52213 2007-07-04  Jim Meyering  <jim@meyering.net>
52214
52215         * lib/getugroups.h: New file.
52216         * lib/getugroups.c: Include "getugroups.h".
52217         Remove uses of "register" keyword.
52218         Move local variable, "cp", down into scope where used.
52219         Give "username" parameter the "const" attribute.
52220         * modules/getugroups (Files): Add lib/getugroups.h
52221
52222 2007-07-04  Karl Berry  <karl@gnu.org>
52223
52224         * MODULES.html.sh (func_all_modules): Complete rename of
52225         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52226
52227 2007-07-02  Bruno Haible  <bruno@clisp.org>
52228
52229         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52230         mode, when inttypes.h comes from gnulib.
52231         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52232
52233 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52234
52235         * NEWS: Mention lgpl module name change.
52236
52237         * modules/lgpl-2.1: Renamed from lgpl.
52238
52239         * NEWS: Mention gpl module name change.
52240
52241         * modules/gpl-3.0: New file, based on gpl-2.0.
52242
52243         * modules/gpl-2.0: Renamed from gpl.
52244
52245         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52246         doc/gpl-2.0.texi.
52247
52248 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52249
52250         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52251         #define __STDC_LIMIT_MACROS temporarily while including
52252         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52253         Problem reported by Joel E. Denny in
52254         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52255
52256 2007-07-01  Bruno Haible  <bruno@clisp.org>
52257
52258         * lib/unistdio.h: New file.
52259         * lib/unistdio/u-asnprintf.h: New file.
52260         * lib/unistdio/u-asprintf.h: New file.
52261         * lib/unistdio/u-printf-args.c: New file.
52262         * lib/unistdio/u-printf-args.h: New file.
52263         * lib/unistdio/u-printf-parse.h: New file.
52264         * lib/unistdio/u-snprintf.h: New file.
52265         * lib/unistdio/u-sprintf.h: New file.
52266         * lib/unistdio/u-vasprintf.h: New file.
52267         * lib/unistdio/u-vsnprintf.h: New file.
52268         * lib/unistdio/u-vsprintf.h: New file.
52269         * lib/unistdio/ulc-asnprintf.c: New file.
52270         * lib/unistdio/ulc-asprintf.c: New file.
52271         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52272         * lib/unistdio/ulc-printf-parse.c: New file.
52273         * lib/unistdio/ulc-snprintf.c: New file.
52274         * lib/unistdio/ulc-sprintf.c: New file.
52275         * lib/unistdio/ulc-vasnprintf.c: New file.
52276         * lib/unistdio/ulc-vasprintf.c: New file.
52277         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52278         * lib/unistdio/ulc-vsnprintf.c: New file.
52279         * lib/unistdio/ulc-vsprintf.c: New file.
52280         * lib/unistdio/u8-asnprintf.c: New file.
52281         * lib/unistdio/u8-asprintf.c: New file.
52282         * lib/unistdio/u8-printf-parse.c: New file.
52283         * lib/unistdio/u8-snprintf.c: New file.
52284         * lib/unistdio/u8-sprintf.c: New file.
52285         * lib/unistdio/u8-vasnprintf.c: New file.
52286         * lib/unistdio/u8-vasprintf.c: New file.
52287         * lib/unistdio/u8-vsnprintf.c: New file.
52288         * lib/unistdio/u8-vsprintf.c: New file.
52289         * lib/unistdio/u8-u8-asnprintf.c: New file.
52290         * lib/unistdio/u8-u8-asprintf.c: New file.
52291         * lib/unistdio/u8-u8-snprintf.c: New file.
52292         * lib/unistdio/u8-u8-sprintf.c: New file.
52293         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52294         * lib/unistdio/u8-u8-vasprintf.c: New file.
52295         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52296         * lib/unistdio/u8-u8-vsprintf.c: New file.
52297         * lib/unistdio/u16-asnprintf.c: New file.
52298         * lib/unistdio/u16-asprintf.c: New file.
52299         * lib/unistdio/u16-printf-parse.c: New file.
52300         * lib/unistdio/u16-snprintf.c: New file.
52301         * lib/unistdio/u16-sprintf.c: New file.
52302         * lib/unistdio/u16-vasnprintf.c: New file.
52303         * lib/unistdio/u16-vasprintf.c: New file.
52304         * lib/unistdio/u16-vsnprintf.c: New file.
52305         * lib/unistdio/u16-vsprintf.c: New file.
52306         * lib/unistdio/u16-u16-asnprintf.c: New file.
52307         * lib/unistdio/u16-u16-asprintf.c: New file.
52308         * lib/unistdio/u16-u16-snprintf.c: New file.
52309         * lib/unistdio/u16-u16-sprintf.c: New file.
52310         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52311         * lib/unistdio/u16-u16-vasprintf.c: New file.
52312         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52313         * lib/unistdio/u16-u16-vsprintf.c: New file.
52314         * lib/unistdio/u32-asnprintf.c: New file.
52315         * lib/unistdio/u32-asprintf.c: New file.
52316         * lib/unistdio/u32-printf-parse.c: New file.
52317         * lib/unistdio/u32-snprintf.c: New file.
52318         * lib/unistdio/u32-sprintf.c: New file.
52319         * lib/unistdio/u32-vasnprintf.c: New file.
52320         * lib/unistdio/u32-vasprintf.c: New file.
52321         * lib/unistdio/u32-vsnprintf.c: New file.
52322         * lib/unistdio/u32-vsprintf.c: New file.
52323         * lib/unistdio/u32-u32-asnprintf.c: New file.
52324         * lib/unistdio/u32-u32-asprintf.c: New file.
52325         * lib/unistdio/u32-u32-snprintf.c: New file.
52326         * lib/unistdio/u32-u32-sprintf.c: New file.
52327         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52328         * lib/unistdio/u32-u32-vasprintf.c: New file.
52329         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52330         * lib/unistdio/u32-u32-vsprintf.c: New file.
52331         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52332         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52333         * tests/unistdio/test-ulc-printf1.h: New file.
52334         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52335         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52336         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52337         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52338         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52339         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52340         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52341         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52342         * tests/unistdio/test-u8-asnprintf1.c: New file.
52343         * tests/unistdio/test-u8-asnprintf1.h: New file.
52344         * tests/unistdio/test-u8-printf1.h: New file.
52345         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52346         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52347         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52348         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52349         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52350         * tests/unistdio/test-u8-vasprintf1.c: New file.
52351         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52352         * tests/unistdio/test-u8-vsprintf1.c: New file.
52353         * tests/unistdio/test-u16-asnprintf1.c: New file.
52354         * tests/unistdio/test-u16-asnprintf1.h: New file.
52355         * tests/unistdio/test-u16-printf1.h: New file.
52356         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52357         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52358         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52359         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52360         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52361         * tests/unistdio/test-u16-vasprintf1.c: New file.
52362         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52363         * tests/unistdio/test-u16-vsprintf1.c: New file.
52364         * tests/unistdio/test-u32-asnprintf1.c: New file.
52365         * tests/unistdio/test-u32-asnprintf1.h: New file.
52366         * tests/unistdio/test-u32-printf1.h: New file.
52367         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52368         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52369         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52370         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52371         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52372         * tests/unistdio/test-u32-vasprintf1.c: New file.
52373         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52374         * tests/unistdio/test-u32-vsprintf1.c: New file.
52375         * modules/unistdio/base: New file.
52376         * modules/unistdio/u-printf-args: New file.
52377         * modules/unistdio/ulc-asnprintf: New file.
52378         * modules/unistdio/ulc-asprintf: New file.
52379         * modules/unistdio/ulc-fprintf: New file.
52380         * modules/unistdio/ulc-printf-parse: New file.
52381         * modules/unistdio/ulc-snprintf: New file.
52382         * modules/unistdio/ulc-sprintf: New file.
52383         * modules/unistdio/ulc-vasnprintf: New file.
52384         * modules/unistdio/ulc-vasprintf: New file.
52385         * modules/unistdio/ulc-vfprintf: New file.
52386         * modules/unistdio/ulc-vsnprintf: New file.
52387         * modules/unistdio/ulc-vsprintf: New file.
52388         * modules/unistdio/u8-asnprintf: New file.
52389         * modules/unistdio/u8-asprintf: New file.
52390         * modules/unistdio/u8-printf-parse: New file.
52391         * modules/unistdio/u8-snprintf: New file.
52392         * modules/unistdio/u8-sprintf: New file.
52393         * modules/unistdio/u8-vasnprintf: New file.
52394         * modules/unistdio/u8-vasprintf: New file.
52395         * modules/unistdio/u8-vsnprintf: New file.
52396         * modules/unistdio/u8-vsprintf: New file.
52397         * modules/unistdio/u8-u8-asnprintf: New file.
52398         * modules/unistdio/u8-u8-asprintf: New file.
52399         * modules/unistdio/u8-u8-snprintf: New file.
52400         * modules/unistdio/u8-u8-sprintf: New file.
52401         * modules/unistdio/u8-u8-vasnprintf: New file.
52402         * modules/unistdio/u8-u8-vasprintf: New file.
52403         * modules/unistdio/u8-u8-vsnprintf: New file.
52404         * modules/unistdio/u8-u8-vsprintf: New file.
52405         * modules/unistdio/u16-asnprintf: New file.
52406         * modules/unistdio/u16-asprintf: New file.
52407         * modules/unistdio/u16-printf-parse: New file.
52408         * modules/unistdio/u16-snprintf: New file.
52409         * modules/unistdio/u16-sprintf: New file.
52410         * modules/unistdio/u16-vasnprintf: New file.
52411         * modules/unistdio/u16-vasprintf: New file.
52412         * modules/unistdio/u16-vsnprintf: New file.
52413         * modules/unistdio/u16-vsprintf: New file.
52414         * modules/unistdio/u16-u16-asnprintf: New file.
52415         * modules/unistdio/u16-u16-asprintf: New file.
52416         * modules/unistdio/u16-u16-snprintf: New file.
52417         * modules/unistdio/u16-u16-sprintf: New file.
52418         * modules/unistdio/u16-u16-vasnprintf: New file.
52419         * modules/unistdio/u16-u16-vasprintf: New file.
52420         * modules/unistdio/u16-u16-vsnprintf: New file.
52421         * modules/unistdio/u16-u16-vsprintf: New file.
52422         * modules/unistdio/u32-asnprintf: New file.
52423         * modules/unistdio/u32-asprintf: New file.
52424         * modules/unistdio/u32-printf-parse: New file.
52425         * modules/unistdio/u32-snprintf: New file.
52426         * modules/unistdio/u32-sprintf: New file.
52427         * modules/unistdio/u32-vasnprintf: New file.
52428         * modules/unistdio/u32-vasprintf: New file.
52429         * modules/unistdio/u32-vsnprintf: New file.
52430         * modules/unistdio/u32-vsprintf: New file.
52431         * modules/unistdio/u32-u32-asnprintf: New file.
52432         * modules/unistdio/u32-u32-asprintf: New file.
52433         * modules/unistdio/u32-u32-snprintf: New file.
52434         * modules/unistdio/u32-u32-sprintf: New file.
52435         * modules/unistdio/u32-u32-vasnprintf: New file.
52436         * modules/unistdio/u32-u32-vasprintf: New file.
52437         * modules/unistdio/u32-u32-vsnprintf: New file.
52438         * modules/unistdio/u32-u32-vsprintf: New file.
52439         * modules/unistdio/ulc-asnprintf-tests: New file.
52440         * modules/unistdio/ulc-vasnprintf-tests: New file.
52441         * modules/unistdio/ulc-vasprintf-tests: New file.
52442         * modules/unistdio/ulc-vsnprintf-tests: New file.
52443         * modules/unistdio/ulc-vsprintf-tests: New file.
52444         * modules/unistdio/u8-asnprintf-tests: New file.
52445         * modules/unistdio/u8-vasnprintf-tests: New file.
52446         * modules/unistdio/u8-vasprintf-tests: New file.
52447         * modules/unistdio/u8-vsnprintf-tests: New file.
52448         * modules/unistdio/u8-vsprintf-tests: New file.
52449         * modules/unistdio/u16-asnprintf-tests: New file.
52450         * modules/unistdio/u16-vasnprintf-tests: New file.
52451         * modules/unistdio/u16-vasprintf-tests: New file.
52452         * modules/unistdio/u16-vsnprintf-tests: New file.
52453         * modules/unistdio/u16-vsprintf-tests: New file.
52454         * modules/unistdio/u32-asnprintf-tests: New file.
52455         * modules/unistdio/u32-vasnprintf-tests: New file.
52456         * modules/unistdio/u32-vasprintf-tests: New file.
52457         * modules/unistdio/u32-vsnprintf-tests: New file.
52458         * modules/unistdio/u32-vsprintf-tests: New file.
52459         * MODULES.html.sh (Unicode string functions): Add the new modules.
52460
52461 2007-07-01  Bruno Haible  <bruno@clisp.org>
52462
52463         * lib/sprintf.c (sprintf): Limit the available length estimation,
52464         to avoid address wraparound.
52465         * lib/vsprintf.c (vsprintf): Likewise.
52466         * modules/sprintf-posix (Dependencies): Add stdint.
52467         * modules/vsprintf-posix (Dependencies): Likewise.
52468
52469 2007-07-01  Bruno Haible  <bruno@clisp.org>
52470
52471         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52472         Windows PATH as well. Conservative double-quoting. Comments.
52473
52474 2007-07-01  Bruno Haible  <bruno@clisp.org>
52475             Eric Blake  <ebb9@byu.net>
52476             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52477
52478         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52479         empty components in $PATH, denoting '.'.
52480
52481 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52482
52483         * gnulib-tool: Fix indentation.
52484         (func_create_megatestdir): Likewise.
52485         Report by Bruno Haible.
52486
52487 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52488
52489         Sync from Automake.
52490         * build-aux/gnupload: Fix shell portability issues with for loops.
52491         Report by Karl Berry.
52492
52493 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52494
52495         * build-aux/maint.mk (POURL): Use translationproject.org.
52496
52497 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52498             Bruno Haible  <bruno@clisp.org>
52499
52500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52501         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52502         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52503         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52504         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52505
52506 2007-06-27  Bruno Haible  <bruno@clisp.org>
52507
52508         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52509         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52510
52511 2007-06-26  Karl Berry  <karl@gnu.org>
52512
52513         * MODULES.html.sh: remove xreadlink-with-size.
52514
52515 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52516
52517         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52518         method that I hope also handles the double-include problem noted
52519         by Bruno Haible in
52520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52521
52522 2007-06-23  Bruno Haible  <bruno@clisp.org>
52523
52524         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52525         Don't let the 'mostlyclean' target fail if the last subdirectory could
52526         not be removed.
52527         Reported by Karl Berry.
52528
52529 2007-06-23  Bruno Haible  <bruno@clisp.org>
52530
52531         * gnulib-tool (echo): Add a speedier workaround for ksh.
52532         * tests/test-echo.sh: Likewise.
52533
52534 2007-06-23  Bruno Haible  <bruno@clisp.org>
52535
52536         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52537         * tests/test-echo.sh: Likewise.
52538
52539 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52540
52541         * gnulib-tool (IFS): Initialize early, so we don't set it to
52542         empty later.
52543         (self_abspathname): Rewrite algorithm to set it, reindent.
52544         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52545         (func_create_megatestdir): Merge some sed scripts.
52546
52547 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52550         exposed by Sun Studio 11 cc on Solaris 8.
52551
52552 2007-06-22  Bruno Haible  <bruno@clisp.org>
52553
52554         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52555         backslashes.
52556         * tests/test-echo.sh: New file.
52557
52558 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52559
52560         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52561         simplify `sed_replace_build_aux' scripts, they are portable but
52562         echoing them with `echo' is not.
52563         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52564
52565 2007-06-21  Karl Berry  <karl@gnu.org>
52566
52567         * config/srclist.txt: guess we can't handle the licenses via
52568         srclist at the moment.
52569
52570 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52571
52572         * MODULES.html.sh: Add include_next.
52573         * modules/include_next: New file.
52574
52575 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52578         INCLUDE_NEXT.
52579         (gl_CHECK_NEXT_HEADERS): New macro.
52580         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52581         the obsolescent gl_ABSOLUTE_HEADER.
52582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52583         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52584         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52585         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52586         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52587         * m4/math_h.m4 (gl_MATH_H): Likewise.
52588         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52589         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52590         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52591         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52592         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52593         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52594         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52597         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52599         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52600         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52601         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52602         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52603         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52604         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52605         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52606         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52607         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52608         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52609         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52610         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52611         * lib/float_.h: Likewise.
52612         * lib/inttypes_.h: Likewise.
52613         * lib/math_.h: Likewise.
52614         * lib/search_.h: Likewise.
52615         * lib/signal_.h: Likewise.
52616         * lib/stdint_.h: Likewise.
52617         * lib/stdio_.h: Likewise.
52618         * lib/stdlib_.h: Likewise.
52619         * lib/string_.h: Likewise.
52620         * lib/sys_stat_.h: Likewise.
52621         * lib/sys_time_.h: Likewise.
52622         * lib/time_.h: Likewise.
52623         * lib/unistd_.h: Likewise.
52624         * lib/wchar_.h: Likewise.
52625         * lib/wctype_.h: Likewise.
52626         * lib/dirent_.h: Likewise.
52627         * lib/iconv_.h: Likewise.
52628         * lib/locale_.h: Likewise.
52629         * lib/netinet_in_.h: Likewise.
52630         * lib/sys_select_.h: Likewise.
52631         * lib/sys_socket_.h: Likewise.
52632         * lib/sysexits_.h: Likewise.
52633         * modules/fcntl (Depends-on): Depend on include_next, not
52634         absolute_header.
52635         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52636         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52637         * modules/fchdir: Likewise.
52638         * modules/float: Likewise.
52639         * modules/iconv_open: Likewise.
52640         * modules/inttypes: Likewise.
52641         * modules/locale: Likewise.
52642         * modules/math: Likewise.
52643         * modules/netinet_in: Likewise.
52644         * modules/search: Likewise.
52645         * modules/signal: Likewise.
52646         * modules/stdint: Likewise.
52647         * modules/stdio: Likewise.
52648         * modules/stdlib: Likewise.
52649         * modules/string: Likewise.
52650         * modules/sys_select: Likewise.
52651         * modules/sys_socket: Likewise.
52652         * modules/sys_stat: Likewise.
52653         * modules/sys_time: Likewise.
52654         * modules/sysexits: Likewise.
52655         * modules/time: Likewise.
52656         * modules/unistd: Likewise.
52657         * modules/wchar: Likewise.
52658         * modules/wctype: Likewise.
52659         * modules/sys_stat: Change maintainer to "all".
52660         * modules/unistd: Likewise.
52661
52662 2007-06-20  Karl Berry  <karl@gnu.org>
52663
52664         * config/srclist.txt: track www changes in license files.
52665
52666 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52667
52668         * build-aux/bootstrap: Remove stray dot.
52669         Make sure build_aux settings are honored when linking
52670         gnulib_extra_files.
52671
52672 2007-06-19  Eric Blake  <ebb9@byu.net>
52673
52674         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52675         Allow compilation on cygwin.
52676
52677 2007-06-19  Jim Meyering  <jim@meyering.net>
52678
52679         xreadlink-with-size: Remove module.  No longer used.
52680         Ex-callers now use xreadlink or mreadlink-with-size.
52681         * modules/xreadlink-with-size: Remove module.
52682         * lib/xreadlink-with-size.c: Remove file.
52683         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52684         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52685         just before the function definition *is* accurate.
52686
52687         Eliminate one way canonicalize_filename_mode could exit.
52688         * lib/canonicalize.c (canonicalize_filename_mode):
52689         Use mreadlink_with_size, not xreadlink_with_size.
52690
52691 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52692
52693         Detect porting problems to FreeBSD/arm, which has time_t wider than
52694         long int.  Original problem reported for GNU diff by Xin Li in
52695         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52696         * modules/getdate (Depends-on): Add intprops, verify.
52697         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52698         is an integer type no wider than long int.
52699
52700 2007-06-18  Jim Meyering  <jim@meyering.net>
52701
52702         New module: mreadlink-with-size.
52703         * MODULES.html.sh: Add mreadlink-with-size.
52704         * modules/mreadlink-with-size: New module
52705         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52706         not xreadlink-with-size.
52707         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52708
52709 2007-06-16  Bruno Haible  <bruno@clisp.org>
52710
52711         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52712         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52713         Reported by Gary V. Vaughan <gary@gnu.org>.
52714
52715 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52716
52717         Revamp lchown so that it lives in unistd.h where it belongs.
52718         * lib/lchown.h: Remove.
52719         * lib/dirchownmod.c: Don't include lib/lchown.h.
52720         * lib/fchownat.c: Likewise.
52721         * lib/openat.c: Likewise.
52722         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52723         does not follow symlinks.
52724         (EOPNOTSUPP): Define if not defined.
52725         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52726         is defined to 0.
52727         (lchown): New decl.
52728         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52729         Do not check for lchown decl.
52730         Set REPLACE_LCHOWN.
52731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52732         REPLACE_LCHOWN.
52733         * modules/chown: Make it clear it follows symlinks.
52734         * modules/lchown: Make it clear it doesn't follow symlinks.
52735         (Files): Remove lib/lchown.h
52736         (Depends-on): Add unistd.
52737         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52738         (Include): Include <unistd.h>, not "lchown.h".
52739         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52740         REPLACE_LCHOWN.
52741
52742 2007-06-15  Jim Meyering  <jim@meyering.net>
52743
52744         Change license (GPL to LGPL) of fsusage and dependents.
52745         * modules/fsusage (License): Change to LGPL.
52746         * modules/full-read (License): Likewise.
52747         * modules/full-write (License): Likewise.
52748         * modules/safe-read (License): Likewise.
52749         * modules/safe-write (License): Likewise.
52750
52751 2007-06-14  Ben Pfaff  <blp@gnu.org>
52752
52753         Missing part of allocsa -> malloca transition.
52754         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52755         gl_MALLOCA.
52756
52757 2007-06-12  Bruno Haible  <bruno@clisp.org>
52758
52759         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52760         to ia64, x86_64, i386.
52761         Reported by Eric Blake.
52762
52763 2007-06-12  Bruno Haible  <bruno@clisp.org>
52764
52765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52766         cross-compiling to x86_64.
52767
52768 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52771         glitch reported by Ralf Wildenhues in
52772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52773
52774         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52775         Vin Shelton.
52776
52777 2007-06-11  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52780         replacement string.
52781         Reported by Eric Blake.
52782
52783 2007-06-10  Bruno Haible  <bruno@clisp.org>
52784
52785         Prepare vasnprintf code for use with Unicode strings.
52786         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52787         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52788         TYPE_U32_STRING.
52789         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52790         a_u32_string variants.
52791         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52792         * lib/printf-args.c: Don't include config.h and the specification
52793         header if PRINTF_FETCHARGS is already defined.
52794         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52795         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52796         TYPE_U16_STRING, TYPE_U32_STRING.
52797         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52798         u16_directive, u16_directives, u32_directive, u32_directives): New
52799         types.
52800         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52801         New declarations.
52802         * lib/printf-parse.c: Don't include config.h and the specification
52803         header if PRINTF_PARSE is already defined. Eliminate the set of
52804         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52805         them now. Include c-ctype.h.
52806         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52807         directive and CHAR_T_ONLY_ASCII.
52808         * lib/vasnprintf.c: Don't include config.h and the specification header
52809         if VASNPRINTF is already defined.
52810         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52811         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52812         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52813         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52814         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52815         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52816         code accordingly.
52817         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52818         pad_ourselves also in this case, with the 'c' and 's' directives, and
52819         with a different notion of "width".
52820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52821
52822 2007-06-10  Bruno Haible  <bruno@clisp.org>
52823
52824         * modules/unistr/u32-mbsnlen: New file.
52825         * lib/unistr/u32-mbsnlen.c: New file.
52826
52827         * modules/unistr/u16-mbsnlen: New file.
52828         * lib/unistr/u16-mbsnlen.c: New file.
52829
52830         * modules/unistr/u8-mbsnlen: New file.
52831         * lib/unistr/u8-mbsnlen.c: New file.
52832
52833         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52834         declarations.
52835
52836 2007-06-10  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/string_.h (mbsnlen): New declaration.
52839         * lib/mbsnlen.c: New file.
52840         * m4/mbsnlen.m4: New file.
52841         * modules/mbsnlen: New file.
52842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52843         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52844         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52845
52846 2007-06-10  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52849
52850 2007-06-10  Bruno Haible  <bruno@clisp.org>
52851
52852         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52853         * lib/mbuiter.h: Likewise.
52854
52855 2007-06-10  Bruno Haible  <bruno@clisp.org>
52856
52857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52858         declaration.
52859
52860 2007-06-10  Karl Berry  <karl@gnu.org>
52861
52862         * config/srclist.txt: remove gettext entries, Bruno prefers
52863         to update individually.
52864
52865 2007-06-10  Bruno Haible  <bruno@clisp.org>
52866
52867         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52868         'maxlen'. Ensure only length + width bytes are allocated, not
52869         length + 1 + width.
52870
52871 2007-06-09  Bruno Haible  <bruno@clisp.org>
52872
52873         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52874         (CHAR_T): Remove macro.
52875         (VASNPRINTF): Update.
52876
52877 2007-06-09  Bruno Haible  <bruno@clisp.org>
52878
52879         * MODULES.html.sh (Unicode string functions): Add the new modules.
52880
52881         * modules/uniconv/u32-conv-to-enc: New file.
52882         * lib/uniconv/u32-conv-to-enc.c: New file.
52883         * modules/uniconv/u32-conv-to-enc-tests: New file.
52884         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52885
52886         * modules/uniconv/u16-conv-to-enc: New file.
52887         * lib/uniconv/u16-conv-to-enc.c: New file.
52888         * lib/uniconv/u-conv-to-enc.h: New file.
52889         * modules/uniconv/u16-conv-to-enc-tests: New file.
52890         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52891
52892         * modules/uniconv/u8-conv-to-enc: New file.
52893         * lib/uniconv/u8-conv-to-enc.c: New file.
52894         * modules/uniconv/u8-conv-to-enc-tests: New file.
52895         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52896
52897         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52898         u32_conv_to_encoding): New declarations.
52899
52900 2007-06-09  Bruno Haible  <bruno@clisp.org>
52901
52902         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52903
52904 2007-06-09  Bruno Haible  <bruno@clisp.org>
52905
52906         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52907         * modules/malloca: Renamed from modules/allocsa, updated.
52908         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52909         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52910         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52911         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52912         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52913         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52914         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52915         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52916         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52917         * modules/c-strcasestr (Depends-on): Update.
52918         * lib/c-strcasestr.c: Update.
52919         * modules/c-strstr (Depends-on): Update.
52920         * lib/c-strstr.c: Update.
52921         * modules/canonicalize-lgpl (Depends-on): Update.
52922         * lib/canonicalize-lgpl.c: Update.
52923         * modules/clean-temp (Depends-on): Update.
52924         * lib/clean-temp.c: Update.
52925         * modules/csharpcomp (Depends-on): Update.
52926         * lib/csharpcomp.c: Update.
52927         * modules/csharpexec (Depends-on): Update.
52928         * lib/csharpexec.c: Update.
52929         * modules/javacomp (Depends-on): Update.
52930         * lib/javacomp.c: Update.
52931         * modules/javaexec (Depends-on): Update.
52932         * lib/javaexec.c: Update.
52933         * modules/mbscasestr (Depends-on): Update.
52934         * lib/mbscasestr.c: Update.
52935         * modules/mbsstr (Depends-on): Update.
52936         * lib/mbsstr.c: Update.
52937         * modules/setenv (Depends-on): Update.
52938         * lib/setenv.c: Update.
52939         * modules/strcasestr (Depends-on): Update.
52940         * lib/strcasestr.c: Update.
52941         * modules/striconveha (Depends-on): Update.
52942         * lib/striconveha.c: Update.
52943         * modules/relocatable-prog-wrapper (Files): Update.
52944         * lib/relocwrapper.c: Update.
52945         * build-aux/install-reloc: Update.
52946         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52947
52948 2007-06-08  Bruno Haible  <bruno@clisp.org>
52949
52950         Port to uClibc.
52951         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52952         * lib/fpurge.c (fpurge): Likewise.
52953         * lib/freading.c (freading): Likewise.
52954         * lib/fseeko.c (rpl_fseeko): Likewise.
52955         * lib/fseterr.c (fseterr): Likewise.
52956         * lib/fwriting.c (fwriting): Likewise.
52957         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52958
52959 2007-06-08  Bruno Haible  <bruno@clisp.org>
52960
52961         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52962         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52963         * modules/gettext (Files): Add m4/intlmacosx.m4.
52964
52965 2007-06-07  Bruno Haible  <bruno@clisp.org>
52966
52967         * modules/localename-tests: New file.
52968         * tests/test-localename.c: New file.
52969
52970         New module 'localename'.
52971         * lib/localename.h: New file.
52972         * lib/localename.c: New file, from GNU gettext.
52973         * m4/localename.m4: New file.
52974         * modules/localename: New file.
52975
52976 2007-06-07  Bruno Haible  <bruno@clisp.org>
52977
52978         Work around the lack of <wchar.h> on some builds of uClibc.
52979         * doc/headers/wchar.texi: Update.
52980         * lib/wchar_.h: Include <wchar.h> only if it exists.
52981         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52982         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52983         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52984         doesn't exist.
52985         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52986         * modules/mbfile (Depends-on): Add wchar.
52987         * modules/mbiter (Depends-on): Likewise.
52988         * modules/mbuiter (Depends-on): Likewise.
52989         Reported by Simon Josefsson.
52990
52991 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52992
52993         Work around problem reported by Steven M. Schweda in
52994         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52995         Tru64 5.1B with the Compaq compiler environment installed declares
52996         an 'isblank' function but does not define it in the C library.
52997         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52998         * lib/regex_internal.h (isblank): Likewise.
52999         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53000         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53001
53002 2007-06-05  Bruno Haible  <bruno@clisp.org>
53003
53004         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53005         ia64.
53006         * modules/printf-safe: New file.
53007         * modules/fprintf-posix (Depends-on): Add printf-safe.
53008         * modules/printf-posix (Depends-on): Likewise.
53009         * modules/snprintf-posix (Depends-on): Likewise.
53010         * modules/sprintf-posix (Depends-on): Likewise.
53011         * modules/vasnprintf-posix (Depends-on): Likewise.
53012         * modules/vasprintf-posix (Depends-on): Likewise.
53013         * modules/vfprintf-posix (Depends-on): Likewise.
53014         * modules/vprintf-posix (Depends-on): Likewise.
53015         * modules/vsnprintf-posix (Depends-on): Likewise.
53016         * modules/vsprintf-posix (Depends-on): Likewise.
53017         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53018         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53019         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53020         "no" on i386, x86_64, ia64.
53021         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53022         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53023         on i386, x86_64, ia64.
53024         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53025         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53026         on i386, x86_64, ia64.
53027         * tests/test-vasnprintf-posix.c: Include float.h.
53028         (LDBL80_WORDS): New macro.
53029         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53030         on i386, x86_64, ia64.
53031         * tests/test-vasprintf-posix.c: Include float.h.
53032         (LDBL80_WORDS): New macro.
53033         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53034         on i386, x86_64, ia64.
53035         * tests/test-snprintf-posix.c: Include float.h.
53036         * tests/test-sprintf-posix.c: Likewise.
53037         * tests/test-vsnprintf-posix.c: Likewise.
53038         * tests/test-vsprintf-posix.c: Likewise.
53039
53040 2007-06-05  Bruno Haible  <bruno@clisp.org>
53041
53042         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53044         non-IEEE numbers on i386, x86_64, ia64.
53045         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53046         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53047         * tests/test-isnanl.h: Include float.h.
53048         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53049
53050 2007-06-05  Bruno Haible  <bruno@clisp.org>
53051
53052         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53053         also the %a / %A. Handle the %a / %A code before this extra handling.
53054
53055 2007-06-05  Bruno Haible  <bruno@clisp.org>
53056
53057         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53058         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53059
53060 2007-06-05  Bruno Haible  <bruno@clisp.org>
53061
53062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53063         typo in variable name.
53064
53065 2007-06-05  Eric Blake  <ebb9@byu.net>
53066
53067         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53068         Reported by Simon Josefsson.
53069
53070 2007-06-04  Bruno Haible  <bruno@clisp.org>
53071
53072         Avoid test failures on some PowerPC platforms.
53073         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53074         Define differently for PowerPC.
53075         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53076         Reported by Gary V. Vaughan <gary@gnu.org>.
53077
53078 2007-06-02  Bruno Haible  <bruno@clisp.org>
53079
53080         Fix test-stdint failure on FreeBSD/ia64.
53081         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53082         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53083         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53084         * doc/headers/stdint.texi: Update.
53085
53086 2007-06-01  Bruno Haible  <bruno@clisp.org>
53087
53088         * tests/test-binary-io.c (main): Pass a third argument to open().
53089         Reported by Gary V. Vaughan <gary@gnu.org>.
53090
53091 2007-06-01  Bruno Haible  <bruno@clisp.org>
53092
53093         * doc/functions/frexpl.texi: Update for mingw.
53094
53095 2007-06-01  Bruno Haible  <bruno@clisp.org>
53096
53097         * tests/test-lseek.c (main): Disable test of errno for invalid third
53098         argument.
53099         * doc/functions/lseek.texi: Update.
53100         Reported by Gary V. Vaughan <gary@gnu.org>.
53101
53102 2007-05-28  Bruno Haible  <bruno@clisp.org>
53103
53104         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53105
53106 2007-05-31  Eric Blake  <ebb9@byu.net>
53107
53108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53109         cross compiling.
53110
53111 2007-05-30  Eric Blake  <ebb9@byu.net>
53112         and Bruno Haible  <bruno@clisp.org>
53113
53114         Work around mingw test failures exposed by m4-1.4.9b.
53115         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53116         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53117         moment.
53118
53119 2007-05-30  Bruno Haible  <bruno@clisp.org>
53120
53121         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53122         assuming that they are closed. Needed on HP-UX 11.
53123
53124 2007-05-29  Bruno Haible  <bruno@clisp.org>
53125
53126         Fix a problem with #include_next.
53127         * lib/dirent_.h: Split the double-inclusion guard.
53128         * lib/fcntl_.h: Likewise.
53129         * lib/float_.h: Likewise.
53130         * lib/iconv_.h: Likewise.
53131         * lib/inttypes_.h: Likewise.
53132         * lib/locale_.h: Likewise.
53133         * lib/math_.h: Likewise.
53134         * lib/netinet_in_.h: Likewise.
53135         * lib/search_.h: Likewise.
53136         * lib/signal_.h: Likewise.
53137         * lib/stdint_.h: Likewise.
53138         * lib/stdio_.h: Likewise.
53139         * lib/stdlib_.h: Likewise.
53140         * lib/string_.h: Likewise.
53141         * lib/sys_select_.h: Likewise.
53142         * lib/sys_socket_.h: Likewise.
53143         * lib/sys_stat_.h: Likewise.
53144         * lib/sys_time_.h: Likewise.
53145         * lib/sysexits_.h: Likewise.
53146         * lib/time_.h: Likewise.
53147         * lib/unistd_.h: Likewise.
53148         * lib/wchar_.h: Likewise.
53149         * lib/wctype_.h: Likewise.
53150
53151 2007-05-29  Bruno Haible  <bruno@clisp.org>
53152
53153         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53154         for the moment.
53155
53156 2007-05-29  Bruno Haible  <bruno@clisp.org>
53157
53158         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53159         invocation.
53160         Reported by Eric Blake.
53161
53162 2007-05-29  Bruno Haible  <bruno@clisp.org>
53163
53164         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53165         compiling case.
53166
53167 2007-05-29  Eric Blake  <ebb9@byu.net>
53168             Bruno Haible  <bruno@clisp.org>
53169
53170         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53171         cross compiles.
53172
53173 2007-05-28  Eric Blake  <ebb9@byu.net>
53174
53175         * modules/closein-tests (test_closein_LDADD): Support test on
53176         cygwin with libtool.
53177
53178 2007-05-28  Bruno Haible  <bruno@clisp.org>
53179
53180         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53181         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53182         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53183         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53184         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53185         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53186         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53187         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53188         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53189
53190 2007-05-28  Eric Blake  <ebb9@byu.net>
53191
53192         Unconditionally include <config.h> in unit tests.
53193         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53194         * tests/test-allocsa.c, tests/test-arcfour.c,
53195         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53196         tests/test-array_list.c, tests/test-array_oset.c,
53197         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53198         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53199         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53200         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53201         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53202         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53203         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53204         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53205         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53206         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53207         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53208         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53209         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53210         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53211         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53212         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53213         test-md5.c, test-memmem.c, test-printf-posix.c,
53214         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53215         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53216         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53217         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53218         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53219         test-vasnprintf-posix2.c, test-vasnprintf.c,
53220         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53221         test-vfprintf-posix.c, test-vprintf-posix.c,
53222         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53223         test-xvasprintf.c: Likewise.
53224
53225 2007-05-28  Bruno Haible  <bruno@clisp.org>
53226
53227         * gnulib-tool (func_import): Remember the --with-tests command-line
53228         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53229         Reported by Eric Blake.
53230
53231 2007-05-28  Bruno Haible  <bruno@clisp.org>
53232
53233         * modules/ftell-tests: New file.
53234         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53235         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53236
53237         * lib/ftell.c: New file.
53238         * modules/ftell: New file.
53239         * m4/ftell.m4: New file.
53240         * doc/functions/ftell.texi: Update.
53241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53242         REPLACE_FTELL.
53243         * lib/stdio_.h (rpl_ftell): New declaration.
53244         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53245         REPLACE_FTELL.
53246
53247 2007-05-28  Eric Blake  <ebb9@byu.net>
53248
53249         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53250
53251 2007-05-28  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/fseek-tests: New file.
53254         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53255         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53256
53257         * lib/fseek.c: New file.
53258         * modules/fseek: New file.
53259         * m4/fseek.m4: New file.
53260         * doc/functions/fseek.texi: Update.
53261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53262         REPLACE_FSEEK.
53263         * lib/stdio_.h (rpl_fseek): New declaration.
53264         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53265         REPLACE_FSEEK.
53266
53267 2007-05-28  Bruno Haible  <bruno@clisp.org>
53268
53269         * lib/stdio_.h (fflush): More comments.
53270
53271 2007-05-28  Bruno Haible  <bruno@clisp.org>
53272
53273         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53274         runtime test.
53275
53276 2007-05-28  Eric Blake  <ebb9@byu.net>
53277
53278         Improve lseek module.
53279         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53280         * lib/unistd_.h (lseek): Scale back link warning message.
53281         * tests/test-lseek.c: Beef up test.
53282         * tests/test-lseek.sh: Exercise more facets of lseek.
53283         Reported by Bruno Haible.
53284
53285 2007-05-28  Bruno Haible  <bruno@clisp.org>
53286
53287         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53288         to define.
53289
53290 2007-05-27  Bruno Haible  <bruno@clisp.org>
53291
53292         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53293
53294 2007-05-27  Bruno Haible  <bruno@clisp.org>
53295
53296         * modules/openmp: New file.
53297         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53298         Noah Misch.
53299
53300 2007-05-26  Bruno Haible  <bruno@clisp.org>
53301
53302         * modules/chdir-long (Depends-on): Add fchdir.
53303         * modules/chdir-safer (Depends-on): Likewise.
53304         * modules/fts (Depends-on): Likewise.
53305         * modules/fts-lgpl (Depends-on): Likewise.
53306         * modules/openat (Depends-on): Likewise.
53307         * modules/savewd (Depends-on): Likewise.
53308
53309 2007-05-24  Eric Blake  <ebb9@byu.net>
53310
53311         Fix lseek on mingw.
53312         * modules/lseek: New module.
53313         * m4/lseek.m4: New file.
53314         * lib/lseek.c: New file.
53315         * modules/lseek-tests: New file.
53316         * tests/test-lseek.c: New file.
53317         * tests/test-lseek.sh: New file.
53318         * MODULES.html.sh: Document lseek module.
53319         * modules/fflush (Depends-on): Add lseek, fseeko.
53320         * modules/fseeko (Depends-on): Likewise.
53321         * modules/ftello (Depends-on): Likewise.
53322         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53323         broken.
53324         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53325         broken.
53326         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53327         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53328         * lib/ftello.c (rpl_ftello): Likewise.
53329         * tests/test-fseeko.c (main): Test this.
53330         * tests/test-fseeko.sh: Likewise.
53331         * tests/test-ftello.c (main): Likewise.
53332         * tests/test-ftello.sh: Likewise.
53333         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53334         implies replacing fseek.
53335         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53336         HAVE_FTELLO.
53337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53338         * modules/unistd (Makefile.am): Likewise.
53339         * lib/unistd_.h (lseek): Declare a replacement.
53340         * doc/functions/lseek.texi (lseek): Document this fix.
53341         * doc/functions/fseek.texi (fseek): Likewise.
53342         * doc/functions/ftell.texi (ftell): Likewise.
53343
53344 2007-05-24  Bruno Haible  <bruno@clisp.org>
53345
53346         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53347         in the printed representation of a NaN.
53348         * tests/test-vasprintf-posix.c (test_function): Likewise.
53349         * tests/test-snprintf-posix.h (test_function): Likewise.
53350         * tests/test-sprintf-posix.h (test_function): Likewise.
53351         Reported by Eric Blake.
53352
53353 2007-05-23  Eric Blake  <ebb9@byu.net>
53354
53355         Fix fseeko/ftello on cygwin 1.5.24.
53356         * doc/functions/fseeko.texi (fseeko): Document the fix.
53357         * doc/functions/ftello.texi (ftello): Document the fix.
53358         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53359         * doc/functions/stdout.text (stdout): New file.
53360         * doc/functions/stderr.text (stderr): New file.
53361         * doc/gnulib.texi (Function Substitutes): Use new files.
53362         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53363         prior to 1.7.0.
53364         * tests/test-ftello.c (main): Likewise for ftello.
53365         * tests/test-fseeko.sh: New file.
53366         * tests/test-ftello.sh: New file.
53367         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53368         with seekable stdin.
53369         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53370         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53371         (gl_REPLACE_FSEEKO): New macro.
53372         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53373         * modules/fseeko (Files): Distribute fseeko.c.
53374         * modules/ftello (Files): Distribute ftello.c.
53375         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53376         mode.
53377         * lib/ftello.c (rpl_ftello): New file.
53378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53379         fseeko, ftello.
53380         (gl_STDIN_LARGE_OFFSET): New macro.
53381         * modules/stdio (Makefile.am): Perform the replacement.
53382         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53383
53384 2007-05-23  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53387         GNULIB_POSIXCHECK is defined.
53388
53389 2007-05-21  Bruno Haible  <bruno@clisp.org>
53390
53391         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53392         Check also the output for NaN arguments. When cross-compiling, guess
53393         no on IRIX.
53394         * lib/vasnprintf.c: Update comments.
53395         * tests/test-vasnprintf-posix.c (strisnan): New function.
53396         (test_function): Use it.
53397         * tests/test-vasprintf-posix.c (strisnan): New function.
53398         (test_function): Use it.
53399         * tests/test-snprintf-posix.h (strisnan): New function.
53400         (test_function): Use it.
53401         * tests/test-sprintf-posix.h (strisnan): New function.
53402         (test_function): Use it.
53403         Reported by Eric Blake.
53404
53405 2007-05-20  Bruno Haible  <bruno@clisp.org>
53406
53407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53408         numbers that fails on BeOS.
53409         * doc/functions/frexpl.texi: Update.
53410
53411 2007-05-20  Jim Meyering  <jim@meyering.net>
53412
53413         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53414         forced upon us by glibc-2.6.
53415
53416 2007-05-20  Bruno Haible  <bruno@clisp.org>
53417
53418         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53419         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53420         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53421         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53422         NEED_PRINTF_INFINITE.
53423         (is_infinitel): New function.
53424         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53426         gl_PREREQ_VASNPRINTF_INFINITE.
53427         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53429         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53430         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53431         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53432         gl_PREREQ_VASNPRINTF_INFINITE.
53433         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53434         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53436         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53437         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53440         * doc/functions/fprintf.texi: Update.
53441         * doc/functions/printf.texi: Update.
53442         * doc/functions/snprintf.texi: Update.
53443         * doc/functions/sprintf.texi: Update.
53444         * doc/functions/vfprintf.texi: Update.
53445         * doc/functions/vprintf.texi: Update.
53446         * doc/functions/vsnprintf.texi: Update.
53447         * doc/functions/vsprintf.texi: Update.
53448
53449 2007-05-20  Bruno Haible  <bruno@clisp.org>
53450
53451         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53452         was not found in libc.
53453         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53454
53455 2007-05-20  Bruno Haible  <bruno@clisp.org>
53456
53457         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53458         printed as "-nan" instead of "nan".
53459         * tests/test-vasprintf-posix.c (test_function): Likewise.
53460         * tests/test-snprintf-posix.h (test_function): Likewise.
53461         * tests/test-sprintf-posix.h (test_function): Likewise.
53462         Needed for HP-UX 11.
53463
53464 2007-05-20  Jim Meyering  <jim@meyering.net>
53465
53466         Fix buggy test for the fchownat-deref bug.
53467         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53468         symlink required for the run-test.  Without it, this test would
53469         always declare that fchownat doesn't work, and client code would
53470         unnecessarily use the replacement function with fixed libc.
53471         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53472         Reported by Greg Schafer.
53473
53474 2007-05-19  Bruno Haible  <bruno@clisp.org>
53475
53476         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53477         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53478         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53479         Needed for IRIX 6.5 and Solaris 2.5.1.
53480
53481 2007-05-19  Bruno Haible  <bruno@clisp.org>
53482
53483         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53484         (test_function): Skip tests involving -0.0 on platforms where
53485         -0.0 = 0.0.
53486         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53487         (test_function): Skip tests involving -0.0 on platforms where
53488         -0.0 = 0.0.
53489         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53490         (test_function): Skip tests involving -0.0 on platforms where
53491         -0.0 = 0.0.
53492         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53493         (test_function): Skip tests involving -0.0 on platforms where
53494         -0.0 = 0.0.
53495         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53496         tests.
53497         * tests/test-printf-posix.h (test_function): Likewise.
53498         * tests/test-printf-posix.output: Remove all -0.0 related results.
53499         Needed for IRIX 6.5.
53500
53501 2007-05-19  Bruno Haible  <bruno@clisp.org>
53502
53503         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53504         printed as "nan0x7fffffff" instead of "nan".
53505         * tests/test-vasprintf-posix.c (test_function): Likewise.
53506         * tests/test-snprintf-posix.h (test_function): Likewise.
53507         * tests/test-sprintf-posix.h (test_function): Likewise.
53508         * tests/test-fprintf-posix.h (NaN): Remove macro.
53509         (test_function): Remove all NaN related tests.
53510         * tests/test-printf-posix.h (NaN): Remove macro.
53511         (test_function): Remove all NaN related tests.
53512         * tests/test-printf-posix.output: Remove all NaN related results.
53513         Needed for IRIX 6.5.
53514
53515 2007-05-19  Bruno Haible  <bruno@clisp.org>
53516
53517         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53518         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53519
53520 2007-05-19  Bruno Haible  <bruno@clisp.org>
53521
53522         * lib/float_.h: New file.
53523         * m4/float_h.m4: New file.
53524         * modules/float: New file.
53525         * modules/isnanl (Dependencies): Add float.
53526         * modules/isnanl-nolibm (Dependencies): Likewise.
53527         * modules/mathl (Dependencies): Likewise.
53528         * modules/printf-frexpl (Dependencies): Likewise.
53529         * modules/signbit (Dependencies): Likewise.
53530         * modules/vasnprintf (Dependencies): Likewise.
53531         * doc/headers/float.texi: Update.
53532
53533 2007-05-19  Jim Meyering  <jim@meyering.net>
53534
53535         * lib/utimens.c (gl_futimens): Rename from futimens,
53536         now that glibc-2.6 declares futimens.
53537         * lib/utimens.h: Likewise.
53538
53539 2007-05-19  Bruno Haible  <bruno@clisp.org>
53540
53541         Avoid test failures on mingw.
53542         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53543         * tests/test-printf-posix.sh: Likewise.
53544         * tests/test-vfprintf-posix.sh: Likewise.
53545         * tests/test-vprintf-posix.sh: Likewise.
53546
53547 2007-05-19  Bruno Haible  <bruno@clisp.org>
53548
53549         Fix *printf result for NaN, Inf, -0.0 on mingw.
53550         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53551         * lib/vasnprintf.c: Include math.h and isnan.h.
53552         (is_infinite_or_zero): New function.
53553         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53554         values in the %f, %F, %e, %E, %g, %G directives.
53555         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53557         gl_PRINTF_INFINITE and test its result. Invoke
53558         gl_PREREQ_VASNPRINTF_INFINITE.
53559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53566         * doc/functions/fprintf.texi: Update.
53567         * doc/functions/printf.texi: Update.
53568         * doc/functions/snprintf.texi: Update.
53569         * doc/functions/sprintf.texi: Update.
53570         * doc/functions/vfprintf.texi: Update.
53571         * doc/functions/vprintf.texi: Update.
53572         * doc/functions/vsnprintf.texi: Update.
53573         * doc/functions/vsprintf.texi: Update.
53574
53575 2007-05-19  Bruno Haible  <bruno@clisp.org>
53576
53577         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53578         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53579         Instead of multiplying with 10^k, set extra_zeroes to k.
53580         (scale10_round_long_double): Remove function.
53581
53582 2007-05-18  Bruno Haible  <bruno@clisp.org>
53583
53584         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53585         introduced on 2007-05-06.
53586
53587 2007-05-18  Bruno Haible  <bruno@clisp.org>
53588
53589         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53590         %g directives.
53591         * tests/test-vasprintf-posix.c (test_function): Likewise.
53592         * tests/test-snprintf-posix.h (test_function): Likewise.
53593         * tests/test-sprintf-posix.h (test_function): Likewise.
53594
53595 2007-05-18  Bruno Haible  <bruno@clisp.org>
53596
53597         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53598         (strmatch): New function.
53599         (test_function): Test the %f directive on numbers of various exponents.
53600         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53601         (strmatch): New function.
53602         (test_function): Test the %f directive on numbers of various exponents.
53603         * tests/test-snprintf-posix.h (strmatch): New function.
53604         (test_function): Test the %f directive on numbers of various exponents.
53605         * tests/test-sprintf-posix.h (strmatch): New function.
53606         (test_function): Test the %f directive on numbers of various exponents.
53607         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53608         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53609         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53610         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53611
53612 2007-05-18  Bruno Haible  <bruno@clisp.org>
53613
53614         Add support for 'long double' number output.
53615         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53616         * lib/vasnprintf.c: Include math.h and float+.h.
53617         (mp_limb_t): New type.
53618         (GMP_LIMB_BITS): New macro.
53619         (mp_twolimb_t): New type.
53620         (GMP_TWOLIMB_BITS): New macro.
53621         (mpn_t): New type.
53622         (multiply, divide, convert_to_decimal, decode_long_double,
53623         scale10_round_long_double, scale10_round_decimal_long_double,
53624         floorlog10l): New functions.
53625         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53626         for the %f, %F, %e, %E, %g, %G directives.
53627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53629         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53630         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53638         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53639         * modules/snprintf-posix (Depends-on): Likewise.
53640         * modules/sprintf-posix (Depends-on): Likewise.
53641         * modules/vasnprintf-posix (Depends-on): Likewise.
53642         * modules/vasprintf-posix (Depends-on): Likewise.
53643         * modules/vfprintf-posix (Depends-on): Likewise.
53644         * modules/vsnprintf-posix (Depends-on): Likewise.
53645         * modules/vsprintf-posix (Depends-on): Likewise.
53646         * modules/vasnprintf (Files): Add lib/float+.h.
53647         * doc/functions/fprintf.texi: Update.
53648         * doc/functions/printf.texi: Update.
53649         * doc/functions/snprintf.texi: Update.
53650         * doc/functions/sprintf.texi: Update.
53651         * doc/functions/vfprintf.texi: Update.
53652         * doc/functions/vprintf.texi: Update.
53653         * doc/functions/vsnprintf.texi: Update.
53654         * doc/functions/vsprintf.texi: Update.
53655
53656 2007-05-18  Bruno Haible  <bruno@clisp.org>
53657
53658         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53659
53660 2007-05-18  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53663         for printing 64-bit integers. Needed for mingw.
53664
53665 2007-05-18  Bruno Haible  <bruno@clisp.org>
53666
53667         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53668         gl_FUNC_FREXPL_WORKS.
53669         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53670
53671 2007-05-18  Bruno Haible  <bruno@clisp.org>
53672
53673         * modules/frexpl-nolibm-tests: New file.
53674
53675         * modules/frexpl-nolibm: New file.
53676         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53677
53678 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53681         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53682         GCC 4.2, which otherwise issues a lot of warnings.
53683         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53684         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53685         Likewise.
53686         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53687         * modules/iconv_open (iconv.h): Likewise.
53688         * modules/locale (locale.h): Likewise.
53689         * modules/netinet_in (netinet/in.h): Likewise.
53690         * modules/sys_select (sys_select.h): Likewise.
53691         * modules/sys_socket (sys/socket.h): Likewise.
53692         * modules/sys_stat (sys/stat.h): Likewise.
53693         * modules/sysexits (sysexits.h): Likewise.
53694         * modules/unistd (unistd.h): Likewise.
53695
53696 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53697
53698         * modules/closein-tests (Makefile.am): Distribute
53699         `test-closein.sh'.
53700
53701 2007-05-17  Bruno Haible  <bruno@clisp.org>
53702
53703         * tests/test-printf-posix.output: Renamed from
53704         tests/test-fprintf-posix.out.
53705         * modules/fprintf-posix-tests: Update.
53706         * modules/printf-posix-tests: Update.
53707         * modules/vfprintf-posix-tests: Update.
53708         * modules/vprintf-posix-tests: Update.
53709         * tests/test-fprintf-posix.sh: Update.
53710         * tests/test-printf-posix.sh: Update.
53711         * tests/test-vfprintf-posix.sh: Update.
53712         * tests/test-vprintf-posix.sh: Update.
53713         Reported by Ralf Wildenhues.
53714
53715 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53716
53717         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53718         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53719         GCC 4.2, which otherwise issues a lot of warnings.
53720         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53721         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53722         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53723         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53724         it should no longer be needed.
53725         * lib/string_.h: Likewise.
53726         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53727         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53728         * modules/inttypes (inttypes.h): Likewise.
53729         * modules/math (math.h): Likewise.
53730         * modules/search (search.h): Likewise.
53731         * modules/signal (signal.h): Likewise.
53732         * modules/stdint (stdint.h): Likewise.
53733         * modules/stdio (stdio.h): Likewise.
53734         * modules/stdlib (stdlib.h): Likewise.
53735         * modules/string (string.h): Likewise.
53736         * modules/sys_time (sys/time.h): Likewise.
53737         * modules/time (time.h): Likewise.
53738         * modules/wchar (wchar.h): Likewise.
53739         * modules/wctype (wtype.h): Likewise.
53740
53741 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53742
53743         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53744
53745 2007-05-13  Bruno Haible  <bruno@clisp.org>
53746
53747         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53748         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53749         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53750         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53751         (gl_PREREQ_STRTOK_R): Don't require it here.
53752
53753 2007-05-13  Bruno Haible  <bruno@clisp.org>
53754
53755         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53756         when used in C++ mode.
53757
53758 2007-05-12  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/linebuffer.h: Tweak doc.
53761         * lib/linebuffer.c: Likewise.
53762
53763 2007-05-12  James Youngman  <jay@gnu.org>
53764
53765         * lib/linebuffer.c (readlinebuffer_delim): New function,
53766         like readlinebuffer, but use a caller-specified delimiter.
53767         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53768         as the delimiter.
53769         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53770
53771 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53772
53773         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53774         * modules/openat (Files): Remove openat-die.c.
53775         (Depends-on): Add openat-die.
53776         * modules/openat-die: New module.
53777
53778 2007-05-06  Bruno Haible  <bruno@clisp.org>
53779
53780         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53781         Update with info about Cygwin.
53782         * doc/functions/fprintf.texi: Update.
53783         * doc/functions/printf.texi: Update.
53784         * doc/functions/snprintf.texi: Update.
53785         * doc/functions/sprintf.texi: Update.
53786         * doc/functions/vfprintf.texi: Update.
53787         * doc/functions/vprintf.texi: Update.
53788         * doc/functions/vsnprintf.texi: Update.
53789         * doc/functions/vsprintf.texi: Update.
53790         Reported by Eric Blake.
53791
53792 2007-05-06  Bruno Haible  <bruno@clisp.org>
53793
53794         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53795         padding ourselves for the floating-point directives.
53796         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53799         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53800         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53801         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53802         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53808         * tests/test-snprintf-posix.h (test_function): Also check the width
53809         and some flags in the %f directive.
53810         * tests/test-sprintf-posix.h (test_function): Likewise.
53811         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53812         * tests/test-vasprintf-posix.c (test_function): Likewise.
53813         * doc/functions/fprintf.texi: Update.
53814         * doc/functions/printf.texi: Update.
53815         * doc/functions/snprintf.texi: Update.
53816         * doc/functions/sprintf.texi: Update.
53817         * doc/functions/vfprintf.texi: Update.
53818         * doc/functions/vprintf.texi: Update.
53819         * doc/functions/vsnprintf.texi: Update.
53820         * doc/functions/vsprintf.texi: Update.
53821
53822 2007-05-06  Bruno Haible  <bruno@clisp.org>
53823
53824         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53825         pass the ' flag character to sprintf or snprintf.
53826         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53829         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53830         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53832         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53838         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53839         flag.
53840         * tests/test-sprintf-posix.h (test_function): Likewise.
53841         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53842         * tests/test-vasprintf-posix.c (test_function): Likewise.
53843         * doc/functions/fprintf.texi: Update.
53844         * doc/functions/printf.texi: Update.
53845         * doc/functions/snprintf.texi: Update.
53846         * doc/functions/sprintf.texi: Update.
53847         * doc/functions/vfprintf.texi: Update.
53848         * doc/functions/vprintf.texi: Update.
53849         * doc/functions/vsnprintf.texi: Update.
53850         * doc/functions/vsprintf.texi: Update.
53851
53852 2007-05-01  Bruno Haible  <bruno@clisp.org>
53853
53854         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53855
53856 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53859         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53860
53861 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53864         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53866
53867 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53868
53869         * lib/argp-help.c (struct hol_entry): New member `ord'.
53870         (HOL_ENTRY_PTRCMP): Use ord for comparison
53871         (hol_sort): Initialize ord.
53872
53873 2007-05-01  Bruno Haible  <bruno@clisp.org>
53874
53875         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53876         Reported by Eric Blake.
53877         * doc/gnulib.texi (Function Substitutes): Update.
53878
53879 2007-05-01  Bruno Haible  <bruno@clisp.org>
53880
53881         * doc/functions.texi: Remove file, now redundant through
53882         doc/functions/*.texi.
53883
53884 2007-05-01  Bruno Haible  <bruno@clisp.org>
53885
53886         * modules/argp (Depends-on): Add sleep.
53887
53888 2007-05-01  Bruno Haible  <bruno@clisp.org>
53889
53890         * modules/sleep-tests: New file.
53891         * tests/test-sleep.c: New file.
53892
53893         * modules/sleep: New file.
53894         * lib/sleep.c: New file.
53895         * m4/sleep.m4: New file.
53896         * lib/unistd_.h (sleep): New declaration.
53897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53898         HAVE_SLEEP.
53899         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53900         * doc/functions/sleep.texi: Document the sleep module.
53901
53902 2007-05-01  Bruno Haible  <bruno@clisp.org>
53903
53904         * lib/sigprocmask.h: Remove file.
53905         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53906         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53907         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53908         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53909         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53910         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53911         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53912         HAVE_SIGSET_T as a shell variable.
53913         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53914         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53915         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53916         (Depends-on): Add signal. Remove verify.
53917         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53918         (Include): Mention <signal.h> instead of sigprocmask.h.
53919         * NEWS: Mention the change.
53920         * lib/fatal-signal.c: Don't include sigprocmask.h.
53921
53922 2007-05-01  Bruno Haible  <bruno@clisp.org>
53923
53924         * modules/signal: New file.
53925         * lib/signal_.h: New file.
53926         * m4/signal_h.m4: New file.
53927
53928 2007-05-01  Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53931         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53932         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53933         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53934
53935 2007-05-01  Bruno Haible  <bruno@clisp.org>
53936
53937         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53938         configure time.
53939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53940         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53941         * modules/sys_stat (Makefile.am): Substitute their values into
53942         sys/stat.h.
53943
53944 2007-05-01  Bruno Haible  <bruno@clisp.org>
53945
53946         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53947         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53948         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53949
53950 2007-05-01  Bruno Haible  <bruno@clisp.org>
53951
53952         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53953         'assert' module here.
53954
53955 2007-05-01  Bruno Haible  <bruno@clisp.org>
53956
53957         * doc/functions/*.texi: New files.
53958         * doc/functions/google-ranking.txt: New file.
53959         * doc/gnulib.texi (Function Substitutes): New chapter.
53960         (ctime, inet_ntoa): Remove sections.
53961         * doc/ctime.texi: Remove file.
53962         * doc/inet_ntoa.texi: Remove file.
53963         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53964         dependencies.
53965         (%.info): New rule, specifying a --reference-limit.
53966
53967 2007-05-01  Bruno Haible  <bruno@clisp.org>
53968
53969         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53970
53971 2007-05-01  Bruno Haible  <bruno@clisp.org>
53972
53973         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53974         the portability of 'mkdir' to mingw systems.
53975
53976 2007-05-01  Bruno Haible  <bruno@clisp.org>
53977
53978         * doc/headers/google-ranking.txt: New file.
53979
53980 2007-04-30  Eric Blake  <ebb9@byu.net>
53981
53982         Prefer fseeko to fseek.
53983         * modules/getpass (Depends-on): Add fseeko.
53984         * lib/getpass.c (getpass): Use fseeko, not fseek.
53985
53986 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53987
53988         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53989         assumes the sorting is stable, while most qsort implementations
53990         are not.  Use argument addresses to ensure they never compare as
53991         equal.
53992
53993         * tests/test-argp-2.sh (usage-indent test): Fix output
53994         (func_compare): Restore diff options
53995         * tests/test-argp.c: Restore #include "progname.h"
53996
53997 2007-04-29  Bruno Haible  <bruno@clisp.org>
53998
53999         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54001         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54003         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54004         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54005         (TESTS, check_PROGRAMS): Add test-snprintf.
54006         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54007         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54008         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54009         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54010         assertions that fail on HP-UX, OSF/1, or IRIX.
54011         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54012
54013 2007-04-29  Bruno Haible  <bruno@clisp.org>
54014
54015         * MODULES.html.sh (posix_functions): Remove 'contents'.
54016
54017 2007-04-29  Karl Berry  <karl@gnu.org>
54018
54019         * config/srclist.txt (gendocs_template_min): new entry.
54020
54021 2007-04-29  Bruno Haible  <bruno@clisp.org>
54022
54023         Work around fpurge bug on BSD systems.
54024         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54025         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54026         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54027         fpurge to rpl_fpurge if the system already has this function.
54028         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54029         the case where the system already has this function. Correct invariants
54030         on BSD systems.
54031         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54032         BSD systems.
54033
54034 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54035
54036         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54037         proposed by Sven Verdoolaege.
54038
54039         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54040         options.
54041         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54042         (usage and help tests): Update
54043
54044 2007-04-29  Bruno Haible  <bruno@clisp.org>
54045
54046         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54047         Print more information in case of failure. Disable a test on BeOS.
54048
54049 2007-04-29  Bruno Haible  <bruno@clisp.org>
54050
54051         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54052         This helps debugging on systems on which no gdb is available.
54053
54054 2007-04-29  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/freading.h: Improve comments.
54057         * lib/fwriting.h: Likewise.
54058         * tests/test-freading.c (main): Don't check freading immediately after
54059         repositioning. Needed for glibc.
54060
54061 2007-04-29  Bruno Haible  <bruno@clisp.org>
54062
54063         * lib/freading.c (freading): Trivial simplification.
54064
54065 2007-04-28  Bruno Haible  <bruno@clisp.org>
54066
54067         * tests/test-fwriting.c (main): Also test the interaction between
54068         fflush and fwriting.
54069         * modules/fwriting-tests (Depends-on): Add fflush.
54070
54071         * tests/test-freading.c (main): Also test the interaction between
54072         fflush and freading.
54073         * modules/freading-tests (Depends-on): Add fflush.
54074
54075 2007-04-28  Bruno Haible  <bruno@clisp.org>
54076
54077         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54078         fseeko and ftello.
54079         Suggested by Eric Blake.
54080
54081 2007-04-28  Jim Meyering  <jim@meyering.net>
54082
54083         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54084         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54085         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54086
54087 2007-04-27  Eric Blake  <ebb9@byu.net>
54088
54089         * doc/headers/assert.texi (assert.h): Document assert module use.
54090
54091 2007-04-27  Bruno Haible  <bruno@clisp.org>
54092
54093         * doc/headers/*.texi: New files.
54094         * doc/gnulib.texi (Header File Substitutes): New chapter.
54095         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54096         dependencies.
54097         (standards.info ,standards.html, standards.dvi): Update dependencies.
54098         (mostlyclean, clean): New targets.
54099
54100 2007-04-27  Bruno Haible  <bruno@clisp.org>
54101
54102         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54103         * modules/sysexits (Files, Makefile.am): Update.
54104
54105         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54106         * modules/sys_socket (Files, Makefile.am): Update.
54107
54108         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54109         * modules/sys_stat (Files, Makefile.am): Update.
54110
54111 2007-04-27  Eric Blake  <ebb9@byu.net>
54112
54113         * lib/freading.h: Improve comments.
54114         * lib/fwriting.h: Likewise.
54115         * lib/fflush.c: Likewise.
54116
54117         Fix closein for mingw.
54118         * modules/closein-tests: Add tests for closein.
54119         * tests/test-closein.c: New file.
54120         * tests/test-closein.sh: Likewise.
54121         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54122         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54123
54124 2007-04-27  Bruno Haible  <bruno@clisp.org>
54125
54126         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54127         version is < 6.
54128         * lib/math_.h [__DECC]: Likewise.
54129         * lib/stdio_.h [__DECC]: Likewise.
54130         * lib/stdlib_.h [__DECC]: Likewise.
54131         * lib/string_.h [__DECC]: Likewise.
54132         * lib/time_.h [__DECC]: Likewise.
54133         * lib/wchar_.h [__DECC]: Likewise.
54134         * lib/wctype_.h [__DECC]: Likewise.
54135
54136 2007-04-27  Bruno Haible  <bruno@clisp.org>
54137
54138         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54139
54140 2007-04-27  Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/fflush.c: Add comments.
54143         * modules/fpurge-tests (Depends-on): Add fflush.
54144         * modules/freadable-tests (Depends-on): Likewise.
54145         * modules/fwritable-tests (Depends-on): Likewise.
54146
54147 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54148
54149         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54150         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54151         Report by Bruno Haible <bruno@clisp.org>.
54152
54153 2007-04-26  Eric Blake  <ebb9@byu.net>
54154
54155         Fix fflush on mingw.
54156         * modules/fflush (Depends-on): Add freading.
54157         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54158         but unread data.
54159
54160 2007-04-26  Eric Blake  <ebb9@byu.net>
54161         and Bruno Haible  <bruno@clisp.org>
54162
54163         Implement freading and fwriting.
54164         * lib/freading.c: New file.
54165         * lib/freading.h: Likewise.
54166         * m4/freading.m4: Likewise.
54167         * modules/freading: Likewise.
54168         * modules/freading-tests: Likewise.
54169         * tests/test-freading.c: Likewise.
54170         * lib/fwriting.c: New file.
54171         * lib/fwriting.h: Likewise.
54172         * m4/fwriting.m4: Likewise.
54173         * modules/fwriting: Likewise.
54174         * modules/fwriting-tests: Likewise.
54175         * tests/test-fwriting.c: Likewise.
54176         * MODULES.html.sh (File stream based Input/Output): Mention them.
54177
54178 2007-04-26  Bruno Haible  <bruno@clisp.org>
54179
54180         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54181         'long' when we assume it.
54182         Suggested by Eric Blake.
54183
54184 2007-04-26  Bruno Haible  <bruno@clisp.org>
54185
54186         Ensure fseeko, ftello are declared on glibc systems.
54187         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54188         * modules/fseeko (configure.ac-early): Likewise.
54189         * modules/ftello (configure.ac-early): Likewise.
54190         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54191         AC_FUNC_FSEEKO for this.
54192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54193         (gl_CHECK_FSEEKO): Remove macro.
54194
54195 2007-04-26  Bruno Haible  <bruno@clisp.org>
54196
54197         * tests/test-fflush.c (main): Also check the ftell result after
54198         fflush and fseek/fseeko.
54199         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54200         file descriptor position cache in the stream.
54201         * lib/fseeko.c (rpl_fseeko): Likewise.
54202
54203 2007-04-26  Bruno Haible  <bruno@clisp.org>
54204
54205         * modules/fflush-tests (Depends-on): Add fseeko.
54206
54207 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54208             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54209
54210         * lib/argz_.h: ensure error_t definition is obtained in same
54211         mechanism system argz.h would have.
54212         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54213         argz facilities are known bad.  Err on the side of caution if
54214         cross-compiling.
54215
54216 2007-04-25  Eric Blake  <ebb9@byu.net>
54217
54218         * lib/fpurge.c (includes): Use stdlib.h for free.
54219         * tests/test-fflush.c (main): Also test fflush-fseeko.
54220
54221 2007-04-25  Bruno Haible  <bruno@clisp.org>
54222
54223         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54224         * lib/fseeko.c: New file.
54225         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54226         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54227         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54228         gl_FUNC_FSEEKO.
54229         (gl_FUNC_FSEEKO): Invoke it.
54230         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54231         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54232         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54233
54234 2007-04-25  Bruno Haible  <bruno@clisp.org>
54235
54236         * modules/fflush (Depends-on): Add ftello.
54237
54238 2007-04-25  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/ftello-tests: New file.
54241         * tests/test-ftello.c: New file.
54242
54243         * modules/ftello: New file.
54244         * m4/ftello.m4: New file.
54245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54246         HAVE_FTELLO.
54247         * lib/stdio_.h (ftello): New declaration.
54248         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54249         HAVE_FTELLO.
54250
54251 2007-04-25  Bruno Haible  <bruno@clisp.org>
54252
54253         * modules/fseeko-tests: New file.
54254         * tests/test-fseeko.c: New file.
54255
54256         * modules/fseeko: New file.
54257         * m4/fseeko.m4: New file.
54258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54259         HAVE_FSEEKO.
54260         * lib/stdio_.h (fseeko): New declaration.
54261         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54262         HAVE_FSEEKO.
54263
54264 2007-04-25  Bruno Haible  <bruno@clisp.org>
54265
54266         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54267
54268 2007-04-25  Bruno Haible  <bruno@clisp.org>
54269
54270         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54271         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54272         * tests/test-unistd.c: Likewise.
54273         * tests/test-fcntl.c: Likewise.
54274
54275 2007-04-23  Eric Blake  <ebb9@byu.net>
54276
54277         * lib/fflush.c: Fix missing include.
54278         Reported by Bruno Haible.
54279
54280 2007-04-23  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54283         Reported by Eric Blake.
54284
54285 2007-04-23  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54288
54289 2007-04-23  Bruno Haible  <bruno@clisp.org>
54290
54291         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54292
54293 2007-04-23  Bruno Haible  <bruno@clisp.org>
54294
54295         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54296         Needed on HP-UX 11.
54297
54298 2007-04-16  Eric Blake  <ebb9@byu.net>
54299
54300         Make fflush rely on fpurge.
54301         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54302         open coding all variants.
54303         * modules/fflush (Depends-on): Add fpurge and unistd.
54304         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54305         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54306
54307         Fix --with-tests compilation on cygwin.
54308         * modules/argmatch-tests (Makefile.am): List gnulib library first
54309         in LDADD.
54310         * modules/argp-tests (Makefile.am): Likewise.
54311         * modules/array-list-tests (Makefile.am): Likewise.
54312         * modules/array-oset-tests (Makefile.am): Likewise.
54313         * modules/avltree-list-tests (Makefile.am): Likewise.
54314         * modules/avltree-oset-tests (Makefile.am): Likewise.
54315         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54316         * modules/carray-list-tests (Makefile.am): Likewise.
54317         * modules/dirname-tests (Makefile.am): Likewise.
54318         * modules/frexp-tests (Makefile.am): Likewise.
54319         * modules/isnanl-tests (Makefile.am): Likewise.
54320         * modules/linked-list-tests (Makefile.am): Likewise.
54321         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54322         * modules/lock-tests (Makefile.am): Likewise.
54323         * modules/rbtree-list-tests (Makefile.am): Likewise.
54324         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54325         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54326         * modules/tls-tests (Makefile.am): Likewise.
54327         * modules/tsearch-tests (Makefile.am): Likewise.
54328         * modules/xvasprintf-tests (Makefile.am): Likewise.
54329
54330         Fix fpurge for cygwin.
54331         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54332         value.
54333         * modules/fpurge-tests (Depends-on): Clean up trash.
54334
54335 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54336
54337         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54338
54339         * m4/autobuild.m4: Re-indent.
54340
54341 2007-04-13  Bruno Haible  <bruno@clisp.org>
54342
54343         * modules/fpurge-tests: New file.
54344         * tests/test-fpurge.c: New file.
54345
54346         * modules/fpurge: New file.
54347         * lib/fpurge.h: New file.
54348         * lib/fpurge.c: New file.
54349         * m4/fpurge.m4: New file.
54350
54351 2007-04-13  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/fbufmode-tests: New file.
54354         * tests/test-fbufmode.c: New file.
54355
54356         * modules/fbufmode: New file.
54357         * lib/fbufmode.h: New file.
54358         * lib/fbufmode.c: New file.
54359         * m4/fbufmode.m4: New file.
54360
54361 2007-04-13  Bruno Haible  <bruno@clisp.org>
54362
54363         * modules/fwritable-tests: New file.
54364         * tests/test-fwritable.c: New file.
54365
54366         * modules/fwritable: New file.
54367         * lib/fwritable.h: New file.
54368         * lib/fwritable.c: New file.
54369         * m4/fwritable.m4: New file.
54370
54371 2007-04-13  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/freadable-tests: New file.
54374         * tests/test-freadable.c: New file.
54375
54376         * modules/freadable: New file.
54377         * lib/freadable.h: New file.
54378         * lib/freadable.c: New file.
54379         * m4/freadable.m4: New file.
54380
54381 2007-04-13  Bruno Haible  <bruno@clisp.org>
54382
54383         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54384         MOSTLYCLEANFILES.
54385
54386 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54387
54388         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54389         gzip bootstrap.conf to avoid dragging in i18n machinery.
54390         (gnulib_tool_option): Use it.
54391
54392 2007-04-13  Bruno Haible  <bruno@clisp.org>
54393
54394         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54395         %F directives.
54396         * tests/test-vasprintf-posix.c (test_function): Likewise.
54397         * tests/test-snprintf-posix.h (test_function): Likewise.
54398         * tests/test-sprintf-posix.h (test_function): Likewise.
54399         * tests/test-fprintf-posix.h (test_function): Likewise.
54400         * tests/test-printf-posix.h (test_function): Likewise.
54401         * tests/test-fprintf-posix.out: Likewise.
54402
54403 2007-04-13  Bruno Haible  <bruno@clisp.org>
54404
54405         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54406         * modules/tls-tests (configure.ac): Likewise.
54407         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54408
54409 2007-04-13  Bruno Haible  <bruno@clisp.org>
54410
54411         * lib/tls.c (glthread_tls_get): Fix return type.
54412         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54413
54414 2007-04-12  Eric Blake  <ebb9@byu.net>
54415
54416         * modules/gettime (Depends-on): Remove gettime.
54417         Reported by Dmitry V. Levin.
54418
54419 2007-04-12  Bruno Haible  <bruno@clisp.org>
54420
54421         * modules/fflush (Include): Mention <stdio.h>.
54422         * modules/strtoimax (Include): Mention <inttypes.h>.
54423         * modules/strtoumax (Include): Likewise.
54424
54425 2007-04-12  Eric Blake  <ebb9@byu.net>
54426
54427         * .cvsignore: New file.
54428         * .gitignore: Likewise.
54429
54430 2007-04-12  Bruno Haible  <bruno@clisp.org>
54431
54432         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54433         not before, since $(LDADD) often contains libgnu.a.
54434         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54435         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54436         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54437         Needed on Cygwin.
54438
54439 2007-04-12  Eric Blake  <ebb9@byu.net>
54440
54441         Work around glibc's failure to flush stdin on fclose.
54442         * lib/closein.c (close_stdin): Flush stdin before closing.
54443
54444         Work around glibc's failure to reset seekable stdin on exit.
54445         * modules/closein: New module.
54446         * lib/closein.c: New file.
54447         * lib/closein.h: Likewise.
54448         * m4/closein.m4: Likewise.
54449         * MODULES.html.sh (File stream based Input/Output): Document it.
54450
54451 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54452
54453         * gnulib-tool: Rename generated 'autobuild' script to
54454         'do-autobuild' in --create-megatestdir output.
54455
54456         * doc/gnulib.texi (Build robot for gnulib): Fix.
54457
54458 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54459
54460         * modules/sysexits (Depends-on): Add absolute-header.
54461
54462 2007-04-12  Eric Blake  <ebb9@byu.net>
54463
54464         No need to preserve errno on success.
54465         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54466         Reported by Bruno Haible.
54467
54468 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54469
54470         * MODULES.html.sh (Support for maintaining and releasing
54471         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54472
54473 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54474
54475         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54476
54477 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54478
54479         * modules/autobuild: New module.
54480
54481         * m4/autobuild.m4: New file.
54482
54483 2007-04-11  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54486         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54490         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54491         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54493         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54494         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54496         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54497         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54499         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54500         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54513         Reported by Eric Blake.
54514
54515 2007-04-11  Bruno Haible  <bruno@clisp.org>
54516
54517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54518
54519 2007-04-10  Bruno Haible  <bruno@clisp.org>
54520
54521         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54522         for NaN and Infinity. Needed on FreeBSD 6.1.
54523         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54524         regarding results for "%010a" of Infinity and NaN.
54525         * tests/test-vasprintf-posix.c (test_function): Likewise.
54526         * tests/test-snprintf-posix.h (test_function): Likewise.
54527         * tests/test-sprintf-posix.h (test_function): Likewise.
54528         * tests/test-fprintf-posix.h (test_function): Likewise.
54529         * tests/test-printf-posix.h (test_function): Likewise.
54530         * tests/test-fprintf-posix.out: Likewise.
54531
54532 2007-04-10  Bruno Haible  <bruno@clisp.org>
54533
54534         * modules/locale-tests: New file.
54535         * tests/test-locale.c: New file.
54536
54537         * modules/locale: New file.
54538         * lib/locale_.h: New file.
54539         * m4/locale_h.m4: New file.
54540
54541 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54542             Bruno Haible  <bruno@clisp.org>
54543
54544         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54545         be determined, test for availability of the copysignf, copysign,
54546         copysignl functions.
54547         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54548         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54549         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54550
54551 2007-04-09  Eric Blake  <ebb9@byu.net>
54552
54553         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54554         * modules/stdio (Makefile.am): Support fflush.
54555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54556         * modules/fflush: New file.
54557         * lib/fflush.c: Likewise.
54558         * m4/fflush.m4: Likewise.
54559         * modules/fflush-tests: New test.
54560         * tests/test-fflush.c: Likewise.
54561         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54562
54563 2007-04-06  Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54566         (VASNPRINTF): Use signbit for faster determination whether to print a
54567         minus sign.
54568         * modules/vasnprintf (Files): Remove lib/float+.h.
54569         * modules/fprintf-posix (Depends-on): Add signbit.
54570         * modules/snprintf-posix (Depends-on): Likewise.
54571         * modules/sprintf-posix (Depends-on): Likewise.
54572         * modules/vasnprintf-posix (Depends-on): Likewise.
54573         * modules/vasprintf-posix (Depends-on): Likewise.
54574         * modules/vfprintf-posix (Depends-on): Likewise.
54575         * modules/vsnprintf-posix (Depends-on): Likewise.
54576         * modules/vsprintf-posix (Depends-on): Likewise.
54577
54578 2007-04-06  Bruno Haible  <bruno@clisp.org>
54579
54580         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54581         * tests/test-frexpl.c (main): Likewise.
54582         * tests/test-ldexpl.c (main): Likewise.
54583         * modules/frexp-tests (Depends-on): Add signbit.
54584         * modules/frexpl-tests (Depdends-on): Likewise.
54585         * modules/ldexpl-tests (Depdends-on): Likewise.
54586
54587 2007-04-06  Bruno Haible  <bruno@clisp.org>
54588
54589         * modules/signbit-tests: New file.
54590         * tests/test-signbit.c: New file.
54591
54592         * modules/signbit: New file.
54593         * lib/signbitf.c: New file.
54594         * lib/signbitd.c: New file.
54595         * lib/signbitl.c: New file.
54596         * m4/signbit.m4: New file.
54597         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54598         (signbit): New macro.
54599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54600         REPLACE_SIGNBIT.
54601         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54602         REPLACE_FREXPL into math.h.
54603
54604 2007-04-06  Bruno Haible  <bruno@clisp.org>
54605
54606         * modules/isnanf-nolibm-tests: New file.
54607         * tests/test-isnanf.c: New file.
54608
54609         * modules/isnanf-nolibm: New file.
54610         * lib/isnanf.h: New file.
54611         * lib/isnanf.c: New file.
54612         * lib/isnan.c: Consider the USE_FLOAT macro.
54613         * m4/isnanf.m4: New file.
54614
54615 2007-04-06  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54618         (Link): New section.
54619
54620         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54621
54622 2007-04-06  Bruno Haible  <bruno@clisp.org>
54623
54624         Assume the 'long double' type.
54625         * m4/longdouble.m4: Remove file.
54626         * config/srclist.txt: Don't mention longdouble.m4.
54627         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54628         * lib/float+.h: Likewise.
54629         * lib/frexp.c: Likewise.
54630         * lib/printf-args.h: Likewise.
54631         * lib/printf-args.c: Likewise.
54632         * lib/printf-frexp.c: Likewise.
54633         * lib/printf-parse.c: Likewise.
54634         * lib/vasnprintf.c: Likewise.
54635         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54636         * m4/intl.m4: Likewise.
54637         * m4/isnanl.m4: Likewise.
54638         * m4/printf.m4: Likewise.
54639         * m4/printf-frexpl.m4: Likewise.
54640         * m4/vasnprintf.m4: Likewise.
54641         * modules/allocsa (Files): Remove m4/longdouble.m4.
54642         * modules/gettext (Files): Likewise.
54643         * modules/relocatable-prog-wrapper (Files): Likewise.
54644         * modules/vasnprintf (Files): Likewise.
54645         * modules/isnanl (Files): Likewise.
54646         (Include): Simplify.
54647         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54648         (Include): Simplify.
54649         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54650         (Include): Simplify.
54651         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54652         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54653         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54654         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54655         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54656         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54657         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54658         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54659         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54660         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54661         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54662         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54663         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54664         * tests/test-isnanl.c: Likewise.
54665         * tests/test-snprintf-posix.h: Likewise.
54666         * tests/test-sprintf-posix.h: Likewise.
54667         * tests/test-vasnprintf-posix.c: Likewise.
54668         * tests/test-vasnprintf-posix2.c: Likewise.
54669         * tests/test-vasprintf-posix.c: Likewise.
54670
54671 2007-04-06  Bruno Haible  <bruno@clisp.org>
54672
54673         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54674         * lib/math_.h [__DECC]: Include the overridden include file through
54675         #include_next, outside the double-inclusion guard.
54676         * lib/stdio_.h [__DECC]: Likewise.
54677         * lib/stdlib_.h [__DECC]: Likewise.
54678         * lib/string_.h [__DECC]: Likewise.
54679         * lib/time_.h [__DECC]: Likewise.
54680         * lib/wchar_.h [__DECC]: Likewise.
54681         * lib/wctype_.h [__DECC]: Likewise.
54682         * lib/inttypes_.h [__DECC]: Likewise.
54683         Reported by Albert Chin <china@thewrittenword.com> in
54684         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54685
54686 2007-04-04  Eric Blake  <ebb9@byu.net>
54687
54688         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54689         1.5.x.
54690
54691 2007-04-04  Bruno Haible  <bruno@clisp.org>
54692
54693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54694         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54695
54696 2007-04-04  Bruno Haible  <bruno@clisp.org>
54697
54698         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54699         results for "%010a" of Infinity and NaN.
54700         * tests/test-vasprintf-posix.c (test_function): Likewise.
54701         * tests/test-snprintf-posix.h (test_function): Likewise.
54702         * tests/test-sprintf-posix.h (test_function): Likewise.
54703         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54704         * tests/test-printf-posix.h (test_function): Likewise.
54705         * tests/test-fprintf-posix.out: Update.
54706         Needed for FreeBSD 6.1.
54707
54708 2007-04-04  Bruno Haible  <bruno@clisp.org>
54709
54710         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54711         directly used by the gnulib modules nor by gnulib-tool.
54712
54713 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54714
54715         * DEPENDENCIES: Give overall description of version dependency
54716         desirability.  Use more-typical names for apps.
54717         Add shell, coreutils, diffutils, grep, tar, gzip.
54718
54719 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54720
54721         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54722
54723 2007-04-04  Karl Berry  <karl@gnu.org>
54724
54725         * MODULES.html.sh (func_module): missing '.
54726
54727 2007-04-03  Bruno Haible  <bruno@clisp.org>
54728
54729         * modules/argmatch-tests (Makefile.am): New variable
54730         test_argmatch_LDADD.
54731         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54732         * modules/array-list-tests (Makefile.am): New variable
54733         test_array_list_LDADD.
54734         * modules/array-oset-tests (Makefile.am): New variable
54735         test_array_oset_LDADD.
54736         * modules/avltree-list-tests (Makefile.am): New variable
54737         test_avltree_list_LDADD.
54738         * modules/avltree-oset-tests (Makefile.am): New variable
54739         test_avltree_oset_LDADD.
54740         * modules/avltreehash-list-tests (Makefile.am): New variable
54741         test_avltreehash_list_LDADD.
54742         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54743         test_canonicalize_lgpl_LDADD.
54744         * modules/carray-list-tests (Makefile.am): New variable
54745         test_carray_list_LDADD.
54746         * modules/dirname-tests (Makefile.am): New variable
54747         test_dirname_LDADD.
54748         * modules/linked-list-tests (Makefile.am): New variable
54749         test_linked_list_LDADD.
54750         * modules/linkedhash-list-tests (Makefile.am): New variable
54751         test_linkedhash_list_LDADD.
54752         * modules/rbtree-list-tests (Makefile.am): New variable
54753         test_rbtree_list_LDADD.
54754         * modules/rbtree-oset-tests (Makefile.am): New variable
54755         test_rbtree_oset_LDADD.
54756         * modules/rbtreehash-list-tests (Makefile.am): New variable
54757         test_rbtreehash_list_LDADD.
54758         * modules/xvasprintf-tests (Makefile.am): New variable
54759         test_xvasprintf_LDADD.
54760         Reported by Eric Blake.
54761
54762 2007-04-03  Eric Blake  <ebb9@byu.net>
54763
54764         * DEPENDENCIES: Weaken m4 requirements.
54765
54766 2007-04-03  Bruno Haible  <bruno@clisp.org>
54767
54768         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54769         * modules/isnanl-tests (configure.ac): Likewise.
54770
54771 2007-04-03  Ben Pfaff  <blp@gnu.org>
54772
54773         * modules/iconv_open: Add $(srcdir)/ to source directory
54774         references in Makefile fragments that call gperf, to fix VPATH
54775         builds.
54776
54777 2007-04-03  Bruno Haible  <bruno@clisp.org>
54778
54779         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54780         * lib/ldexpl.c: Undo last change.
54781
54782 2007-04-03  Bruno Haible  <bruno@clisp.org>
54783
54784         * modules/printf-frexpl (Depends-on): Undo last change.
54785         (Files): Add m4/ldexpl.m4.
54786
54787 2007-04-03  Bruno Haible  <bruno@clisp.org>
54788
54789         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54790         * modules/isnanl (Link): New section.
54791
54792         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54793         * modules/frexp (Link): New section.
54794
54795         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54796         * modules/frexpl (Link): New section.
54797
54798         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54799         * modules/ldexpl (Link): New section.
54800
54801 2007-04-03  Bruno Haible  <bruno@clisp.org>
54802
54803         * modules/TEMPLATE-EXTENDED: New file.
54804         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54805
54806 2007-04-03  Bruno Haible  <bruno@clisp.org>
54807
54808         * DEPENDENCIES: New file.
54809         Suggested by Simon Josefsson.
54810
54811 2007-04-03  Bruno Haible  <bruno@clisp.org>
54812
54813         * doc/gnulib.texi: Escape @.
54814
54815 2007-04-03  James Youngman  <jay@gnu.org>
54816         and Paul Eggert  <eggert@cs.ucla.edu>
54817
54818         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54819         birthtime on all systems that have birthtime, not just those which
54820         use st_birthtimensec rather than st_birthtim.  Putting zero in
54821         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54822         that the birth time is not available for files on an NFS mount.
54823
54824 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54825
54826         * modules/memxor: Move back from crypto/, suggested by Bruno.
54827         * modules/crypto/hmac-sha1: Fix memxor dependency.
54828
54829         * modules/crypto/gc: Moved from ../.
54830
54831 2007-04-02  Eric Blake  <ebb9@byu.net>
54832
54833         * lib/ldexpl.c (includes): Avoid libm.
54834
54835         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54836
54837 2007-04-02  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54840         on IRIX.
54841
54842 2007-04-02  Bruno Haible  <bruno@clisp.org>
54843
54844         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54845         x86 or x86_64 platforms running MacOS X.
54846         Reported by Ryan Schmidt <@ryandesign.com>.
54847
54848 2007-04-02  Bruno Haible  <bruno@clisp.org>
54849
54850         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54851         i386.
54852
54853 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54854
54855         * modules/crypto/arcfour: Moved from ../.
54856         * modules/crypto/arcfour-tests: Moved from ../.
54857         * modules/crypto/arctwo: Moved from ../.
54858         * modules/crypto/arctwo-tests: Moved from ../.
54859         * modules/crypto/des: Moved from ../.
54860         * modules/crypto/des-tests: Moved from ../.
54861         * modules/crypto/gc-arcfour: Moved from ../.
54862         * modules/crypto/gc-arcfour-tests: Moved from ../.
54863         * modules/crypto/gc-arctwo: Moved from ../.
54864         * modules/crypto/gc-arctwo-tests: Moved from ../.
54865         * modules/crypto/gc-des: Moved from ../.
54866         * modules/crypto/gc-des-tests: Moved from ../.
54867         * modules/crypto/gc-hmac-md5: Moved from ../.
54868         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54869         * modules/crypto/gc-hmac-sha1: Moved from ../.
54870         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54871         * modules/crypto/gc-md2: Moved from ../.
54872         * modules/crypto/gc-md2-tests: Moved from ../.
54873         * modules/crypto/gc-md4: Moved from ../.
54874         * modules/crypto/gc-md4-tests: Moved from ../.
54875         * modules/crypto/gc-md5: Moved from ../.
54876         * modules/crypto/gc-md5-tests: Moved from ../.
54877         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54878         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54879         * modules/crypto/gc-random: Moved from ../.
54880         * modules/crypto/gc-rijndael: Moved from ../.
54881         * modules/crypto/gc-rijndael-tests: Moved from ../.
54882         * modules/crypto/gc-sha1: Moved from ../.
54883         * modules/crypto/gc-sha1-tests: Moved from ../.
54884         * modules/crypto/gc-tests: Moved from ../.
54885         * modules/crypto/hmac-md5: Moved from ../.
54886         * modules/crypto/hmac-md5-tests: Moved from ../.
54887         * modules/crypto/hmac-sha1: Moved from ../.
54888         * modules/crypto/hmac-sha1-tests: Moved from ../.
54889         * modules/crypto/md2: Moved from ../.
54890         * modules/crypto/md2-tests: Moved from ../.
54891         * modules/crypto/md4: Moved from ../.
54892         * modules/crypto/md4-tests: Moved from ../.
54893         * modules/crypto/md5: Moved from ../.
54894         * modules/crypto/md5-tests: Moved from ../.
54895         * modules/crypto/memxor: Moved from ../.
54896         * modules/crypto/rijndael: Moved from ../.
54897         * modules/crypto/rijndael-tests: Moved from ../.
54898         * modules/crypto/sha1: Moved from ../.
54899
54900 2007-03-30  James Youngman  <jay@gnu.org>
54901
54902         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54903         rename() to change the ctime of a file (because ctime is unaffected
54904         by rename on jfs2 on AIX 5.1).
54905         (main): Start by doing cleanup, in case a previous run failed leaving
54906         test files behind.
54907
54908 2007-03-31  Bruno Haible  <bruno@clisp.org>
54909
54910         Support old proprietary implementations of iconv.
54911         * modules/iconv_open: New file.
54912         * lib/iconv_.h: New file.
54913         * m4/iconv_h.m4: New file.
54914         * lib/iconv_open.c: New file.
54915         * lib/iconv_open-aix.gperf: New file.
54916         * lib/iconv_open-hpux.gperf: New file.
54917         * lib/iconv_open-irix.gperf: New file.
54918         * lib/iconv_open-osf.gperf: New file.
54919         * m4/iconv_open.m4: New file.
54920         * modules/linebreak (Depends-on): Add iconv_open.
54921         * modules/striconv (Depends-on): Likewise.
54922         * modules/striconveh (Depends-on): Likewise.
54923         * modules/unicodeio (Depends-on): Likewise.
54924         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54925         (iconv_t)(-1).
54926         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54927         conversion if cd is (iconv_t)(-1).
54928         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54929         is not possible.
54930
54931 2007-03-31  Bruno Haible  <bruno@clisp.org>
54932
54933         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54934         work on Solaris either. Protect also second use of "autodetect_jp".
54935
54936 2007-03-31  Bruno Haible  <bruno@clisp.org>
54937
54938         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54939         the function is not present.
54940
54941 2007-03-31  Bruno Haible  <bruno@clisp.org>
54942
54943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54944         the function is not present.
54945
54946 2007-03-31  Bruno Haible  <bruno@clisp.org>
54947
54948         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54949         a bug in HP-UX iconv_open().
54950
54951 2007-03-31  Bruno Haible  <bruno@clisp.org>
54952
54953         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54954         (Mathematics <math.h>): New section, add fpieee.
54955         (Input/output <stdio.h>): Add fseterr.
54956         (Mathematics <math.h>): New section, add printf-frexp.
54957         (Container data structures): Add sublist.
54958         (Core language properties): Add fpucw, inline.
54959         (Functions for greatest-width integer types <inttypes.h>): Add
54960         imaxabs, imaxdiv, inttypes.
54961         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54962         isnanl-nolibm, ldexp.
54963         (Mathematics <math.h>): New section, add printf-frexpl.
54964         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54965         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54966         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54967         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54968         (Unicode string functions): Add unistr/u*-mbtoucr.
54969         (Java): Add javacomp-script, javaexec-script.
54970         (C#): Add csharpcomp-script, csharpexec-script.
54971         (Support for building libraries and executables): Add havelib,
54972         relocatable-*.
54973         (Support for maintaining and releasing projects): Renamed from
54974         'Support for maintaining and release projects'. Add announce-gen.
54975
54976 2007-03-31  Bruno Haible  <bruno@clisp.org>
54977
54978         * README: Talk primarily about git.
54979         (git and CVS): Renamed from CVS.
54980         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54981         gnulib is available through git.
54982         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54983
54984 2007-03-30  Bruno Haible  <bruno@clisp.org>
54985
54986         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54987         * lib/poll_.h: Likewise.
54988         * lib/stat_.h: Likewise.
54989         * lib/sys_time_.h: Likewise.
54990         * lib/sysexit_.h: Likewise.
54991         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54992         * lib/stdbool_.h: Likewise.
54993         * lib/byteswap_.h: Add double-inclusion guard.
54994
54995 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54996
54997         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54998
54999 2007-03-30  Karl Berry  <karl@gnu.org>
55000
55001         * config/srclist-update: double space after USA in the license
55002         substitution, since that's how it's usually (?) written.
55003
55004 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55005
55006         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55007         reported by Bruno Haible.
55008
55009 2007-03-29  Bruno Haible  <bruno@clisp.org>
55010
55011         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55012         a bug in AIX iconv().
55013
55014 2007-03-29  Bruno Haible  <bruno@clisp.org>
55015
55016         * modules/ldexpl-tests: New file.
55017         * tests/test-ldexpl.c: New file.
55018
55019 2007-03-29  Bruno Haible  <bruno@clisp.org>
55020
55021         * lib/ldexpl.c: Include fpucw.h.
55022         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55023         multiplication.
55024         * modules/ldexpl (Depends-on): Add fpucw.
55025
55026 2007-03-29  Bruno Haible  <bruno@clisp.org>
55027
55028         * modules/ldexpl: New file.
55029         * m4/ldexpl.m4: New file.
55030         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55031         set.
55032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55033         REPLACE_LDEXPL.
55034         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55035         REPLACE_LDEXPL.
55036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55037         gl_FUNC_LDEXPL_WORKS.
55038         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55039         * modules/mathl (Files): Remove lib/ldexpl.c.
55040         (Depends-on): Add ldexpl.
55041
55042 2007-03-29  Bruno Haible  <bruno@clisp.org>
55043
55044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55045
55046 2007-03-29  Bruno Haible  <bruno@clisp.org>
55047
55048         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55049         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55050         and possibly also HP-UX.
55051         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55052         work on AIX, IRIX, HP-UX, OSF/1.
55053         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55054         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55055         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55056         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55057         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55058         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55059
55060 2007-03-29  Bruno Haible  <bruno@clisp.org>
55061
55062         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55063
55064 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55067         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55068
55069 2007-03-29  Eric Blake  <ebb9@byu.net>
55070
55071         * lib/acl-internal.h: Remove redundant include.
55072         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55073         Cygwin when a file is locked.
55074
55075 2007-03-29  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55078         file.
55079         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55080
55081 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55082
55083         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55084         try to remove a parent directory if the child couldn't be removed
55085         (except for the first rmdir, which could fail because the child
55086         doesn't exist).  Problem reported by Jeff Blaine in
55087         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55088
55089 2007-03-28  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/striconveh.c (utf8conv_carefully): New function.
55092         (mem_cd_iconveh_internal): Invoke it.
55093
55094 2007-03-28  Bruno Haible  <bruno@clisp.org>
55095
55096         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55097         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55098         input.
55099         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55100         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55101         unistr/u8-uctomb.
55102
55103 2007-03-28  Bruno Haible  <bruno@clisp.org>
55104
55105         * modules/unistr/u8-mbtoucr: New file.
55106         * lib/unistr/u8-mbtoucr.c: New file.
55107         * modules/unistr/u16-mbtoucr: New file.
55108         * lib/unistr/u16-mbtoucr.c: New file.
55109         * modules/unistr/u16-mbtoucr: New file.
55110         * lib/unistr/u16-mbtoucr.c: New file.
55111         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55112
55113 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55114             Bruno Haible  <bruno@clisp.org>
55115
55116         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55117         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55118         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55119
55120         * m4/stdio_h.m4: Add stubs for vasprintf too.
55121
55122         * modules/stdio: Support vasprintf in sed command.
55123
55124         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55125         vasprintf.h.  Add stdio module indicator.
55126
55127         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55128         vasprintf.h.
55129
55130         * lib/vasprintf.h: File removed.
55131
55132         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55133         * lib/vasprintf.c: Ditto.
55134         * lib/xvasprintf.c: Ditto.
55135         * tests/test-vasprintf-posix.c: Ditto.
55136         * tests/test-vasprintf.c: Ditto.
55137
55138 2007-03-27  Bruno Haible  <bruno@clisp.org>
55139
55140         Make vasnprintf multithread-safe.
55141         * lib/vasnprintf.c (decimal_point_char): New function.
55142         (VASNPRINTF): Use it.
55143         Suggested by Simon Josefsson.
55144
55145 2007-03-27  Eric Blake  <ebb9@byu.net>
55146
55147         Support sub-second birthtime on cygwin.
55148         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55149         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55150         (get_stat_birthtime): Also work with st_birthtim.
55151
55152 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55155         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55156         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55157         (get_stat_birthtime_ns): Simplify compile-time tests.
55158         (get_stat_birthtime): Change the API to look like
55159         get_stat_mtime etc., except return a negative tv_nsec on error.
55160         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55161         Don't check for "spare" fields.
55162         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55163         or for struct stat.st_birthtime, as these tests aren't used.
55164         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55165
55166 2007-03-27  Bruno Haible  <bruno@clisp.org>
55167
55168         * lib/stat-time.h: Include <sys/stat.h>.
55169
55170 2007-03-27  James Youngman  <jay@gnu.org>
55171
55172         * lib/stat-time.h (get_stat_birthtime): New function for
55173           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55174         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55175           and its variants.
55176         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55177         * modules/stat-time-test: New file.
55178         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55179
55180 2007-03-26  Bruno Haible  <bruno@clisp.org>
55181
55182         Better support of signalling NaNs.
55183         * lib/atanl.c: Include isnanl.h.
55184         (atanl): Perform test for NaN at the beginning of the function and
55185         through a call to isnanl.
55186         * lib/cosl.c: Include isnanl.h.
55187         (cosl): Perform test for NaN at the beginning of the function and
55188         through a call to isnanl.
55189         * lib/ldexpl.c: Include isnanl.h.
55190         (ldexpl): Perform test for NaN through a call to isnanl.
55191         * lib/logl.c: Include isnanl.h.
55192         (logl): Perform test for NaN at the beginning of the function and
55193         through a call to isnanl.
55194         * lib/sinl.c: Include isnanl.h.
55195         (sinl): Perform test for NaN at the beginning of the function and
55196         through a call to isnanl.
55197         * lib/sqrtl.c: Include isnanl.h.
55198         (sqrtl): Perform test for NaN at the beginning of the function and
55199         through a call to isnanl.
55200         * lib/tanl.c: Include isnanl.h.
55201         (tanl): Perform test for NaN at the beginning of the function and
55202         through a call to isnanl.
55203         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55204         * modules/mathl (Depends-on): Add isnanl.
55205
55206 2007-03-26  Eric Blake  <ebb9@byu.net>
55207
55208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55209         regression in logic sense of previous patch.
55210
55211 2007-03-26  Bruno Haible  <bruno@clisp.org>
55212
55213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55214         unportable shell command "if ! ...".
55215         Reported by Ralf Wildenhues.
55216
55217 2007-03-25  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55220         <sysexits.h> file, and only add EX_CONFIG.
55221         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55222         absolute file name and whether it is sufficient. Substitute also
55223         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55224         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55225         ABSOLUTE_SYSEXITS_H into sysexits.h.
55226
55227 2007-03-25  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55230         hints is NULL.
55231
55232 2007-03-25  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55235         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55236
55237 2007-03-25  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/vasnprintf.c: Include langinfo.h.
55240         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55241         multithread-safe.
55242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55251         Reported by Simon Josefsson.
55252
55253 2007-03-25  Bruno Haible  <bruno@clisp.org>
55254
55255         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55256         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55257         * modules/vasnprintf (Depends-on): Add stdint.
55258
55259 2007-03-25  Bruno Haible  <bruno@clisp.org>
55260
55261         * modules/fpieee: New file.
55262         * m4/fpieee.m4: New file.
55263         * modules/isnan-nolibm (Depends-on): Add fpieee.
55264         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55265         * modules/isnanl (Depends-on): Add fpieee.
55266
55267 2007-03-25  Bruno Haible  <bruno@clisp.org>
55268
55269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55270
55271 2007-03-25  Bruno Haible  <bruno@clisp.org>
55272
55273         Avoid test failures on IRIX 6.5.
55274         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55275         (main): Use it.
55276         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55277         macros.
55278         (main): Use them.
55279
55280 2007-03-25  Bruno Haible  <bruno@clisp.org>
55281
55282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55283         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55284         exists but doesn't work.
55285         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55286         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55288         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55289         math.h.
55290
55291 2007-03-25  Bruno Haible  <bruno@clisp.org>
55292
55293         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55294         returns inf. Needed on IRIX 6.5.
55295
55296 2007-03-25  Bruno Haible  <bruno@clisp.org>
55297
55298         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55299         (main): Use isnanl instead of x != x idiom.
55300         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55301
55302         * tests/test-frexp.c: Include isnan.h.
55303         (main): Use isnan instead of x != x idiom.
55304         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55305
55306 2007-03-25  Bruno Haible  <bruno@clisp.org>
55307
55308         * tests/test-frexp.c (NaN): New function/macro.
55309         (main): Use it instead of 0.0 / 0.0.
55310         * tests/test-isnan.c (NaN): New function/macro.
55311         (main): Use it instead of 0.0 / 0.0.
55312         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55313         (test_function): Use it instead of 0.0 / 0.0.
55314         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55315         (test_function): Use it instead of 0.0 / 0.0.
55316         * tests/test-snprintf-posix.h (NaN): New function/macro.
55317         (test_function): Use it instead of 0.0 / 0.0.
55318         * tests/test-sprintf-posix.h (NaN): New function/macro.
55319         (test_function): Use it instead of 0.0 / 0.0.
55320         * tests/test-fprintf-posix.h (NaN): New function/macro.
55321         (test_function): Use it instead of 0.0 / 0.0.
55322         * tests/test-printf-posix.h (NaN): New function/macro.
55323         (test_function): Use it instead of 0.0 / 0.0.
55324
55325         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55326
55327 2007-03-25  Bruno Haible  <bruno@clisp.org>
55328
55329         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55330
55331 2007-03-25  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/regexec.c (merge_state_with_log): Make static.
55334
55335 2007-03-25  Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/trigl.c (kernel_rem_pio2): Make static.
55338
55339 2007-03-25  Bruno Haible  <bruno@clisp.org>
55340
55341         * lib/sincosl.c (sincosl_table): Make static.
55342
55343 2007-03-25  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55346         if the compiler does not support C99.
55347
55348 2007-03-25  Bruno Haible  <bruno@clisp.org>
55349
55350         * modules/time (Makefile.am): Ensure all rule action lines start with a
55351         tab.
55352
55353 2007-03-24  Bruno Haible  <bruno@clisp.org>
55354
55355         * modules/tsearch-tests: New file.
55356         * tests/test-tsearch.sh: New file.
55357         * tests/test-tsearch.c: New file, mostly copied from glibc.
55358
55359         * modules/search-tests: New file.
55360         * tests/test-search.c: New file.
55361
55362         * modules/search: New file.
55363         * lib/search_.h: New file, incorporating lib/tsearch.h.
55364         * m4/search_h.m4: New file.
55365         * lib/tsearch.h: Remove file.
55366         * lib/tsearch.c: Include search.h instead of tsearch.h.
55367         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55368         HAVE_TSEARCH.
55369         * modules/tsearch (Files): Remove lib/tsearch.h.
55370         (Depends-on): Add search.
55371         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55372         (Include): Change tsearch.h into search.h.
55373
55374 2007-03-24  Bruno Haible  <bruno@clisp.org>
55375
55376         * modules/fpucw: New file.
55377         * lib/fpucw.h: New file.
55378         * lib/frexp.c: Include fpucw.h.
55379         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55380         (FUNC): Use them.
55381         * lib/printf-frexp.c: Include fpucw.h.
55382         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55383         (FUNC): Use them.
55384         * lib/vasnprintf.c: Include fpucw.h.
55385         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55386         'long double' calculations.
55387         * tests/test-frexpl.c: Include fpucw.h.
55388         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55389         * tests/test-printf-frexpl.c: Include fpucw.h.
55390         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55391         * modules/frexpl (Depends-on): Add fpucw.
55392         * modules/printf-frexpl (Depends-on): Likewise.
55393         * modules/fprintf-posix (Depends-on): Likewise.
55394         * modules/snprintf-posix (Depends-on): Likewise.
55395         * modules/sprintf-posix (Depends-on): Likewise.
55396         * modules/vasnprintf-posix (Depends-on): Likewise.
55397         * modules/vasprintf-posix (Depends-on): Likewise.
55398         * modules/vfprintf-posix (Depends-on): Likewise.
55399         * modules/vsnprintf-posix (Depends-on): Likewise.
55400         * modules/vsprintf-posix (Depends-on): Likewise.
55401         * modules/frexpl-tests (Depends-on): Likewise.
55402         * modules/printf-frexpl-tests (Depends-on): Likewise.
55403
55404 2007-03-24  Bruno Haible  <bruno@clisp.org>
55405
55406         * lib/float+.h: New file.
55407         * lib/isnan.c: Include float+.h.
55408         (SIZE): New macro.
55409         (FUNC): Compare only SIZE bytes of the value.
55410         * lib/vasnprintf.c: Include float+.h.
55411         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55412         SIZEOF_LDBL or SIZEOF_DBL bytes.
55413         * modules/isnan-nolibm (Files): Add lib/float+.h.
55414         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55415         * modules/isnanl (Files): Add lib/float+.h.
55416         * modules/vasnprintf (Files): Add lib/float+.h.
55417
55418 2007-03-24  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55421         include isnanl-nolibm.h.
55422
55423 2007-03-24  Bruno Haible  <bruno@clisp.org>
55424
55425         * tests/test-read-file.c (main): Don't produce spurious output for
55426         expected situations. Make the test fail if it encountered unexpected
55427         results.
55428
55429 2007-03-24  Bruno Haible  <bruno@clisp.org>
55430
55431         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55432         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55433
55434 2007-03-24  Bruno Haible  <bruno@clisp.org>
55435
55436         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55437
55438 2007-03-24  Bruno Haible  <bruno@clisp.org>
55439
55440         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55441         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55442
55443         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55444         * modules/utf8-ucs4: Turn into a symbolic link to module
55445         unistr/u8-mbtouc.
55446
55447         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55448         utf8-ucs4-unsafe.
55449         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55450         unistr/u8-mbtouc-unsafe.
55451
55452         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55453         * modules/utf16-ucs4: Turn into a symbolic link to module
55454         unistr/u16-mbtouc.
55455
55456         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55457         utf16-ucs4-unsafe.
55458         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55459         unistr/u16-mbtouc-unsafe.
55460
55461         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55462         * modules/ucs4-utf8: Turn into a symbolic link to module
55463         unistr/u8-ubtomb.
55464
55465         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55466         * modules/ucs4-utf16: Turn into a symbolic link to module
55467         unistr/u16-ubtomb.
55468
55469 2007-03-24  Bruno Haible  <bruno@clisp.org>
55470
55471         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55472         Enable the function only if HAVE_INLINE.
55473         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55474         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55475         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55476         Enable the function only if HAVE_INLINE.
55477         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55478         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55479         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55480         Enable the function only if HAVE_INLINE.
55481         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55482         Enable the function only if HAVE_INLINE.
55483         * modules/utf8-ucs4: Update.
55484         * modules/utf8-ucs4-unsafe: Update.
55485         * modules/utf16-ucs4: Update.
55486         * modules/utf16-ucs4-unsafe: Update.
55487         * modules/ucs4-utf8: Update.
55488         * modules/ucs4-utf16: Update.
55489
55490 2007-03-24  Bruno Haible  <bruno@clisp.org>
55491
55492         * lib/utf8-ucs4.h: Remove file.
55493         * lib/utf8-ucs4-unsafe.h: Remove file.
55494         * lib/utf16-ucs4.h: Remove file.
55495         * lib/utf16-ucs4-unsafe.h: Remove file.
55496         * lib/ucs4-utf8.h: Remove file.
55497         * lib/ucs4-utf16.h: Remove file.
55498         * lib/unistr.h: Include their previous contents.
55499         * m4/utf-ucs4.m4: Remove file.
55500         * m4/ucs4-utf.m4: Remove file.
55501         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55502         (Depends-on): Add unistr/base.
55503         (configure.ac): Remove gl_UTF_UCS4.
55504         (Makefile.am): Update.
55505         (Include): Change to unistr.h.
55506         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55507         (Depends-on): Add unistr/base.
55508         (configure.ac): Remove gl_UTF_UCS4.
55509         (Makefile.am): Update.
55510         (Include): Change to unistr.h.
55511         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55512         (Depends-on): Add unistr/base.
55513         (configure.ac): Remove gl_UTF_UCS4.
55514         (Makefile.am): Update.
55515         (Include): Change to unistr.h.
55516         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55517         (Depends-on): Add unistr/base.
55518         (configure.ac): Remove gl_UTF_UCS4.
55519         (Makefile.am): Update.
55520         (Include): Change to unistr.h.
55521         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55522         (Depends-on): Add unistr/base.
55523         (configure.ac): Remove gl_UCS4_UTF.
55524         (Makefile.am): Update.
55525         (Include): Change to unistr.h.
55526         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55527         (Depends-on): Add unistr/base.
55528         (configure.ac): Remove gl_UCS4_UTF.
55529         (Makefile.am): Update.
55530         (Include): Change to unistr.h.
55531         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55532         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55533         utf8-ucs4-unsafe.h.
55534         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55535         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55536         utf16-ucs4-unsafe.h.
55537         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55538         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55539         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55540         * lib/unistr/u8-strchr.c: Likewise.
55541         * lib/unistr/u8-strrchr.c: Likewise.
55542         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55543         * lib/unistr/u16-strchr.c: Likewise.
55544         * lib/unistr/u16-strrchr.c: Likewise.
55545         * lib/striconveh.c: Update.
55546         * lib/linebreak.c: Update.
55547
55548 2007-03-24  Bruno Haible  <bruno@clisp.org>
55549
55550         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55551         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55552
55553 2007-03-22  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55556
55557 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55558
55559         * MODULES.html.sh (File system functions): New module write-any-file.
55560         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55561         * m4/write-any-file.m4: New files.
55562
55563 2007-03-23  Eric Blake  <ebb9@byu.net>
55564
55565         * gnulib-tool: Rearrange space-tab sequences, since some editors
55566         like to eat them.
55567
55568 2007-03-23  Eric Blake  <ebb9@byu.net>
55569
55570         * lib/version-etc.c (version_etc_va): Update license wording to
55571         be more concise.  Recommended by Richard Stallman.
55572
55573 2007-03-22  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/poll.c (MSG_PEEK): New fallback definition.
55576
55577 2007-03-22  Bruno Haible  <bruno@clisp.org>
55578
55579         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55580         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55581         (main): Update.
55582         Fixes a compilation error on BeOS.
55583
55584 2007-03-22  Bruno Haible  <bruno@clisp.org>
55585
55586         * modules/frexpl-tests: New file.
55587         * tests/test-frexpl.c: New file.
55588
55589         * modules/frexpl: New file.
55590         * m4/frexpl.m4: New file.
55591         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55592         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55594         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55595         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55596         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55597
55598 2007-03-22  Bruno Haible  <bruno@clisp.org>
55599
55600         * lib/frexpl.c: Share code with lib/frexp.c.
55601         * modules/mathl (Files): Add lib/frexp.c.
55602         (Depends-on): Add isnanl-nolibm.
55603
55604 2007-03-22  Bruno Haible  <bruno@clisp.org>
55605
55606         * modules/printf-frexp (Files): Add m4/frexp.m4.
55607         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55608         only if the found frexp function actually works.
55609
55610 2007-03-22  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/frexp.c: Remove older implementation that uses divisions.
55613
55614 2007-03-21  Bruno Haible  <bruno@clisp.org>
55615
55616         * modules/frexp-tests: New file.
55617         * tests/test-frexp.c: New file.
55618
55619         * modules/frexp: New file.
55620         * lib/frexp.c: New file.
55621         * m4/frexp.m4: New file.
55622         * lib/math_.h (frexp): New declaration.
55623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55624         REPLACE_FREXP.
55625         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55626
55627 2007-03-21  Bruno Haible  <bruno@clisp.org>
55628
55629         * modules/isnanl-tests: New file.
55630         * tests/test-isnanl.c: New file.
55631
55632         * modules/isnanl: New file.
55633         * lib/isnanl.h: New file.
55634         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55635         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55636         gl_FUNC_ISNANL_WORKS.
55637         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55638         New macros.
55639
55640 2007-03-21  Bruno Haible  <bruno@clisp.org>
55641
55642         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55643         lib/isnanl.h.
55644         (Include): Update.
55645         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55646         * lib/vasnprintf.c: Update.
55647         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55648         tests/test-isnanl.h, remove tests/test-isnanl.c.
55649         (Makefile.am): Update.
55650         * tests/test-isnanl-nolibm.c: New file.
55651         * tests/test-isnanl.h: New file.
55652         * tests/test-isnanl.c: Remove file.
55653
55654 2007-03-21  Jim Meyering  <jim@meyering.net>
55655
55656         When trying to open ".", treat ESTALE like EACCES.
55657         * lib/savewd.c (savewd_save): Resort to forking not just upon
55658         failure with EACCES, but also when errno is ESTALE.
55659
55660 2007-03-20  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55663         Needed on AIX 5.1. Reported by Matthew Woehlke.
55664
55665 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55666
55667         Suggestions by Bruno Haible:
55668         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55669         our own.
55670         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55671         * modules/acl (Depends-on): Add gettext.
55672
55673 2007-03-19  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/iconvme: Remove file.
55676         * lib/iconvme.h: Remove file.
55677         * lib/iconvme.c: Remove file.
55678         * m4/iconvme.m4: Remove file.
55679
55680 2007-03-19  Bruno Haible  <bruno@clisp.org>
55681
55682         * doc/relocatable-maint.texi: Break long shell script line.
55683         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55684
55685 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55686
55687         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55688         handle file_has_acl.
55689         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55690         * lib/acl.c: Move header inclusions and related macro defns into
55691         lib/acl-internal.h.
55692         (S_ISLNK): Remove defn, since that's now done for us.
55693         (file_has_acl): Move to lib/file-has-acl.c.
55694         Call acl_trivial if available.  This is the crucial part of the fix.
55695         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55696         shared within the library.  Rewrite a bit, partly to make it compatible
55697         with the GNU coding style.
55698         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55699         Remove unnecessary double-quotes.
55700         Don't test for acl_to_text; the build will catch that.
55701         Replace acl_entries if it doesn't exist and it is needed.
55702         Check for -lsec and acl_trivial (as used on Solaris 10).
55703         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55704         lib/file-has-acl.c.
55705         (Depends-on): Add sys_stat, for S_ISLNK.
55706
55707 2007-03-19  Ben Pfaff  <blp@gnu.org>
55708
55709         * doc/gnulib.texi: Fix typos.
55710         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55711
55712 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55713
55714         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55715         If size is zero here, buf must be zero.
55716
55717 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55718
55719         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55720         <bruno@clisp.org>.
55721
55722 2007-03-18  Bruno Haible  <bruno@clisp.org>
55723
55724         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55725         Suggested by Eric Blake.
55726
55727 2007-03-18  Ben Pfaff  <blp@gnu.org>
55728
55729         * doc/relocatable.texi: Recommend using as prefix a directory
55730         that does not exist and will never be created.  Based on
55731         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55732         and others.
55733
55734 2007-03-17  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/fchownat.c: Include lchown.h.
55737
55738 2007-03-17  Bruno Haible  <bruno@clisp.org>
55739
55740         Fix endless loop when the given allocated size was > INT_MAX.
55741         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55742         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55743         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55744         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55745         * lib/sprintf.c (sprintf): Likewise.
55746
55747 2007-03-17  Bruno Haible  <bruno@clisp.org>
55748
55749         * tests/test-argp-2.sh (func_compare): Output a context diff.
55750
55751 2007-03-17  Bruno Haible  <bruno@clisp.org>
55752
55753         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55754         locale's decimal-point character.
55755
55756 2007-03-17  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55759         before comparing it. Needed because on some platforms (e.g. x86) a
55760         'long double' occupies less bytes than sizeof (long double).
55761
55762 2007-03-17  Bruno Haible  <bruno@clisp.org>
55763
55764         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55765         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55766         * tests/test-getaddrinfo.c (simple): Likewise.
55767         * tests/test-read-file.c (main): Likewise.
55768
55769 2007-03-17  Bruno Haible  <bruno@clisp.org>
55770
55771         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55772
55773 2007-03-17  Bruno Haible  <bruno@clisp.org>
55774
55775         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55776         unused variable.
55777
55778 2007-03-17  Bruno Haible  <bruno@clisp.org>
55779
55780         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55781         * tests/test-c-strncasecmp.c: Likewise.
55782
55783 2007-03-17  Bruno Haible  <bruno@clisp.org>
55784
55785         * modules/stdlib (Depends-on): Add unistd.
55786         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55787         Needed for MacOS X 10.3.
55788
55789 2007-03-17  Bruno Haible  <bruno@clisp.org>
55790
55791         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55792
55793 2007-03-17  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55796
55797 2007-03-17  Bruno Haible  <bruno@clisp.org>
55798
55799         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55800         to reflect files copied from gnulib (with or without modifications).
55801         Suggested by Jim Meyering.
55802
55803 2007-03-17  Eric Blake  <ebb9@byu.net>
55804
55805         * NEWS: Document stdlib change from 2007-02-18.
55806
55807 2007-03-17  Jim Meyering  <jim@meyering.net>
55808
55809         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55810         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55811         someone uses a name containing shell meta-characters.
55812         Reported by Alfred M. Szmidt.
55813
55814         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55815
55816 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55817
55818         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55819         and copy gettext configuration files only if configure.ac contains
55820         a use of AM_GNU_GETTEXT_VERSION.
55821
55822 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55823
55824         * build-aux/bootstrap (gnulib_name): New variable.
55825         (gnulib_tool_options): Use it.
55826
55827 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55828
55829         * tests/test-des.c: Use new namespace.
55830
55831 2007-03-15  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55834         Reported by James Youngman <jay@gnu.org>.
55835
55836 2007-03-15  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55839         declared prototype. Needed with cc on OSF/1 5.1.
55840
55841 2007-03-15  Bruno Haible  <bruno@clisp.org>
55842
55843         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55844         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55845         (struct gl_list_implementation): Add dispose_fn argument to the
55846         'create_empty', 'create' methods.
55847         (struct gl_list_impl_base): Add field 'dispose_fn'.
55848         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55849         argument.
55850         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55851         dispose_fn argument.
55852         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55853         dispose_fn on the dropped values.
55854         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55855         dispose_fn argument.
55856         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55857         dropped values.
55858         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55859         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55860         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55861         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55862         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55863         argument.
55864         (gl_tree_list_free): Call dispose_fn on the dropped values.
55865         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55866         the dropped values.
55867         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55868         Add dispose_fn argument.
55869         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55870         Call dispose_fn on the dropped values.
55871         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55872         Add dispose_fn argument.
55873         (gl_sublist_create): Initialize the 'dispose_fn' field.
55874         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55875         * tests/test-array_list.c (main): Update.
55876         * tests/test-carray_list.c (main): Update.
55877         * tests/test-avltree_list.c (main): Update.
55878         * tests/test-rbtree_list.c (main): Update.
55879         * tests/test-avltreehash_list.c (main): Update.
55880         * tests/test-rbtreehash_list.c (main): Update.
55881         * tests/test-linked_list.c (main): Update.
55882         * tests/test-linkedhash_list.c (main): Update.
55883         * tests/test-array_oset.c (main): Update.
55884
55885 2007-03-15  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55888         (gl_oset_create_empty): Add dispose_fn argument.
55889         (struct gl_oset_implementation): Add dispose_fn argument to
55890         'create_empty' method.
55891         (struct gl_oset_impl_base): Add dispose_fn field.
55892         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55893         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55894         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55895         values.
55896         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55897         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55898         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55899         dropped value.
55900         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55901         dropped value.
55902         * tests/test-array_oset.c (main): Update.
55903         * tests/test-avltree_oset.c (main): Update.
55904         * tests/test-rbtree_oset.c (main): Update.
55905         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55906
55907 2007-03-13  Bruno Haible  <bruno@clisp.org>
55908
55909         * tests/test-stdbool.c (i): Update after last patch.
55910
55911 2007-03-12  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55914         the iswprint macro. Needed on Solaris 2.5.1.
55915
55916 2007-03-12  Bruno Haible  <bruno@clisp.org>
55917
55918         * tests/test-printf-frexp.c (main): Declare x as volatile.
55919
55920 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55921
55922         * doc/gnulib.texi (Build robot for gnulib): New section.
55923
55924 2007-03-12  Jim Meyering  <jim@meyering.net>
55925
55926         * build-aux/bootstrap: New file.
55927         * build-aux/bootstrap.conf: New file, from coreutils.
55928
55929 2007-03-11  Bruno Haible  <bruno@clisp.org>
55930
55931         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55932
55933 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55934
55935         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55936         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55937         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55938
55939 2007-03-11  Bruno Haible  <bruno@clisp.org>
55940
55941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55942         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55943
55944 2007-03-11  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55947         formula. Needed for SunPRO C 5.0.
55948
55949 2007-03-11  Bruno Haible  <bruno@clisp.org>
55950
55951         * modules/long-options (Depends-on): Add getopt.
55952
55953 2007-03-11  Bruno Haible  <bruno@clisp.org>
55954
55955         * modules/modechange (Depends-on): Add stdbool.
55956
55957 2007-03-11  Bruno Haible  <bruno@clisp.org>
55958
55959         * modules/i-ring (Depends-on): Add stdbool.
55960
55961 2007-03-11  Bruno Haible  <bruno@clisp.org>
55962
55963         * modules/gc-des (Depends-on): Add stdbool.
55964
55965 2007-03-11  Bruno Haible  <bruno@clisp.org>
55966
55967         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55968
55969 2007-03-11  Bruno Haible  <bruno@clisp.org>
55970
55971         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55972
55973 2007-03-11  Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55976
55977 2007-03-11  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/vasnprintf.c (sprintf): Undefine.
55980
55981 2007-03-11  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55984         initializers in SunPRO C and Compaq C compilers.
55985
55986 2007-03-11  Bruno Haible  <bruno@clisp.org>
55987
55988         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55989         decrementing code ANSI C compliant.
55990
55991 2007-03-11  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55994         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55995
55996 2007-03-11  Bruno Haible  <bruno@clisp.org>
55997
55998         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55999         <stdbool.h> substitute doesn't pass.
56000
56001 2007-03-11  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56004
56005 2007-03-11  Bruno Haible  <bruno@clisp.org>
56006
56007         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56008         script, for submission to autobuild.josefsson.org.
56009
56010 2007-03-10  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/canonicalize-lgpl-tests: New file.
56013         * tests/test-canonicalize-lgpl.sh: New file.
56014         * tests/test-canonicalize-lgpl.c: New file.
56015
56016         * modules/c-strcase-tests: New file.
56017         * tests/test-c-strcase.sh: New file.
56018         * tests/test-c-strcasecmp.c: New file.
56019         * tests/test-c-strncasecmp.c: New file.
56020
56021         * modules/atexit-tests: New file.
56022         * tests/test-atexit.sh: New file.
56023         * tests/test-atexit.c: New file.
56024
56025 2007-03-10  Bruno Haible  <bruno@clisp.org>
56026
56027         * tests/test-binary-io.sh: Use temporary filenames that are not so
56028         likely to clash with those of other tests (in a parallel make).
56029         * tests/test-binary-io.c: Likewise.
56030
56031 2007-03-10  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56034         fallback; use #error instead.
56035         Suggested by Simon Josefsson.
56036
56037 2007-03-10  Bruno Haible  <bruno@clisp.org>
56038
56039         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56040         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56041         first and the last.
56042
56043 2007-03-10  Bruno Haible  <bruno@clisp.org>
56044
56045         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56046
56047 2007-03-10  Bruno Haible  <bruno@clisp.org>
56048
56049         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56050         "make distcheck".
56051         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56052         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56053         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56054
56055 2007-03-10  Bruno Haible  <bruno@clisp.org>
56056
56057         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56058         variable.
56059         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56060         variable.
56061
56062 2007-03-09  Eric Blake  <ebb9@byu.net>
56063         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56064
56065         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56066         types are not being provided by gnulib.
56067         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56068         types are supported.
56069
56070 2007-03-10  Bruno Haible  <bruno@clisp.org>
56071
56072         * lib/stdio_.h (__attribute__): New macro.
56073         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56074         vsprintf): Specify __attribute__ __format__ for GCC.
56075         Suggested by Eric Blake.
56076
56077 2007-03-09  Bruno Haible  <bruno@clisp.org>
56078
56079         * modules/printf-posix-tests: New file.
56080         * tests/test-printf-posix.sh: New file.
56081         * tests/test-printf-posix.c: New file.
56082
56083         * modules/printf-posix: New file.
56084         * lib/printf.c: New file.
56085         * m4/printf-posix-rpl.m4: New file.
56086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56087         REPLACE_PRINTF.
56088         * lib/stdio_.h (printf): New declaration.
56089         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56090         ____strfmon____): New macros.
56091         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56092         REPLACE_PRINTF.
56093
56094 2007-03-09  Bruno Haible  <bruno@clisp.org>
56095
56096         * tests/test-vasnprintf-posix2.sh: New file.
56097         * tests/test-vasnprintf-posix2.c: New file.
56098         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56099         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56100         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56101
56102         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56103         a locale dependent decimal point, rather than always '.'.
56104
56105 2007-03-09  Eric Blake  <ebb9@byu.net>
56106
56107         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56108         spite of platforms like Tandem/NSK that define it to -1.
56109
56110 2007-03-08  Bruno Haible  <bruno@clisp.org>
56111
56112         * modules/vprintf-posix-tests: New file.
56113         * tests/test-vprintf-posix.sh: New file.
56114         * tests/test-vprintf-posix.c: New file.
56115         * tests/test-printf-posix.h: New file.
56116
56117         * modules/vprintf-posix: New file.
56118         * lib/vprintf.c: New file.
56119         * m4/vprintf-posix.m4: New file.
56120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56121         REPLACE_VPRINTF.
56122         * lib/stdio_.h (vprintf): New declaration.
56123         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56124         REPLACE_VPRINTF.
56125
56126 2007-03-08  Bruno Haible  <bruno@clisp.org>
56127
56128         * modules/fprintf-posix-tests: New file.
56129         * tests/test-fprintf-posix.sh: New file.
56130         * tests/test-fprintf-posix.c: New file.
56131
56132         * modules/fprintf-posix: New file.
56133         * lib/fprintf.c: New file.
56134         * m4/fprintf-posix.m4: New file.
56135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56136         REPLACE_FPRINTF.
56137         * lib/stdio_.h (fprintf): New declaration.
56138         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56139         REPLACE_FPRINTF.
56140
56141 2007-03-08  Bruno Haible  <bruno@clisp.org>
56142
56143         * modules/vfprintf-posix-tests: New file.
56144         * tests/test-vfprintf-posix.sh: New file.
56145         * tests/test-vfprintf-posix.c: New file.
56146         * tests/test-fprintf-posix.h: New file.
56147         * tests/test-fprintf-posix.out: New file.
56148
56149         * modules/vfprintf-posix: New file.
56150         * lib/vfprintf.c: New file.
56151         * m4/vfprintf-posix.m4: New file.
56152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56153         REPLACE_VFPRINTF.
56154         * lib/stdio_.h (vfprintf): New declaration.
56155         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56156         REPLACE_VFPRINTF.
56157
56158 2007-03-08  Bruno Haible  <bruno@clisp.org>
56159
56160         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56161
56162 2007-03-08  Bruno Haible  <bruno@clisp.org>
56163
56164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56165         instead of 'expr' invocations.
56166         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56167         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56168         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56170         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56171         Suggested by Paul Eggert.
56172
56173 2007-03-08  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/fseterr-tests: New file.
56176         * tests/test-fseterr.c: New file.
56177
56178         * modules/fseterr: New file.
56179         * lib/fseterr.h: New file.
56180         * lib/fseterr.c: New file.
56181
56182 2007-03-08  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56185         * lib/getopt_.h: Likewise.
56186         * lib/mbswidth.h: Likewise.
56187         * lib/setenv.h: Likewise.
56188         * lib/vasnprintf.h: Likewise.
56189         * lib/vasprintf.h: Likewise.
56190         * lib/verror.h: Likewise.
56191         * lib/xsetenv.h: Likewise.
56192         * lib/xvasprintf.h: Likewise.
56193
56194 2007-03-08  Jim Meyering  <jim@meyering.net>
56195
56196         * users.txt: Add parted.
56197
56198         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56199
56200 2007-03-07  Bruno Haible  <bruno@clisp.org>
56201
56202         * m4/printf.m4: Make the shell script snippets copy&pastable.
56203
56204 2007-03-02  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/netinet_in_.h: New file.
56207         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56208         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56209         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56210         (Depends-on): Add absolute-header.
56211         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56212         into netinet/in.h.
56213
56214 2007-03-03  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/sys_select_.h: New file.
56217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56218         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56219         * modules/sys_select (Files): Add lib/sys_select_.h.
56220         (Depends-on): Add absolute-header.
56221         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56222         into sys/select.h.
56223
56224 2007-03-02  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56227         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56228         values.
56229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56230         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56231         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56232         * modules/sys_socket (Depends-on): Add absolute-header.
56233         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56234         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56235         (Include): Remove requirement of inclusion of <sys/types.h>.
56236
56237 2007-03-02  Bruno Haible  <bruno@clisp.org>
56238
56239         * lib/byteswap_.h (bswap_32): Fix formula.
56240
56241 2007-03-06  Bruno Haible  <bruno@clisp.org>
56242
56243         * modules/sprintf-posix-tests: New file.
56244         * tests/test-sprintf-posix.c: New file.
56245
56246         * modules/sprintf-posix: New file.
56247         * lib/sprintf.c: New file.
56248         * m4/sprintf-posix.m4: New file.
56249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56250         REPLACE_SPRINTF.
56251         * lib/stdio_.h (sprintf): New declaration.
56252         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56253         REPLACE_SPRINTF.
56254
56255 2007-03-06  Bruno Haible  <bruno@clisp.org>
56256
56257         * modules/vsprintf-posix-tests: New file.
56258         * tests/test-vsprintf-posix.c: New file.
56259         * tests/test-sprintf-posix.h: New file.
56260
56261         * modules/vsprintf-posix: New file.
56262         * lib/vsprintf.c: New file.
56263         * m4/vsprintf-posix.m4: New file.
56264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56265         REPLACE_VSPRINTF.
56266         * lib/stdio_.h (vsprintf): New declaration.
56267         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56268         REPLACE_VSPRINTF.
56269
56270 2007-03-06  Bruno Haible  <bruno@clisp.org>
56271
56272         * modules/vsnprintf (Depend-on): Remove minmax.
56273
56274 2007-03-06  Bruno Haible  <bruno@clisp.org>
56275
56276         * modules/snprintf-posix-tests: New file.
56277         * tests/test-snprintf-posix.c: New file.
56278
56279         * modules/snprintf-posix: New file.
56280         * m4/snprintf-posix.m4: New file.
56281         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56282         gl_FUNC_SNPRINTF.
56283         (gl_FUNC_SNPRINTF): Invoke it.
56284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56285         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56286         is set.
56287         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56288
56289 2007-03-06  Bruno Haible  <bruno@clisp.org>
56290
56291         * modules/vsnprintf-posix-tests: New file.
56292         * tests/test-vsnprintf-posix.c: New file.
56293         * tests/test-snprintf-posix.h: New file.
56294
56295         * modules/vsnprintf-posix: New file.
56296         * m4/vsnprintf-posix.m4: New file.
56297         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56298         gl_FUNC_VSNPRINTF.
56299         (gl_FUNC_VSNPRINTF): Invoke it.
56300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56301         * lib/stdio_.h (vsnprintf): Define as a replacement if
56302         REPLACE_VSNPRINTF is set.
56303         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56304
56305 2007-03-06  Bruno Haible  <bruno@clisp.org>
56306
56307         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56309
56310 2007-03-06  Bruno Haible  <bruno@clisp.org>
56311
56312         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56313         (asinl): Declare also if HAVE_DECL_ASINL is set.
56314         (atanl): Declare also if HAVE_DECL_ATANL is set.
56315         (ceill): Declare also if HAVE_DECL_CEILL is set.
56316         (cosl): Declare also if HAVE_DECL_COSL is set.
56317         (expl): Declare also if HAVE_DECL_EXPL is set.
56318         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56319         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56320         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56321         (logl): Declare also if HAVE_DECL_LOGL is set.
56322         (sinl): Declare also if HAVE_DECL_SINL is set.
56323         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56324         (tanl): Declare also if HAVE_DECL_TANL is set.
56325         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56327         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56328         declaration of frexpl, ldexpl.
56329         * modules/printf-frexpl (Depends-on): Add math.
56330         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56331
56332 2007-03-05  Bruno Haible  <bruno@clisp.org>
56333
56334         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56335         frexpl and ldexpl are declared.
56336         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56337
56338 2007-03-05  Bruno Haible  <bruno@clisp.org>
56339
56340         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56341         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56342
56343 2007-03-05  Bruno Haible  <bruno@clisp.org>
56344
56345         * lib/stdio_.h: Include <stddef.h>.
56346
56347 2007-03-05  Bruno Haible  <bruno@clisp.org>
56348
56349         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56350
56351 2007-03-05  Bruno Haible  <bruno@clisp.org>
56352
56353         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56354         NetBSD 4, from Ralf Wildenhues.
56355
56356 2007-03-04  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/vasprintf.h: Update #if logic for the case when the functions
56359         exist but are overridden.
56360
56361 2007-03-04  Bruno Haible  <bruno@clisp.org>
56362
56363         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56364         implementations: glibc-2.4 and MacOS X 10.3.
56365         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56366         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56367         * tests/test-vasprintf-posix.c (test_function): Likewise.
56368
56369 2007-03-04  Bruno Haible  <bruno@clisp.org>
56370
56371         * modules/vasprintf-posix-tests: New file.
56372         * tests/test-vasprintf-posix.c: New file.
56373
56374         * modules/vasprintf-posix: New file.
56375         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56376         defined.
56377         * m4/vasprintf-posix.m4: New file.
56378         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56379         gl_FUNC_VASPRINTF.
56380         (gl_FUNC_VASPRINTF): Invoke it.
56381         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56382         here.
56383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56384
56385 2007-03-04  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56388         REPLACE_GETTIMEOFDAY.
56389         * modules/sys_time (Makefile.am): Likewise.
56390         * m4/sys_time_h.m4: Likewise.
56391         * m4/gettimeofday.m4: Likewise.
56392
56393 2007-03-04  Bruno Haible  <bruno@clisp.org>
56394
56395         * modules/vasnprintf-posix-tests: New file.
56396         * tests/test-vasnprintf-posix.c: New file.
56397
56398         * modules/vasnprintf-posix: New file.
56399         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56400         printf-frexpl.h.
56401         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56402         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56403         REPLACE_VASNPRINTF is defined.
56404         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56405         gl_FUNC_VASNPRINTF.
56406         (gl_FUNC_VASNPRINTF): Invoke it.
56407         * m4/vasnprintf-posix.m4: New file.
56408         * m4/printf.m4: New file.
56409
56410 2007-03-04  Bruno Haible  <bruno@clisp.org>
56411
56412         Compile progreloc.c only if --enable-relocatable is specified.
56413         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56414         if --enable-relocatable was specified.
56415         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56416         lib_SOURCES.
56417
56418 2007-03-04  Jim Meyering  <jim@meyering.net>
56419
56420         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56421         Use it consistently, rather than enumerating errno constants.
56422
56423 2007-03-04  Bruno Haible  <bruno@clisp.org>
56424
56425         * modules/xvasprintf-tests: New file.
56426         * tests/test-xvasprintf.c: New file.
56427
56428         * modules/vasprintf-tests: New file.
56429         * tests/test-vasprintf.c: New file.
56430
56431         * modules/vasnprintf-tests: New file.
56432         * tests/test-vasnprintf.c: New file.
56433
56434         * modules/vsnprintf-tests: New file.
56435         * tests/test-vsnprintf.c: New file.
56436
56437         * modules/snprintf-tests: New file.
56438         * tests/test-snprintf.c: New file.
56439
56440 2007-03-04  Bruno Haible  <bruno@clisp.org>
56441
56442         Compile relocatable.c only if --enable-relocatable is specified.
56443         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56444         gl_RELOCATABLE_LIBRARY.
56445         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56446         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56447         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56448         gl_RELOCATABLE_LIBRARY.
56449         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56450         (Makefile.am): Remove lib_SOURCES.
56451         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56452         gl_RELOCATABLE_LIBRARY.
56453         (Makefile.am): Remove lib_SOURCES.
56454         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56455         always.
56456         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56457         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56458
56459 2007-03-04  Bruno Haible  <bruno@clisp.org>
56460
56461         * modules/argmatch-tests: New file.
56462         * tests/test-argmatch.c: New file.
56463
56464         * tests/test-allocsa.c (main): Halve the number of loop runs.
56465
56466         * modules/alloca-opt-tests: New file.
56467         * tests/test-alloca-opt.c: New file.
56468
56469 2007-03-04  Jim Meyering  <jim@meyering.net>
56470
56471         Work around difference between Linux ACLs and Solaris 10 ZFS.
56472         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56473         for EINVAL.
56474
56475 2007-03-03  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/relocatable-prog (Depends-on): Add back progreloc's
56478         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56479
56480 2007-03-03  Bruno Haible  <bruno@clisp.org>
56481
56482         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56483         * modules/relocatable-lib: New file.
56484
56485 2007-03-03  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/relocatable-prog: Renamed from modules/relocatable.
56488         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56489
56490 2007-03-03  Bruno Haible  <bruno@clisp.org>
56491
56492         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56493         m4/relocatable-lib.m4.
56494         (Depends-on): Remove 'relocatable'.
56495         (configure.ac): Add gl_RELOCATABLE_NOP.
56496
56497 2007-03-03  Bruno Haible  <bruno@clisp.org>
56498
56499         * modules/relocatable-prog-wrapper: New file.
56500         * modules/relocatable (Depends-on): Add it. Remove all other
56501         dependencies except progname.
56502         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56503
56504         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56505         (gl_FUNC_STRERROR): Nop.
56506         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56507
56508         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56509         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56510
56511         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56512         (gl_FUNC_READLINK): Update.
56513
56514         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56515
56516 2007-03-03  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56519         * modules/xreadlink (Depends-on): Add unistd.
56520         * modules/xreadlink-with-size (Depends-on): Likewise.
56521
56522 2007-03-03  Bruno Haible  <bruno@clisp.org>
56523
56524         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56525         extracted from gt_FUNC_SETENV.
56526         (gt_FUNC_SETENV): Remove macro.
56527         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56528         remove gt_FUNC_SETENV.
56529
56530 2007-03-03  Bruno Haible  <bruno@clisp.org>
56531
56532         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56533         ENABLE_RELOCATABLE here.
56534         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56535
56536 2007-03-03  Bruno Haible  <bruno@clisp.org>
56537
56538         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56539         * tests/test-rbtreehash_list.c: Include progname.h.
56540         (main): Call set_program_name.
56541
56542         * modules/rbtree-oset-tests (Depends-on): Add progname.
56543         * tests/test-rbtree_oset.c: Include progname.h.
56544         (main): Call set_program_name.
56545
56546         * modules/rbtree-list-tests (Depends-on): Add progname.
56547         * tests/test-rbtree_list.c: Include progname.h.
56548         (main): Call set_program_name.
56549
56550         * modules/linked-list-tests (Depends-on): Add progname.
56551         * tests/test-linked_list.c: Include progname.h.
56552         (main): Call set_program_name.
56553
56554 2007-03-03  Bruno Haible  <bruno@clisp.org>
56555
56556         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56557         All uses of __restrict changed to _Restrict_.
56558         * lib/glob_.h (__restrict): Remove macro.
56559
56560 2007-03-02  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/gettext (configure.ac): Require gettext infrastructure
56563         from version 0.16.1.
56564
56565 2007-03-02  Bruno Haible  <bruno@clisp.org>
56566
56567         * modules/linkedhash-list-tests (Depends-on): Add progname.
56568         * tests/test-linkedhash_list.c: Include progname.h.
56569         (main): Call set_program_name.
56570
56571         * modules/carray-list-tests (Depends-on): Add progname.
56572         * tests/test-carray_list.c: Include progname.h.
56573         (main): Call set_program_name.
56574
56575         * modules/avltreehash-list-tests (Depends-on): Add progname.
56576         * tests/test-avltreehash_list.c: Include progname.h.
56577         (main): Call set_program_name.
56578
56579         * modules/avltree-oset-tests (Depends-on): Add progname.
56580         * tests/test-avltree_oset.c: Include progname.h.
56581         (main): Call set_program_name.
56582
56583         * modules/avltree-list-tests (Depends-on): Add progname.
56584         * tests/test-avltree_list.c: Include progname.h.
56585         (main): Call set_program_name.
56586
56587         * modules/array-oset-tests (Depends-on): Add progname.
56588         * tests/test-array_oset.c: Include progname.h.
56589         (main): Call set_program_name.
56590
56591         * modules/array-list-tests (Depends-on): Add progname.
56592         * tests/test-array_list.c: Include progname.h.
56593         (main): Call set_program_name.
56594
56595         * modules/argp-tests (Depends-on): Add progname.
56596         * tests/test-argp.c: Include argp.h first. Include progname.h.
56597         (main): Call set_program_name.
56598
56599 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56600
56601         * doc/gnulib-tool.texi (Initial import): Reword description of
56602         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56603         limited effect even if defined after the first system include.
56604
56605 2007-03-01  Bruno Haible  <bruno@clisp.org>
56606
56607         * build-aux/config.libpath: Update to libtool-1.5.22.
56608         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56609
56610 2007-03-01  Bruno Haible  <bruno@clisp.org>
56611
56612         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56613         foo_CFLAGS.
56614         Reported by Ralf Wildenhues.
56615
56616 2007-03-01  Bruno Haible  <bruno@clisp.org>
56617
56618         * build-aux/install-reloc: Remove object files left over by some
56619         compilers.
56620         Reported by Ralf Wildenhues.
56621
56622 2007-03-01  Bruno Haible  <bruno@clisp.org>
56623
56624         * build-aux/install-reloc: Break long lines.
56625
56626 2007-03-01  Bruno Haible  <bruno@clisp.org>
56627
56628         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56629         Reported by Ralf Wildenhues.
56630
56631 2007-03-01  Bruno Haible  <bruno@clisp.org>
56632
56633         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56634         include ordering constraints.
56635
56636 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56637
56638         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56639         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56640         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56641         as another example.
56642         * lib/time_.h: Fix misspelling.
56643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56644         Require gl_HEADER_TIME_H_DEFAULTS.
56645         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56646         * m4/time_r.m4 (gl_TIME_R): Likewise.
56647         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56648
56649 2007-03-01  Bruno Haible  <bruno@clisp.org>
56650
56651         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56652         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56653
56654 2007-03-01  Jim Meyering  <jim@meyering.net>
56655
56656         * modules/xreadlink (Maintainer): Add my name.
56657         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56658
56659 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56660             Bruno Haible  <bruno@clisp.org>
56661
56662         * build-aux/install-reloc: Compile also c-ctype.c.
56663         * build-aux/relocatable.sh.in: New file.
56664         * doc/relocatable.texi: New file.
56665         * doc/relocatable-maint.texi: New file.
56666         * doc/gnulib.texi: Include relocatable-maint.texi.
56667         * lib/progreloc.c: Include unistd.h unconditionally.
56668         * lib/relocwrapper.c: Include unistd.h unconditionally.
56669         Include c-ctype.h.
56670         (add_dotbin): Use c_tolower.
56671         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56672         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56673         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56674         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56675         to m4/relocatable-lib.m4.
56676         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56677         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56678         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56679         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56680         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56681         * modules/relocatable: New file.
56682         * modules/relocatable-lib: New file.
56683         * modules/relocatable-script: New file.
56684
56685 2007-02-28  Bruno Haible  <bruno@clisp.org>
56686
56687         Import --enable-relocatable infrastructure.
56688         * build-aux/config.libpath: New file, from GNU gettext.
56689         * build-aux/install-reloc: New file, from GNU gettext.
56690         * build-aux/reloc-ldflags: New file, from GNU gettext.
56691         * lib/relocatable.h: New file, from GNU gettext.
56692         * lib/relocatable.c: New file, from GNU gettext.
56693         * lib/relocwrapper.c: New file, from GNU gettext.
56694         * m4/relocatable.m4: New file, from GNU gettext.
56695
56696 2007-02-28  Bruno Haible  <bruno@clisp.org>
56697
56698         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56699
56700         * modules/xreadlink: New file, from GNU gettext with modifications.
56701         * lib/xreadlink.c: New file, from GNU gettext.
56702         * lib/xreadlink.h: Add comments.
56703         (xreadlink): New declaration.
56704
56705         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56706         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56707         lib/xreadlink-with-size.c.
56708         (configure.ac): Remove gl_XREADLINK invocation.
56709         (Makefile.am): Augment lib_SOURCES.
56710         * m4/xreadlink.m4: Remove file.
56711         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56712         (xreadlink_with_size): Renamed from xreadink.
56713         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56714         * modules/canonicalize (Depends-on): Replace xreadlink with
56715         xreadlink-with-size.
56716         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56717
56718 2007-02-25  Jim Meyering  <jim@meyering.net>
56719
56720         * build-aux/announce-gen: When complaining about excess arguments,
56721         list them.
56722
56723 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56724
56725         * README: Document signed integer overflow situation more
56726         accurately.
56727
56728 2007-02-25  Bruno Haible  <bruno@clisp.org>
56729
56730         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56731         'a' or 'A' conversion.
56732
56733 2007-02-25  Bruno Haible  <bruno@clisp.org>
56734
56735         * modules/filename: Renamed from modules/pathname.
56736         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56737         lib/concatpath.c with lib/concat-filename.c.
56738         (Makefile.am): Update.
56739         (Include): Replace pathname.h with filename.h.
56740         * lib/filename.h: Renamed from lib/pathname.h.
56741         (concatenated_filename): Renamed from concatenated_pathname.
56742         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56743         (concatenated_filename): Renamed from concatenated_pathname.
56744         * lib/findprog.c: Include filename.h instead of pathname.h.
56745         (find_in_path): Update.
56746         * lib/javacomp.c: Include filename.h instead of pathname.h.
56747         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56748         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56749         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56750         is_oldgcj_14_13_usable, is_javac_usable): Update.
56751         * lib/javaexec.c: Include filename.h instead of pathname.h.
56752         (execute_java_class): Update.
56753         * modules/findprog: Update.
56754         * modules/javacomp: Update.
56755         * modules/javaexec: Update.
56756         * MODULES.html.sh (File system functions): Add 'filename', remove
56757         'pathname'.
56758
56759 2007-02-25  Bruno Haible  <bruno@clisp.org>
56760
56761         * modules/printf-frexpl-tests: New file.
56762         * tests/test-printf-frexpl.c: New file.
56763
56764         * modules/printf-frexpl: New file.
56765         * lib/printf-frexpl.h: New file.
56766         * lib/printf-frexpl.c: New file.
56767         * m4/printf-frexpl.m4: New file.
56768
56769 2007-02-25  Bruno Haible  <bruno@clisp.org>
56770
56771         * modules/printf-frexp-tests: New file.
56772         * tests/test-printf-frexp.c: New file.
56773
56774         * modules/printf-frexp: New file.
56775         * lib/printf-frexp.h: New file.
56776         * lib/printf-frexp.c: New file.
56777         * m4/printf-frexp.m4: New file.
56778
56779 2007-02-25  Bruno Haible  <bruno@clisp.org>
56780
56781         Assume automake >= 1.10 for the tests.
56782         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56783         * modules/arctwo-tests: Likewise.
56784         * modules/argp-tests: Likewise.
56785         * modules/avltree-list-tests: Likewise.
56786         * modules/avltree-oset-tests: Likewise.
56787         * modules/avltreehash-list-tests: Likewise.
56788         * modules/carray-list-tests: Likewise.
56789         * modules/crc-tests: Likewise.
56790         * modules/des-tests: Likewise.
56791         * modules/gc-arcfour-tests: Likewise.
56792         * modules/gc-arctwo-tests: Likewise.
56793         * modules/gc-des-tests: Likewise.
56794         * modules/gc-hmac-md5-tests: Likewise.
56795         * modules/gc-hmac-sha1-tests: Likewise.
56796         * modules/gc-md2-tests: Likewise.
56797         * modules/gc-md4-tests: Likewise.
56798         * modules/gc-md5-tests: Likewise.
56799         * modules/gc-pbkdf2-sha1-tests: Likewise.
56800         * modules/gc-rijndael-tests: Likewise.
56801         * modules/gc-sha1-tests: Likewise.
56802         * modules/gc-tests: Likewise.
56803         * modules/getaddrinfo-tests: Likewise.
56804         * modules/hmac-md5-tests: Likewise.
56805         * modules/hmac-sha1-tests: Likewise.
56806         * modules/linked-list-tests: Likewise.
56807         * modules/linkedhash-list-tests: Likewise.
56808         * modules/lock-tests: Likewise.
56809         * modules/md2-tests: Likewise.
56810         * modules/md4-tests: Likewise.
56811         * modules/md5-tests: Likewise.
56812         * modules/rbtree-list-tests: Likewise.
56813         * modules/rbtree-oset-tests: Likewise.
56814         * modules/rbtreehash-list-tests: Likewise.
56815         * modules/read-file-tests: Likewise.
56816         * modules/rijndael-tests: Likewise.
56817         * modules/stdint-tests: Likewise.
56818         * modules/tls-tests: Likewise.
56819
56820 2007-02-24  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56823         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56824         function; instead check whether isnan with a double argument links.
56825         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56826         function; instead check whether isnan with a 'long double' argument
56827         links.
56828         Reported by Eric Blake <ebb9@byu.net>.
56829
56830 2007-02-24  Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56833         defined.
56834         * lib/isnanl.c: Remove all code. Just include isnan.c.
56835         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56836
56837 2007-02-25  Jim Meyering  <jim@meyering.net>
56838
56839         Avoid conflicting types for 'unsetenv' on FreeBSD.
56840         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56841         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56842         in stdlib.h.
56843
56844 2007-02-24  Bruno Haible  <bruno@clisp.org>
56845
56846         * modules/isnanl-nolibm-tests: New file.
56847         * tests/test-isnanl.c: New file.
56848
56849         * modules/isnanl-nolibm: New file.
56850         * lib/isnanl.h: New file.
56851         * lib/isnanl.c: New file.
56852         * m4/isnanl.m4: New file.
56853
56854 2007-02-24  Bruno Haible  <bruno@clisp.org>
56855
56856         * modules/isnan-nolibm-tests: New file.
56857         * tests/test-isnan.c: New file.
56858
56859         * modules/isnan-nolibm: New file.
56860         * lib/isnan.h: New file.
56861         * lib/isnan.c: New file.
56862         * m4/isnan.m4: New file.
56863
56864 2007-02-24  Bruno Haible  <bruno@clisp.org>
56865
56866         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56867         assume that an exponent fits in 20 bits.
56868
56869 2007-02-24  Jim Meyering  <jim@meyering.net>
56870
56871         * m4/regex.m4: Update the description of the configure-time option,
56872         --without-included-regex, to state accurately what the defaults are,
56873         and perhaps to give people an idea why using this option is risky.
56874
56875 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56876
56877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56878         loops on small arguments.  This attempts to avoid the problem
56879         Bruno Haible reported for AIX 4.3.2 in
56880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56881
56882 2007-02-23  Bruno Haible  <bruno@clisp.org>
56883
56884         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56885         Needed for help2man.
56886
56887 2007-02-23  Karl Berry  <karl@gnu.org>
56888
56889         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56890         exists, foo.h should be cvs-ignored, not committed.
56891
56892 2007-02-23  Eric Blake  <ebb9@byu.net>
56893
56894         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56895         * lib/stat-time.h (includes): Likewise.
56896         * lib/utimecmp.c (includes): Likewise.
56897         * lib/utimens.h (includes): Likewise.
56898         * lib/getdate.y (includes): Also include "timespec.h" for use
56899         internal to the module.
56900         * modules/utimens (Depends-on): Revert yesterday's patch.
56901         * modules/nanosleep (Depends-on): Add missing dependency.
56902
56903 2007-02-22  Bruno Haible  <bruno@clisp.org>
56904
56905         * lib/glob.c: Don't include getlogin_r.h.
56906
56907 2007-02-22  Jim Meyering  <jim@meyering.net>
56908
56909         * modules/utimens (Depends-on): Add timespec, required for
56910         utimens.h's inclusion of timespec.h.
56911
56912 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56915         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56916         Schwab in
56917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56918         I'll try to think of a better way to fix the Solaris problem.
56919
56920         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56921         like glibc; on Solaris 10, it fails with errno == EINVAL.
56922         POSIX says the behavior is unspecified if the first argument is NULL,
56923         so play it safe and never pass NULL to the system getcwd.
56924
56925 2007-02-21  Jim Meyering  <jim@meyering.net>
56926
56927         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56928         of gettimeofday.  It would conflict with the one now always
56929         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56930         an IRIX 6.5 build failure.
56931
56932 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56933
56934         Minor fixups to port to Solaris 10 with Sun C 5.8.
56935         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56936         * modules/getcwd (Depends-on): Add dirfd.
56937         * lib/putenv.c (putenv): #undef it.
56938         (rpl_putenv): New decl.
56939         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56940
56941 2007-02-20  Bruno Haible  <bruno@clisp.org>
56942
56943         * modules/stdio-tests: New file.
56944         * tests/test-stdio.c: New file.
56945
56946         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56947         (Depends-on): Add stdio.
56948         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56949         (Include): Use <stdio.h> instead of vsnprintf.h.
56950         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56951         HAVE_DECL_VSNPRINTF.
56952         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56953
56954         * modules/snprintf (Files): Remove lib/snprintf.h.
56955         (Depends-on): Add stdio.
56956         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56957         (Include): Use <stdio.h> instead of snprintf.h.
56958         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56959         HAVE_DECL_SNPRINTF.
56960         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56961         * lib/getaddrinfo.c: Likewise.
56962
56963         * modules/stdio: New file.
56964         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56965         * lib/snprintf.h: Remove file.
56966         * lib/vsnprintf.h: Remove file.
56967         * lib/.cppi-disable: Remove snprintf.h.
56968         * m4/stdio_h.m4: New file.
56969         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56970
56971 2007-02-20  Jim Meyering  <jim@meyering.net>
56972
56973         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56974         used by e.g., mingw.  From Bruno Haible.
56975
56976 2007-02-19  Bruno Haible  <bruno@clisp.org>
56977
56978         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56979         warnings.
56980         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56981
56982 2007-02-19  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56985         from mingw users.
56986
56987 2007-02-19  Bruno Haible  <bruno@clisp.org>
56988
56989         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56990         warnings.
56991         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56992
56993 2007-02-19  Jim Meyering  <jim@meyering.net>
56994
56995         Don't use FD after a successful "fdopendir (fd)".
56996         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56997         Reset it by calling dirfd on the just-obtained DIR*.
56998
56999         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57000         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57001
57002 2007-02-18  Bruno Haible  <bruno@clisp.org>
57003
57004         * lib/readlink.c: Include <unistd.h>.
57005         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57006         HAVE_READLINK.
57007         * modules/readlink (Depends-on): Add unistd.
57008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57009         (Include): Add <unistd.h>.
57010
57011         * lib/getlogin_r.h: Remove file.
57012         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57013         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57014         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57015         HAVE_DECL_GETLOGIN_R.
57016         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57018         (Include): Use <unistd.h> instead of getlogin_r.h.
57019
57020         * lib/getcwd.h: Remove file.
57021         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57022         * lib/xgetcwd.c: Likewise.
57023         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57024         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57025         * modules/getcwd (Files): Remove lib/getcwd.h.
57026         (Depends-on): Add unistd.
57027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57028         (Include): Use <unistd.h> instad of getcwd.h.
57029
57030         * lib/ftruncate.c: Include <unistd.h> first.
57031         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57032         Set HAVE_FTRUNCATE.
57033         * modules/ftruncate (Depends-on): Add unistd.
57034         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57035
57036         * lib/fchdir.c: Include <unistd.h> first.
57037         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57039         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57040         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57041         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57042
57043         * lib/dup2.c: Include <unistd.h> first.
57044         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57045         HAVE_DUP2.
57046         * modules/dup2 (Depends-on): Add unistd.
57047         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57048
57049         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57050         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57051         REPLACE_CHOWN. Don't define chown as a macro here.
57052         * modules/chown (Depends-on): Add unistd.
57053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57054
57055         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57056         Add definition for GL_LINK_WARNING.
57057         (chown, dup2): New declarations.
57058         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57059         link warning.
57060         (ftruncate): New declaration.
57061         (getcwd): New declaration, taken from old getcwd.h.
57062         (getlogin_r): New declaration, taken from old getlogin_r.h.
57063         (readlink): New declaration.
57064         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57065         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57066         (gl_PREREQ_UNISTD): Remove macro.
57067         (gl_UNISTD_MODULE_INDICATOR): New macro.
57068         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57069         many new variables. Don't set UNISTD_H.
57070         * modules/unistd (Description): Change.
57071         (Depends-on): Add link-warning.
57072         (configure.ac): Update.
57073         (Makefile.am): Create unistd.h always. Substitute many new variables
57074         into it.
57075
57076 2007-02-18  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57079         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57080         HAVE_GETSUBOPT.
57081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57082         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57083         * lib/getsubopt.h: Remove file.
57084         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57085         (Depends-on): Add stdlib.
57086         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57087         (Includes): Use <stdlib.h> instead of getsubopt.h.
57088         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57089         Set HAVE_GETSUBOPT.
57090         * lib/getsubopt.c: Don't include getsubopt.h.
57091
57092 2007-02-18  Bruno Haible  <bruno@clisp.org>
57093
57094         * modules/fchdir (Depends-on): Add dup2.
57095
57096 2007-02-18  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/stdlib_.h: Handle glibc's special invocation convention
57099         specially.
57100
57101 2007-02-18  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/stdlib-tests: New file.
57104         * tests/test-stdlib.c: New file.
57105
57106         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57107         (Depends-on): Add stdlib.
57108         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57109         (Includes): Use <stdlib.h> instead of mkstemp.h.
57110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57111         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57112         * lib/mkstemp.c: Don't include mkstemp.h.
57113         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57114         * lib/stdlib--.h: Don't include mkstemp.h.
57115
57116         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57117         (Depends-on): Add stdlib.
57118         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57119         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57120         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57121         HAVE_MKDTEMP.
57122         * lib/mkdtemp.c: Don't include mkdtemp.h.
57123         * lib/clean-temp.c: Don't include mkdtemp.h.
57124
57125         * modules/exit (Files): Remove lib/exit.h.
57126         (Depends-on): Add stdlib.
57127         (Makefile.am): Remove lib_SOURCES.
57128         (Include): Use <stdlib.h> instead of exit.h.
57129         * lib/argmatch.c: Don't include exit.h.
57130         * lib/execute.c: Likewise.
57131         * lib/pagealign_alloc.c: Likewise.
57132         * lib/pipe.c: Likewise.
57133         * lib/wait-process.c: Likewise.
57134         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57135         * lib/exitfail.c: Likewise.
57136         * lib/savewd.c: Likewise.
57137         * lib/xsetenv.c: Likewise.
57138
57139         * modules/stdlib: New file.
57140         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57141         and extra comments about mkstemp().
57142         * lib/exit.h: Remove file.
57143         * lib/mkdtemp.h: Remove file.
57144         * lib/mkstemp.h: Remove file.
57145         * m4/stdlib_h.m4: New file.
57146         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57147
57148 2007-02-18  Bruno Haible  <bruno@clisp.org>
57149
57150         * modules/math-tests: New file.
57151         * tests/test-math.c: New file.
57152
57153         * modules/math: New file.
57154         * modules/mathl (Files): Remove lib/mathl.h.
57155         (Depends-on): Add math.
57156         (Makefile.am): Don't mention mathl.h.
57157         (Include): Use <math.h> instead of mathl.h.
57158         * lib/math_.h: New file.
57159         * lib/mathl.h: Remove file.
57160         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57161         mathl.h.
57162         * lib/asinl.c: Likewise.
57163         * lib/atanl.c: Likewise.
57164         * lib/ceill.c: Likewise.
57165         * lib/cosl.c: Likewise.
57166         * lib/expl.c: Likewise.
57167         * lib/floorl.c: Likewise.
57168         * lib/frexpl.c: Likewise.
57169         * lib/ldexpl.c: Likewise.
57170         * lib/logl.c: Likewise.
57171         * lib/sincosl.c: Likewise.
57172         * lib/sinl.c: Likewise.
57173         * lib/sqrtl.c: Likewise.
57174         * lib/tanl.c: Likewise.
57175         * lib/trigl.c: Likewise.
57176         * m4/math_h.m4: New file.
57177         * MODULES.html.sh (Mathematics): Add math.
57178
57179 2007-02-17  Bruno Haible  <bruno@clisp.org>
57180
57181         * modules/wctype-tests: New file.
57182         * tests/test-wctype.c: New file.
57183
57184         * modules/wchar-tests: New file.
57185         * tests/test-wchar.c: New file.
57186
57187         * modules/unistd-tests: New file.
57188         * tests/test-unistd.c: New file.
57189
57190         * modules/time-tests: New file.
57191         * tests/test-time.c: New file.
57192
57193         * modules/sysexits-tests: New file.
57194         * tests/test-sysexits.c: New file.
57195
57196         * modules/sys_time-tests: New file.
57197         * tests/test-sys_time.c: New file.
57198
57199         * modules/sys_stat-tests: New file.
57200         * tests/test-sys_stat.c: New file.
57201
57202         * modules/sys_socket-tests: New file.
57203         * tests/test-sys_socket.c: New file.
57204
57205         * modules/sys_select-tests: New file.
57206         * tests/test-sys_select.c: New file.
57207
57208         * modules/string-tests: New file.
57209         * tests/test-string.c: New file.
57210
57211         * modules/stdbool-tests: New file.
57212         * tests/test-stdbool.c: New file.
57213
57214         * modules/netinet_in-tests: New file.
57215         * tests/test-netinet_in.c: New file.
57216
57217         * modules/inttypes-tests: New file.
57218         * tests/test-inttypes.c: New file.
57219
57220         * modules/fcntl-tests: New file.
57221         * tests/test-fcntl.c: New file.
57222
57223         * modules/byteswap-tests: New file.
57224         * tests/test-byteswap.c: New file.
57225
57226         * modules/arpa_inet-tests: New file.
57227         * tests/test-arpa_inet.c: New file.
57228
57229 2007-02-17  Bruno Haible  <bruno@clisp.org>
57230
57231         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57232         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57233         if the corresponding module is not enabled. Emit link warnings if
57234         the function is used nevertheless.
57235         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57236         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57237         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57238         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57239         * modules/inttypes (Depends-on): Add link-warning.
57240         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57241         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57242         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57243         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57244         * modules/imaxdiv (configure.ac): Likewise.
57245         * modules/strtoimax (configure.ac): Likewise.
57246         * modules/strtoumax (configure.ac): Likewise.
57247
57248 2007-02-17  Bruno Haible  <bruno@clisp.org>
57249
57250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57251         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57252         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57253         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57254
57255 2007-02-17  Bruno Haible  <bruno@clisp.org>
57256
57257         * modules/link-warning: New file.
57258         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57259         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57260         * modules/string (Depends-on): Add link-warning.
57261         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57262         string.h.
57263         * MODULES.html.sh (Support for building libraries and executables): Add
57264         link-warning.
57265
57266 2007-02-17  Bruno Haible  <bruno@clisp.org>
57267
57268         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57269         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57270         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57271         long lines.
57272
57273 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57274             Bruno Haible  <bruno@clisp.org>
57275
57276         * modules/tmpfile: New file.
57277         * lib/tmpfile.c: New file.
57278         * m4/tmpfile.m4: New file.
57279         * MODULES.html.sh (func_all_modules): New section "Input/output".
57280
57281 2007-02-15  Bruno Haible  <bruno@clisp.org>
57282
57283         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57284         (supports_delete_on_close): New function.
57285         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57286
57287 2007-02-14  Bruno Haible  <bruno@clisp.org>
57288
57289         * modules/mbspcasecmp-tests: New file.
57290         * tests/test-mbspcasecmp.sh: New file.
57291         * tests/test-mbspcasecmp.c: New file.
57292
57293         New module mbspcasecmp.
57294         * modules/mbspcasecmp: New file.
57295         * lib/mbspcasecmp.c: New file.
57296         * lib/string_.h (strncasecmp): Change warning message.
57297         (mbspcasecmp): New declaration.
57298         * m4/mbspcasecmp.m4: New file.
57299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57300         GNULIB_MBSPCASECMP.
57301         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57302         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57303
57304 2007-02-14  Bruno Haible  <bruno@clisp.org>
57305
57306         * modules/mbsncasecmp-tests: New file.
57307         * tests/test-mbsncasecmp.sh: New file.
57308         * tests/test-mbsncasecmp.c: New file.
57309
57310         New module mbsncasecmp.
57311         * modules/mbsncasecmp: New file.
57312         * lib/mbsncasecmp.c: New file.
57313         * lib/string_.h (mbsncasecmp): New declaration.
57314         * m4/mbsncasecmp.m4: New file.
57315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57316         GNULIB_MBSNCASECMP.
57317         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57318         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57319
57320 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57321
57322         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57323         Verify that it doesn't overlap with our flags.
57324         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57325         do not have the desired effect in multibyte locales; instead, use
57326         mbscasecmp.
57327         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57328         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57329         we don't require GNU fnmatch ourselves (if our users require it, they
57330         should do so explicitly).
57331
57332         Fix regex code so it doesn't rely on strcasecmp.
57333         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57334         Otherwise, include gnulib's langinfo.h.
57335         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57336         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57337         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57338         * modules/regex (FILES): Remove m4/codeset.m4.
57339         (Depends-on): Add localcharset.  Remove strcase.
57340
57341 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57342
57343         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57344         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57345
57346 2007-02-13  Bruno Haible  <bruno@clisp.org>
57347
57348         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57350
57351 2007-02-12  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57354         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57355         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57356         time warning rather than a link error.
57357
57358 2007-02-12  Bruno Haible  <bruno@clisp.org>
57359
57360         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57361         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57363
57364 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57365
57366         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57367         args, not 2.
57368
57369 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         New module 'time', so that apps can include <time.h> as per
57372         POSIX and GNU instead of separate include files like time_r.h
57373         and timegm.h.  This implementation tries out a simpler approach
57374         for replacing decls in standard include files (as compared to
57375         the string module), somewhat as an experiment.
57376
57377         * config/srclist.txt: Comment out mktime.c for now.
57378         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57379         since it doesn't apply any more.  Use generic wording instead.
57380         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57381         'time'.
57382         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57383         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57384         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57385         Don't include <sys/types.h>; no longer needed since we assume C89.
57386         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57387         * lib/strftime.c: Likewise.
57388         * lib/time_r.c: Likewise.
57389         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57390         * lib/nanosleep.c: Include <time.h> first, to check interface.
57391         * lib/strptime.c: Likewise.
57392         * lib/time_r.c: Likewise.
57393         * lib/timegm.c: Likewise.
57394         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57395         needed.
57396         * lib/timegm.c: Don't include timegm.h; no longer needed.
57397         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57398         time.h now handles any problems in that area.
57399         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57400         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57401         that time.h defines struct timespec.
57402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57403         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57404         handles that.
57405         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57406         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57407         needed.  Set REPLACE_LOCALTIME.
57408         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57409         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57410         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57411         nanosleep; time_h.m4 now does that.  Don't require
57412         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57413         module handles this now.
57414         * modules/getdate (Depends-on): Remove timespec.  Add time.
57415         * modules/nanosleep (Depends-on): Likewise.
57416         * modules/stat-time (Depends-on): Likewise.
57417         * modules/nanosleep (Include): Include time.h, not timespec.h.
57418         * modules/strptime (Files): Remove lib/strptime.h.
57419         (Depends-on): Add extensions, time.
57420         (Include): Include time.h, not strptime.h.
57421         * modules/time_r (Files): Remove lib/time_r.h.
57422         (Depends-on): Add time.
57423         (Include): Include time.h, not time_r.h.
57424         * modules/timegm: Likewise.
57425         * modules/timespec (Description): Now does timespec-related decls
57426         of our own, instead of struct timespec itself.
57427         (Depends-on): Add time; remove extensions.
57428         (Maintainer): Add self.
57429         * modules/utimecmp (Depends-on): Add time; remove timespec.
57430         * modules/utimens (Depends-on): Likewise.
57431         * modules/xnanosleep (Depends-on): Likewise.
57432
57433 2007-02-11  Bruno Haible  <bruno@clisp.org>
57434
57435         * lib/c-strstr.c: Include allocsa.h.
57436         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57437         * lib/c-strcasestr.c: Include allocsa.h.
57438         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57439         * lib/strcasestr.c: Include allocsa.h.
57440         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57441         * lib/mbsstr.c: Include allocsa.h.
57442         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57443         allocsa/freesa instead of malloc/free.
57444         * lib/mbscasestr.c: Include allocsa.h.
57445         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57446         allocsa/freesa instead of malloc/free.
57447         * modules/c-strstr (Depends-on): Add allocsa.
57448         * modules/c-strcasestr (Depends-on): Likewise.
57449         * modules/strcasestr (Depends-on): Likewise.
57450         * modules/mbsstr (Depends-on): Likewise.
57451         * modules/mbscasestr (Depends-on): Likewise.
57452
57453 2007-02-11  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57456
57457         * modules/mbsspn-tests: New file.
57458         * tests/test-mbsspn.sh: New file.
57459         * tests/test-mbsspn.c: New file.
57460
57461 2007-02-11  Bruno Haible  <bruno@clisp.org>
57462
57463         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57464
57465         * modules/mbspbrk-tests: New file.
57466         * tests/test-mbspbrk.sh: New file.
57467         * tests/test-mbspbrk.c: New file.
57468
57469 2007-02-11  Bruno Haible  <bruno@clisp.org>
57470
57471         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57472         unneeded cast.
57473
57474         * modules/mbscspn-tests: New file.
57475         * tests/test-mbscspn.sh: New file.
57476         * tests/test-mbscspn.c: New file.
57477
57478 2007-02-11  Bruno Haible  <bruno@clisp.org>
57479
57480         * modules/mbscasecmp-tests: New file.
57481         * tests/test-mbscasecmp.sh: New file.
57482         * tests/test-mbscasecmp.c: New file.
57483
57484 2007-02-11  Bruno Haible  <bruno@clisp.org>
57485
57486         Ensure O(n) worst-case complexity of mbscasestr.
57487         * lib/mbscasestr.c: Include stdbool.h.
57488         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57489         functions.
57490         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57491         the bookkeeping indicates that it's worth it.
57492         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57493
57494         * modules/mbscasestr-tests: New file.
57495         * tests/test-mbscasestr1.c: New file.
57496         * tests/test-mbscasestr2.sh: New file.
57497         * tests/test-mbscasestr2.c: New file.
57498         * tests/test-mbscasestr3.sh: New file.
57499         * tests/test-mbscasestr3.c: New file.
57500         * tests/test-mbscasestr4.sh: New file.
57501         * tests/test-mbscasestr4.c: New file.
57502         * m4/locale-tr.m4: New file.
57503
57504 2007-02-11  Bruno Haible  <bruno@clisp.org>
57505
57506         Ensure O(n) worst-case complexity of mbsstr.
57507         * lib/mbsstr.c: Include stdbool.h.
57508         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57509         functions.
57510         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57511         bookkeeping indicates that it's worth it.
57512         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57513
57514         * modules/mbsstr-tests: New file.
57515         * tests/test-mbsstr1.c: New file.
57516         * tests/test-mbsstr2.sh: New file.
57517         * tests/test-mbsstr2.c: New file.
57518         * tests/test-mbsstr3.sh: New file.
57519         * tests/test-mbsstr3.c: New file.
57520         * m4/locale-fr.m4: New file.
57521
57522 2007-02-11  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/mbsrchr.c (mbsrchr): Fix bug.
57525
57526         * modules/mbsrchr-tests: New file.
57527         * tests/test-mbsrchr.sh: New file.
57528         * tests/test-mbsrchr.c: New file.
57529
57530 2007-02-11  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/mbschr.c (mbschr): Fix bug.
57533
57534         * modules/mbschr-tests: New file.
57535         * tests/test-mbschr.sh: New file.
57536         * tests/test-mbschr.c: New file.
57537         * m4/locale-zh.m4: New file.
57538
57539 2007-02-11  Bruno Haible  <bruno@clisp.org>
57540
57541         Support for copying multibyte string iterators.
57542         * lib/mbiter.h: Include <string.h>.
57543         (mbiter_multi_copy): New function.
57544         (mbi_copy): New macro.
57545         * lib/mbuiter.h: Include <string.h>.
57546         (mbuiter_multi_copy): New function.
57547         (mbui_copy): New macro.
57548
57549 2007-02-11  Bruno Haible  <bruno@clisp.org>
57550
57551         New module mbslen.
57552         * modules/mbslen: New file.
57553         * lib/mbslen.c: New file.
57554         * lib/string_.h (mbslen): New declaration.
57555         * m4/mbslen.m4: New file.
57556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57557         GNULIB_MBSLEN.
57558         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57559         * MODULES.html.sh (Internationalization functions): Add mbslen.
57560
57561 2007-02-11  Bruno Haible  <bruno@clisp.org>
57562
57563         Ensure O(n) worst-case complexity of strcasestr substitute.
57564         * lib/strcasestr.c: Include stdbool.h.
57565         (knuth_morris_pratt): New function.
57566         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57567         bookkeeping indicates that it's worth it.
57568         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57569
57570         * modules/strcasestr-tests: New file.
57571         * tests/test-strcasestr.c: New file.
57572
57573 2007-02-11  Bruno Haible  <bruno@clisp.org>
57574
57575         Ensure O(n) worst-case complexity of c_strcasestr.
57576         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57577         (knuth_morris_pratt): New function.
57578         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57579         the bookkeeping indicates that it's worth it.
57580         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57581
57582         * modules/c-strcasestr-tests: New file.
57583         * tests/test-c-strcasestr.c: New file.
57584
57585 2007-02-11  Bruno Haible  <bruno@clisp.org>
57586
57587         Ensure O(n) worst-case complexity of c_strstr.
57588         * lib/c-strstr.c: Include stdbool.h, string.h.
57589         (knuth_morris_pratt): New function.
57590         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57591         bookkeeping indicates that it's worth it.
57592         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57593
57594         * lib/c-strstr.c: Complete rewrite for maintainability.
57595
57596         * modules/c-strstr-tests: New file.
57597         * tests/test-c-strstr.c: New file.
57598
57599 2007-02-11  Bruno Haible  <bruno@clisp.org>
57600
57601         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57602         5.2.1 and earlier, whereby \055 was treated just like the range
57603         delimiter '-'.
57604         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57605
57606 2007-02-08  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/regex (Depends-on): Add stdbool.
57609         Reported by Dalibor Topic <robilad@kaffe.org>.
57610
57611 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57614         Prefer returning from main to exiting from it.
57615         Remove unnecessary parens after sizeof.
57616
57617 2007-02-05  Bruno Haible  <bruno@clisp.org>
57618
57619         New module mbssep.
57620         * modules/mbssep: New file.
57621         * lib/mbssep.c: New file.
57622         * lib/string_.h (strsep): Add a conditional link warning.
57623         (mbssep): New declaration.
57624         * m4/mbssep.m4: New file.
57625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57626         GNULIB_MBSSEP.
57627         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57628         * MODULES.html.sh (Internationalization functions): Add mbssep.
57629
57630 2007-02-05  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57633         Optimize search in case of 1 delimiter.
57634
57635 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57636
57637         * lib/acl.h: Include sys/types.h before sys/acl.h.
57638
57639 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57640
57641         Merge upstream fix for glibc bugzilla #3957:
57642
57643         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57644
57645         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57646         bit for RE_HAT_LISTS_NOT_NEWLINE.
57647         (build_charclass_op): Remove bogus comment.
57648
57649 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57650
57651         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57652
57653 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57654
57655         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57656         * lib/memmem.c [!defined _LIBC]: Include config.h.
57657
57658 2007-02-04  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57661         warning message.
57662
57663 2007-02-04  Bruno Haible  <bruno@clisp.org>
57664
57665         New module mbstok_r.
57666         * modules/mbstok_r: New file.
57667         * lib/mbstok_r.c: New file.
57668         * lib/string_.h (strtok_r): Change argument names to match the
57669         comments. Add a conditional link warning.
57670         (mbstok_r): New declaration.
57671         * m4/mbstok_r.m4: New file.
57672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57673         GNULIB_MBSTOK_R.
57674         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57675         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57676
57677 2007-02-04  Bruno Haible  <bruno@clisp.org>
57678
57679         New module mbsspn.
57680         * modules/mbsspn: New file.
57681         * lib/mbsspn.c: New file.
57682         * lib/string_.h (strspn): Add a conditional link warning.
57683         (mbsspn): New declaration.
57684         * m4/mbsspn.m4: New file.
57685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57686         GNULIB_MBSSPN.
57687         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57688         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57689
57690 2007-02-04  Bruno Haible  <bruno@clisp.org>
57691
57692         New module mbspbrk.
57693         * modules/mbspbrk: New file.
57694         * lib/mbspbrk.c: New file.
57695         * lib/string_.h (strpbrk): Add a conditional link warning.
57696         (mbspbrk): New declaration.
57697         * m4/mbspbrk.m4: New file.
57698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57699         GNULIB_MBSPBRK.
57700         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57701         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57702
57703 2007-02-04  Bruno Haible  <bruno@clisp.org>
57704
57705         New module mbscspn.
57706         * modules/mbscspn: New file.
57707         * lib/mbscspn.c: New file.
57708         * lib/string_.h (strcspn): Add a conditional link warning.
57709         (mbscspn): New declaration.
57710         * m4/mbscspn.m4: New file.
57711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57712         GNULIB_MBSCSPN.
57713         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57714         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57715
57716 2007-02-04  Bruno Haible  <bruno@clisp.org>
57717
57718         New module mbscasestr, reduced goal of strcasestr.
57719         * modules/mbscasestr: New file.
57720         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57721         (mbscasestr): Renamed from strcasestr.
57722         * lib/strcasestr.c: Don't include mbuiter.h.
57723         (strcasestr): Remove support for multibyte locales.
57724         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57725         Change the conditional link warning.
57726         (mbscasestr): New declaration.
57727         * m4/mbscasestr.m4: New file.
57728         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57729         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57730         REPLACE_STRCASESTR.
57731         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57733         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57734         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57735         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57736         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57737         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57738         (Depends-on): Remove mbuiter.
57739         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57740
57741 2007-02-04  Bruno Haible  <bruno@clisp.org>
57742
57743         Simplify handling of strncasecmp.
57744         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57745         the conditional link warning.
57746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57747         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57749         * modules/strcase (configure.ac): Don't invoke
57750         gl_STRING_MODULE_INDICATOR.
57751         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57752
57753 2007-02-04  Bruno Haible  <bruno@clisp.org>
57754
57755         New module mbscasecmp, reduced goal of strcasecmp.
57756         * modules/mbscasecmp: New file.
57757         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57758         (mbscasecmp): Renamed from strcasecmp.
57759         * lib/strcasecmp.c: Don't include mbuiter.h.
57760         (strcasecmp): Remove support for multibyte locales.
57761         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57762         Change the conditional link warning.
57763         (mbscasecmp): New declaration.
57764         * m4/mbscasecmp.m4: New file.
57765         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57766         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57767         REPLACE_STRCASECMP.
57768         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57769         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57770         GNULIB_MBSCASECMP.
57771         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57772         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57773         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57774         (Depends-on): Remove mbuiter.
57775         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57776
57777 2007-02-04  Bruno Haible  <bruno@clisp.org>
57778
57779         New module mbsstr. Remove module strstr.
57780         * modules/mbsstr: New file.
57781         * modules/strstr: Remove file.
57782         * lib/mbsstr.c: Renamed from lib/strstr.c.
57783         (mbsstr): Renamed from strstr.
57784         * lib/string_.h (strstr): Remove declaration. Change the conditional
57785         link warning.
57786         (mbsstr): New declaration.
57787         * m4/mbsstr.m4: New file.
57788         * m4/strstr.m4: Remove file.
57789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57790         REPLACE_STRSTR.
57791         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57792         Don't initialize GNULIB_STRSTR.
57793         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57794         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57795         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57796         (Support for systems lacking ANSI C 89): Remove strstr.
57797
57798 2007-02-04  Bruno Haible  <bruno@clisp.org>
57799
57800         New module mbsrchr.
57801         * modules/mbsrchr: New file.
57802         * lib/mbsrchr.c: New file.
57803         * lib/string_.h (strrchr): Add a conditional link warning.
57804         (mbsrchr): New declaration.
57805         * m4/mbsrchr.m4: New file.
57806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57807         GNULIB_MBSRCHR.
57808         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57809         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57810
57811 2007-02-04  Bruno Haible  <bruno@clisp.org>
57812
57813         New module mbschr.
57814         * modules/mbschr: New file.
57815         * lib/mbschr.c: New file.
57816         * lib/string_.h (strchr): Add a conditional link warning.
57817         (mbschr): New declaration.
57818         * m4/mbschr.m4: New file.
57819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57820         GNULIB_MBSCHR.
57821         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57822         * MODULES.html.sh (Internationalization functions): Add mbschr.
57823
57824 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57825
57826         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57827
57828         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57829
57830 2007-02-04  Bruno Haible  <bruno@clisp.org>
57831
57832         New module description section 'configure.ac-early'.
57833         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57834         (func_get_autoconf_early_snippet): New function.
57835         (func_import, func_create_testdir): Use it. Remove special cases for
57836         modules 'extensions' and 'lock'.
57837         * modules/extensions (configure.ac-early): Require
57838         gl_USE_SYSTEM_EXTENSIONS.
57839         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57840
57841 2007-02-04  Bruno Haible  <bruno@clisp.org>
57842
57843         Make use of gcj-4.3's -fsource and -ftarget option.
57844         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57845         and if so try the options -fsource and -ftarget.
57846         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57847         source_version, ftarget_option, target_version arguments.
57848         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57849         (is_envjavac_oldgcj_14_14_usable): Renamed from
57850         is_envjavac_gcj_14_14_usable.
57851         (is_envjavac_oldgcj_14_13_usable): Renamed from
57852         is_envjavac_gcj_14_13_usable.
57853         (is_gcj_present): Update.
57854         (is_gcj_43, is_gcj43_usable): New functions.
57855         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57856         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57857         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57858         try the options -fsource and -ftarget.
57859
57860 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57863         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57864         larger value.
57865
57866 2007-02-03  Jim Meyering  <jim@meyering.net>
57867
57868         Give tools a better chance to allocate space for very large buffers.
57869         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57870
57871         Make pwd and readlink work also when run with an unreadable parent dir
57872         on systems with openat support.
57873         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57874         provided getcwd function, even when we have openat support.
57875         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57876
57877 2007-02-02  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57880         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57881         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57882         portability problems if one of these functions is only used on specific
57883         platforms.
57884         Reported by Paul Eggert.
57885
57886 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57889         is causing more trouble than it's curing.
57890         * lib/regex_internal.h (__mempcpy): Remove.
57891         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57892         (and make the code a tad smaller to boot).
57893         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57894
57895 2007-02-02  Jim Meyering  <jim@meyering.net>
57896
57897         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57898         section, not in the Makefile.am: one.
57899
57900 2007-02-02  Eric Blake  <ebb9@byu.net>
57901
57902         * lib/strchrnul.c: Always include config.h first.
57903
57904         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57905         gnulib strstr is not necessary here.
57906
57907 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57908
57909         * m4/socklen.m4: Fix typo.
57910
57911 2007-02-02  Eric Blake  <ebb9@byu.net>
57912
57913         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57914         * modules/netinet_in (Makefile.am): Likewise.
57915
57916 2007-02-01  Bruno Haible  <bruno@clisp.org>
57917
57918         * lib/string_.h (GL_LINK_WARNING): New macro.
57919         (strcasecmp, strstr, strcasestr): If provided by the system,
57920         conditionally define as a macro that leads to a warning instead of to
57921         an error.
57922         (strncasecmp): Conditionally define as a macro that leads to a warning.
57923
57924 2007-02-01  Karl Berry  <karl@gnu.org>
57925
57926         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57927
57928 2007-02-01  Bruno Haible  <bruno@clisp.org>
57929
57930         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57931         renamings.
57932
57933 2007-02-01  Eric Blake  <ebb9@byu.net>
57934
57935         * modules/regex (Depends-on): Revert dependence on mempcpy.
57936         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57937         module's definition of mempcpy.
57938         Reported by Paul Eggert.
57939
57940 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57941
57942         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57943         the symbol XYZ before redefining it.  This fixes a problem with
57944         programs that don't use XYZ, when compiled on systems that define
57945         XYZ to something else.
57946
57947 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57948
57949         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57950         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57951         writeable to group or other and (2) is intended to have a special
57952         mode bit that is set or cleared.  In such a case, the directory
57953         should be neither group- nor other-writeable until the special
57954         mode bits are right.
57955
57956 2007-01-31  Eric Blake  <ebb9@byu.net>
57957
57958         * modules/mountlist (Depends-on): Add strstr.
57959
57960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57961         bug.
57962         * modules/string (Makefile.am): Remove redundant replacement.
57963         * modules/regex (Depends-on): Add mempcpy.
57964
57965 2007-01-31  Bruno Haible  <bruno@clisp.org>
57966
57967         New module description field 'Link'.
57968         * gnulib-tool (func_usage): Document --extract-link-directive.
57969         (sed_extract_prog): Recognize 'Link' directive.
57970         (func_get_link_directive): New function.
57971         (func_import): Show summary of link directives.
57972         Handle --extract-link-directive option.
57973         * modules/acl (Link): New section.
57974         * modules/clock-time (Link): New section.
57975         * modules/euidaccess (Link): New section.
57976         * modules/gettext (Link): New section.
57977         * modules/iconv (Link): New section.
57978         * modules/lock (Link): New section.
57979         * modules/nanosleep (Link): New section.
57980         * modules/readline (Link): New section.
57981
57982 2007-01-27  Bruno Haible  <bruno@clisp.org>
57983
57984         Enforce the use of gnulib modules for unportable <string.h> functions.
57985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57986         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57987         (gl_HEADER_STRING_H_BODY): Require it.
57988         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57989         the symbol XYZ to one that gives a link error.
57990         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57991         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57992         * modules/mempcpy (configure.ac): Likewise.
57993         * modules/memrchr (configure.ac): Likewise.
57994         * modules/stpcpy (configure.ac): Likewise.
57995         * modules/stpncpy (configure.ac): Likewise.
57996         * modules/strcase (configure.ac): Likewise.
57997         * modules/strcasestr (configure.ac): Likewise.
57998         * modules/strchrnul (configure.ac): Likewise.
57999         * modules/strdup (configure.ac): Likewise.
58000         * modules/strndup (configure.ac): Likewise.
58001         * modules/strnlen (configure.ac): Likewise.
58002         * modules/strpbrk (configure.ac): Likewise.
58003         * modules/strsep (configure.ac): Likewise.
58004         * modules/strstr (configure.ac): Likewise.
58005         * modules/strtok_r (configure.ac): Likewise.
58006
58007 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58008
58009         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58010
58011 2007-01-30  Jim Meyering  <jim@meyering.net>
58012
58013         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58014
58015 2007-01-29  Bruno Haible  <bruno@clisp.org>
58016
58017         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58018         * lib/execute.c: Likewise.
58019         * lib/pipe.c: Likewise.
58020         * lib/printf-args.h: Likewise.
58021         * lib/printf-args.c: Likewise.
58022         * lib/printf-parse.c: Likewise.
58023         * lib/vasnprintf.c: Likewise.
58024
58025 2007-01-29  Eric Blake  <ebb9@byu.net>
58026
58027         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58028         declaration.
58029
58030 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58031
58032         * lib/strptime.h (strptime): Use 'restrict' for args where
58033         POSIX requires this.
58034         * lib/strptime.c (strptime): Likewise.
58035         Change license notice from LGPL to GPL, since gnulib-tool will
58036         change this as needed.
58037         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58038         defined.
58039         Include "strptime.h" first, to check interface.
58040         Do not #undef _LIBC and _NL_CURRENT.
58041         Do not include <stdlib.h>; no longer needed.
58042         Include "time_r.h" and declare ptime_locale_status
58043         only if _LIBC is not defined.
58044         (__P): Remove unused macro.
58045         (match_string): Bring back glibc version, but use it only if _LIBC
58046         is defined.
58047         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58048         Remove unnecessary assertion and abort() call.
58049         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58050         * m4/strptime.m4: Fix serial number comment.
58051         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58052         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58053         (Depends-on): Add time_r.
58054
58055 2007-01-29  Bruno Haible  <bruno@clisp.org>
58056
58057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58058         strptime.
58059         * modules/strptime (Depends-on): Add stdbool.
58060         * lib/strptime.h: Include <time.h> always. Add comments.
58061
58062 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58063
58064         * modules/strptime: New file.
58065         * lib/strptime.h: New file.
58066         * lib/strptime.c: New file.
58067         * m4/strptime.m4: New file.
58068
58069 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         * MODULES.html.sh: New module mpsort.
58072         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58073
58074         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58075         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58077         All uses changed.
58078         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58079         All uses changed.
58080         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58081         to _Restrict_.
58082         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58083         the parameter matches the prototype.
58084
58085 2007-01-28  Jim Meyering  <jim@meyering.net>
58086
58087         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58088         sys/time.h here, reverting that part of the previous patch:
58089         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58090
58091 2007-01-28  Bruno Haible  <bruno@clisp.org>
58092
58093         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58094         value of $(SYS_TIME_H).
58095         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58096         remove it conditionally, too. [added by Jim Meyering]
58097         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58098         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58099         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58100         GETTIMEOFDAY_REPLACEMENT to 1.
58101
58102 2007-01-28  Bruno Haible  <bruno@clisp.org>
58103
58104         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58105         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58107         Set UNISTD_H instead of UNISTD_H2.
58108         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58109
58110 2007-01-28  Bruno Haible  <bruno@clisp.org>
58111
58112         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58113         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58114
58115 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58116
58117         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58118         (func_create_testdir): Ensure C locale for `grep' and `tr'
58119         character ranges.
58120         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58121         ACLOCAL_AMFLAGS parsing state machine.
58122
58123 2007-01-27  Bruno Haible  <bruno@clisp.org>
58124
58125         * modules/unistr/base: Update.
58126
58127 2007-01-27  Bruno Haible  <bruno@clisp.org>
58128
58129         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58130         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58131         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58132         modules/unistr/u32-mbtouc.
58133         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58134         * lib/unistr.h: Update.
58135         * lib/linebreak.c: Update.
58136         * modules/unistr/u32-mbtouc: Renamed from
58137         modules/unistr/u32-mbtouc-safe.
58138         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58139         * lib/unistr.h: Update.
58140         * lib/unistr/u32-to-u8.c: Update.
58141         * lib/unistr/u32-to-u16.c: Update.
58142
58143 2007-01-27  Bruno Haible  <bruno@clisp.org>
58144
58145         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58146         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58147         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58148         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58149         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58150         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58151         modules/unistr/u16-mbtouc.
58152         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58153         * lib/unistr.h: Update.
58154         * lib/linebreak.c: Update.
58155         * modules/linebreak: Update.
58156         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58157         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58158         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58159         * modules/unistr/u16-mbtouc: Renamed from
58160         modules/unistr/u16-mbtouc-safe.
58161         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58162         * lib/unistr.h: Update.
58163         * lib/unistr/u16-to-u8.c: Update.
58164         * modules/unistr/u16-to-u8: Update.
58165         * lib/unistr/u16-to-u32.c: Update.
58166         * modules/unistr/u16-to-u32: Update.
58167
58168 2007-01-27  Bruno Haible  <bruno@clisp.org>
58169
58170         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58171         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58172         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58173         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58174         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58175         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58176         modules/unistr/u8-mbtouc.
58177         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58178         * lib/unistr.h: Update.
58179         * lib/striconveh.c: Update.
58180         * modules/striconveh: Update.
58181         * lib/linebreak.c: Update.
58182         * modules/linebreak: Update.
58183         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58184         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58185         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58186         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58187         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58188         * lib/unistr.h: Update.
58189         * lib/striconveh.c: Update.
58190         * modules/striconveh: Update.
58191         * lib/unistr/u8-to-u16.c: Update.
58192         * modules/unistr/u8-to-u16: Update.
58193         * lib/unistr/u8-to-u32.c: Update.
58194         * modules/unistr/u8-to-u32: Update.
58195
58196 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58197
58198         Sync from Libtool.
58199         * lib/argz.c: Do not include strings.h nor memory.h, include
58200         string.h unconditionally.  Patch by Simon Josefsson.
58201
58202 2007-01-27  Bruno Haible  <bruno@clisp.org>
58203
58204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58205         from gl_HEADER_STRING_H_BODY.
58206         (gl_HEADER_STRING_H_BODY): Require it.
58207         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58208         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58209         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58210         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58212         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58214         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58215         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58217         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58218         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58219         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58220         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58221         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58222
58223 2007-01-27  Bruno Haible  <bruno@clisp.org>
58224
58225         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58226         check_PROGRAMS into noinst_PROGRAMS.
58227         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58228         check_PROGRAMS in this case.
58229         (func_import): Set for_test to false.
58230         (func_create_testdir): Set for_test to true.
58231
58232 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58233             Bruno Haible  <bruno@clisp.org>
58234
58235         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58236         (Depends-on): Add string.
58237         (Includes): Use <string.h> instead of strcasestr.h.
58238         * modules/string (Makefile.am): Also substitute the value of
58239         REPLACE_STRCASESTR.
58240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58241         assume strcasestr is declared in <string.h> not <strings.h>. Also
58242         set REPLACE_STRCASESTR.
58243         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58244         REPLACE_STRCASESTR.
58245         * lib/strcasestr.h: Remove file.
58246         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58247         * lib/string_.h (strcasestr): New declaration.
58248
58249 2007-01-27  Bruno Haible  <bruno@clisp.org>
58250
58251         * lib/string_.h: Use 'extern'.
58252
58253 2007-01-27  Jim Meyering  <jim@meyering.net>
58254
58255         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58256         of set-but-not-used local, "q".
58257
58258         * lib/mempcpy.c: Include <config.h> before <string.h>.
58259         This fixes a compilation error on HP-UX, due to the system's
58260         "restrict"-using mempcpy prototype.
58261
58262 2007-01-26  Bruno Haible  <bruno@clisp.org>
58263
58264         Small optimization.
58265         * lib/javacomp.c: Include c-strstr.h.
58266          (is_envjavac_gcj): Use c_strstr instead of strstr.
58267         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58268
58269 2007-01-26  Bruno Haible  <bruno@clisp.org>
58270
58271         * MODULES.html.sh (Unicode string functions): Add the new modules.
58272
58273         * modules/uniconv/u32-strconv-to-locale: New file.
58274         * lib/uniconv/u32-strconv-to-locale.c: New file.
58275
58276         * modules/uniconv/u16-strconv-to-locale: New file.
58277         * lib/uniconv/u16-strconv-to-locale.c: New file.
58278
58279         * modules/uniconv/u8-strconv-to-locale: New file.
58280         * lib/uniconv/u8-strconv-to-locale.c: New file.
58281
58282         * modules/uniconv/u32-strconv-from-locale: New file.
58283         * lib/uniconv/u32-strconv-from-locale.c: New file.
58284
58285         * modules/uniconv/u16-strconv-from-locale: New file.
58286         * lib/uniconv/u16-strconv-from-locale.c: New file.
58287
58288         * modules/uniconv/u8-strconv-from-locale: New file.
58289         * lib/uniconv/u8-strconv-from-locale.c: New file.
58290
58291         * modules/uniconv/u32-strconv-to-enc: New file.
58292         * lib/uniconv/u32-strconv-to-enc.c: New file.
58293         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58294         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58295
58296         * modules/uniconv/u16-strconv-to-enc: New file.
58297         * lib/uniconv/u16-strconv-to-enc.c: New file.
58298         * lib/uniconv/u-strconv-to-enc.h: New file.
58299         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58300         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58301
58302         * modules/uniconv/u8-strconv-to-enc: New file.
58303         * lib/uniconv/u8-strconv-to-enc.c: New file.
58304         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58305         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58306
58307         * modules/uniconv/u32-strconv-from-enc: New file.
58308         * lib/uniconv/u32-strconv-from-enc.c: New file.
58309         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58310         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58311
58312         * modules/uniconv/u16-strconv-from-enc: New file.
58313         * lib/uniconv/u16-strconv-from-enc.c: New file.
58314         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58315         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58316
58317         * modules/uniconv/u8-strconv-from-enc: New file.
58318         * lib/uniconv/u8-strconv-from-enc.c: New file.
58319         * lib/uniconv/u-strconv-from-enc.h: New file.
58320         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58321         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58322
58323         * modules/uniconv/u32-conv-from-enc: New file.
58324         * lib/uniconv/u32-conv-from-enc.c: New file.
58325         * modules/uniconv/u32-conv-from-enc-tests: New file.
58326         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58327
58328         * modules/uniconv/u16-conv-from-enc: New file.
58329         * lib/uniconv/u16-conv-from-enc.c: New file.
58330         * lib/uniconv/u-conv-from-enc.h: New file.
58331         * modules/uniconv/u16-conv-from-enc-tests: New file.
58332         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58333
58334         * modules/uniconv/u8-conv-from-enc: New file.
58335         * lib/uniconv/u8-conv-from-enc.c: New file.
58336         * modules/uniconv/u8-conv-from-enc-tests: New file.
58337         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58338
58339         * modules/uniconv/base: New file.
58340         * lib/uniconv.h: New file.
58341
58342 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58343
58344         * doc/gnulib-tool.texi (Initial import): Update to match current
58345         behavior with strdup module.
58346         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58347         * lib/memmem.h: Remove; all uses removed.  This is now done
58348         by <string.h>.
58349         * lib/mempcpy.h: Likewise.
58350         * lib/memrchr.h: Likewise.
58351         * lib/stpcpy.h: Likewise.
58352         * lib/stpncpy.h: Likewise.
58353         * lib/strcase.h: Likewise.
58354         * lib/strchrnul.h: Likewise.
58355         * lib/strdup.h: Likewise.
58356         * lib/strndup.h: Likewise.
58357         * lib/strnlen.h: Likewise.
58358         * lib/strpbrk.h: Likewise.
58359         * lib/strsep.h: Likewise.
58360         * lib/strstr.h: Likewise.
58361         * lib/strtok_r.h: Likewise.
58362         * lib/string_.h: New file.
58363         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58364         Rely on <string.h> instead.
58365         * lib/canon-host.c: Likewise.
58366         * lib/chdir-long.c: Likewise.
58367         * lib/concatpath.c: Likewise.
58368         * lib/exclude.c: Likewise.
58369         * lib/fchdir.c: Likewise.
58370         * lib/getaddrinfo.c: Likewise.
58371         * lib/getcwd.c: Likewise.
58372         * lib/getsubopt.c: Likewise.
58373         * lib/glob.c: Likewise.
58374         * lib/hard-locale.c: Likewise.
58375         * lib/iconvme.c: Likewise.
58376         * lib/javacomp.c: Likewise.
58377         * lib/mempcpy.c: Likewise.
58378         * lib/memrchr.c: Likewise.
58379         * lib/regex_internal.h: Likewise.
58380         * lib/stpncpy.c: Likewise.
58381         * lib/strcasecmp.c: Likewise.
58382         * lib/strchrnul.c: Likewise.
58383         * lib/strdup.c: Likewise.
58384         * lib/striconv.c: Likewise.
58385         * lib/striconveh.c: Likewise.
58386         * lib/striconveha.c: Likewise.
58387         * lib/strncasecmp.c: Likewise.
58388         * lib/strndup.c: Likewise.
58389         * lib/strnlen.c: Likewise.
58390         * lib/strsep.c: Likewise.
58391         * lib/strstr.c: Likewise.
58392         * lib/strtok_r.c: Likewise.
58393         * lib/userspec.c: Likewise.
58394         * lib/w32spawn.h: Likewise.
58395         * lib/xstrndup.c: Likewise.
58396         * lib/mountlist.c (strstr): Remove decl.
58397         * m4/string_h.m4: New file.
58398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58399         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58400         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58401         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58402         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58403         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58404         Set REPLACE_STRCASECMP if necessary.
58405         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58406         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58407         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58408         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58409         HAVE_DECL_STRDUP if necessary.
58410         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58411         since gl_FUNC_STRNDUP does that now.
58412         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58413         Check for decl here...
58414         (gl_PREREQ_STRNLEN): ... not here.
58415         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58416         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58417         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58418         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58419         necessary.
58420         * modules/string: New file.
58421         * modules/memmem (Files): Remove special-purpose include file.
58422         (Depends-on): Add string.
58423         (Include): Include <string.h>, not the removed file.
58424         * modules/mempcpy: Likewise.
58425         * modules/memrchr: Likewise.
58426         * modules/stpcpy: Likewise.
58427         * modules/stpncpy: Likewise.
58428         * modules/strcase: Likewise.
58429         * modules/strchrnul: Likewise.
58430         * modules/strdup: Likewise.
58431         * modules/strndup: Likewise.
58432         * modules/strnlen: Likewise.
58433         * modules/strpbrk: Likewise.
58434         * modules/strsep: Likewise.
58435         * modules/strstr: Likewise.
58436         * modules/strtok_r: Likewise.
58437         * tests/test-dirname.c: Don't include "strdup.h", since
58438         <string.h> now suffices.
58439         * tests/test-memmem.c: Don't include "memmem.h", since
58440         <string.h> now suffices.
58441
58442 2007-01-25  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58445         *resultp is 0.
58446
58447         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58448         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58449         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58450         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58451
58452         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58453         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58454         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58455         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58456         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58457         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58458
58459 2007-01-24  Bruno Haible  <bruno@clisp.org>
58460
58461         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58463         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58464         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58465         gl_FUNC_FTS_CORE.
58466         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58467         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58468         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58469         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58470         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58471         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58472         gl_FUNC_FCHOWNAT.
58473         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58474         gl_FUNC_STRFTIME.
58475         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58476         Reported by Ralf Wildenhues.
58477
58478 2007-01-24  Bruno Haible  <bruno@clisp.org>
58479
58480         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58481         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58482         gl_GETADDRINFO.
58483         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58484         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58485         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58486
58487 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58490         Don't use 'exit'; just return from 'main'.
58491         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58492
58493         * lib/fnmatch_.h: Readjust white space and comments to match
58494         glibc, to avoid spurious diffs.
58495
58496 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58499         2004-12-01 change by Jakub Jelinek, since this code won't compile
58500         if !LIBC.  Problem reported by Bob Proulx.
58501
58502 2007-01-23  Bruno Haible  <bruno@clisp.org>
58503
58504         * lib/striconveh.c: Include c-strcaseeq.h.
58505         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58506         * modules/striconveh (Depends-on): Add c-strcaseeq.
58507
58508 2007-01-23  Bruno Haible  <bruno@clisp.org>
58509
58510         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58511
58512         * modules/c-strcaseeq: New file.
58513         * lib/c-strcaseeq.h: New file.
58514
58515         * modules/streq: New file.
58516         * lib/streq.h: New file.
58517
58518 2007-01-23  Bruno Haible  <bruno@clisp.org>
58519
58520         * modules/striconveha-tests: New file.
58521         * tests/test-striconveha.c: New file.
58522
58523         * lib/striconveha.h: Include <stdbool.h>.
58524         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58525         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58526         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58527         (mem_iconveha): New function.
58528         (str_iconveha_notranslit): Renamed from str_iconveha.
58529         (str_iconveha): New function.
58530         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58531         c-strcase.
58532
58533 2007-01-23  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58536         encodings without forgiving before trying any encoding with handler.
58537         (str_iconveha): Try all encodings without forgiving before trying any
58538         encoding with handler.
58539
58540 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         Import the following changes from libc.
58543
58544         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58545
58546         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58547
58548         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58549
58550         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58551         normal_bracket label.
58552
58553         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58554
58555         [BZ #361]
58556         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58557         to normal_bracket after fetching the next character.
58558
58559 2007-01-22  Bruno Haible  <bruno@clisp.org>
58560
58561         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58562         argument.
58563         * lib/striconveh.c (iconv_carefully_1): New function.
58564         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58565         argument.
58566         (str_cd_iconveh): Update.
58567         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58568         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58569         * tests/test-striconveh.c (MAGIC): New macro.
58570         (new_offsets): New function.
58571         (main): Test call with and without offsets.
58572
58573 2007-01-22  Bruno Haible  <bruno@clisp.org>
58574
58575         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58576         * modules/sys_select (Makefile.am): Likewise.
58577         * modules/sys_socket (Makefile.am): Likewise.
58578         * modules/sys_time (Makefile.am): Likewise.
58579
58580 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58581
58582         * modules/gettimeofday (License): Change from GPL to LGPL, since
58583         gettimeofday is a library function.
58584
58585 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58586
58587         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58588
58589 2007-01-21  Bruno Haible  <bruno@clisp.org>
58590
58591         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58592
58593 2007-01-21  Bruno Haible  <bruno@clisp.org>
58594
58595         * modules/striconveha: New file.
58596         * lib/striconveha.h: New file.
58597         * lib/striconveha.c: New file.
58598         * MODULES.html.sh (Internationalization functions): Add striconveha.
58599         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58600         string.
58601         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58602
58603 2007-01-21  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58606         * lib/striconveh.c (str_iconveh): Likewise.
58607
58608 2007-01-21  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/striconveh.h (mem_iconveh): New declaration.
58611         * lib/striconveh.c (mem_iconveh): New function.
58612         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58613
58614 2007-01-21  Bruno Haible  <bruno@clisp.org>
58615
58616         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58617
58618         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58619         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58620         original result buffer.
58621         (str_cd_iconveh): Update.
58622         * tests/test-striconveh.c (main): Update.
58623
58624         * lib/striconv.h (mem_cd_iconv): Change specification.
58625         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58626         result buffer.
58627         (str_cd_iconv): Update.
58628         * tests/test-striconv.c (main): Update.
58629
58630 2007-01-21  Bruno Haible  <bruno@clisp.org>
58631
58632         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58633
58634 2007-01-20  Jim Meyering  <jim@meyering.net>
58635
58636         * lib/userspec.c (parse_with_separator): If a user or group string
58637         starts with "+", skip the corresponding name-to-ID look-up, since
58638         such a look-up must fail: user and group names may not include "+".
58639
58640 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58641
58642         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58643         since we now assume the sys_time module.
58644         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58645         check for sys/time.h; no longer needed.
58646         * modules/poll (Depends-on): Depend on sys_time.
58647
58648 2007-01-18  Bruno Haible  <bruno@clisp.org>
58649
58650         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58652
58653         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58654         gettimeofday.
58655
58656         * tests/test-gettimeofday.c: Include <time.h>.
58657         (dummy): Remove variable.
58658
58659         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58660         gl_HEADER_SYS_TIME_H.
58661         (gl_HEADER_SYS_TIME_H): New macro.
58662
58663         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58664         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58665         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58666         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58667         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58668         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58669         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58670         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58671         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58672         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58673         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58674
58675         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58676         last change; it caused a compilation error when cross-compiling to
58677         Cygwin.
58678
58679 2007-01-18  Jim Meyering  <jim@meyering.net>
58680
58681         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58682         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58683         than the race-prone "test -d sys || mkdir sys".
58684         (configure.ac): Use AC_PROG_MKDIR_P.
58685         * modules/sys_select: Likewise.
58686         * modules/sys_socket: Likewise.
58687         * modules/sys_time: Likewise.
58688
58689 2007-01-18  Eric Blake  <ebb9@byu.net>
58690
58691         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58692         replace gettimeofday.
58693         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58694         name, to avoid infinite recursion.
58695
58696 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58697
58698         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58699         module sys_time.
58700         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58701         assume timespec.h defines struct timeval.
58702         * lib/settime.c: Likewise.
58703         * lib/utimens.c: Likewise.
58704         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58705         since we now assume the gettimeofday module.
58706         * lib/tempname.c (__gen_tempname): Likewise.
58707         * lib/gettimeofday.h: Remove.
58708         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58709         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58710         Include <time.h>, for 'time()'.
58711         (localtime_buffer_addr): Also use this workaround if
58712         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58713         to simplify the uses.  All uses changed.
58714         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58715         that #undef is inside {}, and 'const' follows type name consistently.
58716         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58717         (gettimeofday): Do not use the maximum possible value for
58718         tv->tv_usec, since that might break usages other than ls.c.
58719         Instead, we'll leave ls.c alone.  This undoes today's patch
58720         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58721         we've never observed the problem but might as well keep the
58722         canary.
58723         * lib/nanosleep.c: Include timespec.h first, for interface check.
58724         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58725         now assume the sys_time module.
58726         * lib/tempname.c: Likewise.
58727         * lib/timespec.h: Likewise.
58728         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58729         needed.
58730         * lib/strftime.c: Likewise.
58731         * lib/timespec.h: Likewise.
58732         * lib/posixtm.c: Include posixtm.h first, for interface check.
58733         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58734         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58735         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58736         * lib/sys_time_.h: New file.
58737         * lib/timespec.h (struct timespec): Use long int, not long.
58738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58739         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58740         Remove obsolescent call to AC_HEADER_TIME.
58741         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58743         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58744         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58745         Likewise.
58746         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58747         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58749         into the sys_time module.  Check for gettimeofday just once.
58750         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58751         for gettimeofday signature to just check the signature.  Merely
58752         compile it, since linking doesn't test signature.  Improve test for
58753         whether gettimeofday.o is actually needed.
58754         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58755         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58756         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58757         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58758         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58759         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58760         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58761         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58762         than worrying about sys/time.h.
58763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58764         Don't bother worrying about TIME_WITH_SYS_TIME.
58765         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58766         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58767         * m4/sys_time_h.m4: New file.
58768         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58769         Don't include sys/time.h.  Return from main rather than exiting.
58770         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58771         all uses changed.
58772         * modules/gethrxtime (Depends-on): Add sys_time.
58773         * modules/gettime (Depends-on): Likewise.
58774         * modules/gettimeofday (Depends-on): Likewise.
58775         * modules/nanosleep (Depends-on): Likewise.
58776         * modules/settime (Depends-on): Likewise.
58777         * modules/tempname (Depends-on): Likewise.
58778         * modules/utimens (Depends-on): Likewise.
58779         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58780         (Include): Change back to <sys/time.h>.
58781         (Maintainer): Add self.
58782         * modules/sys_time: New file.
58783         * modules/tempname (Depends-on): Add gettimeofday.
58784         * tests/test-gettimeofday.c: Include <sys/time.h>
58785         rather than gettimeofday.h.
58786
58787 2007-01-17  Bruno Haible  <bruno@clisp.org>
58788
58789         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58790         the license default to GPL.
58791         (func_create_testdir): Don't complain if a module is LGPL and its
58792         tests module depends on GPLed modules.
58793
58794 2007-01-17  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/gettimeofday.c (gettimeofday): Add code for the case
58797         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58798         maximum possible value for tv->tv_usec, rather than the minimum one.
58799
58800 2005-10-08  Martin Lambers  <marlam@marlam.de>
58801 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58802 2007-01-16  Bruno Haible  <bruno@clisp.org>
58803
58804         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58805         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58806         gl_FUNC_GETTIMEOFDAY.
58807         (Include): Add gettimeofday.h.
58808         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58809         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58810         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58811         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58812         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58813         * lib/gettimeofday.h: New file.
58814         * lib/gettimeofday.c: Include <sys/timeb.h>.
58815         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58816         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58817         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58818         fall back on time().
58819
58820         * tests/test-gettimeofday.c: New file.
58821         * modules/gettimeofday-tests: New file.
58822
58823 2007-01-16  Eric Blake  <ebb9@byu.net>
58824
58825         * modules/fnmatch (Depends-on): Depend on wchar.
58826         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58827         * m4/fnmatch.m4: Likewise.
58828         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58829         * m4/mbchar.m4: Likewise.
58830         * modules/mbswidth (Depends-on): Depend on wchar.
58831         * lib/mbswidth.c: Assume <wchar.h>.
58832         * m4/mbswidth.m4: Likewise.
58833         * modules/quotearg (Depends-on): Depend on wchar.
58834         * lib/quotearg.c: Assume <wchar.h>.
58835         * m4/quotearg.m4: Likewise.
58836         * modules/regex (Depends-on): Depend on wchar.
58837         * lib/regex_internal.h: Assume <wchar.h>.
58838         * m4/regex.m4: Likewise.
58839         * modules/stdint (Depends-on): Depend on wchar.
58840         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58841         * m4/stdint.m4: Likewise.
58842         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58843         * modules/strftime (Depends-on): Depend on wchar.
58844         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58845         * modules/strtol (Depends-on): Depend on wchar.
58846         * lib/strtol.c: Assume <wchar.h>.
58847         * modules/wcwidth (Depends-on): Depend on wchar.
58848         * lib/wcwidth.h: Assume <wchar.h>.
58849         * m4/wcwidth.m4: Likewise.
58850
58851 2007-01-16  Bruno Haible  <bruno@clisp.org>
58852
58853         * modules/csharpexec-script: New, created from...
58854         * modules/csharpexec: ... this.
58855
58856 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58857
58858         * modules/javaexec-script: New, created from...
58859         * modules/javaexec: ... this.
58860
58861 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58862
58863         * modules/poll (Dependencies): Add sys_select.
58864
58865 2007-01-15  Jim Meyering  <jim@meyering.net>
58866
58867         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58868         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58869         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58870         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58871
58872 2007-01-15  Bruno Haible  <bruno@clisp.org>
58873
58874         * modules/striconveh: New file.
58875         * lib/striconveh.h: New file.
58876         * lib/striconveh.c: New file.
58877         * MODULES.html.sh (Internationalization functions): Add striconveh.
58878
58879         * modules/striconveh-tests: New file.
58880         * tests/test-striconveh.c: New file.
58881
58882 2007-01-15  Bruno Haible  <bruno@clisp.org>
58883
58884         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58885         not from GNU libiconv or GNU libc.
58886
58887 2007-01-15  Bruno Haible  <bruno@clisp.org>
58888
58889         * doc/gnulib-intro.texi (Copyright): Explain the different license
58890         terms for module descriptions, autoconf macros, tests, documentation.
58891
58892 2007-01-14  Bruno Haible  <bruno@clisp.org>
58893
58894         * modules/striconv-tests: New file.
58895         * tests/test-striconv.c: New file.
58896
58897 2007-01-14  Bruno Haible  <bruno@clisp.org>
58898
58899         * modules/iconv-tests: New file.
58900         * tests/test-iconv.c: New file.
58901
58902 2007-01-14  Bruno Haible  <bruno@clisp.org>
58903
58904         * gnulib-tool (func_get_license): For test modules, use the license of
58905         the main module.
58906
58907 2007-01-14  Bruno Haible  <bruno@clisp.org>
58908
58909         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58910         if iconv is found to exist.
58911
58912 2007-01-14  Bruno Haible  <bruno@clisp.org>
58913
58914         * modules/c-ctype-tests: New file.
58915         * tests/test-c-ctype.c: New file.
58916
58917 2007-01-14  Bruno Haible  <bruno@clisp.org>
58918
58919         * modules/binary-io-tests: New file.
58920         * tests/test-binary-io.sh: New file.
58921         * tests/test-binary-io.c: New file.
58922
58923 2007-01-14  Bruno Haible  <bruno@clisp.org>
58924
58925         * modules/array-oset-tests: New file.
58926         * tests/test-array_oset.c: New file.
58927
58928 2007-01-14  Bruno Haible  <bruno@clisp.org>
58929
58930         * modules/array-list-tests: New file.
58931         * tests/test-array_list.c: New file.
58932
58933 2007-01-14  Bruno Haible  <bruno@clisp.org>
58934
58935         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58936         and make.
58937         Reported by Simon Josefsson in
58938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58939
58940 2007-01-14  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/allocsa-tests: New file.
58943         * tests/test-allocsa.c: New file.
58944
58945 2007-01-14  Bruno Haible  <bruno@clisp.org>
58946
58947         * modules/fchdir (Depends-on): Add absolute-header.
58948         * modules/unistd (Depends-on): Likewise.
58949
58950 2006-12-30  Bruno Haible  <bruno@clisp.org>
58951
58952         * modules/fchdir: New file.
58953         * modules/unistd (Files): Add lib/unistd_.h.
58954         (Makefile.am): Generate unistd.h from unistd_.h.
58955         * lib/fchdir.c: New file.
58956         * lib/dirent_.h: New file.
58957         * lib/unistd_.h: New file.
58958         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58959         * m4/fchdir.m4: New file.
58960         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58961         (gl_HEADER_UNISTD): Invoke it.
58962         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58963         function.
58964         * lib/backupfile.c (opendir, closedir): Undefine.
58965         * lib/chown.c (open, close): Undefine.
58966         * lib/clean-temp.c (open, close): Undefine.
58967         * lib/copy-file.c (open, close): Undefine.
58968         * lib/execute.c (open, close): Undefine.
58969         * lib/fsusage.c (open, close): Undefine.
58970         * lib/gc-gnulib.c (open, close): Undefine.
58971         * lib/getcwd.c (opendir, closedir): Undefine.
58972         * lib/glob.c (opendir, closedir): Undefine.
58973         * lib/javacomp.c (open, close): Undefine.
58974         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58975         * lib/openat-proc.c (open, close): Undefine.
58976         * lib/pagealign_alloc.c (open, close): Undefine.
58977         * lib/pipe.c (open, close): Undefine.
58978         * lib/progreloc.c (open, close): Undefine.
58979         * lib/savedir.c (opendir, closedir): Undefine.
58980         * lib/utime.c (open, close): Undefine.
58981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58982
58983 2007-01-10  Bruno Haible  <bruno@clisp.org>
58984
58985         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58986
58987 2007-01-12  Eric Blake  <ebb9@byu.net>
58988
58989         Provide a robust <wchar.h>.  Further simplifications are now
58990         possible in other modules, but not included here.
58991         * modules/wchar: New module.
58992         * m4/wchar.m4: New file.
58993         * lib/wchar_.h: Likewise.
58994         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58995         of the new module.
58996         * MODULES.html.sh (Extended multibyte and wide character utilities):
58997         New section.
58998
58999 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59000
59001         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59002         to a reasonable default for memory allocation.
59003         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59004         file system that reports garbage st_size values for symlinks.
59005         Problem reported by Liyang Hu.
59006
59007 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59008
59009         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59010         Emacs .#* auto-save files).
59011
59012 2007-01-11  Bruno Haible  <bruno@clisp.org>
59013
59014         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59015         directory.
59016
59017 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59018
59019         Use @...@ consistently in lib/wctype_.h.
59020         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59021         on it being set to 1 or 0.
59022         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59023         go back to AC_SUBSTing it.
59024         * modules/wctype (Makefile.am): Undo previous change.
59025
59026 2007-01-10  Eric Blake  <ebb9@byu.net>
59027
59028         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59029         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59030         * modules/wctype (Makefile.am): Likewise.
59031         Reported by Chris McGuire.
59032
59033 2007-01-10  Jim Meyering  <jim@meyering.net>
59034
59035         fts.c: a small readability/maintainability improvement
59036         * lib/fts.c (fts_read): Make this code slightly more readable and
59037         maintainable by hoisting the "sp->fts_cur = p" assignments to
59038         immediately follow the statements that set P.  Derived from
59039         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59040
59041 2007-01-10  Eric Blake  <ebb9@byu.net>
59042
59043         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59044         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59047         Reported by Chris McGuire.
59048
59049 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59050
59051         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59052         in sed script.
59053
59054 2007-01-09  Bruno Haible  <bruno@clisp.org>
59055
59056         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59057         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59058         variables.
59059         (func_module): Use them.
59060
59061 2007-01-09  Bruno Haible  <bruno@clisp.org>
59062
59063         * modules/unistr/base: New file.
59064         * lib/unistr.h: New file.
59065
59066         * modules/unistr/u8-to-u16: New file.
59067         * lib/unistr/u8-to-u16.c: New file.
59068
59069         * modules/unistr/u8-to-u32: New file.
59070         * lib/unistr/u8-to-u32.c: New file.
59071
59072         * modules/unistr/u16-to-u8: New file.
59073         * lib/unistr/u16-to-u8.c: New file.
59074
59075         * modules/unistr/u16-to-u32: New file.
59076         * lib/unistr/u16-to-u32.c: New file.
59077
59078         * modules/unistr/u32-to-u8: New file.
59079         * lib/unistr/u32-to-u8.c: New file.
59080
59081         * modules/unistr/u32-to-u16: New file.
59082         * lib/unistr/u32-to-u16.c: New file.
59083
59084         * modules/unistr/u8-check: New file.
59085         * modules/unistr/u16-check: New file.
59086         * modules/unistr/u32-check: New file.
59087         * lib/unistr/u8-check.c: New file.
59088         * lib/unistr/u16-check.c: New file.
59089         * lib/unistr/u32-check.c: New file.
59090
59091         * modules/unistr/u8-chr: New file.
59092         * modules/unistr/u16-chr: New file.
59093         * modules/unistr/u32-chr: New file.
59094         * lib/unistr/u8-chr.c: New file.
59095         * lib/unistr/u16-chr.c: New file.
59096         * lib/unistr/u32-chr.c: New file.
59097
59098         * modules/unistr/u8-cmp: New file.
59099         * modules/unistr/u16-cmp: New file.
59100         * modules/unistr/u32-cmp: New file.
59101         * lib/unistr/u8-cmp.c: New file.
59102         * lib/unistr/u16-cmp.c: New file.
59103         * lib/unistr/u32-cmp.c: New file.
59104
59105         * modules/unistr/u8-cpy: New file.
59106         * modules/unistr/u16-cpy: New file.
59107         * modules/unistr/u32-cpy: New file.
59108         * lib/unistr/u8-cpy.c: New file.
59109         * lib/unistr/u16-cpy.c: New file.
59110         * lib/unistr/u32-cpy.c: New file.
59111         * lib/unistr/u-cpy.h: New file.
59112
59113         * modules/unistr/u8-cpy-alloc: New file.
59114         * modules/unistr/u16-cpy-alloc: New file.
59115         * modules/unistr/u32-cpy-alloc: New file.
59116         * lib/unistr/u8-cpy-alloc.c: New file.
59117         * lib/unistr/u16-cpy-alloc.c: New file.
59118         * lib/unistr/u32-cpy-alloc.c: New file.
59119         * lib/unistr/u-cpy-alloc.h: New file.
59120
59121         * modules/unistr/u8-endswith: New file.
59122         * modules/unistr/u16-endswith: New file.
59123         * modules/unistr/u32-endswith: New file.
59124         * lib/unistr/u8-endswith.c: New file.
59125         * lib/unistr/u16-endswith.c: New file.
59126         * lib/unistr/u32-endswith.c: New file.
59127         * lib/unistr/u-endswith.h: New file.
59128
59129         * modules/unistr/u8-mblen: New file.
59130         * modules/unistr/u16-mblen: New file.
59131         * modules/unistr/u32-mblen: New file.
59132         * lib/unistr/u8-mblen.c: New file.
59133         * lib/unistr/u16-mblen.c: New file.
59134         * lib/unistr/u32-mblen.c: New file.
59135
59136         * modules/unistr/u8-mbtouc: New file.
59137         * modules/unistr/u16-mbtouc: New file.
59138         * modules/unistr/u32-mbtouc: New file.
59139         * lib/unistr/u8-mbtouc.c: New file.
59140         * lib/unistr/u16-mbtouc.c: New file.
59141         * lib/unistr/u32-mbtouc.c: New file.
59142
59143         * modules/unistr/u8-mbtouc-safe: New file.
59144         * modules/unistr/u16-mbtouc-safe: New file.
59145         * modules/unistr/u32-mbtouc-safe: New file.
59146         * lib/unistr/u8-mbtouc-safe.c: New file.
59147         * lib/unistr/u16-mbtouc-safe.c: New file.
59148         * lib/unistr/u32-mbtouc-safe.c: New file.
59149
59150         * modules/unistr/u8-move: New file.
59151         * modules/unistr/u16-move: New file.
59152         * modules/unistr/u32-move: New file.
59153         * lib/unistr/u8-move.c: New file.
59154         * lib/unistr/u16-move.c: New file.
59155         * lib/unistr/u32-move.c: New file.
59156         * lib/unistr/u-move.h: New file.
59157
59158         * modules/unistr/u8-next: New file.
59159         * modules/unistr/u16-next: New file.
59160         * modules/unistr/u32-next: New file.
59161         * lib/unistr/u8-next.c: New file.
59162         * lib/unistr/u16-next.c: New file.
59163         * lib/unistr/u32-next.c: New file.
59164
59165         * modules/unistr/u8-prev: New file.
59166         * modules/unistr/u16-prev: New file.
59167         * modules/unistr/u32-prev: New file.
59168         * lib/unistr/u8-prev.c: New file.
59169         * lib/unistr/u16-prev.c: New file.
59170         * lib/unistr/u32-prev.c: New file.
59171
59172         * modules/unistr/u8-set: New file.
59173         * modules/unistr/u16-set: New file.
59174         * modules/unistr/u32-set: New file.
59175         * lib/unistr/u8-set.c: New file.
59176         * lib/unistr/u16-set.c: New file.
59177         * lib/unistr/u32-set.c: New file.
59178         * lib/unistr/u-set.h: New file.
59179
59180         * modules/unistr/u8-startswith: New file.
59181         * modules/unistr/u16-startswith: New file.
59182         * modules/unistr/u32-startswith: New file.
59183         * lib/unistr/u8-startswith.c: New file.
59184         * lib/unistr/u16-startswith.c: New file.
59185         * lib/unistr/u32-startswith.c: New file.
59186         * lib/unistr/u-startswith.h: New file.
59187
59188         * modules/unistr/u8-stpcpy: New file.
59189         * modules/unistr/u16-stpcpy: New file.
59190         * modules/unistr/u32-stpcpy: New file.
59191         * lib/unistr/u8-stpcpy.c: New file.
59192         * lib/unistr/u16-stpcpy.c: New file.
59193         * lib/unistr/u32-stpcpy.c: New file.
59194         * lib/unistr/u-stpcpy.h: New file.
59195
59196         * modules/unistr/u8-stpncpy: New file.
59197         * modules/unistr/u16-stpncpy: New file.
59198         * modules/unistr/u32-stpncpy: New file.
59199         * lib/unistr/u8-stpncpy.c: New file.
59200         * lib/unistr/u16-stpncpy.c: New file.
59201         * lib/unistr/u32-stpncpy.c: New file.
59202         * lib/unistr/u-stpncpy.h: New file.
59203
59204         * modules/unistr/u8-strcat: New file.
59205         * modules/unistr/u16-strcat: New file.
59206         * modules/unistr/u32-strcat: New file.
59207         * lib/unistr/u8-strcat.c: New file.
59208         * lib/unistr/u16-strcat.c: New file.
59209         * lib/unistr/u32-strcat.c: New file.
59210         * lib/unistr/u-strcat.h: New file.
59211
59212         * modules/unistr/u8-strchr: New file.
59213         * modules/unistr/u16-strchr: New file.
59214         * modules/unistr/u32-strchr: New file.
59215         * lib/unistr/u8-strchr.c: New file.
59216         * lib/unistr/u16-strchr.c: New file.
59217         * lib/unistr/u32-strchr.c: New file.
59218
59219         * modules/unistr/u8-strcmp: New file.
59220         * modules/unistr/u16-strcmp: New file.
59221         * modules/unistr/u32-strcmp: New file.
59222         * lib/unistr/u8-strcmp.c: New file.
59223         * lib/unistr/u16-strcmp.c: New file.
59224         * lib/unistr/u32-strcmp.c: New file.
59225
59226         * modules/unistr/u8-strcpy: New file.
59227         * modules/unistr/u16-strcpy: New file.
59228         * modules/unistr/u32-strcpy: New file.
59229         * lib/unistr/u8-strcpy.c: New file.
59230         * lib/unistr/u16-strcpy.c: New file.
59231         * lib/unistr/u32-strcpy.c: New file.
59232         * lib/unistr/u-strcpy.h: New file.
59233
59234         * modules/unistr/u8-strcspn: New file.
59235         * modules/unistr/u16-strcspn: New file.
59236         * modules/unistr/u32-strcspn: New file.
59237         * lib/unistr/u8-strcspn.c: New file.
59238         * lib/unistr/u16-strcspn.c: New file.
59239         * lib/unistr/u32-strcspn.c: New file.
59240         * lib/unistr/u-strcspn.h: New file.
59241
59242         * modules/unistr/u8-strdup: New file.
59243         * modules/unistr/u16-strdup: New file.
59244         * modules/unistr/u32-strdup: New file.
59245         * lib/unistr/u8-strdup.c: New file.
59246         * lib/unistr/u16-strdup.c: New file.
59247         * lib/unistr/u32-strdup.c: New file.
59248         * lib/unistr/u-strdup.h: New file.
59249
59250         * modules/unistr/u8-strlen: New file.
59251         * modules/unistr/u16-strlen: New file.
59252         * modules/unistr/u32-strlen: New file.
59253         * lib/unistr/u8-strlen.c: New file.
59254         * lib/unistr/u16-strlen.c: New file.
59255         * lib/unistr/u32-strlen.c: New file.
59256         * lib/unistr/u-strlen.h: New file.
59257
59258         * modules/unistr/u8-strmblen: New file.
59259         * modules/unistr/u16-strmblen: New file.
59260         * modules/unistr/u32-strmblen: New file.
59261         * lib/unistr/u8-strmblen.c: New file.
59262         * lib/unistr/u16-strmblen.c: New file.
59263         * lib/unistr/u32-strmblen.c: New file.
59264
59265         * modules/unistr/u8-strmbtouc: New file.
59266         * modules/unistr/u16-strmbtouc: New file.
59267         * modules/unistr/u32-strmbtouc: New file.
59268         * lib/unistr/u8-strmbtouc.c: New file.
59269         * lib/unistr/u16-strmbtouc.c: New file.
59270         * lib/unistr/u32-strmbtouc.c: New file.
59271
59272         * modules/unistr/u8-strncat: New file.
59273         * modules/unistr/u16-strncat: New file.
59274         * modules/unistr/u32-strncat: New file.
59275         * lib/unistr/u8-strncat.c: New file.
59276         * lib/unistr/u16-strncat.c: New file.
59277         * lib/unistr/u32-strncat.c: New file.
59278         * lib/unistr/u-strncat.h: New file.
59279
59280         * modules/unistr/u8-strncmp: New file.
59281         * modules/unistr/u16-strncmp: New file.
59282         * modules/unistr/u32-strncmp: New file.
59283         * lib/unistr/u8-strncmp.c: New file.
59284         * lib/unistr/u16-strncmp.c: New file.
59285         * lib/unistr/u32-strncmp.c: New file.
59286
59287         * modules/unistr/u8-strncpy: New file.
59288         * modules/unistr/u16-strncpy: New file.
59289         * modules/unistr/u32-strncpy: New file.
59290         * lib/unistr/u8-strncpy.c: New file.
59291         * lib/unistr/u16-strncpy.c: New file.
59292         * lib/unistr/u32-strncpy.c: New file.
59293         * lib/unistr/u-strncpy.h: New file.
59294
59295         * modules/unistr/u8-strnlen: New file.
59296         * modules/unistr/u16-strnlen: New file.
59297         * modules/unistr/u32-strnlen: New file.
59298         * lib/unistr/u8-strnlen.c: New file.
59299         * lib/unistr/u16-strnlen.c: New file.
59300         * lib/unistr/u32-strnlen.c: New file.
59301         * lib/unistr/u-strnlen.h: New file.
59302
59303         * modules/unistr/u8-strpbrk: New file.
59304         * modules/unistr/u16-strpbrk: New file.
59305         * modules/unistr/u32-strpbrk: New file.
59306         * lib/unistr/u8-strpbrk.c: New file.
59307         * lib/unistr/u16-strpbrk.c: New file.
59308         * lib/unistr/u32-strpbrk.c: New file.
59309         * lib/unistr/u-strpbrk.h: New file.
59310
59311         * modules/unistr/u8-strrchr: New file.
59312         * modules/unistr/u16-strrchr: New file.
59313         * modules/unistr/u32-strrchr: New file.
59314         * lib/unistr/u8-strrchr.c: New file.
59315         * lib/unistr/u16-strrchr.c: New file.
59316         * lib/unistr/u32-strrchr.c: New file.
59317
59318         * modules/unistr/u8-strspn: New file.
59319         * modules/unistr/u16-strspn: New file.
59320         * modules/unistr/u32-strspn: New file.
59321         * lib/unistr/u8-strspn.c: New file.
59322         * lib/unistr/u16-strspn.c: New file.
59323         * lib/unistr/u32-strspn.c: New file.
59324         * lib/unistr/u-strspn.h: New file.
59325
59326         * modules/unistr/u8-strstr: New file.
59327         * modules/unistr/u16-strstr: New file.
59328         * modules/unistr/u32-strstr: New file.
59329         * lib/unistr/u8-strstr.c: New file.
59330         * lib/unistr/u16-strstr.c: New file.
59331         * lib/unistr/u32-strstr.c: New file.
59332         * lib/unistr/u-strstr.h: New file.
59333
59334         * modules/unistr/u8-strtok: New file.
59335         * modules/unistr/u16-strtok: New file.
59336         * modules/unistr/u32-strtok: New file.
59337         * lib/unistr/u8-strtok.c: New file.
59338         * lib/unistr/u16-strtok.c: New file.
59339         * lib/unistr/u32-strtok.c: New file.
59340         * lib/unistr/u-strtok.h: New file.
59341
59342         * modules/unistr/u8-uctomb: New file.
59343         * modules/unistr/u16-uctomb: New file.
59344         * modules/unistr/u32-uctomb: New file.
59345         * lib/unistr/u8-uctomb.c: New file.
59346         * lib/unistr/u16-uctomb.c: New file.
59347         * lib/unistr/u32-uctomb.c: New file.
59348
59349         * MODULES.html.sh (Unicode string functions): Add the new modules.
59350
59351 2007-01-08  Bruno Haible  <bruno@clisp.org>
59352
59353         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59354         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59355         subdirectories.
59356
59357 2007-01-08  Karl Berry  <karl@gnu.org>
59358
59359         * doc/error.texi: mention that main() fns must set program_name
59360         when progname is used.
59361
59362 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59363
59364         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59365         WCTYPE_H is empty, for the benefit of builds from non-distclean
59366         directories.  Problem reported by Eric Blake in
59367         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59368
59369 2007-01-08  Bruno Haible  <bruno@clisp.org>
59370
59371         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59372         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59373         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59374         PROVIDE_CANONICALIZE_FILENAME_MODE.
59375         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59376
59377 2007-01-08  Bruno Haible  <bruno@clisp.org>
59378
59379         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59380         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59381         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59382         * lib/fts.c: Likewise.
59383         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59384
59385 2006-12-25  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/utf8-ucs4-safe: New file.
59388         * lib/utf8-ucs4-safe.h: New file.
59389         * lib/unistr/utf8-ucs4-safe.c: New file.
59390
59391         * modules/utf16-ucs4-safe: New file.
59392         * lib/utf16-ucs4-safe.h: New file.
59393         * lib/unistr/utf16-ucs4-safe.c: New file.
59394
59395         * MODULES.html.sh (Unicode string functions): Add the new modules.
59396
59397 2007-01-08  Bruno Haible  <bruno@clisp.org>
59398
59399         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59400         (Depends-on): Add unitypes.
59401         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59402         (u8_mbtouc_aux): Move out to separate file.
59403         (u8_mbtouc): Use ucs4_t, uint8_t types.
59404         * lib/unistr/utf8-ucs4.c: New file.
59405
59406         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59407         (Depends-on): Add unitypes.
59408         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59409         (u16_mbtouc_aux): Move out to separate file.
59410         (u16_mbtouc): Use ucs4_t, uint16_t types.
59411         * lib/unistr/utf16-ucs4.c: New file.
59412
59413         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59414         (Depends-on): Add unitypes.
59415         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59416         (u8_uctomb_aux): Move out to separate file.
59417         (u8_uctomb): Use ucs4_t, uint8_t types.
59418         * lib/unistr/ucs4-utf8.c: New file.
59419
59420         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59421         (Depends-on): Add unitypes.
59422         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59423         (u16_uctomb_aux): Move out to separate file.
59424         (u16_uctomb): Use ucs4_t, uint16_t types.
59425         * lib/unistr/ucs4-utf16.c: New file.
59426
59427 2006-12-25  Bruno Haible  <bruno@clisp.org>
59428
59429         * modules/unitypes: New file.
59430         * lib/unitypes.h: New file.
59431         * MODULES.html.sh (func_all_modules): New section "Unicode string
59432         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59433         this section. Add unitypes.
59434
59435 2007-01-08  Bruno Haible  <bruno@clisp.org>
59436
59437         Avoid variable names that conflict with those from libtool.
59438         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59439         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59440         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59441         library_names_spec to acl_library_names_spec, hardcode_* to
59442         acl_hardcode_*.
59443         Reported by Ralf Wildenhues.
59444
59445 2007-01-08  Bruno Haible  <bruno@clisp.org>
59446
59447         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59448         definition.
59449         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59450         definition.
59451         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59452         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59453         definition.
59454         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59455         definition.
59456         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59457         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59458         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59459         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59460         definition.
59461         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59462         definition.
59463         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59464         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59465         GC_USE_<algorithm>.
59466         * lib/gc-libgcrypt.c: Likewise.
59467         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59468         * modules/gc-arctwo (configure.ac): Likewise.
59469         * modules/gc-des (configure.ac): Likewise.
59470         * modules/gc-hmac-md5 (configure.ac): Likewise.
59471         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59472         * modules/gc-md2 (configure.ac): Likewise.
59473         * modules/gc-md4 (configure.ac): Likewise.
59474         * modules/gc-md5 (configure.ac): Likewise.
59475         * modules/gc-random (configure.ac): Likewise.
59476         * modules/gc-rijndael (configure.ac): Likewise.
59477         * modules/gc-sha1 (configure.ac): Likewise.
59478
59479 2007-01-08  Bruno Haible  <bruno@clisp.org>
59480
59481         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59482         macro definition.
59483         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59484         definition.
59485         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59486         definition.
59487         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59488         * modules/fcntl-safer (configure.ac): Likewise.
59489         * modules/fopen-safer (configure.ac): Likewise.
59490         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59491         GNULIB_FWRITEERROR macro definition.
59492
59493 2007-01-08  Bruno Haible  <bruno@clisp.org>
59494
59495         * m4/gnulib-common.m4: New file.
59496         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59497         (func_get_filelist): Add m4/gnulib-common.m4.
59498
59499 2007-01-08  Bruno Haible  <bruno@clisp.org>
59500
59501         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59502         command.
59503
59504 2007-01-08  Jim Meyering  <jim@meyering.net>
59505
59506         Use a more robust test for a "can't happen" condition.
59507         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59508         narrowed the st_size value.  Presuming the "can't happen" condition
59509         is true, that narrowing could conceivably convert an invalid st_size
59510         value into a valid one.  Instead, use a change based on Matthew
59511         Woehlke's original patch.
59512
59513         Slight readability improvement: use an assert-like macro
59514         in place of literal "abort ()" uses.
59515         * lib/fts.c (fts_assert): Define.
59516         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59517         Use this macro instead of a bare 'abort'.
59518
59519 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59522         simply work around them.
59523         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59524         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59525         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59526         declaring.
59527         Don't bother to define as macros, since the standard doesn't require it.
59528         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59529         longer worry about IRIX 5.3.
59530         (HAVE_WCTYPE_CTMP_BUG): Remove.
59531
59532 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59533
59534         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59535         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59536         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59537         Problems reported by Georg Schwarz for IRIX 5.3.
59538
59539         * gnulib-tool (autoconf_minversion): Take the maximum version number
59540         found, not the minimum.  Problem reported by James Youngman.
59541
59542 2007-01-03  Karl Berry  <karl@gnu.org>
59543
59544         * doc/error.texi: new file, explaining interaction with progname.
59545         * doc/gnulib.texi: include it.  Update copyright.
59546
59547 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59548
59549         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59550         AC_CANONICAL_HOST, to improve autobuild outputs.
59551
59552 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59553             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59554
59555         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59556         sockets, server sockets, and other file descriptors.  Count errors
59557         to compute the return value.  Reorder the code a bit to be easier
59558         to follow.  Don't set event bits that were not requested (except
59559         POLLERR and POLLHUP).
59560
59561 2007-01-01  Bruno Haible  <bruno@clisp.org>
59562
59563         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59564
59565 2007-01-03  Jim Meyering  <jim@meyering.net>
59566
59567         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59568
59569 2007-01-02  Bruno Haible  <bruno@clisp.org>
59570
59571         * modules/settime (Include): Require timespec.h.
59572         * modules/nanosleep (Include): Likewise.
59573
59574 2007-01-01  Bruno Haible  <bruno@clisp.org>
59575
59576         * gnulib-tool (func_emit_copyright_notice): Bump year.
59577         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59578
59579 2007-01-01  Bruno Haible  <bruno@clisp.org>
59580
59581         Improve support for OpenBSD.
59582         * build-aux/config.rpath (libname_spec): Export.
59583         (library_names_spec): New variable. Export.
59584         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59585         library_names_spec from the config.rpath output. Locate shared library
59586         through the name pattern in library_names_spec.
59587
59588 2007-01-01  Eric Blake  <ebb9@byu.net>
59589
59590         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59591
59592 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59595         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59596         assume the C locale, and avoid an "eval" that could cause trouble.
59597         Problem with SORT reported by Bob Proulx.
59598
59599         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59600         Define.  Trivial patch from Henning Nielsen Lund, originally
59601         sent to bug-grep@gnu.org today.
59602
59603 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59606         struct stat.  Problem reported by Henning Nielsen Lund.
59607         * lib/acl.c: Include acl.h first, to check interface.  Don't
59608         bother to include sys/types.h and sys/stat.h again.
59609
59610 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         Import the following change from libc; problem reported by
59613         Sven Verdoolaege.
59614
59615         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59616
59617         [BZ #1373]
59618         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59619
59620 2006-12-28  Jim Meyering  <jim@meyering.net>
59621
59622         * build-aux/announce-gen: Do not assume that the package
59623         builds any of tar.gz, tar.bz2, and .xdelta files.
59624         Suggestion from Simon Josefsson.
59625
59626 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59627
59628         * modules/announce-gen: New file.
59629
59630 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59633         handles its gotchas now.
59634         * lib/mbswidth.c: Likewise.
59635         * lib/wcwidth.h: Likewise.
59636         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59637         and iswcntrl; the wctype module does this stuff now.
59638         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59640         * modules/mbchar (Depends-on): Add wctype.
59641         * modules/mbswidth (Depends-on): Likewise.
59642         * modules/wcwidth (Depends-on): Likewise.
59643
59644 2006-12-27  Eric Blake  <ebb9@byu.net>
59645
59646         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59647         module uses more than what <wctype.h> is required to provide.
59648
59649 2006-12-26  Eric Blake  <ebb9@byu.net>
59650
59651         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59652
59653 2006-12-26  Eric Blake  <ebb9@byu.net>
59654
59655         * modules/absolute-header: New module.
59656         * modules/fcntl (Depends-on): Depend on it.
59657         * modules/inttypes (Depends-on): Likewise.
59658         * modules/stdint (Depends-on): Likewise.
59659         * modules/sys_stat (Depends-on): Likewise.
59660         * modules/wctype (Depends-on): Likewise.
59661         * MODULES.html.sh (Support for building libraries and
59662         executables): Document it.
59663
59664 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * gnulib-tool (SED): Remove, undoing previous change.
59667         The problem was that it broke coreutils on Solaris, because
59668         "sed --posix" leaked into a makefile.
59669         (sed): New alias, if 'alias' and GNU sed.
59670
59671 2006-12-24  Jim Meyering  <jim@meyering.net>
59672
59673         Work around an fchownat bug in glibc-2.4:
59674         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59675         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59676         in spite of the -P option.
59677         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59678         New macros.
59679         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59680         * modules/openat (Files): Add lib/fchownat.c.
59681         * lib/openat.c (fchownat): Don't define here.  Move to...
59682         * lib/fchownat.c: ...this new file.
59683
59684 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59685
59686         Fix bug reported by Bruno Haible in
59687         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59688         where quotearg.c didn't compile on Mac OS X 10.2 because it
59689         lacks <wchar.h> and wint_t.
59690         * lib/wctype_.h (__wctype_wint_t): New type.
59691         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59692         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59693         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59694         Arg is now of type __wctype_wint_t, not wint_t.
59695         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59696         substitute HAVE_WINT_T.
59697         * modules/wctype (Files): Add m4/wint_t.m4.
59698         (wctype.h): Substitute HAVE_WINT_T.
59699
59700 2006-12-23  Bruno Haible  <bruno@clisp.org>
59701
59702         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59703
59704 2006-12-23  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59707         S_ISLNK.
59708         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59709         mingw.
59710
59711 2006-12-22  Bruno Haible  <bruno@clisp.org>
59712
59713         * lib/copy-file.c: Include acl.h.
59714         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59715         Close the file descriptors only after being done with copy_acl.
59716         * modules/copy-file (Depends-on): Add acl.
59717
59718 2006-12-22  Bruno Haible  <bruno@clisp.org>
59719
59720         * gnulib-tool (SED): New variable.
59721         Use $SED instead of sed everywhere.
59722
59723 2006-12-22  Bruno Haible  <bruno@clisp.org>
59724
59725         * modules/no-c++: New file.
59726         * m4/no-c++.m4: New file.
59727         * MODULES.html.sh (Support for building libraries and executables):
59728         Add no-c++.
59729
59730 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59733         Include <limits.h>, and use its INT_MAX to rewrite the
59734         j loop so that it does not overflow 'int'.  Problem reported by
59735         Ralf Wildenhues in
59736         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59737         Play it safe by shifting left by 1 rather than multiplying by 2,
59738         as GCC is less likely to optimize this away when the value
59739         is signed (when it assumes overflow leads to undefined behavior).
59740         Also, don't assume time_t uses two's complement.
59741
59742 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * MODULES.html.sh: New module wctype.
59745         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59746         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59747         <wctype.h>, since the new wctype module should fix this.
59748         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59749         the wctype module should arrange for it.
59750         * lib/regex_internal.h: Likewise.
59751         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59752         since the wctype module should handle this now.
59753         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59754         * modules/fnmatch (Depends-on): Add wctype.
59755         * modules/quotearg (Depends-on): Likewise.
59756         * modules/regex (Depends-on): Likewise.
59757
59758 2006-12-19  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59761         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59762
59763 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59764
59765         * modules/savewd (Depends-on): Fix dependency on fcntl.
59766
59767 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59770         conforms to C99, rather than relying on the user's environment
59771         setting of STDINT_H.
59772
59773 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59774         and Eric Blake  <ebb9@byu.net>
59775
59776         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59777         This is more consistent with the other defines here.
59778         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59779         Port to z/OS.  Problem reported by Paul Gilmartin.
59780         Change local vars to use gl_ prefix rather than ac_.
59781         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59782         with other defines.
59783         * modules/double-slash-root: New module.
59784         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59785         (Depends-on): Add double-slash-root.
59786         * MODULES.html.sh (File system functions): Mention new module.
59787
59788 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59789
59790         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59791         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59792         This is for the benefit of gzip, which doesn't do i18n.
59793
59794 2006-12-12  Jim Meyering  <jim@meyering.net>
59795
59796         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59797         Reported by Andreas Schwab <schwab@suse.de>.
59798
59799 2006-12-12  Bruno Haible  <bruno@clisp.org>
59800
59801         Merge these changes.
59802         2006-09-05  Bruno Haible  <bruno@clisp.org>
59803         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59804         iconv_alloc succeeded.
59805         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59806         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59807         test for " && dest " at the end - dest is always != NULL there. Call
59808         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59809         with 2xNULL arguments, also to flush the state storage. Handle the
59810         IRIX iconv behaviour. Realloc the final result, to throw away unused
59811         memory.
59812
59813 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59814
59815         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59816         and fchmodat unconditionally, since glibc 2.4 has them.
59817         Problem reported by Arkadiusz Miskiewicz.
59818
59819 2006-12-10  Bruno Haible  <bruno@clisp.org>
59820
59821         * gnulib-tool (func_import): Show the include files only for those
59822         modules that are copied and specified.
59823         Reported by Karl Berry.
59824
59825 2006-12-08  Jim Meyering  <jim@meyering.net>
59826
59827         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59828         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59829
59830         * build-aux/announce-gen: Add two new options, both optional:
59831         --bootstrap-tools=TOOL_LIST
59832               a comma-separated list of tools, e.g.,
59833               autoconf,automake,bison,gnulib
59834         --gnulib-snapshot-date=DATE
59835               if gnulib is in the bootstrap tool list,
59836               then report this as the snapshot date.
59837               If not specified, use the current date/time.
59838               If you specify a date here, be sure it's UTC.
59839
59840 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59841
59842         * tests/test-argp-2.sh: Fix test to match actual output.
59843         (func_compare): Fix sed script to be portable.
59844
59845 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59846
59847         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59848         workaround for this case.  It is not autoconfigured now; offhand
59849         it's hard to see how to autoconfigure it.
59850
59851 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59852
59853         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59854         a directory that is about to be chowned.  Such a directory's
59855         initial file permissions should permit the owner only and this
59856         should not be changed until after the chown, since the group and
59857         other bits would be incorrect if they granted permission before
59858         the chown.
59859
59860         Fix porting problem for iswctype reported by Georg Schwarz in:
59861         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59862         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59863         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59864         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59865         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59866
59867 2006-12-03  Jim Meyering  <jim@meyering.net>
59868
59869         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59870         p->fts_statp may not yet be defined.
59871         (fts_read): Instead, set it in the caller, once p->fts_statp is
59872         sure to be defined, and corresponds to a top-level directory.
59873         This bug made du -x fail.  Here's the coreutils test case:
59874         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59875         Reported by Mike Frysinger.
59876
59877 2006-12-01  Jim Meyering  <jim@meyering.net>
59878
59879         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59880         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59881         Reported by Simon Josefsson.
59882
59883 2006-11-30  Jim Meyering  <jim@meyering.net>
59884
59885         * m4/warning.m4: Use the all-permissive copyright notice
59886         recommended by RMS (rather than LGPL).
59887         * m4/vararrays.m4: Likewise.
59888         * m4/flexmember.m4: Likewise.
59889
59890 2006-11-29  Bruno Haible  <bruno@clisp.org>
59891
59892         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59893         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59894         using +=.
59895         Reported by Simon Josefsson <simon@josefsson.org>.
59896
59897 2006-11-28  James Youngman <jay@gnu.org>
59898
59899         * README: Advise users that they might find the bug-gnulib@gnu.org
59900         and autotools-announce@gnu.org mailing lists useful.
59901
59902 2006-11-28  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/ptrdiff_max.m4: Remove file.
59905
59906 2006-11-21  Bruno Haible  <bruno@clisp.org>
59907
59908         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59909         _AC_COMPUTE_INT.
59910         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59911         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59912         _AC_COMPUTE_INT.
59913         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59914         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59915         _AC_COMPUTE_INT.
59916         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59917
59918 2006-11-28  Jim Meyering  <jim@meyering.net>
59919
59920         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59921         warning from "gcc -Wshadow" about shadowing the builtin.
59922
59923 2006-11-27  Bruno Haible  <bruno@clisp.org>
59924
59925         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59926         _AC_COMPUTE_INT.
59927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59928
59929 2006-11-27  Bruno Haible  <bruno@clisp.org>
59930             Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59933
59934 2006-11-26  Bruno Haible  <bruno@clisp.org>
59935
59936         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59937         noinst_LTLIBRARIES.
59938
59939 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59940             Bruno Haible  <bruno@clisp.org>
59941
59942         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59943         if compiling with "gcc -ansi".
59944
59945 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59946
59947         Fix some incompatibilities with gcc -ansi -pedantic.
59948         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59949         if compiling pedantically with GCC, unless it's C99 or later.
59950         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59951         it mishandles gcc -ansi -pedantic as well.
59952         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59953         if gcc -pedantic.
59954         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59955         initializers for struct if -pedantic, unless it's C99 or later.
59956
59957 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59958
59959         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59960         Don't close an fd more than once. Identical atimes indicate
59961         success, not failure.
59962
59963 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59964
59965         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59966
59967 2006-11-23  Jim Meyering  <jim@meyering.net>
59968
59969         * build-aux/announce-gen: New file.  From coreutils.
59970
59971 2006-11-22  Jim Meyering  <jim@meyering.net>
59972
59973         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59974         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59975         (fts_read): Use a temporary to narrow the overused st_size member
59976         before using it in a switch statement.  Reported by Matthew Woehlke.
59977
59978         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59979         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59980
59981 2006-11-20  Bruno Haible  <bruno@clisp.org>
59982
59983         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59984         changequote instead of pairs of brackets.
59985         Reported by Andreas Schwab <schwab@suse.de>.
59986
59987 2006-11-21  Jim Meyering  <jim@meyering.net>
59988
59989         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59990         so as to remain compatible with older compilers.
59991         Patch from Michael Deutschmann.
59992
59993 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59994
59995         * MODULES.html.sh (File system functions): Add openat.
59996
59997         * lib/openat.h (rpl_fstatat): New macro, if
59998         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59999         (fstatat): Define to rpl_fstatat under the same conditions,
60000         unless COMPILING_FSTATAT.
60001         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60002         seems to have the bug.
60003         * lib/fstatat.c: New file.
60004         * modules/openat (Files): Add it.
60005
60006 2006-11-20  Bruno Haible  <bruno@clisp.org>
60007
60008         * Makefile: New file.
60009
60010 2006-11-20  Jim Meyering  <jim@meyering.net>
60011
60012         The beginnings of syntax-related checks for gnulib.
60013         * lib/Makefile: New file.
60014         * lib/t-idcache: New script.  Ensure that the two halves of
60015         idcache.c stay in sync.
60016
60017         * lib/idcache.c: Adjust comments in user- and group- portions to
60018         be more accurate, and to be consistent with one another.
60019
60020 2006-11-20  Jim Meyering  <jim@meyering.net>
60021
60022         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60023         continue using the flexible array member (thus, this module performs
60024         half as many malloc calls), with the addition that...
60025         (getgroup, getuser): Consistently record a non-match via an empty
60026         "name" string, and map an empty string match to a NULL return value.
60027         * modules/idcache (Depends-on): Re-add flexmember.
60028
60029         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60030         (getuidbyname, getgroup, getgidbyname): Likewise.
60031
60032         Use cleaner syntax: NULL rather than 0.
60033         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60034
60035 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60038         It mishandled the case where the group was missing.
60039         Problem reported by Greg Schafer.
60040         * modules/idcache: Likewise.
60041
60042 2006-11-18  Jim Meyering  <jim@meyering.net>
60043
60044         * check-module (%exempt_header): Add exception for some
60045         conditionally-included headers.
60046
60047         * modules/i-ring (Depends-on): Add verify.
60048         (License): Change to LGPL.
60049
60050 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60051
60052         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60053         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60054         and inttostr.h.  Use snprintf rather than uinttostr, so that
60055         LGPLed code doesn't depend on GPLed.
60056
60057 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         * modules/inline (License): Change from GPL to LGPL.
60060
60061 2006-11-17  Jim Meyering  <jim@meyering.net>
60062
60063         * modules/d-type (License): Switch to LGPL.
60064
60065 2006-11-15  Bruno Haible  <bruno@clisp.org>
60066
60067         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60068
60069 2006-11-15  Eric Blake  <ebb9@byu.net>
60070
60071         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60072         the module dependency.
60073
60074 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60075             Bruno Haible  <bruno@clisp.org>
60076
60077         * gnulib-tool (func_create_testdir): Add license consistency check.
60078
60079 2006-11-15  Eric Blake  <ebb9@byu.net>
60080
60081         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60082         random "(cached)" in configure output.
60083
60084 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60085
60086         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60087         test for conforming inttypes.h is both announced and cached.
60088
60089         * MODULES.html.sh (seen_modules, seen_files): New variables.
60090         (func_module): Rewrite to use a few less gnulib-tool and sed
60091         invocations.  Avoid a couple of quadratic algorithms for ...
60092         (missed_modules, missed_files): ... these, with ...
60093         (func_append, func_tmpdir): ... these new functions, from
60094         gnulib-tool.  Analogously, install traps for cleanup.
60095
60096         * tests/test-gc.c (main): Remove unused variables.
60097         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60098
60099 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60100
60101         * modules/inttostr (License): Change to LGPL.
60102
60103 2006-11-14  Eric Blake  <ebb9@byu.net>
60104
60105         * modules/tempname (License): Change to LGPL.
60106
60107 2006-11-14  Eric Blake  <ebb9@byu.net>
60108
60109         * doc/functions.texi (Function Portability): *printf functions on
60110         Cygwin now understand all POSIX size specifiers.
60111
60112 2006-11-14  Bruno Haible  <bruno@clisp.org>
60113
60114         * modules/c-ctype (License): Change to LGPL.
60115
60116 2006-11-12  Bruno Haible  <bruno@clisp.org>
60117
60118         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60119         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60120         for GNOME libraries, for which the include files are installed in
60121         subdirectories of $prefix/include.
60122
60123 2006-11-12  Bruno Haible  <bruno@clisp.org>
60124
60125         * m4/lib-link.m4: Require at least autoconf-2.54.
60126         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60127         name to underscores for the --with option.
60128
60129 2006-11-13  Bruno Haible  <bruno@clisp.org>
60130
60131         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60132         the tests directory.
60133         Reported by Ralf Wildenhues.
60134
60135 2006-11-13  Bruno Haible  <bruno@clisp.org>
60136
60137         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60138         (func_emit_initmacro_end): Undo the override here.
60139         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60140         Works around the famous automake error in coreutils.
60141
60142 2006-11-13  Eric Blake  <ebb9@byu.net>
60143
60144         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60145         element, not its node.
60146
60147 2006-11-12  Bruno Haible  <bruno@clisp.org>
60148
60149         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60150         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60151
60152 2006-11-12  Bruno Haible  <bruno@clisp.org>
60153
60154         * gnulib-tool: New option --local-symlink.
60155         (func_usage): Document it.
60156         (lsymbolic): New variable.
60157         (func_import, func_create_testdir): If --symlink was not specified,
60158         test whether --local-symlink was specified and the file comes from
60159         the local_gnulib_dir.
60160
60161 2006-11-12  Bruno Haible  <bruno@clisp.org>
60162
60163         * gnulib-tool (func_ln): New function.
60164         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60165
60166 2006-11-12  Bruno Haible  <bruno@clisp.org>
60167
60168         Finish support for source files in subdirectories.
60169         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60170         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60171         AUTOMAKE_OPTIONS.
60172         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60173
60174 2006-11-12  Bruno Haible  <bruno@clisp.org>
60175
60176         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60177         EXTRA_lib_SOURCES augmentation.
60178         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60179
60180 2006-11-12  Jim Meyering  <jim@meyering.net>
60181
60182         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60183         file descriptors.  This also averts a failure on systems with
60184         native openat support when a traversed directory lacks "x" access.
60185         * lib/fts_.h: Include "i-ring.h"
60186         (struct FTS) [fts_fd_ring]: New member.
60187         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60188         (FCHDIR): Add parentheses.
60189         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60190         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60191         When descending, rather than simply closing the previous
60192         fts_cwd_fd value, push that file descriptor onto the ring.
60193         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60194         (fts_open): Initialize the new fd_ring member.
60195         (fts_close): Clear the ring.
60196         (fts_safe_changedir): When possible, use our new fd_ring to skip
60197         the diropen and fstat and dev/ino comparison that would normally
60198         accompany a virtual `chdir ("..")'.
60199
60200         * modules/fts (Depends-on): Add i-ring.
60201         * modules/i-ring: New module.
60202         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60203         * m4/i-ring.m4: New file.
60204
60205 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60206
60207         * gnulib-tool (func_create_testdir): Fix replacement of
60208         `build-aux' in configure.ac.  Run autotools in gltests
60209         subdirectory.
60210         (func_create_testdir, func_create_megatestdir, test): There is
60211         no need for '--force' in most autotool invocations in a new
60212         tree.  Actually fail the whole test if any of the tools, or the
60213         configure or make stages fail.
60214
60215         Sync from Automake.
60216         * build-aux/gnupload: Revert last change.  Add pointer to upload
60217         instructions of the GNU Maintenance Instructions.
60218         Suggestion by Karl Berry.
60219
60220 2006-11-10  Jim Meyering  <jim@meyering.net>
60221
60222         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60223
60224 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60225
60226         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60227         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60228         (bind_textdomain_codeset) [! ENABLE_NLS]:
60229         Evaluate all the arguments.  That way, callers get compatible behavior
60230         if the arguments have side effects.  Also, it avoids some GCC
60231         diagnostics in some cases; Joel E. Denny reported problems when Bison
60232         was configured with --enable-gcc-warnigs.
60233
60234 2006-11-10  Jim Meyering  <jim@meyering.net>
60235
60236         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60237         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60238         account.
60239
60240 2006-11-10  Jim Meyering  <jim@meyering.net>
60241
60242         * modules/inline: New file/module.
60243         * modules/xalloc (Files): Remove m4/inline.m4.
60244         (Depends-on): Add inline, instead.
60245         * modules/oset: Likewise.
60246         * modules/list: Likewise.
60247
60248 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60249
60250         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60251         Problem reported by Matthew Woehlke.
60252
60253 2006-11-09  Bruno Haible  <bruno@clisp.org>
60254
60255         * lib/tempname.c (gen_tempname): Remove variant that invokes
60256         __gen_tempname.
60257         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60258         __gen_tempname.
60259
60260 2006-11-08  Bruno Haible  <bruno@clisp.org>
60261
60262         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60263         to 'yes' instead of 'cross-compiling'.
60264
60265 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60266
60267         * lib/quotearg.h (quotearg_free): New decl.
60268         * lib/quotearg.c (quotearg_free): New function.
60269         (slot0, nslots, slotvec0, slotvec):
60270         Now file-scope so that quotearg_free can get at them.
60271
60272 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60273
60274         Sync from Automake.
60275         * build-aux/gnupload: Add missing 'gnu' to example URL.
60276         Report by Karl Berry.
60277
60278 2006-11-08  Bruno Haible  <bruno@clisp.org>
60279
60280         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60281         Suggested by Paul Eggert.
60282
60283 2006-11-08  Jim Meyering  <jim@meyering.net>
60284
60285         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60286         It's already included if !_LIBC.
60287         (fts_safe_changedir): Add a comment.
60288
60289 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60290
60291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60292         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60293         Matthew Woehlke.
60294
60295         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60296         definitions up, to avoid colliding with change below.
60297         (static_inline) [HAVE_INLINE]: New macro.
60298         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60299         Provide extern decls when !HAVE_INLINE.  Do not define unless
60300         static_inline is defined, either by us or by xmalloc.c.  Use
60301         static_inline rather than static inline.
60302         (XCALLOC): Optimize sizeof(T) = 1 case.
60303         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60304
60305 2006-11-07  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60308         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60309         AC_C_INLINE.
60310         * modules/xalloc (Files): Add m4/inline.m4.
60311
60312 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60313
60314         * README: Fix typo.
60315         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60316         (Miscellanous Notes): ...from this.
60317
60318 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60319
60320         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60321         Mention that offsetof should be used instead of sizeof.
60322         From Bruno Haible.
60323
60324 2006-11-07  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60327
60328 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60331         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60332         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60333         (gl_tree_add_before, gl_tree_add_after):
60334         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60335         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60336         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60337         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60338         (gl_linked_add_after, gl_linked_add_at): Likewise.
60339         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60340         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60341         (gl_tree_add_before, gl_tree_add_after): Likewise.
60342         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60343         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60344         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60345
60346 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60347
60348         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60349
60350 2006-11-06  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/inline.m4: New file.
60353         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60354         * modules/list (Files): Add m4/inline.m4.
60355         * modules/oset (Files): Likewise.
60356
60357 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60358
60359         * lib/idcache.c: Include <stddef.h>, for offsetof.
60360         (struct userid.name): Change from char * to a flexible array member.
60361         All uses changed.
60362         * modules/idcache (Depends-on): Add flexmember.
60363
60364         * MODULES.html.sh (Core language properties): New module flexmember.
60365         * modules/flexmember, m4/flexmember.m4: New files.
60366
60367         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60368         inline functions that are identical with the old xnmalloc_inline,
60369         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60370         that we can avoid some unnecessary integer multiplications and
60371         divisions in the common case where the element size is known at
60372         compile time.
60373         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60374         needed.
60375         (xnboundedmalloc): Remove.
60376         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60377         arguments, for consistency with rest of this header.
60378         (xcharalloc): Rewrite using XNMALLOC.
60379         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60380         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60381         versions have been moved to lib/xalloc.h and renamed to be the
60382         non-*_inline versions.
60383         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60384         and xnrealloc functions, since those functions are now inline and
60385         now call us.
60386         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60387         renaming described above.
60388         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60389         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60390         captures the dependency in AC_C_INLINE.
60391
60392         New module canonicalize-lgpl, proposed by Charles Wilson in
60393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60394         with a few small changes afterwards.
60395         * MODULES.html.sh (File system functions): New module
60396         canonicalize-lgpl.
60397         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60398         and canonicalize_file_name.
60399         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60400         * modules/canonicalize-lgpl: New files.
60401
60402 2006-11-05  Bruno Haible  <bruno@clisp.org>
60403
60404         * gnulib-tool (func_import, func_create_testdir): Create directories
60405         also for files in subdirectories of lib/.
60406
60407 2006-11-05  Bruno Haible  <bruno@clisp.org>
60408
60409         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60410         ANSI C compliant.
60411
60412 2006-11-03  Bruno Haible  <bruno@clisp.org>
60413
60414         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60415         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60416         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60417         (xnboundedmalloc): New inline function.
60418         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60419         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60420         xmalloc.
60421         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60422         xmalloc.
60423         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60424         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60425         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60426         xmalloc.
60427         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60428         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60429         xmalloc.
60430         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60431         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60432         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60433         xmalloc.
60434         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60435         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60436         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60437         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60438         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60439         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60440         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60441
60442 2006-11-03  Bruno Haible  <bruno@clisp.org>
60443
60444         * lib/c-ctype.h [C++]: Define functions without name mangling.
60445         * lib/fwriteerror.h [C++]: Likewise.
60446         * lib/gcd.h [C++]: Likewise.
60447         * lib/linebreak.h [C++]: Likewise.
60448
60449 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60450
60451         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60452         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60453         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60454         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60455         Check for functions and headers just once.
60456         Check for declaration of canonicalize_file_name.
60457         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60458
60459 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60460
60461         * gnulib-tool (func_import): Fix typo in actioncmd.
60462
60463 2006-11-02  Bruno Haible  <bruno@clisp.org>
60464
60465         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60466         newline sequence in the Makefile.am snippet as a space, like "make"
60467         does.
60468         Reported by Roger Persson <perrog@gmail.com>.
60469
60470 2006-11-01  Bruno Haible  <bruno@clisp.org>
60471
60472         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60473         already declared in <string.h>.
60474         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60475
60476 2006-11-01  Bruno Haible  <bruno@clisp.org>
60477
60478         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60479         * lib/strcase.h: Include <string.h>.
60480         (strcasecmp): Define to rpl_strcasecmp here.
60481
60482 2006-11-01  Bruno Haible  <bruno@clisp.org>
60483
60484         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60485
60486 2006-11-01  Eric Blake  <ebb9@byu.net>
60487
60488         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60489
60490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60491
60492 2006-10-29  Bruno Haible  <bruno@clisp.org>
60493
60494         Make it compile in C++ mode.
60495         * lib/full-write.c (full_rw): Add a cast.
60496
60497 2006-11-01  Bruno Haible  <bruno@clisp.org>
60498
60499         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60500         be POSIX compliant.
60501         Reported by Roger Persson <perrog@gmail.com>.
60502
60503 2006-11-01  Eric Blake  <ebb9@byu.net>
60504
60505         * lib/getopt_.h: Fix comments.
60506
60507 2006-10-31  Eric Blake  <ebb9@byu.net>
60508
60509         * modules/tmpdir (Depends-on): Add sys_stat.
60510         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60511         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60512         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60513         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60514         tempname.
60515
60516 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60517
60518         Avoid some C++ diagnostics reported by Bruno Haible.
60519         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60520         xmalloc.
60521         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60522         (struct slotvec): Move to top level.
60523         (quotearg_n_options): Rewrite to avoid xmalloc.
60524         * lib/xalloc.h (xcharalloc): New function.
60525         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60526         [defined __cplusplus]: Add function template that provides result
60527         type propagation.  This part of the change is from Bruno Haible.
60528
60529 2006-10-29  Bruno Haible  <bruno@clisp.org>
60530
60531         Make it compile in C++ mode.
60532         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60533         * lib/strnlen1.c (strnlen1): Cast memchr result.
60534         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60535         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60536         (create_temp_dir): Rename local variable 'template'.
60537         (compile_csharp_using_sscli): Add cast.
60538         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60539         * lib/findprog.c (find_in_path): Likewise.
60540         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60541         * lib/wait-process.c (register_slave_subprocess): Likewise.
60542
60543 2006-10-22  Bruno Haible  <bruno@clisp.org>
60544
60545         * modules/tsearch: New file.
60546         * lib/tsearch.h: New file.
60547         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60548         * m4/tsearch.m4: New file.
60549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60550
60551 2006-10-29  Eric Blake  <ebb9@byu.net>
60552
60553         * lib/arcfour.c: Assume config.h.
60554         * lib/arctwo.c: Likewise.
60555         * lib/base64.c: Likewise.
60556         * lib/check-version.c: Likewise.
60557         * lib/crc.c: Likewise.
60558         * lib/des.c: Likewise.
60559         * lib/gc-gnulib.c: Likewise.
60560         * lib/gc-libgcrypt.c: Likewise.
60561         * lib/gc-pbkdf2-sha1.c: Likewise.
60562         * lib/getaddrinfo.c: Likewise.
60563         * lib/getdelim.c: Likewise.
60564         * lib/getline.c: Likewise.
60565         * lib/hmac-md5.c: Likewise.
60566         * lib/hmac-sha1.c: Likewise.
60567         * lib/iconvme.c: Likewise.
60568         * lib/md2.c: Likewise.
60569         * lib/md4.c: Likewise.
60570         * lib/memxor.c: Likewise.
60571         * lib/read-file.c: Likewise.
60572         * lib/readline.c: Likewise.
60573         * lib/rijndael-alg-fst.c: Likewise.
60574         * lib/rijndael-api-fst.c: Likewise.
60575         * lib/xgetdomainname.c: Likewise.
60576
60577 2006-10-28  Eric Blake  <ebb9@byu.net>
60578
60579         * lib/xstrndup.c: Assume config.h.
60580
60581 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60584         stat-macros.h is now for our own macros, whereas stat_h is for
60585         macros in the <sys/stat.h> name space.
60586         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60587         (STAT_MACROS_H): Remove.
60588         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60589         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60590         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60591         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60592         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60593         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60594         Move these macros to ...
60595         * lib/stat_.h: here.  Don't include stat-macros.h.
60596         * lib/canonicalize.c: Don't include stat-macros.h.
60597         * lib/chown.c: Likewise.
60598         * lib/euidaccess.c: Likewise.
60599         * lib/file-type.c: Likewise.
60600         * lib/filemode.c: Likewise.
60601         * lib/glob.c: Likewise.
60602         * lib/isapipe.c: Likewise.
60603         * lib/lchown.c: Likewise.
60604         * lib/lstat.c: Likewise.
60605         * lib/mkdir-p.c: Likewise.
60606         * lib/rmdir.c: Likewise.
60607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60608         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60609         unless mkdir isn't declared, to speed up 'configure'.
60610         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60611         would define all the S_* symbols.
60612         * modules/canonicalize (Depends-on):
60613         Depend on sys_stat, not stat-macros.
60614         * modules/chown: Likewise.
60615         * modules/euidaccess: Likewise.
60616         * modules/filemode: Likewise.
60617         * modules/file-type: Likewise.
60618         * modules/glob: Likewise.
60619         * modules/isapipe: Likewise.
60620         * modules/lchown: Likewise.
60621         * modules/lstat: Likewise.
60622         * modules/mkancesdirs: Likewise.
60623         * modules/rmdir: Likewise.
60624         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60625         * modules/modechange: Likewise.
60626         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60627         (configure.ac): Remove gl_STAT_MACROS.
60628         * modules/sys_stat (Depends-on): Remove stat-macros.
60629
60630 2006-10-27  Bruno Haible  <bruno@clisp.org>
60631
60632         * m4/signed.m4: Remove file.
60633         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60634         invocation.
60635         * modules/vasnprintf (Files): Remove m4/signed.m4.
60636
60637 2006-10-27  Bruno Haible  <bruno@clisp.org>
60638
60639         Update to GNU gettext 0.16.
60640         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60641         m4/inttypes-h.m4, m4/signed.m4.
60642         * m4/gettext.m4: Update to GNU gettext 0.16.
60643         * m4/intl.m4: New file, from GNU gettext.
60644         * m4/intldir.m4: New file, from GNU gettext.
60645         * config/srclist.txt: Update
60646
60647 2006-10-27  Eric Blake  <ebb9@byu.net>
60648
60649         * MODULES.html.sh: Document tempname.
60650         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60651         dependencies.
60652         (Files): Move lib/tempname.c...
60653         * modules/tempname: ...to this new module.
60654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60655         (gl_PREREQ_TEMPNAME): Move...
60656         * m4/tempname.m4: ...to this new file.
60657         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60658         * modules/sys_stat (Depends-on): Add stat-macros.
60659         * lib/stat_.h (includes): Pick up stat macros.
60660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60661         if stat macros are broken.
60662         * lib/tempname.c (includes): No need to include "stat-macros.h".
60663         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60664         (direxists, __path_search) [!_LIBC]: Don't compile these in
60665         gnulib; the tmpdir module covers that.
60666         * lib/tempname.h: New file.
60667
60668 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60669
60670         * COPYING: Explain how gnulib-tool converts licence headers.
60671         Almost all wording by Eric Blake.
60672
60673 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * lib/mbchar.h (is_basic_table): Make read-only.
60676         * lib/mbchar.c (is_basic_table): Likewise.
60677         Reported by John Darrington.
60678
60679 2006-10-25  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/progname.h (set_program_name): Undefine before defining.
60682
60683 2006-10-25  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60686         false for non-gcc C++ compilers.
60687         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60688
60689 2006-10-24  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60692         iconv implementations like Irix iconv.
60693
60694 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60695
60696         * modules/vararrays: New file.
60697         * m4/vararrays.m4: New file, taken from diffutils.
60698         * MODULES.html.sh: New module vararrays.
60699
60700 2006-10-24  Karl Berry  <karl@gnu.org>
60701
60702         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60703         Don't call GNU Unix.
60704
60705 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60706
60707         * users.txt: Add Libtool.
60708
60709         Sync from Libtool:
60710
60711         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60712
60713         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60714         to gnulib's policy of including config.h unconditionally.
60715
60716 2006-10-24  Bruno Haible  <bruno@clisp.org>
60717
60718         * modules/wcwidth (Files): Add m4/wint_t.m4.
60719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60720         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60721
60722 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60723
60724         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60725         to pacify GCC with some -W flags enabled.  Problem reported by
60726         Bruno Haible.
60727
60728 2006-10-24  Jim Meyering  <jim@meyering.net>
60729
60730         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60731         Reported by Karl Berry.
60732
60733 2006-10-23  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60736
60737 2006-10-24  Bruno Haible  <bruno@clisp.org>
60738
60739         * lib/gl_list.h: Use C comment style, not C++ comment style.
60740
60741 2006-10-23  Eric Blake  <ebb9@byu.net>
60742
60743         * lib/getaddrinfo.c (includes): Add missing include.
60744
60745 2006-10-23  Bruno Haible  <bruno@clisp.org>
60746             Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         Ability to rename obstack_free.
60749         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60750         obstack_free.
60751         (obstack_free): Invoke the __obstack_free macro.
60752         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60753
60754 2006-10-23  Bruno Haible  <bruno@clisp.org>
60755             Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60758         __argc, __argv from the declaration. (They are defined as macros on
60759         mingw.)
60760
60761 2006-10-22  Bruno Haible  <bruno@clisp.org>
60762
60763         * doc/gnulib-intro.texi: New file.
60764         * doc/gnulib.texi: Include it.
60765
60766 2006-10-21  Bruno Haible  <bruno@clisp.org>
60767
60768         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60769         "Introduction", "Miscellanous Notes", "Particular Modules".
60770
60771 2006-10-21  Bruno Haible  <bruno@clisp.org>
60772
60773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60774         Change mostlyclean-local rule to avoid sh syntax error from bash
60775         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60776
60777 2006-10-23  Jim Meyering  <jim@meyering.net>
60778
60779         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60780         in place of snprintf.
60781
60782         * modules/inttostr (Files): Add lib/uinttostr.c.
60783         * lib/uinttostr.c (inttostr): New file/function.
60784         * lib/inttostr.h (uinttostr): Declare.
60785         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60786         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60787         Add uinttostr.
60788         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60789
60790 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60791
60792         * lib/canonicalize.c (ELOOP): Define if not already defined.
60793         Problem reported by Bruno Haible in
60794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60795
60796 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60797
60798         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60799         Problem reported by Perry Smith and Ville Laurikari.
60800
60801         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60802         uses.
60803
60804 2006-10-19  Bruno Haible  <bruno@clisp.org>
60805
60806         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60807         for mingw.
60808
60809 2006-10-19  Bruno Haible  <bruno@clisp.org>
60810
60811         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60812         Needed for mingw.
60813
60814 2006-10-19  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60817
60818 2006-10-19  Bruno Haible  <bruno@clisp.org>
60819
60820         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60821         it.
60822
60823 2006-10-19  Bruno Haible  <bruno@clisp.org>
60824
60825         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60826         invocation.
60827
60828 2006-10-19  Bruno Haible  <bruno@clisp.org>
60829
60830         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60831         mountlist by default.
60832
60833 2006-10-16  Bruno Haible  <bruno@clisp.org>
60834
60835         * lib/c-strstr.c: Include c-strstr.h.
60836
60837 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60838
60839         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60840         in a slash.
60841
60842 2006-10-18  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/lock.h [C++]: Wrap definitions in extern "C".
60845
60846 2006-10-18  Bruno Haible  <bruno@clisp.org>
60847
60848         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60849         gl_LIBOBJS list.
60850
60851 2006-10-18  Bruno Haible  <bruno@clisp.org>
60852
60853         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60854
60855 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60856
60857         * lib/xstrtol.h: Include gettext.h.
60858         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60859         Problem reported by Eric Blake.
60860         * modules/xstrtol (Depends-on): Add gettext-h.
60861
60862 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60863
60864         * lib/strftime.c (advance): New macro.
60865         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60866         incomplete type, so you can't add 0 to it.  Problem and patch
60867         reported by Eelco Dolstra for dietlibc.
60868
60869 2006-10-18  Jim Meyering  <jim@meyering.net>
60870
60871         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60872         type for a local, and rename it: s/up/user_proc/.
60873
60874 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60875
60876         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60877         READ_UTMP_USER_PROCESS.
60878         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60879
60880 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60881
60882         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60883         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60884
60885 2006-10-17  Eric Blake  <ebb9@byu.net>
60886
60887         * lib/sigprocmask.c (sigprocmask): Fix typo.
60888
60889         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60890
60891         * modules/clean-temp (Makefile.am): Don't add to make output...
60892         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60893         config.h.
60894
60895 2006-10-17  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60898         differently if DEFAULT_TEXT_DOMAIN is set.
60899
60900 2006-10-16  Bruno Haible  <bruno@clisp.org>
60901
60902         * lib/clean-temp.c: Include fwriteerror.h.
60903
60904 2006-10-16  Bruno Haible  <bruno@clisp.org>
60905
60906         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60907
60908 2006-10-16  Bruno Haible  <bruno@clisp.org>
60909
60910         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60911         * lib/sigprocmask.h: Include <sys/types.h>.
60912         (sigset_t): Use the system's definition if present.
60913
60914 2006-10-17  Eric Blake  <ebb9@byu.net>
60915
60916         * lib/xvasprintf.c (includes): Assume config.h.
60917         * lib/xasprintf.c (includes): Likewise.
60918
60919 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60920
60921         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60922         at least as wide as intmax_t.
60923
60924 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60925
60926         (Imported from Automake.)
60927         * build-aux/gnupload: Update to version 1.1 of directive file.
60928
60929 2006-10-16  Eric Blake  <ebb9@byu.net>
60930
60931         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60932         match Automake 1.10a.
60933
60934 2006-10-14  Bruno Haible  <bruno@clisp.org>
60935
60936         * modules/sigprocmask: New file.
60937         * lib/sigprocmask.h: New file.
60938         * lib/sigprocmask.c: New file.
60939         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60940         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60941         request sigprocmask.o.
60942         (gl_PREREQ_SIGPROCMASK): New macro.
60943         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60944         (Depends-on): Add sigprocmask.
60945         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60946         gt_SIGNALBLOCKING. Test for 'raise' only once.
60947         * lib/fatal-signal.c: Include sigprocmask.h.
60948         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60949         unblock_fatal_signals): Define always.
60950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60951         sigprocmask.
60952
60953 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         Sync from Automake.
60956         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60957         which incorrectly sets the mode of an existing destination
60958         directory.  In some cases the unpatched install-sh could do the
60959         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60960         system.  We hope this is rare in practice, but it's clearly worth
60961         fixing.  Problem reported by Alex Unleashed in
60962         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60963         Also, don't bother to check for -m bugs unless we're using -m;
60964         suggested by Stepan Kasal.
60965
60966 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60967
60968         Sync from Automake.
60969         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60970         `-c' flag, so they appear at the same position as in %FASTDEP%
60971         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60972         which ignores unknown options only after the first non-option.
60973         Bug report against M4 by Nelson H. F. Beebe.
60974
60975 2006-10-13  Jim Meyering  <jim@meyering.net>
60976
60977         Fix a bug in yesterday's change.
60978         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60979         p->fts_statp->st_dev would be used uninitialized.
60980         Ensures that we always call fts_stat on the very first entry.
60981         Miklos Szeredi reported that find -xdev stopped working.
60982
60983 2006-10-12  Bruno Haible  <bruno@clisp.org>
60984
60985         * gnulib-tool (func_get_automake_snippet): Append an automatically
60986         computed EXTRA_DIST augmentation.
60987         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60988         * modules/alloca-opt (Makefile.am): Likewise.
60989         * modules/allocsa (Makefile.am): Likewise.
60990         * modules/arcfour (Makefile.am): Likewise.
60991         * modules/arctwo (Makefile.am): Likewise.
60992         * modules/argmatch (Makefile.am): Likewise.
60993         * modules/argz (Makefile.am): Likewise.
60994         * modules/atexit (Makefile.am): Likewise.
60995         * modules/backupfile (Makefile.am): Likewise.
60996         * modules/byteswap (Makefile.am): Likewise.
60997         * modules/c-strtod (Makefile.am): Likewise.
60998         * modules/c-strtold (Makefile.am): Likewise.
60999         * modules/calloc (Makefile.am): Likewise.
61000         * modules/canon-host (Makefile.am): Likewise.
61001         * modules/canonicalize (Makefile.am): Likewise.
61002         * modules/chdir-long (Makefile.am): Likewise.
61003         * modules/chdir-safer (Makefile.am): Likewise.
61004         * modules/check-version (Makefile.am): Likewise.
61005         * modules/chown (Makefile.am): Likewise.
61006         * modules/cloexec (Makefile.am): Likewise.
61007         * modules/close-stream (Makefile.am): Likewise.
61008         * modules/closeout (Makefile.am): Likewise.
61009         * modules/crc (Makefile.am): Likewise.
61010         * modules/csharpexec (Makefile.am): Likewise.
61011         * modules/cycle-check (Makefile.am): Likewise.
61012         * modules/des (Makefile.am): Likewise.
61013         * modules/dev-ino (Makefile.am): Likewise.
61014         * modules/dirfd (Makefile.am): Likewise.
61015         * modules/dirname (Makefile.am): Likewise.
61016         * modules/dup2 (Makefile.am): Likewise.
61017         * modules/eealloc (Makefile.am): Likewise.
61018         * modules/error (Makefile.am): Likewise.
61019         * modules/euidaccess (Makefile.am): Likewise.
61020         * modules/exclude (Makefile.am): Likewise.
61021         * modules/exitfail (Makefile.am): Likewise.
61022         * modules/fcntl-safer (Makefile.am): Likewise.
61023         * modules/fcntl (Makefile.am): Likewise.
61024         * modules/file-type (Makefile.am): Likewise.
61025         * modules/fileblocks (Makefile.am): Likewise.
61026         * modules/filemode (Makefile.am): Likewise.
61027         * modules/filenamecat (Makefile.am): Likewise.
61028         * modules/fnmatch (Makefile.am): Likewise.
61029         * modules/fopen-safer (Makefile.am): Likewise.
61030         * modules/fpending (Makefile.am): Likewise.
61031         * modules/fprintftime (Makefile.am): Likewise.
61032         * modules/free (Makefile.am): Likewise.
61033         * modules/fsusage (Makefile.am): Likewise.
61034         * modules/ftruncate (Makefile.am): Likewise.
61035         * modules/fts (Makefile.am): Likewise.
61036         * modules/gc-arcfour (Makefile.am): Likewise.
61037         * modules/gc-des (Makefile.am): Likewise.
61038         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61039         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61040         * modules/gc-md4 (Makefile.am): Likewise.
61041         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61042         * modules/gc-sha1 (Makefile.am): Likewise.
61043         * modules/gc (Makefile.am): Likewise.
61044         * modules/getaddrinfo (Makefile.am): Likewise.
61045         * modules/getcwd (Makefile.am): Likewise.
61046         * modules/getdelim (Makefile.am): Likewise.
61047         * modules/getdomainname (Makefile.am): Likewise.
61048         * modules/getgroups (Makefile.am): Likewise.
61049         * modules/gethostname (Makefile.am): Likewise.
61050         * modules/gethrxtime (Makefile.am): Likewise.
61051         * modules/getline (Makefile.am): Likewise.
61052         * modules/getloadavg (Makefile.am): Likewise.
61053         * modules/getlogin_r (Makefile.am): Likewise.
61054         * modules/getndelim2 (Makefile.am): Likewise.
61055         * modules/getopt (Makefile.am): Likewise.
61056         * modules/getpagesize (Makefile.am): Likewise.
61057         * modules/getpass-gnu (Makefile.am): Likewise.
61058         * modules/getpass (Makefile.am): Likewise.
61059         * modules/getsubopt (Makefile.am): Likewise.
61060         * modules/gettime (Makefile.am): Likewise.
61061         * modules/gettimeofday (Makefile.am): Likewise.
61062         * modules/getugroups (Makefile.am): Likewise.
61063         * modules/getusershell (Makefile.am): Likewise.
61064         * modules/glob (Makefile.am): Likewise.
61065         * modules/group-member (Makefile.am): Likewise.
61066         * modules/hard-locale (Makefile.am): Likewise.
61067         * modules/hash (Makefile.am): Likewise.
61068         * modules/hmac-md5 (Makefile.am): Likewise.
61069         * modules/hmac-sha1 (Makefile.am): Likewise.
61070         * modules/human (Makefile.am): Likewise.
61071         * modules/idcache (Makefile.am): Likewise.
61072         * modules/imaxabs (Makefile.am): Likewise.
61073         * modules/imaxdiv (Makefile.am): Likewise.
61074         * modules/inet_ntop (Makefile.am): Likewise.
61075         * modules/inet_pton (Makefile.am): Likewise.
61076         * modules/intprops (Makefile.am): Likewise.
61077         * modules/inttostr (Makefile.am): Likewise.
61078         * modules/inttypes (Makefile.am): Likewise.
61079         * modules/isapipe (Makefile.am): Likewise.
61080         * modules/javaversion (Makefile.am): Likewise.
61081         * modules/lchmod (Makefile.am): Likewise.
61082         * modules/lchown (Makefile.am): Likewise.
61083         * modules/localcharset (Makefile.am): Likewise.
61084         * modules/long-options (Makefile.am): Likewise.
61085         * modules/lstat (Makefile.am): Likewise.
61086         * modules/malloc (Makefile.am): Likewise.
61087         * modules/mathl (Makefile.am): Likewise.
61088         * modules/mbchar (Makefile.am): Likewise.
61089         * modules/md2 (Makefile.am): Likewise.
61090         * modules/md4 (Makefile.am): Likewise.
61091         * modules/md5 (Makefile.am): Likewise.
61092         * modules/memcasecmp (Makefile.am): Likewise.
61093         * modules/memchr (Makefile.am): Likewise.
61094         * modules/memcmp (Makefile.am): Likewise.
61095         * modules/memcoll (Makefile.am): Likewise.
61096         * modules/memcpy (Makefile.am): Likewise.
61097         * modules/memmem (Makefile.am): Likewise.
61098         * modules/memmove (Makefile.am): Likewise.
61099         * modules/mempcpy (Makefile.am): Likewise.
61100         * modules/memrchr (Makefile.am): Likewise.
61101         * modules/memset (Makefile.am): Likewise.
61102         * modules/memxor (Makefile.am): Likewise.
61103         * modules/mkancesdirs (Makefile.am): Likewise.
61104         * modules/mkdir-p (Makefile.am): Likewise.
61105         * modules/mkdir (Makefile.am): Likewise.
61106         * modules/mkdtemp (Makefile.am): Likewise.
61107         * modules/mkstemp (Makefile.am): Likewise.
61108         * modules/mktime (Makefile.am): Likewise.
61109         * modules/modechange (Makefile.am): Likewise.
61110         * modules/mountlist (Makefile.am): Likewise.
61111         * modules/nanosleep (Makefile.am): Likewise.
61112         * modules/obstack (Makefile.am): Likewise.
61113         * modules/openat (Makefile.am): Likewise.
61114         * modules/pagealign_alloc (Makefile.am): Likewise.
61115         * modules/pathmax (Makefile.am): Likewise.
61116         * modules/physmem (Makefile.am): Likewise.
61117         * modules/poll (Makefile.am): Likewise.
61118         * modules/posixtm (Makefile.am): Likewise.
61119         * modules/posixver (Makefile.am): Likewise.
61120         * modules/putenv (Makefile.am): Likewise.
61121         * modules/quote (Makefile.am): Likewise.
61122         * modules/quotearg (Makefile.am): Likewise.
61123         * modules/raise (Makefile.am): Likewise.
61124         * modules/read-file (Makefile.am): Likewise.
61125         * modules/readline (Makefile.am): Likewise.
61126         * modules/readlink (Makefile.am): Likewise.
61127         * modules/readtokens (Makefile.am): Likewise.
61128         * modules/readutmp (Makefile.am): Likewise.
61129         * modules/realloc (Makefile.am): Likewise.
61130         * modules/regex (Makefile.am): Likewise.
61131         * modules/rename-dest-slash (Makefile.am): Likewise.
61132         * modules/rename (Makefile.am): Likewise.
61133         * modules/rijndael (Makefile.am): Likewise.
61134         * modules/rmdir (Makefile.am): Likewise.
61135         * modules/rpmatch (Makefile.am): Likewise.
61136         * modules/safe-read (Makefile.am): Likewise.
61137         * modules/safe-write (Makefile.am): Likewise.
61138         * modules/same-inode (Makefile.am): Likewise.
61139         * modules/same (Makefile.am): Likewise.
61140         * modules/save-cwd (Makefile.am): Likewise.
61141         * modules/savedir (Makefile.am): Likewise.
61142         * modules/setenv (Makefile.am): Likewise.
61143         * modules/settime (Makefile.am): Likewise.
61144         * modules/sha1 (Makefile.am): Likewise.
61145         * modules/sig2str (Makefile.am): Likewise.
61146         * modules/snprintf (Makefile.am): Likewise.
61147         * modules/stat-macros (Makefile.am): Likewise.
61148         * modules/stat-time (Makefile.am): Likewise.
61149         * modules/stdbool (Makefile.am): Likewise.
61150         * modules/stdint (Makefile.am): Likewise.
61151         * modules/stdlib-safer (Makefile.am): Likewise.
61152         * modules/stpcpy (Makefile.am): Likewise.
61153         * modules/stpncpy (Makefile.am): Likewise.
61154         * modules/strcase (Makefile.am): Likewise.
61155         * modules/strcasestr (Makefile.am): Likewise.
61156         * modules/strchrnul (Makefile.am): Likewise.
61157         * modules/strcspn (Makefile.am): Likewise.
61158         * modules/strdup (Makefile.am): Likewise.
61159         * modules/strerror (Makefile.am): Likewise.
61160         * modules/strftime (Makefile.am): Likewise.
61161         * modules/strndup (Makefile.am): Likewise.
61162         * modules/strnlen (Makefile.am): Likewise.
61163         * modules/strpbrk (Makefile.am): Likewise.
61164         * modules/strsep (Makefile.am): Likewise.
61165         * modules/strstr (Makefile.am): Likewise.
61166         * modules/strtod (Makefile.am): Likewise.
61167         * modules/strtoimax (Makefile.am): Likewise.
61168         * modules/strtok_r (Makefile.am): Likewise.
61169         * modules/strtol (Makefile.am): Likewise.
61170         * modules/strtoll (Makefile.am): Likewise.
61171         * modules/strtoul (Makefile.am): Likewise.
61172         * modules/strtoull (Makefile.am): Likewise.
61173         * modules/strtoumax (Makefile.am): Likewise.
61174         * modules/strverscmp (Makefile.am): Likewise.
61175         * modules/sys_socket (Makefile.am): Likewise.
61176         * modules/sys_stat (Makefile.am): Likewise.
61177         * modules/sysexits (Makefile.am): Likewise.
61178         * modules/time_r (Makefile.am): Likewise.
61179         * modules/timegm (Makefile.am): Likewise.
61180         * modules/timespec (Makefile.am): Likewise.
61181         * modules/tmpfile-safer (Makefile.am): Likewise.
61182         * modules/trim (Makefile.am): Likewise.
61183         * modules/unistd-safer (Makefile.am): Likewise.
61184         * modules/unlinkdir (Makefile.am): Likewise.
61185         * modules/unlocked-io (Makefile.am): Likewise.
61186         * modules/userspec (Makefile.am): Likewise.
61187         * modules/utime (Makefile.am): Likewise.
61188         * modules/utimecmp (Makefile.am): Likewise.
61189         * modules/utimens (Makefile.am): Likewise.
61190         * modules/vasnprintf (Makefile.am): Likewise.
61191         * modules/vasprintf (Makefile.am): Likewise.
61192         * modules/vsnprintf (Makefile.am): Likewise.
61193         * modules/xalloc (Makefile.am): Likewise.
61194         * modules/xgetcwd (Makefile.am): Likewise.
61195         * modules/xnanosleep (Makefile.am): Likewise.
61196         * modules/xreadlink (Makefile.am): Likewise.
61197         * modules/xstrtod (Makefile.am): Likewise.
61198         * modules/xstrtol (Makefile.am): Likewise.
61199         * modules/xstrtold (Makefile.am): Likewise.
61200         * modules/yesno (Makefile.am): Likewise.
61201         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61202
61203 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61204
61205         * modules/error (Makefile.am): Distribute files through
61206         EXTRA_DIST, not lib_SOURCES.
61207
61208 2006-10-12  Eric Blake  <ebb9@byu.net>
61209
61210         * modules/error (Makefile.am): Distribute files in /lib.
61211         * modules/obstack (Makefile.am): Likewise.
61212
61213 2006-10-12  Bruno Haible  <bruno@clisp.org>
61214
61215         * modules/acl (Makefile.am): Distribute all files in lib/ through
61216         EXTRA_DIST.
61217         * modules/arcfour (Makefile.am): Likewise.
61218         * modules/arctwo (Makefile.am): Likewise.
61219         * modules/argmatch (Makefile.am): Likewise.
61220         * modules/argz (Makefile.am): Likewise.
61221         * modules/atexit (Makefile.am): Likewise.
61222         * modules/backupfile (Makefile.am): Likewise.
61223         * modules/c-strtod (Makefile.am): Likewise.
61224         * modules/c-strtold (Makefile.am): Likewise.
61225         * modules/calloc (Makefile.am): Likewise.
61226         * modules/canon-host (Makefile.am): Likewise.
61227         * modules/canonicalize (Makefile.am): Likewise.
61228         * modules/chdir-long (Makefile.am): Likewise.
61229         * modules/chdir-safer (Makefile.am): Likewise.
61230         * modules/check-version (Makefile.am): Likewise.
61231         * modules/chown (Makefile.am): Likewise.
61232         * modules/cloexec (Makefile.am): Likewise.
61233         * modules/close-stream (Makefile.am): Likewise.
61234         * modules/closeout (Makefile.am): Likewise.
61235         * modules/crc (Makefile.am): Likewise.
61236         * modules/cycle-check (Makefile.am): Likewise.
61237         * modules/des (Makefile.am): Likewise.
61238         * modules/dirfd (Makefile.am): Likewise.
61239         * modules/dirname (Makefile.am): Likewise.
61240         * modules/dup2 (Makefile.am): Likewise.
61241         * modules/euidaccess (Makefile.am): Likewise.
61242         * modules/exclude (Makefile.am): Likewise.
61243         * modules/exitfail (Makefile.am): Likewise.
61244         * modules/fcntl-safer (Makefile.am): Likewise.
61245         * modules/file-type (Makefile.am): Likewise.
61246         * modules/fileblocks (Makefile.am): Likewise.
61247         * modules/filemode (Makefile.am): Likewise.
61248         * modules/filenamecat (Makefile.am): Likewise.
61249         * modules/fnmatch (Makefile.am): Likewise.
61250         * modules/fopen-safer (Makefile.am): Likewise.
61251         * modules/fpending (Makefile.am): Likewise.
61252         * modules/fprintftime (Makefile.am): Likewise.
61253         * modules/free (Makefile.am): Likewise.
61254         * modules/fsusage (Makefile.am): Likewise.
61255         * modules/ftruncate (Makefile.am): Likewise.
61256         * modules/fts (Makefile.am): Likewise.
61257         * modules/gc (Makefile.am): Likewise.
61258         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61259         * modules/getaddrinfo (Makefile.am): Likewise.
61260         * modules/getcwd (Makefile.am): Likewise.
61261         * modules/getdelim (Makefile.am): Likewise.
61262         * modules/getdomainname (Makefile.am): Likewise.
61263         * modules/getgroups (Makefile.am): Likewise.
61264         * modules/gethostname (Makefile.am): Likewise.
61265         * modules/gethrxtime (Makefile.am): Likewise.
61266         * modules/getline (Makefile.am): Likewise.
61267         * modules/getloadavg (Makefile.am): Likewise.
61268         * modules/getlogin_r (Makefile.am): Likewise.
61269         * modules/getopt (Makefile.am): Likewise.
61270         * modules/getpass (Makefile.am): Likewise.
61271         * modules/getpass-gnu (Makefile.am): Likewise.
61272         * modules/getsubopt (Makefile.am): Likewise.
61273         * modules/gettime (Makefile.am): Likewise.
61274         * modules/gettimeofday (Makefile.am): Likewise.
61275         * modules/getugroups (Makefile.am): Likewise.
61276         * modules/getusershell (Makefile.am): Likewise.
61277         * modules/glob (Makefile.am): Likewise.
61278         * modules/group-member (Makefile.am): Likewise.
61279         * modules/hard-locale (Makefile.am): Likewise.
61280         * modules/hash (Makefile.am): Likewise.
61281         * modules/hmac-md5 (Makefile.am): Likewise.
61282         * modules/hmac-sha1 (Makefile.am): Likewise.
61283         * modules/human (Makefile.am): Likewise.
61284         * modules/idcache (Makefile.am): Likewise.
61285         * modules/imaxabs (Makefile.am): Likewise.
61286         * modules/imaxdiv (Makefile.am): Likewise.
61287         * modules/inet_ntop (Makefile.am): Likewise.
61288         * modules/inet_pton (Makefile.am): Likewise.
61289         * modules/inttostr (Makefile.am): Likewise.
61290         * modules/isapipe (Makefile.am): Likewise.
61291         * modules/lchown (Makefile.am): Likewise.
61292         * modules/long-options (Makefile.am): Likewise.
61293         * modules/lstat (Makefile.am): Likewise.
61294         * modules/malloc (Makefile.am): Likewise.
61295         * modules/mathl (Makefile.am): Likewise.
61296         * modules/mbchar (Makefile.am): Likewise.
61297         * modules/md2 (Makefile.am): Likewise.
61298         * modules/md4 (Makefile.am): Likewise.
61299         * modules/md5 (Makefile.am): Likewise.
61300         * modules/memcasecmp (Makefile.am): Likewise.
61301         * modules/memchr (Makefile.am): Likewise.
61302         * modules/memcmp (Makefile.am): Likewise.
61303         * modules/memcoll (Makefile.am): Likewise.
61304         * modules/memcpy (Makefile.am): Likewise.
61305         * modules/memmem (Makefile.am): Likewise.
61306         * modules/memmove (Makefile.am): Likewise.
61307         * modules/mempcpy (Makefile.am): Likewise.
61308         * modules/memrchr (Makefile.am): Likewise.
61309         * modules/memset (Makefile.am): Likewise.
61310         * modules/memxor (Makefile.am): Likewise.
61311         * modules/mkancesdirs (Makefile.am): Likewise.
61312         * modules/mkdir (Makefile.am): Likewise.
61313         * modules/mkdir-p (Makefile.am): Likewise.
61314         * modules/mkdtemp (Makefile.am): Likewise.
61315         * modules/mkstemp (Makefile.am): Likewise.
61316         * modules/mktime (Makefile.am): Likewise.
61317         * modules/modechange (Makefile.am): Likewise.
61318         * modules/mountlist (Makefile.am): Likewise.
61319         * modules/nanosleep (Makefile.am): Likewise.
61320         * modules/openat (Makefile.am): Likewise.
61321         * modules/pagealign_alloc (Makefile.am): Likewise.
61322         * modules/physmem (Makefile.am): Likewise.
61323         * modules/poll (Makefile.am): Likewise.
61324         * modules/posixtm (Makefile.am): Likewise.
61325         * modules/posixver (Makefile.am): Likewise.
61326         * modules/putenv (Makefile.am): Likewise.
61327         * modules/quote (Makefile.am): Likewise.
61328         * modules/quotearg (Makefile.am): Likewise.
61329         * modules/raise (Makefile.am): Likewise.
61330         * modules/read-file (Makefile.am): Likewise.
61331         * modules/readline (Makefile.am): Likewise.
61332         * modules/readlink (Makefile.am): Likewise.
61333         * modules/readtokens (Makefile.am): Likewise.
61334         * modules/readutmp (Makefile.am): Likewise.
61335         * modules/realloc (Makefile.am): Likewise.
61336         * modules/regex (Makefile.am): Likewise.
61337         * modules/rename (Makefile.am): Likewise.
61338         * modules/rename-dest-slash (Makefile.am): Likewise.
61339         * modules/rijndael (Makefile.am): Likewise.
61340         * modules/rmdir (Makefile.am): Likewise.
61341         * modules/rpmatch (Makefile.am): Likewise.
61342         * modules/safe-read (Makefile.am): Likewise.
61343         * modules/safe-write (Makefile.am): Likewise.
61344         * modules/same (Makefile.am): Likewise.
61345         * modules/save-cwd (Makefile.am): Likewise.
61346         * modules/savedir (Makefile.am): Likewise.
61347         * modules/setenv (Makefile.am): Likewise.
61348         * modules/settime (Makefile.am): Likewise.
61349         * modules/sha1 (Makefile.am): Likewise.
61350         * modules/sig2str (Makefile.am): Likewise.
61351         * modules/snprintf (Makefile.am): Likewise.
61352         * modules/stdlib-safer (Makefile.am): Likewise.
61353         * modules/stpcpy (Makefile.am): Likewise.
61354         * modules/stpncpy (Makefile.am): Likewise.
61355         * modules/strcase (Makefile.am): Likewise.
61356         * modules/strcasestr (Makefile.am): Likewise.
61357         * modules/strchrnul (Makefile.am): Likewise.
61358         * modules/strcspn (Makefile.am): Likewise.
61359         * modules/strdup (Makefile.am): Likewise.
61360         * modules/strerror (Makefile.am): Likewise.
61361         * modules/strftime (Makefile.am): Likewise.
61362         * modules/strndup (Makefile.am): Likewise.
61363         * modules/strnlen (Makefile.am): Likewise.
61364         * modules/strpbrk (Makefile.am): Likewise.
61365         * modules/strsep (Makefile.am): Likewise.
61366         * modules/strstr (Makefile.am): Likewise.
61367         * modules/strtod (Makefile.am): Likewise.
61368         * modules/strtoimax (Makefile.am): Likewise.
61369         * modules/strtok_r (Makefile.am): Likewise.
61370         * modules/strtol (Makefile.am): Likewise.
61371         * modules/strtoll (Makefile.am): Likewise.
61372         * modules/strtoul (Makefile.am): Likewise.
61373         * modules/strtoull (Makefile.am): Likewise.
61374         * modules/strtoumax (Makefile.am): Likewise.
61375         * modules/strverscmp (Makefile.am): Likewise.
61376         * modules/time_r (Makefile.am): Likewise.
61377         * modules/timegm (Makefile.am): Likewise.
61378         * modules/tmpfile-safer (Makefile.am): Likewise.
61379         * modules/unistd-safer (Makefile.am): Likewise.
61380         * modules/unlinkdir (Makefile.am): Likewise.
61381         * modules/userspec (Makefile.am): Likewise.
61382         * modules/utime (Makefile.am): Likewise.
61383         * modules/utimecmp (Makefile.am): Likewise.
61384         * modules/utimens (Makefile.am): Likewise.
61385         * modules/vasnprintf (Makefile.am): Likewise.
61386         * modules/vasprintf (Makefile.am): Likewise.
61387         * modules/vsnprintf (Makefile.am): Likewise.
61388         * modules/xalloc (Makefile.am): Likewise.
61389         * modules/xgetcwd (Makefile.am): Likewise.
61390         * modules/xnanosleep (Makefile.am): Likewise.
61391         * modules/xreadlink (Makefile.am): Likewise.
61392         * modules/xstrtod (Makefile.am): Likewise.
61393         * modules/xstrtol (Makefile.am): Likewise.
61394         * modules/xstrtold (Makefile.am): Likewise.
61395         * modules/yesno (Makefile.am): Likewise.
61396
61397 2006-10-12  Jim Meyering  <jim@meyering.net>
61398
61399         * m4/getloadavg.m4: Revert the change below.
61400
61401         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61402         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61403         fail with a symlink, which is what coreutils' ./bootstrap now
61404         creates by default.
61405
61406 2006-10-12  Bruno Haible  <bruno@clisp.org>
61407
61408         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61409         mingw.
61410         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61411         MSVC and mingw explicitly.
61412
61413 2006-10-11  Simon Josefsson  <jas@extundo.com>
61414             Bruno Haible  <bruno@clisp.org>
61415
61416         Add support for multiple gnulib-tool invocations in the scope of a
61417         single configure.ac file.
61418         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61419         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61420         with the same contents as the _LIBADD variable.
61421         (func_emit_initmacro_start, func_emit_initmacro_end,
61422         func_emit_initmacro_done): New functions.
61423         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61424         gl_LIBOBJS and gl_LTLIBOBJS.
61425
61426 2006-10-11  Bruno Haible  <bruno@clisp.org>
61427
61428         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61429         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61430         autoreconf. Instead, invoke autopoint explicitly but move back the
61431         *.m4 files from gnulib.
61432
61433 2006-10-11  Bruno Haible  <bruno@clisp.org>
61434
61435         * gnulib-tool (func_usage): Make module names after --create-testdir
61436         optional.
61437         (func_create_testdir): If no module was specified, use nearly all
61438         modules.
61439
61440 2006-10-12  Jim Meyering  <jim@meyering.net>
61441
61442         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61443         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61444         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61445         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61446         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61447         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61448         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61449         (fts_set_stat_required): New function.
61450         (fts_open): Defer the calls to fts_stat, if possible or requested.
61451         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61452         into fts_stat itself.
61453         (fts_read): Perform any required (deferred) fts_stat call.
61454         (fts_build): Likewise, for the directory we're about to open and read.
61455         In the readdir loop, carefully decide whether each entry will require
61456         an eventual call to fts_stat, using dirent.d_type info if available.
61457         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61458         a command line argument into this function.  Update all callers.
61459         Map a return value of FTS_DOT to FTS_D for a command line argument.
61460         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61461         Thanks to Miklos Szeredi for his tenacity and for the initial
61462         bug report about "find" failing on a FUSE-based file system.
61463
61464         * lib/fts.c (fts_open): Use consistent indentation.
61465
61466 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61469         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61470         reported by Jim Meyering.  All uses of cache variables renamed
61471         to match Autoconf's.
61472         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61473         the other one.
61474
61475         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61476         Fix misspelling in diagnostic.
61477
61478 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61481         defined.  Problem reported by Matthew Woehlke.
61482
61483         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61484         Add support for Tandem NonStop R series.
61485         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61486         Use new macro.
61487
61488         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61489         (has_trailing_slash): Omit size arg; all callers changed.
61490         Omit 'inline', since it doesn't help performance and we'd
61491         need to configure it.
61492         Don't count //, ///, etc. as having a trailing slash.
61493         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61494         (rpl_rename_dest_slash): On failure, use rename's errno rather
61495         than (in some cases) an incorrect or junk errno.
61496         Simplify code by removing need to compute length; this does
61497         cause it to make two passes instead of one over the file name,
61498         but it's worth it.
61499
61500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61501         change, since Autoconf's version may no longer be appropriate now
61502         that we are using CVS Autoconf's version.  Add support for Tandem.
61503
61504 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61505             Bruno Haible  <bruno@clisp.org>
61506
61507         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61508         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61509         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61510         gl_AC_TYPE_LONG_LONG.
61511
61512         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61513         instead of HAVE_LONG_LONG.
61514         * lib/printf-args.c (printf_fetchargs): Likewise.
61515         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61516         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61517         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61518         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61519         gl_AC_TYPE_LONG_LONG.
61520
61521 2006-10-11  Bruno Haible  <bruno@clisp.org>
61522
61523         * m4/longlong.m4: Add comments.
61524         * m4/ulonglong.m4: Likewise.
61525
61526 2006-10-10  Bruno Haible  <bruno@clisp.org>
61527
61528         Make it possible to #define stpcpy, strdup to aliases.
61529         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61530         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61531
61532 2006-10-10  Bruno Haible  <bruno@clisp.org>
61533
61534         Make it possible to #define gcd to an alias.
61535         * lib/gcd.c: Include config.h.
61536
61537 2006-10-10  Bruno Haible  <bruno@clisp.org>
61538
61539         Make it possible to #define c_isascii to an alias.
61540         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61541         defined. Undefine the macros before defining them, to avoid gcc
61542         warnings.
61543         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61544         define NO_C_CTYPE_MACROS early.
61545
61546 2006-10-10  Bruno Haible  <bruno@clisp.org>
61547
61548         Make it possible to #define set_program_name to an alias.
61549         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61550         ENABLE_RELOCATABLE early.
61551
61552 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61555         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61556         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61557         More generally, don't assume that 64-bit signed int is available
61558         if unsigned int is, and vice versa.
61559         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61560         unsigned symbols, not on their signed counterparts.
61561         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61562         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61563         (UINT64_C, UINTMAX_C):
61564         Likewise.
61565         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61566         unsigned counterparts.
61567         (Have_long_long, Unsigned): New macros.
61568         (Int): Renamed from INT.
61569         (strtoimax): Use the new macros.
61570         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61571         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61572         * modules/inttypes (inttypes.h): Substitute
61573         HAVE_UNSIGNED_LONG_LONG_INT.
61574         * modules/stdint (stdint.h): Likewise.
61575         (Files): Add m4/ulonglong.m4.
61576
61577 2006-10-10  Bruno Haible  <bruno@clisp.org>
61578
61579         Fix a gcc -Wshadow warning.
61580         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61581         to 'bucket'.
61582         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61583         gl_linked_indexof_from_to): Likewise.
61584         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61585         Likewise.
61586         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61587         Likewise.
61588         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61589         Reported by Eric Blake.
61590
61591 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61594         for NetBSD.  Problem reported by Bruno Haible.
61595
61596 2006-10-09  Jim Meyering  <jim@meyering.net>
61597
61598         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61599         Patch from Bruno Haible.
61600
61601 2006-10-09  Jim Meyering  <jim@meyering.net>
61602
61603         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61604         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61605         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61606
61607 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         Don't include <config.h> twice; this doesn't work in some cases,
61610         e.g., when config.h has "#define intmax_t long long int" and
61611         we include <config.h>, <inttypes.h>, <config.h> in that order.
61612         Problem reported by Matthew Woehlke in:
61613         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61614         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61615         * lib/fts-cycle.c: Don't include config.h.
61616         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61617         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61618         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61619         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61620         inttypes.h.
61621         * lib/xstrtoumax.c: Likewise.
61622         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61623         __strtol and the like, so that this module is more like its siblings.
61624         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61625         Remove; no longer needed now that we assume gnulib inttypes.h.
61626
61627 2006-10-08  Bruno Haible  <bruno@clisp.org>
61628
61629         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61630         option.
61631
61632 2006-10-07  Jim Meyering  <jim@meyering.net>
61633
61634         * modules/inttypes (inttypes.h): Revert what seems to have been
61635         an inadvertent part of today's change: use "|", not "/" in the
61636         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61637
61638 2006-10-07  Bruno Haible  <bruno@clisp.org>
61639
61640         * modules/sublist: New file.
61641
61642 2006-10-07  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61645         * modules/argz (argz.h): Likewise.
61646         * modules/arpa_inet (arpa/inet.h): Likewise.
61647         * modules/byteswap (byteswap.h): Likewise.
61648         * modules/configmake (configmake.h): Likewise.
61649         * modules/fcntl (fcntl.h): Likewise.
61650         * modules/fnmatch (fnmatch.h): Likewise.
61651         * modules/getopt (getopt.h): Likewise.
61652         * modules/glob (glob.h): Likewise.
61653         * modules/inttypes (inttypes.h): Likewise.
61654         * modules/netinet_in (netinet/in.h): Likewise.
61655         * modules/poll (poll.h): Likewise.
61656         * modules/stdbool (stdbool.h): Likewise.
61657         * modules/stdint (stdint.h): Likewise.
61658         * modules/sys_select (sys/select.h): Likewise.
61659         * modules/sys_socket (sys/socket.h): Likewise.
61660         * modules/sys_stat (sys/stat.h): Likewise.
61661         * modules/sysexits (sysexits.h): Likewise.
61662         * modules/unistd (unistd.h): Likewise.
61663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61664         Add a "DO NOT EDIT" comment to the generated file.
61665         (func_import): Likewise for gnulib-comp.m4.
61666
61667 2006-10-07  Bruno Haible  <bruno@clisp.org>
61668
61669         * lib/gl_sublist.h: New file.
61670         * lib/gl_sublist.c: New file.
61671
61672 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61675         name (relative to the original working directory) and the file
61676         name component (relative to the temporary working directory).  All
61677         callers changed.
61678         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61679         * lib/mkdir-p.c (make_dir_parents): Likewise.
61680         * lib/mkdir-p.h (make_dir_parents): Likewise.
61681
61682 2006-10-06  Eric Blake  <ebb9@byu.net>
61683
61684         Define several macros for use by the clean-temp module.
61685         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61686         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61687         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61688
61689         * lib/clean-temp.h (close_stream_temp): New declaration.
61690         * lib/clean-temp.c (includes): Pull in headers according to what
61691         other modules are in use.
61692         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61693
61694 2006-10-06  Bruno Haible  <bruno@clisp.org>
61695
61696         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61697         instead of fopen, fwriteerror.
61698
61699 2006-10-06  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61702         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61703         int.
61704         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61705         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61706         Return an error indicator.
61707         Suggested by Eric Blake.
61708
61709 2006-10-06  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61712         Reported by Eric Blake.
61713
61714 2006-10-06  Bruno Haible  <bruno@clisp.org>
61715
61716         * modules/closeout (Description): Mention stderr too.
61717
61718 2006-10-06  Bruno Haible  <bruno@clisp.org>
61719         and Paul Eggert  <eggert@cs.ucla.edu>
61720
61721         * lib/closeout.c (close_stdout): Also close stderr.
61722         * lib/closeout.h: Update comment.
61723
61724 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61727         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61728         * lib/dirchownmod.c: Include lchown.h.
61729         * lib/lchown.c: Don't include files that lchown.h now includes.
61730         Don't declare chown, since lchown.h now does that.
61731         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61732         (lchown): Define to rpl_chown if lchown is declared but
61733         does not exist.  Declare using a prototype if lchown is not
61734         declared.  Add a copyright notice.
61735         * lib/mkstemp.h: Include <unistd.h>.
61736         * lib/openat.c: Include lchown.h.
61737
61738         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61739         we now test for that separately.
61740         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61741         rather than O_NOFOLLOW, when testing whether it's possible to
61742         avoid a race condition reliably.
61743         * lib/savewd.c (savewd_chdir): Likewise.
61744
61745         Remove macros that are no longer needed now that stdint.h is
61746         reliable.
61747         * lib/fsusage.c (UINTMAX_MAX): Remove.
61748         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61749         * lib/utimecmp.c (SIZE_MAX): Remove.
61750
61751         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61752
61753         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61754         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61755         O_NOATIME works.
61756
61757 2006-10-05  Bruno Haible  <bruno@clisp.org>
61758
61759         * lib/gl_list.h (gl_sortedlist_search_from_to,
61760         gl_sortedlist_indexof_from_to): New declarations.
61761         (gl_list_implementation): New fields sortedlist_search_from_to,
61762         sortedlist_indexof_from_to.
61763         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61764         inline functions.
61765         * lib/gl_list.c (gl_sortedlist_search_from_to,
61766         gl_sortedlist_indexof_from_to): New functions.
61767         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61768         function.
61769         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61770         (gl_array_sortedlist_search_from_to): New function.
61771         (gl_array_list_implementation): Update.
61772         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61773         function.
61774         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61775         (gl_carray_sortedlist_search_from_to): New function.
61776         (gl_carray_list_implementation): Update.
61777         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61778         gl_linked_sortedlist_indexof_from_to): New functions.
61779         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61780         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61781         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61782         gl_tree_sortedlist_indexof_from_to): New functions.
61783         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61784         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61785         Update.
61786         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61787         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61788         Update.
61789
61790 2006-10-05  Bruno Haible  <bruno@clisp.org>
61791
61792         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61793         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61794         (struct gl_list_implementation): Add fields search_from_to,
61795         indexof_from_to. Remove fields search, indexof.
61796         (gl_list_search): Use the search_from_to method.
61797         (gl_list_search_from, gl_list_search_from_to): New functions.
61798         (gl_list_indexof): Use the indexof_from_to method.
61799         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61800         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61801         (gl_list_search_from, gl_list_search_from_to): New functions.
61802         (gl_list_indexof): Use the indexof_from_to method.
61803         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61804         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61805         gl_array_indexof. Add start_index, end_index arguments.
61806         (gl_array_search_from_to): Renamed from gl_array_search. Add
61807         start_index, end_index arguments.
61808         (gl_array_remove, gl_array_list_implementation): Update.
61809         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61810         gl_carray_indexof. Add start_index, end_index arguments.
61811         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61812         start_index, end_index arguments.
61813         (gl_carray_remove, gl_carray_list_implementation): Update.
61814         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61815         gl_linked_search. Add start_index, end_index arguments.
61816         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61817         start_index, end_index arguments.
61818         (gl_linked_remove): Update.
61819         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61820         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61821         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61822         field to 'size_t'.
61823         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61824         gl_tree_search. Add start_index, end_index arguments.
61825         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61826         start_index, end_index arguments.
61827         (gl_tree_remove): Update.
61828         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61829         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61830         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61831         function.
61832         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61833         gl_tree_search. Add start_index, end_index arguments.
61834         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61835         start_index, end_index arguments.
61836         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61837         Update.
61838         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61839
61840 2006-10-05  Bruno Haible  <bruno@clisp.org>
61841
61842         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61843
61844         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61845         fwriteerror_temp): New declarations.
61846         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61847         (descriptors): New variable.
61848         (cleanup): First, close the descriptors.
61849         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61850         fclose_temp, fwriteerror_temp): New functions.
61851
61852 2006-10-04  Jim Meyering  <jim@meyering.net>
61853
61854         * lib/fts.c (fts_open): Tiny comment change.
61855
61856 2006-10-04  Bruno Haible  <bruno@clisp.org>
61857
61858         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61859         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61860         gl_LOCK_BODY.
61861         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61862         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61863         gl_LOCK_EARLY_BODY.
61864         (gl_LOCK): Require gl_LOCK_BODY.
61865
61866 2006-10-04  Bruno Haible  <bruno@clisp.org>
61867
61868         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61869         (gl_oset_search_atleast): New declaration.
61870         (struct gl_oset_implementation): Add field 'search_atleast'.
61871         (gl_oset_search_atleast): New inline function.
61872         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61873         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61874         (gl_array_oset_implementation): Update.
61875         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61876         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61877         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61878
61879 2006-10-04  Bruno Haible  <bruno@clisp.org>
61880
61881         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61882
61883 2006-10-03  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61886         from gl_avltreehash_list_implementation.
61887
61888 2006-10-03  Bruno Haible  <bruno@clisp.org>
61889
61890         * lib/gl_oset.c (gl_oset_add): Fix return type.
61891
61892 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61893
61894         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61895
61896 2006-10-02  Eric Blake  <ebb9@byu.net>
61897
61898         * modules/strnlen (Depends-on): Add extensions.
61899
61900 2006-10-02  Eric Blake  <ebb9@byu.net>
61901
61902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61903         definition in 2.60+.
61904
61905 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61906
61907         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61908         checks.
61909
61910 2006-10-02  Bruno Haible  <bruno@clisp.org>
61911
61912         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61913         to the AUTOMAKE_OPTIONS.
61914         Reported by Jim Meyering.
61915
61916 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         Work around bug in Solaris 10 /proc file system:
61919         /proc/self/fd/NNN/.. isn't the parent directory of
61920         the directory whose file descriptor is NNN.  This needs to
61921         be worked around at run time, not compile time, since a
61922         program might be built on Solaris 8, where things work, and
61923         run on Solaris 10.
61924         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61925         to use the following interface instead:
61926         (OPENAT_BUFFER_SIZE): New macro.
61927         (openat_proc_name): New function.
61928         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61929         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61930         Likewise.
61931         * lib/openat-proc.c: New file.
61932         * modules/openat (Files): Add lib/openat-proc.c.
61933         (Depends-on): Add same-inode, stdbool.
61934         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61935
61936 2006-09-29  Bruno Haible  <bruno@clisp.org>
61937
61938         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61939         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61940         argument. Set stdout_closed before testing for ferror, not after.
61941         (fwriteerror, fwriteerror_no_ebadf): New functions.
61942
61943 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61944
61945         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61946
61947 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61948
61949         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61950         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61951
61952 2006-09-28  Jim Meyering  <jim@meyering.net>
61953
61954         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61955         Include <unistd.h>.
61956
61957 2006-09-28  Bruno Haible  <bruno@clisp.org>
61958
61959         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61960         * modules/linkedhash-list (Depends-on): Likewise.
61961         * modules/rbtreehash-list (Depends-on): Likewise.
61962
61963 2006-09-28  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/strndup.h: Simplify the redefinition of strndup.
61966         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61967         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61968
61969 2006-09-28  Bruno Haible  <bruno@clisp.org>
61970
61971         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61972         * lib/gl_linkedhash_list.c: Likewise.
61973         * lib/gl_rbtreehash_list.c: Likewise.
61974
61975 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61978         getaddrinfo.
61979
61980         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61981         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61982         it causes <stdio_ext.h> to cause a compile-time error.
61983         Problem reported by Nelson H. F. Beebe.
61984         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61985         of HAVE_DECL___PENDING.
61986
61987         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61989         declaration.
61990
61991 2006-09-27  Jim Meyering  <jim@meyering.net>
61992
61993         This file could end up with a definition for a function
61994         named __strndup, rather than rpl_strndup on a system with
61995         incomplete weak_alias support.
61996         * lib/strndup.c (strndup): Rename from __strndup.
61997         Remove #defines that used to map __strndup to strndup.
61998         Don't use K&R prototypes.
61999         Remove LIBC-related code, since this file is not sync'd with glibc.
62000         * lib/strndup.h: Revamp, accordingly.
62001         * m4/strndup.m4: Modernize.
62002
62003 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62004
62005         * modules/savewd (Depends-on): Add 'raise'.
62006         * lib/savewd.c: Include <signal.h>, for 'raise'.
62007
62008 2006-09-26  Jim Meyering  <jim@meyering.net>
62009
62010         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62011         when we detect Darwin 8.7.0's acl_get_file bug.
62012         Rearrange to perform the new (below) run-test while $LIBS
62013         contains any acl-related library.  Set USE_ACL at the end.
62014         (gl_ACL_GET_FILE): New function.
62015
62016 2006-09-26  Eric Blake  <ebb9@byu.net>
62017
62018         * lib/verror.c: Include <config.h> unconditionally.
62019
62020 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         * modules/clock-time (Maintainer): Add self.
62023         * modules/getlogin_r (Depends-on): Add extensions.
62024
62025 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62026
62027         * modules/clock-time: New module.
62028         * modules/nanosleep (Depends-on): Add clock-time.
62029         * modules/gethrxtime (Depends-on): Likewise.
62030         * modules/gettime (Depends-on): Likewise.
62031         * modules/settime (Depends-on): Likewise.
62032
62033         * modules/fts-lgpl: Depend on openat.
62034         * modules/mkancesdirs: Depend on savewd.
62035         * modules/mkdir-p: Likewise.
62036
62037 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62038
62039         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62040
62041         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62042         `gl_have_arbitrary_file_name_length_limit' to
62043         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62044         actually works between configure runs.
62045
62046 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62047             Bruno Haible  <bruno@clisp.org>
62048
62049         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62050
62051 2006-09-25  Jim Meyering  <jim@meyering.net>
62052
62053         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62054         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62055
62056 2006-09-25  Eric Blake  <ebb9@byu.net>
62057
62058         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62059         exec's in 2006-09-18 patch when shuffling fds.
62060
62061 2006-09-25  Bruno Haible  <bruno@clisp.org>
62062
62063         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62064         Reported by Jim Meyering.
62065
62066 2006-09-24  Jim Meyering  <jim@meyering.net>
62067
62068         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62069         compare a pointer against a literal "0".  That caused failures with
62070         at least HP-UX's hpcc.
62071
62072 2006-09-22  Simon Josefsson  <jas@extundo.com>
62073
62074         * modules/gc-sha1:
62075         * modules/gc-md4:
62076         * modules/gc-hmac-sha1:
62077         * modules/gc-hmac-md5:
62078         * modules/gc-des:
62079         * modules/gc-arcfour: Distribute more files.
62080
62081 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62082
62083         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62084         (gl_linked_iterator_from_to): Initialize struct completely.
62085         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62086         (gl_tree_iterator_from_to): Likewise
62087         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62088         * lib/gl_array_list.c [lint] (gl_array_iterator)
62089         (gl_array_iterator_from_to): Likewise.
62090         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62091         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62092         (gl_carray_iterator_from_to): Likewise.
62093
62094         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62095         * lib/md4.c (md4_process_block): Remove unused variable.
62096         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62097         parentheses for clarity.
62098
62099 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62100
62101         * modules/bison-i18n (Depends-on): Add gettext.
62102
62103 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62104
62105         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62106         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62107         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62108         also add missing comma that caused broken test.
62109         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62110         stdlib.h, for `abort'.
62111         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62112         variables.
62113         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62114         include unistd.h if present, for `rmdir'.
62115         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62116         variables.
62117         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62118         in the process include standard headers for prototypes.
62119         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62120         gets declared on GNU/Linux.
62121         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62122         unistd.h, for `rmdir'.
62123         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62124
62125         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62126         always true.
62127         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62128
62129         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62130
62131 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62132
62133         * gnulib-tool (func_version): Create output all at once.  This
62134         may help avoid triggering unnecessary SIGPIPEs, and at any
62135         rate it doesn't hurt.
62136
62137 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62138             Bruno Haible  <bruno@clisp.org>
62139
62140         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62141         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62142         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62143
62144         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62145         (gl_FUNC_VASPRINTF): Invoke it.
62146
62147 2006-09-22  Bruno Haible  <bruno@clisp.org>
62148
62149         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62150         getloadavg.c as first argument.
62151
62152 2006-09-22  Bruno Haible  <bruno@clisp.org>
62153
62154         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62155         at the beginning of the gl_INIT macro.
62156         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62157         gl_GETLOADAVG.
62158
62159 2006-09-22  Bruno Haible  <bruno@clisp.org>
62160
62161         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62162         module.
62163         Suggested by Ralf Wildenhues.
62164
62165 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         Import this patch from libc:
62168
62169         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62170
62171         * lib/regex_internal.c (re_string_reconstruct): Handle
62172         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62173         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62174         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62175         re_string_context_at.
62176
62177         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62178         now requires it.
62179         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62180         gl_REGEX now does it for us.
62181         (gl_REGEX): Add test taken from
62182         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62183
62184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62185         Check that large offsets work.  Modernize Autoconf usages.
62186         Prefer "yes" to mean a good thing rather than a bad.
62187         Don't put "#define mkstemp" in config.h, as this might interfere
62188         with standard system headers that "#define mkstemp mkstemp64".
62189
62190         * modules/mkstemp (Depends-on): Add extensions, so that
62191         mkstemp is visible on some platforms.
62192         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62193         (Include): Change to "mkstemp.h" from <stdlib.h>.
62194         (Files): Add mkstemp.h.
62195
62196         * lib/mkstemp.h: New file, since some standard headers
62197         #define mkstemp.
62198         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62199         Include "mkstemp.h".
62200         Make the _LIBC code resemble glibc original more,
62201         e.g., use K&R style.
62202         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62203         (mkstemp): Remove, since mkstemp.h does this for us.
62204         * lib/stdlib--.h: Include mkstemp.h.
62205
62206         Import this patch from libc:
62207
62208         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62209
62210         * lib/tempname.c (__gen_tempname): Change attempts_min
62211         into a macro.  Use preprocessor to decide how to initialize
62212         attempts [Coverity CID 67].
62213
62214 2006-09-20  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/mkdtemp.c: Import from libc.
62217         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62218                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62219                 attempts_min into a macro.  Use preprocessor to decide how to
62220                 initialize attempts [Coverity CID 67].
62221         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62222                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62223                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62224
62225 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62226
62227         * gnulib-tool (func_exit): New function, to allow to pass the
62228         exit status portably through the trap.  Use everywhere.
62229         (--help, --version): Signal a write error.
62230         (trap): catch SIGPIPE, for write errors.
62231         Exit at the end of the trap, with the correct exit status.
62232
62233 2006-09-19  Karl Berry  <karl@gnu.org>
62234
62235         * doc/gnulib.texi: note about the license texinfo files.
62236
62237 2006-09-19  Eric Blake  <ebb9@byu.net>
62238
62239         * gnulib-tool: Avoid space-tab.
62240
62241 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62244         that prevented coreutils 6.1 from building.  Problem reported
62245         by Petter Reinholdtsen.
62246
62247 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * gnulib-tool (avoidlist): Fix typo that broke options like
62250         --avoid=lock that are used by coreutils bootstrap.
62251
62252 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62253
62254         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62255         more systematically.
62256
62257 2006-09-18  Jim Meyering  <jim@meyering.net>
62258
62259         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62260
62261 2006-09-18  Bruno Haible  <bruno@clisp.org>
62262
62263         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62264
62265 2006-09-18  Bruno Haible  <bruno@clisp.org>
62266
62267         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62268         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62269         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62270         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62271         * m4/gettext.m4: Require autoconf >= 2.52.
62272         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62273         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62274         of gl_cv_header_inttypes_h.
62275
62276 2006-09-18  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/javaversion.c: Include configmake.h.
62279
62280 2006-09-18  Bruno Haible  <bruno@clisp.org>
62281
62282         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62283         avoid that the while loops be executed in a subshell.
62284
62285 2006-09-18  Bruno Haible  <bruno@clisp.org>
62286
62287         * MODULES.html.sh (func_module): Break long lines.
62288         Suggested by Bruce Korb <bkorb@gnu.org>.
62289
62290 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62291
62292         Speed up by a factor of 1.12.
62293         * gnulib-tool (nl): New variable.
62294         (func_import): Rewrite include directive extraction to only read each
62295         directive once.
62296
62297 2006-09-17  Bruno Haible  <bruno@clisp.org>
62298
62299         * modules/javaversion (Makefile.am): Remove DEFS setting.
62300         (Depends-on): Add configmake, for PKGDATADIR definition.
62301
62302 2006-09-17  Bruno Haible  <bruno@clisp.org>
62303
62304         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62305
62306 2006-09-17  Bruno Haible  <bruno@clisp.org>
62307
62308         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62309         (func_modules_transitive_closure, func_modules_add_dummy,
62310         func_modules_to_filelist, func_import, func_create_testdir,
62311         func_create_megatestdir, ...): Use it wherever possible.
62312         Suggested by Ralf Wildenhues.
62313
62314 2006-09-16  Karl Berry  <karl@gnu.org>
62315
62316         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62317         to avoid sectioning errors.
62318         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62319         [ifinfo]: blank line after @center-ed titles.
62320         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62321         Spell FSF address consistently with others.
62322         (These changes approved by rms.)
62323
62324 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62325
62326         Speed up by a factor of 1.61.
62327         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62328         already checked module names again.
62329
62330 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62331
62332         Speed up by a factor of 1.13.
62333         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62334         for new_files, and the input to func_add_or_update.
62335
62336 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62337
62338         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62339         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62340
62341 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62342
62343         * modules/mkancesdirs (Depends-on): Add fcntl.
62344         * modules/savewd: New file.
62345         * MODULES.html.sh (File system functions): Add savewd.
62346
62347         * modules/configmake (Makefile.am): Add support for the
62348         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62349
62350 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62351
62352         * m4/savewd.m4: New file.
62353
62354 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62357         (dirchownmod): New arg FD.  All callers changed.
62358         Use FD rather than opening the directory ourself, as opening is
62359         now the caller's responsibility.
62360         * lib/dirchownmod.h: Likewise.
62361         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62362         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62363         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62364         (test_dir): Remove.
62365         (mkancesdirs): Return length of prefix of FILE that has already
62366         been made, or -2 if there is a child doing the work.  Redo
62367         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62368         ".", and treat ".." specially since it might stray back into
62369         already-created areas.  Use a subprocess if necessary.  New arg
62370         WD; all users changed.  MAKE_DIR function should now return 1
62371         if it creates a directory that is not readable.  Return -2 if
62372         a child process is spun off.
62373         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62374         Adjust signature to match code.
62375         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62376         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62377         all users changed.
62378         * lib/savewd.c, lib/savewd.h: New files.
62379
62380 2006-09-15  Jim Meyering  <jim@meyering.net>
62381
62382         * modules/rename-dest-slash: New module.
62383         * MODULES.html.sh (posix_compat): Add it here.
62384
62385         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62386
62387 2006-09-15  Jim Meyering  <jim@meyering.net>
62388
62389         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62390         file.
62391
62392         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62393
62394 2006-09-15  Jim Meyering  <jim@meyering.net>
62395
62396         * lib/rename-dest-slash.c (has_trailing_slash): Use
62397         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62398         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62399         test before testing whether SRC is a directory.
62400         Suggestions from Bruno Haible.
62401
62402         Avoid a warning about an unused variable.
62403         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62404         into the #ifdef block where it's used.
62405
62406         * lib/rename-dest-slash.c: New file.
62407
62408 2006-09-14  Bruno Haible  <bruno@clisp.org>
62409
62410         * lib/allocsa.c: Include <config.h> unconditionally.
62411         * lib/asnprintf.c: Likewise.
62412         * lib/asprintf.c: Likewise.
62413         * lib/c-strcasecmp.c: Likewise.
62414         * lib/c-strcasestr.c: Likewise.
62415         * lib/c-strncasecmp.c: Likewise.
62416         * lib/c-strstr.c: Likewise.
62417         * lib/classpath.c: Likewise.
62418         * lib/clean-temp.c: Likewise.
62419         * lib/concatpath.c: Likewise.
62420         * lib/copy-file.c: Likewise.
62421         * lib/csharpcomp.c: Likewise.
62422         * lib/csharpexec.c: Likewise.
62423         * lib/execute.c: Likewise.
62424         * lib/fatal-signal.c: Likewise.
62425         * lib/findprog.c: Likewise.
62426         * lib/fwriteerror.c: Likewise.
62427         * lib/gl_array_list.c: Likewise.
62428         * lib/gl_array_oset.c: Likewise.
62429         * lib/gl_avltree_list.c: Likewise.
62430         * lib/gl_avltree_oset.c: Likewise.
62431         * lib/gl_avltreehash_list.c: Likewise.
62432         * lib/gl_carray_list.c: Likewise.
62433         * lib/gl_linked_list.c: Likewise.
62434         * lib/gl_linkedhash_list.c: Likewise.
62435         * lib/gl_list.c: Likewise.
62436         * lib/gl_oset.c: Likewise.
62437         * lib/gl_rbtree_list.c: Likewise.
62438         * lib/gl_rbtree_oset.c: Likewise.
62439         * lib/gl_rbtreehash_list.c: Likewise.
62440         * lib/imaxabs.c: Likewise.
62441         * lib/imaxdiv.c: Likewise.
62442         * lib/javacomp.c: Likewise.
62443         * lib/javaexec.c: Likewise.
62444         * lib/javaversion.c: Likewise.
62445         * lib/linebreak.c: Likewise.
62446         * lib/localcharset.c: Likewise.
62447         * lib/lock.c: Likewise.
62448         * lib/mbchar.c: Likewise.
62449         * lib/mbswidth.c: Likewise.
62450         * lib/mkdtemp.c: Likewise.
62451         * lib/pipe.c: Likewise.
62452         * lib/printf-args.c: Likewise.
62453         * lib/printf-parse.c: Likewise.
62454         * lib/progname.c: Likewise.
62455         * lib/progreloc.c: Likewise.
62456         * lib/readlink.c: Likewise.
62457         * lib/sh-quote.c: Likewise.
62458         * lib/stpcpy.c: Likewise.
62459         * lib/stpncpy.c: Likewise.
62460         * lib/strcasecmp.c: Likewise.
62461         * lib/strcasestr.c: Likewise.
62462         * lib/strcspn.c: Likewise.
62463         * lib/striconv.c: Likewise.
62464         * lib/strncasecmp.c: Likewise.
62465         * lib/strnlen1.c: Likewise.
62466         * lib/strstr.c: Likewise.
62467         * lib/strtok_r.c: Likewise.
62468         * lib/tls.c: Likewise.
62469         * lib/tmpdir.c: Likewise.
62470         * lib/unicodeio.c: Likewise.
62471         * lib/unsetenv.c: Likewise.
62472         * lib/vasnprintf.c: Likewise.
62473         * lib/vasprintf.c: Likewise.
62474         * lib/wait-process.c: Likewise.
62475         * lib/xallocsa.c: Likewise.
62476         * lib/xsetenv.c: Likewise.
62477         * lib/xstriconv.c: Likewise.
62478
62479 2006-09-13  Simon Josefsson  <jas@extundo.com>
62480
62481         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62482         that internally, suggested by Ralf Wildenhues
62483         <Ralf.Wildenhues@gmx.de>.
62484
62485 2006-09-13  Simon Josefsson  <jas@extundo.com>
62486
62487         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62488         @LIBOBJS@.
62489         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62490
62491 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62492
62493         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62494         longer worry about uses that don't define HAVE_CONFIG_H.
62495         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62496         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62497         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62498         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62499         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62500         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62501         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62502         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62503         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62504         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62505         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62506         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62507         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62508         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62509         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62510         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62511         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62512         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62513         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62514         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62515         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62516         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62517         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62518         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62519         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62520         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62521         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62522         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62523         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62524         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62525         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62526         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62527         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62528         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62529         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62530         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62531         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62532         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62533         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62534         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62535         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62536         Likewise.
62537
62538 2006-09-13  Eric Blake  <ebb9@byu.net>
62539
62540         * lib/getopt.c: Fix typo in last commit.
62541
62542 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62543
62544         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62545         dgettext.
62546
62547 2006-09-12  Jim Meyering  <jim@meyering.net>
62548
62549         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62550         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62551         Reported by Nelson H. F. Beebe.
62552
62553 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62554
62555         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62556         program_invocation_name and program_invocation_short_name are
62557         initialized.
62558         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62559         and program_invocation_short_name to argp.h, so they are visible
62560         to user programs.
62561         * lib/argp.h: Likewise
62562
62563 2006-09-10  Bruno Haible  <bruno@clisp.org>
62564
62565         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62566         m4/inttypes_h.m4, m4/uintmax_t.m4.
62567
62568 2006-09-10  Bruno Haible  <bruno@clisp.org>
62569
62570         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62571         gl_AC_TYPE_UINTMAX_T.
62572
62573 2006-09-10  Bruno Haible  <bruno@clisp.org>
62574
62575         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62576
62577 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62578
62579         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62580         convention.  Text proposed by Bruno Haible.
62581         (struct argp_option): Document the use of N_() wrappers.
62582
62583         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62584         '\v', and translate the two parts separately, instead of feeding
62585         the whole string to gettext.  This allows to exclude
62586         '\v' from the strings visible to the translator by writing doc
62587         strings as N_("..") "\v" N_("..").
62588
62589 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62590
62591         * config/srclist.txt: Undo latest change; the bug was fixed.
62592
62593 2006-09-09  Bruno Haible  <bruno@clisp.org>
62594
62595         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62596         assignments if building a library without libtool.
62597         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62598         in func_emit_lib_Makefile_am.
62599         (func_import): When building a static library libfoo.a, arrange to
62600         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62601         (func_create_testdir): Likewise.
62602         * modules/gc (configure.ac, Makefile.am): If building statically,
62603         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62604         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62605         * modules/striconv (configure.ac, Makefile.am): Likewise.
62606         Based on a suggestion by Ralf Wildenhues.
62607
62608 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62609
62610         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62611         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62612         Also:
62613
62614         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62615         Add year_2050_test to catch glibc bug 2821
62616         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62617
62618         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62619         Prefer #ifdef to #if.
62620
62621         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62622         Return from 'main' instead of calling 'exit'.
62623
62624 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62627         returned the maximum time_t value rather than (time_t) -1.
62628         Problem originally reported by William Bardwell
62629         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62630
62631         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62632         Moved to here ...
62633         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62634         ... from here.
62635
62636 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62637
62638         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62639         2821 is fixed.
62640
62641 2006-09-08  Jim Meyering  <jim@meyering.net>
62642
62643         Don't make generated files read-only.  That would bother too many
62644         people.  However, do retain the ability to work when targets are
62645         read-only: remove the destination and temporary files before writing
62646         them (when generated via sed or echo), or by using the -f option for
62647         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62648         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62649         * modules/byteswap, modules/configmake, modules/fcntl:
62650         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62651         * modules/localcharset, modules/netinet_in, modules/poll:
62652         * modules/stdbool, modules/stdint, modules/sys_select:
62653         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62654
62655 2006-09-08  Jim Meyering  <jim@meyering.net>
62656
62657         Avoid new build failure on FreeBSD 6.0.
62658         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62659         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62660         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62661
62662 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62663
62664         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62665
62666 2006-09-07  Jim Meyering  <jim@meyering.net>
62667
62668         Fix global typo in last change: use chmod u-w, not chmod u-x.
62669         Spotted by Paul Eggert and Bruce Korb.
62670         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62671         * modules/byteswap, modules/configmake, modules/fcntl:
62672         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62673         * modules/localcharset, modules/netinet_in, modules/poll:
62674         * modules/stdbool, modules/stdint, modules/sys_select:
62675         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62676
62677 2006-09-06  Jim Meyering  <jim@meyering.net>
62678
62679         Make generated files be read-only.
62680         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62681         Ensure that each generated file is now read-only.
62682         * modules/argz: Likewise.
62683         * modules/arpa_inet: Likewise.
62684         * modules/byteswap: Likewise.
62685         * modules/configmake: Likewise.
62686         * modules/fcntl: Likewise.
62687         * modules/fnmatch: Likewise.
62688         * modules/getopt: Likewise.
62689         * modules/glob: Likewise.
62690         * modules/inttypes: Likewise.
62691         * modules/netinet_in: Likewise.
62692         * modules/poll: Likewise.
62693         * modules/stdbool: Likewise.
62694         * modules/stdint: Likewise.
62695         * modules/sys_select: Likewise.
62696         * modules/sys_socket: Likewise.
62697         * modules/sys_stat: Likewise.
62698         * modules/sysexits: Likewise.
62699         * modules/localcharset: Same as above, but continue using temporary
62700         file named "t-$@" (why different?) rather than the "$@-t" used
62701         everywhere else.
62702
62703         * modules/sysexits (Makefile.am): Replace literal occurrences
62704         of "sysexit.h" more readable, and more consistent, "$@".
62705
62706 2006-09-06  Bruno Haible  <bruno@clisp.org>
62707
62708         * modules/striconv: New file.
62709         * modules/xstriconv: New file.
62710         * MODULES.html.sh (Internationalization functions): Add striconv,
62711         xstriconv.
62712
62713 2006-09-06  Bruno Haible  <bruno@clisp.org>
62714
62715         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62716         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62717         not using libtool correctly.
62718
62719 2006-09-06  Bruno Haible  <bruno@clisp.org>
62720
62721         * lib/striconv.h: New file.
62722         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62723         iconvstring.c.
62724         * lib/xstriconv.h: New file.
62725         * lib/xstriconv.c: New file.
62726
62727 2006-09-06  Bruno Haible  <bruno@clisp.org>
62728
62729         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62730         lib_..._LDFLAGS.
62731
62732 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62733
62734         * lib/argz_.h: Sync from Libtool.
62735
62736         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62737                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62738
62739         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62740
62741 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62742
62743         * modules/trim: New file.
62744
62745 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62746
62747         * lib/trim.h: New file.
62748         * lib/trim.c: New file.
62749
62750 2006-09-05  Bruno Haible  <bruno@clisp.org>
62751
62752         * MODULES.html.sh (String handling): Add trim.
62753
62754 2006-09-04  Karl Berry  <karl@gnu.org>
62755
62756         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62757         until next release.
62758
62759 2006-09-03  Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62762         correctly.
62763
62764 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62767         not gl_GETLOADAVG.  Omit unneeded semicolons.
62768         Problems reported by Ralf Wildenhues in
62769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62770         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62771         at the end, which is the usual gnulib style.
62772
62773         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62774         of doing all the work ourselves.
62775         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62776         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62777
62778 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62779
62780         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62781         Problem reported by Ralf Wildenhues in
62782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62783
62784         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62785         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62786
62787 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62790         yesterday's patch by changing test -n to test -z.
62791
62792 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62795         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62796         the former is now obsolescent.
62797
62798         * modules/chdir-long (Depends-on): Add fcntl.
62799
62800 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62803         obsolescent, and programs should use gnulib instead.
62804         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62805         but with prefixes changed.
62806
62807 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62810         or stdbool.h, because they might not exist while configuring.
62811
62812         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62813         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62814         does that for us.
62815         (O_DIRECTORY): Remove.
62816
62817 2006-08-31  Eric Blake  <ebb9@byu.net>
62818
62819         * gnulib-tool: Don't let emacs change spaces to TAB.
62820
62821 2006-08-31  Bruno Haible  <bruno@clisp.org>
62822
62823         * gnulib-tool: When calling func_import more than once, do it in a
62824         subshell.
62825         Reported by Eric Blake <ebb9@byu.net>.
62826
62827 2006-08-31  Bruno Haible  <bruno@clisp.org>
62828
62829         * gnulib-tool (nl): Remove variable.
62830         (sed_transform_lib_file): Use more robust test for config-h module.
62831         (func_import): Fix typo in 2006-08-25 patch.
62832
62833 2006-08-31  Bruno Haible  <bruno@clisp.org>
62834
62835         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62836         specified, augment Makefile.am variables instead of assigning them.
62837
62838 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         Work around a bug in both the Linux and SunOS 64-bit kernels:
62841         nanosleep mishandles sleeps for longer than 2**31 seconds.
62842         Problem reported by Frank v Waveren in
62843         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62845         Check for nanosleep bug.
62846         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62847
62848 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62849
62850         Work around a bug in both the Linux and SunOS 64-bit kernels:
62851         nanosleep mishandles sleeps for longer than 2**31 seconds.
62852         Problem reported by Frank v Waveren in
62853         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62854         * lib/nanosleep.c (BILLION): New constant.
62855         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62856         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62857         implementation.
62858
62859 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * modules/nanosleep (Depends-on): Add gettime.
62862
62863 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62864         and Simon Josefsson  <jas@extundo.com>
62865         and Oskar Liljeblad  <oskar@osk.mine.nu>
62866
62867         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62868         * gnulib-tool (func_import): New license type 'unmodifiable license
62869         text'.
62870         * modules/fdl: Use it.  Longer description.
62871         * module/gpl, module/lgpl: New files.
62872
62873 2006-08-30  Jim Meyering  <jim@meyering.net>
62874
62875         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62876         shadowing the parameter.
62877
62878 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62879
62880         Sync from Libtool:
62881
62882         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62883
62884         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62885         sharing with gnulib.  Report by Eric Blake.
62886
62887 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62888
62889         * modules/isapipe: New file.
62890         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62891
62892 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         * modules/configmake (Makefile.am): Add a comment, and omit
62895         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62896         by Bruno Haible.
62897
62898 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62899
62900         * m4/isapipe.m4: New file.
62901
62902 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62903
62904         * lib/isapipe.c, lib/isapipe.h: New files.
62905
62906 2006-08-29  Jim Meyering  <jim@meyering.net>
62907
62908         * modules/configmake (Makefile.am): Make configmake.h depend on
62909         Makefile.  Otherwise, a stale configmake.h could hang around.
62910
62911 2006-08-29  Eric Blake  <ebb9@byu.net>
62912
62913         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62914         resolution of upstream bug 3044.
62915
62916 2006-08-29  Bruno Haible  <bruno@clisp.org>
62917
62918         * modules/localcharset (Depends-on): Add configmake.
62919         (Makefile.am): Remove setting of LIBDIR through DEFS.
62920
62921 2006-08-29  Bruno Haible  <bruno@clisp.org>
62922
62923         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62924         defined.
62925
62926 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * modules/fcntl: New file.
62929         * modules/chdir-safer (Depends-on): Add fcntl.
62930         * modules/fts: Likewise.
62931         * modules/mkdir-p: Likewise.
62932
62933         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62934         This undoes the most recent change, since we're now addressing the
62935         problem in a different way.
62936
62937         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62938         into output, since the output might be called Makefile.am even
62939         if $makefile_name is something different.
62940         (func_import): Use $makefile_am rather than
62941         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62942         empty.
62943
62944         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62945
62946 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62947
62948         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62949         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62950         recent change to stdint.m4, since we're now addressing the problem in a
62951         different way.
62952
62953 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62954
62955         * m4/fcntl_h.m4: New file.
62956
62957 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62958
62959         * lib/fcntl_.h: New file.
62960         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62961         the fcntl module.
62962         * lib/dirchownmod.c: Likewise.
62963         * lib/fts.c: Likewise.
62964
62965         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62966         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62967         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62968         just before including <inttypes.h>, to avoid circular inclusion.
62969
62970 2006-08-28  Jim Meyering  <jim@meyering.net>
62971
62972         * doc/visibility.texi: Actually read and correct the grammar of the
62973         sentence affected by yesterday's change.
62974
62975 2006-08-28  Eric Blake  <ebb9@byu.net>
62976
62977         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62978         needs wrapper.
62979
62980 2006-08-28  Eric Blake  <ebb9@byu.net>
62981
62982         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62983
62984 2006-08-28  Eric Blake  <ebb9@byu.net>
62985
62986         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62987
62988 2006-08-28  Bruno Haible  <bruno@clisp.org>
62989
62990         * modules/c-strstr: New file, from GNU gettext.
62991         * MODULES.html.sh (String handling): Add c-strstr.
62992
62993 2006-08-28  Bruno Haible  <bruno@clisp.org>
62994
62995         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62996         macros.
62997         Reported by Eric Blake.
62998
62999 2006-08-28  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63002         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63003         * lib/vasprintf.c: Include errno.h, limits.h.
63004         (EOVERFLOW): New fallback definition.
63005         (vasprintf): Test here whether the string length is > INT_MAX.
63006         * lib/vsnprintf.c: Include errno.h, limits.h.
63007         (EOVERFLOW): New fallback definition.
63008         (vsnprintf): Fix bug when generated string was too long for the buffer.
63009         Test here whether the string length is > INT_MAX.
63010
63011 2006-08-28  Bruno Haible  <bruno@clisp.org>
63012
63013         * lib/inttypes_.h (SCNX*): Remove definitions.
63014         Reported by Eric Blake.
63015
63016 2006-08-28  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/c-strstr.h: New file, from GNU gettext.
63019         * lib/c-strstr.c: New file, from GNU gettext.
63020
63021 2006-08-28  Bruno Haible  <bruno@clisp.org>
63022
63023         * gnulib-tool: Reorder some statements.
63024
63025 2006-08-28  Bruno Haible  <bruno@clisp.org>
63026
63027         * gnulib-tool: New option --makefile-name.
63028         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63029         $makefile_name.
63030         (func_import): Write $makefile_name to the cache file, and read it from
63031         there unless explicitly specified. Use $makefile_name as file name
63032         instead of Makefile.am. Adjust the recommendations accordingly.
63033
63034 2006-08-28  Bruno Haible  <bruno@clisp.org>
63035
63036         * gnulib-tool (func_verify_module): Check against misapplying patch.
63037
63038 2006-08-28  Bruno Haible  <bruno@clisp.org>
63039
63040         * gnulib-tool (func_relativize, func_relconcat): New functions.
63041         Give an error if --local-dir is given with --update.
63042         Remove trailing slashes from $local_gnulib_dir.
63043         (func_import): Store the relativized $local_gnulib_dir in
63044         gnulib-cache.m4, and read it from there if not specified explicitly.
63045
63046 2006-08-28  Bruno Haible  <bruno@clisp.org>
63047
63048         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63049         is the current directory. Respect also $local_gnulib_dir.
63050
63051 2006-08-28  Bruno Haible  <bruno@clisp.org>
63052             Simon Josefsson  <jas@extundo.com>
63053
63054         BeOS portability.
63055         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63056
63057 2006-08-27  Jim Meyering  <jim@meyering.net>
63058
63059         * doc/visibility.texi: Remove duplicate word: "pointer".
63060
63061 2006-08-26  Bruno Haible  <bruno@clisp.org>
63062
63063         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63064         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63065         (Makefile.am): Create inttypes.h from inttypes_.h.
63066         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63067
63068         * modules/imaxabs: New file.
63069
63070         * modules/imaxdiv: New file.
63071
63072 2006-08-26  Bruno Haible  <bruno@clisp.org>
63073
63074         * m4/inttypes.m4: New file.
63075         * m4/_inttypes_h.m4: Remove file.
63076         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63077         PRI_MACROS_BROKEN.
63078         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63079
63080         * m4/imaxabs.m4: New file.
63081
63082         * m4/imaxdiv.m4: New file.
63083
63084 2006-08-26  Bruno Haible  <bruno@clisp.org>
63085
63086         * lib/inttypes_.h: New file.
63087         * lib/inttypes.h: Remove file.
63088         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63089
63090         * lib/imaxabs.c: New file.
63091
63092         * lib/imaxdiv.c: New file.
63093
63094 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         New config-h module, so that "make" output needn't be cluttered
63097         by -DHAVE_CONFIG_H.
63098         * MODULES.html.sh (Support for building libraries and executables):
63099         Add config-h.
63100         * modules/config-h: New file.
63101         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63102         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63103         the config-h module is used.
63104
63105         New configmake module, so that "make" output needn't be cluttered
63106         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63107         * MODULES.html.sh (Support for building libraries and executables):
63108         Add configmake.
63109         * modules/configmake: New file.
63110
63111 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63112
63113         * m4/config-h.m4: New file.
63114
63115 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         * config/srclist.txt: Add elisp-comp.
63118
63119 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63120
63121         * MODULES.html.sh (Support for building libraries and executables):
63122         Add elisp-comp.
63123         * build-aux/elisp-comp: New file.
63124         * modules/elisp-comp: New file.
63125
63126 2006-08-24  Bruno Haible  <bruno@clisp.org>
63127
63128         * gnulib-tool (func_create_testdir): Use non-default values of
63129         sourcebase and m4base.
63130
63131 2006-08-24  Bruno Haible  <bruno@clisp.org>
63132
63133         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63134         HTML structure.
63135
63136 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         * modules/openat (Depends-on): Add lchown.
63139
63140 2006-08-23  Bruno Haible  <bruno@clisp.org>
63141
63142         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63143         of gl_LOCK_EARLY instead of gl_LOCK.
63144
63145 2006-08-23  Bruno Haible  <bruno@clisp.org>
63146
63147         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63148         on OSF/1 to no.
63149         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63150
63151 2006-08-23  Bruno Haible  <bruno@clisp.org>
63152
63153         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63154         as unusable.
63155
63156         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63157         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63158         (gl_LOCK): New macro.
63159
63160 2006-08-22  Simon Josefsson  <jas@extundo.com>
63161
63162         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63163         to md5 module.
63164
63165 2006-08-22  Simon Josefsson  <jas@extundo.com>
63166
63167         * MODULES.html.sh: Add "Support for maintaining and release
63168         projects".
63169
63170         * build-aux/gnupload: New file, from coreutils.
63171
63172 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63173
63174         Avoid the need for AC_LIBSOURCES in m4 macros.
63175         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63176         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63177         * modules/check-version (EXTRA_DIST): Add check-version.h.
63178         * modules/crc (EXTRA_DIST): Add crc.h.
63179         * modules/des (EXTRA_DIST): Add des.h.
63180         * modules/gc (EXTRA_DIST): Add gc.h.
63181         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63182         * modules/getline (EXTRA_DIST): Add getline.h.
63183         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63184         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63185         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63186         * modules/md2 (EXTRA_DIST): Add md2.h.
63187         * modules/md4 (EXTRA_DIST): Add md4.h.
63188         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63189         * modules/read-file (EXTRA_DIST): Add read-file.h.
63190         * modules/readline (EXTRA_DIST): Add readline.h.
63191         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63192         rijndael-api-fst.h.
63193
63194 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * m4/rijndael.m4 (gl_ARCFOUR):
63197         * m4/arctwo.m4 (gl_ARCTWO):
63198         * m4/check-version.m4 (gl_CHECK_VERSION):
63199         * m4/crc.m4 (gl_CRC):
63200         * m4/des.m4 (gl_DES):
63201         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63202         * m4/gc.m4 (gl_GC):
63203         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63204         * m4/getline.m4 (gl_FUNC_GETLINE):
63205         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63206         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63207         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63208         * m4/md2.m4 (gl_MD2):
63209         * m4/md4.m4 (gl_MD4):
63210         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63211         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63212         * m4/readline.m4 (gl_FUNC_READLINE):
63213         * m4/rijndael.m4 (gl_RIJNDAEL):
63214         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63215         to get the necessary .h files and whatnot.
63216
63217 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63218
63219         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63220         gnulib rather than the other way around.
63221         * config/srclistvars.sh (COREUTILS): Remove.
63222
63223 2006-08-22  Jim Meyering  <jim@meyering.net>
63224
63225         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63226
63227         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63228
63229 2006-08-22  Eric Blake  <ebb9@byu.net>
63230
63231         * modules/regexprops-generic: New file.
63232         * MODULES.html.sh (Support for building documentation): List it.
63233
63234 2006-08-22  Eric Blake  <ebb9@byu.net>
63235
63236         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63237         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63238         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63239         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63240
63241 2006-08-22  Bruno Haible  <bruno@clisp.org>
63242
63243         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63244         and lib_LTLIBRARIES like the other lib_* variables.
63245
63246 2006-08-22  Bruno Haible  <bruno@clisp.org>
63247
63248         * build-aux/x-to-1.in: New file, from GNU gettext.
63249
63250 2006-08-22  Bruno Haible  <bruno@clisp.org>
63251
63252         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63253         <utmpx.h> exists.
63254
63255 2006-08-22  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63258         <utmpx.h> exists.
63259
63260 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         BeOS portability.
63263         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63264         exist.
63265         Problem reported by Bruno Haible.
63266
63267 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         Avoid the need for AC_LIBSOURCES in m4 macros.
63270         * modules/acl (EXTRA_DIST): Add acl.h.
63271         * modules/argmatch (Files): Add m4/argmatch.m4.
63272         (configure.ac): Add gl_ARGMATCH.
63273         (EXTRA_DIST): Renamed from lib_SOURCES, for
63274         consistency with the other modules.  Remove argmatch.c.
63275         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63276         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63277         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63278         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63279         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63280         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63281         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63282         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63283         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63284         * modules/closeout (EXTRA_DIST): Add closeout.h.
63285         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63286         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63287         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63288         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63289         dirname.h; remove basename.c and stripslash.c.
63290         * modules/exclude (EXTRA_DIST): Add exclude.h.
63291         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63292         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63293         * modules/file-type (EXTRA_DIST): Add file-type.h.
63294         * modules/filemode (EXTRA_DIST): Add filemode.h.
63295         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63296         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63297         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63298         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63299         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63300         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63301         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63302         * modules/getdate (EXTRA_DIST): Add getdate.c.
63303         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63304         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63305         * modules/getpass (EXTRA_DIST): Add getpass.h.
63306         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63307         * modules/group-member (EXTRA_DIST): Add group-member.h.
63308         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63309         * modules/hash (EXTRA_DIST): Add hash.h.
63310         * modules/human (EXTRA_DIST): Add human.h.
63311         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63312         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63313         * modules/lchown (EXTRA_DIST): Add lchown.h.
63314         * modules/long-options (EXTRA_DIST): Add long-options.h.
63315         * modules/lstat (EXTRA_DIST): Add lstat.h.
63316         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63317         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63318         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63319         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63320         * modules/memxor (EXTRA_DIST): Add memxor.h.
63321         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63322         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63323         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63324         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63325         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63326         * modules/physmem (EXTRA_DIST): Add physmem.h.
63327         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63328         * modules/posixver (EXTRA_DIST): Add posixver.h.
63329         * modules/quote (EXTRA_DIST): Add quote.h.
63330         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63331         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63332         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63333         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63334         regex_internal.h regexec.c.
63335         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63336         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63337         * modules/same (EXTRA_DIST): Add same.h.
63338         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63339         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63340         * modules/savedir (EXTRA_DIST): Add savedir.h.
63341         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63342         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63343         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63344         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63345         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63346         * modules/strdup (EXTRA_DIST): Add strdup.h.
63347         * modules/strftime (EXTRA_DIST): Add strftime.h.
63348         * modules/strndup (EXTRA_DIST): Add strndup.h.
63349         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63350         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63351         * modules/time_r (EXTRA_DIST): Add time_r.h.
63352         * modules/timespec (EXTRA_DIST): Add timespec.h.
63353         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63354         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63355         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63356         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63357         * modules/userspec (EXTRA_DIST): Add userspec.h.
63358         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63359         * modules/utimens (EXTRA_DIST): Add utimens.h.
63360         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63361         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63362         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63363         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63364         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63365         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63366         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63367         * modules/yesno (EXTRA_DIST): Add yesno.h.
63368
63369 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63372
63373         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63374         * m4/dev-ino.m4, same-inode.m4: Remove.
63375
63376         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63377         * m4/acl.m4 (AC_FUNC_ACL):
63378         * m4/backupfile.m4 (gl_BACKUPFILE):
63379         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63380         * m4/canon-host.m4 (gl_CANON_HOST):
63381         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63382         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63383         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63384         * m4/cloexec.m4 (gl_CLOEXEC):
63385         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63386         * m4/closeout.m4 (gl_CLOSEOUT):
63387         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63388         * m4/dirname.m4 (gl_DIRNAME):
63389         * m4/exclude.m4 (gl_EXCLUDE):
63390         * m4/exitfail.m4 (gl_EXITFAIL):
63391         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63392         * m4/file-type.m4 (gl_FILE_TYPE):
63393         * m4/filemode.m4 (gl_FILEMODE):
63394         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63395         * m4/fpending.m4 (gl_FUNC_FPENDING):
63396         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63397         * m4/fts.m4 (gl_FUNC_FTS):
63398         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63399         * m4/getdate.m4 (gl_GETDATE):
63400         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63401         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63402         * m4/getpass.m4 (gl_FUNC_GETPASS):
63403         * m4/gettime.m4 (gl_GETTIME):
63404         * m4/getugroups.m4 (gl_GETUGROUPS):
63405         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63406         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63407         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63408         * m4/hash.m4 (gl_HASH):
63409         * m4/idcache.m4 (gl_IDCACHE):
63410         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63411         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63412         * m4/long-options.m4 (gl_LONG_OPTIONS):
63413         * m4/lstat.m4 (gl_FUNC_LSTAT):
63414         * m4/md5.m4 (gl_MD5):
63415         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63416         * m4/memcoll.m4 (gl_MEMCOLL):
63417         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63418         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63419         * m4/memxor.m4 (gl_MEMXOR):
63420         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63422         * m4/modechange.m4 (gl_MODECHANGE):
63423         * m4/mountlist.m4 (gl_MOUNTLIST):
63424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63425         * m4/openat.m4 (gl_FUNC_OPENAT):
63426         * m4/pathmax.m4 (gl_PATHMAX):
63427         * m4/physmem.m4 (gl_PHYSMEM):
63428         * m4/posixtm.m4 (gl_POSIXTM):
63429         * m4/posixver.m4 (gl_POSIXVER):
63430         * m4/quote.m4 (gl_QUOTE):
63431         * m4/quotearg.m4 (gl_QUOTEARG):
63432         * m4/readtokens.m4 (gl_READTOKENS):
63433         * m4/readutmp.m4 (gl_READUTMP):
63434         * m4/regex.m4 (gl_REGEX):
63435         * m4/safe-read.m4 (gl_SAFE_READ):
63436         * m4/safe-write.m4 (gl_SAFE_WRITE):
63437         * m4/same.m4 (gl_SAME):
63438         * m4/save-cwd.m4 (gl_SAVE_CWD):
63439         * m4/savedir.m4 (gl_SAVEDIR):
63440         * m4/settime.m4 (gl_SETTIME):
63441         * m4/sha1.m4 (gl_SHA1):
63442         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63443         * m4/stat-macros.m4 (gl_STAT_MACROS):
63444         * m4/stat-time.m4 (gl_STAT_TIME):
63445         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63446         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63447         * m4/strdup.m4 (gl_FUNC_STRDUP):
63448         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63449         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63450         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63451         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63452         * m4/time_r.m4 (gl_TIME_R):
63453         * m4/timespec.m4 (gl_TIMESPEC):
63454         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63455         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63456         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63457         * m4/userspec.m4 (gl_USERSPEC):
63458         * m4/utimecmp.m4 (gl_UTIMECMP):
63459         * m4/utimens.m4 (gl_UTIMENS):
63460         * m4/xalloc.m4 (gl_XALLOC):
63461         * m4/xgetcwd.m4 (gl_XGETCWD):
63462         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63463         * m4/xreadlink.m4 (gl_XREADLINK):
63464         * m4/xstrtod.m4 (gl_XSTRTOD):
63465         * m4/yesno.m4 (gl_YESNO):
63466         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63467         to get the necessary .h files and whatnot.
63468
63469 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63470             Bruno Haible  <bruno@clisp.org>
63471
63472         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63473         /bin/sh understanding of '!' conditional negation.
63474
63475 2006-08-21  Jim Meyering  <jim@meyering.net>
63476
63477         * modules/openat (Depends-on): Really alphabetize.
63478
63479         * modules/acl (Depends-on): Add error and quote.
63480
63481         * check-module (find_included_lib_files): Add at-func.c to the
63482         ok-to-include-more-than-once white list.
63483
63484         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63485
63486 2006-08-21  Bruno Haible  <bruno@clisp.org>
63487
63488         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63489         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63490         Reported by Martin Lambers <marlam@marlam.de>.
63491
63492 2006-08-21  Bruno Haible  <bruno@clisp.org>
63493
63494         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63495         specify an installation location, don't emit a noinst_LIBRARIES or
63496         noinst_LTLIBRARIES assignment.
63497
63498 2006-08-21  Bruno Haible  <bruno@clisp.org>
63499
63500         BeOS portability.
63501         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63502         BeOS has mbrtowc() but no <wctype.h>.
63503
63504 2006-08-21  Bruno Haible  <bruno@clisp.org>
63505
63506         BeOS portability.
63507         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63508         exist.
63509
63510 2006-08-21  Bruno Haible  <bruno@clisp.org>
63511
63512         BeOS portability.
63513         * lib/mbchar.h: Include <wctype.h> only if it exists.
63514
63515 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63516
63517         Remove files that are no longer needed by their respective modules.
63518         * m4/obstack.m4: Remove.
63519         * m4/strerror_r.m4: Remove.
63520         * m4/uint32_t.m4: Remove.
63521         * m4/uintptr_t.m4: Remove.
63522         * m4/ullong_max.m4: Remove.
63523         * m4/xstrtoimax.m4: Remove.
63524         * m4/xstrtoumax.m4: Remove.
63525
63526         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63527         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63528         dependencies now capture this.
63529
63530         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63531         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63532         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63533         * m4/human.m4 (gl_HUMAN): Likewise.
63534         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63535         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63536
63537         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63538
63539         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63540         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63541         stdint.
63542         * m4/human.m4 (gl_HUMAN): Likewise.
63543         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63544         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63545         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63546         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63547         * m4/xstrtol (gl_XSTRTOL): Likewise.
63548
63549         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63550         AC_TYPE_LONG_LONG_INT.
63551         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63552         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63553         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63554         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63555
63556         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63557         on stdbool.
63558
63559         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63560         (gl_PREREQ_XSTRTOUL): Remove.
63561
63562         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63563
63564         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63565         mode.
63566
63567 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63568
63569         Add and change modules to make it easier for coreutils to use
63570         gnulib-tool.
63571         * modules/backupfile (Files): Remove m4/d-ino.m4.
63572         (Depends-on): Add d-ino.
63573         * modules/cycle-check (Depends-on): Add stdint.
63574         (lib_SOURCES): Add cycle-check.h.
63575         * modules/d-ino: New module.
63576         * modules/d-type: New module.
63577         * modules/error (Files): Remove m4/strerror_r.m4.
63578         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63579         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63580         m4/inttypes_h.m4, m4/uintmax_t.m4.
63581         (Depends-on): Add stdint.
63582         (lib_SOURCES): Add fsusage.h.
63583         * modules/getcwd (Files): Remove d-ino.m4.
63584         (Depends-on): Add d-ino.
63585         * modules/getndelim2 (Depends-on): Add stdint.
63586         * modules/glob (Files): Remove m4/d-type.m4.
63587         (Depends-on): Add d-type.
63588         * modules/host-os: New module.
63589         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63590         m4/inttypes_h.m4, m4/uintmax_t.m4.
63591         * Depends-on: Add stdint.
63592         (lib_SOURCES): Add human.h.
63593         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63594         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63595         m4/uintmax_t.m4, m4/ulonglong.m4.
63596         (Depends-on): Add stdint.
63597         (EXTRA_DIST): Add inttostr.h.
63598         * modules/lchmod: New module.
63599         * modules/link-follow: New module.
63600         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63601         (Depends-on): Add lchmod.
63602         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63603         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63604         (Depends-on): Add stdint.
63605         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63606         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63607         (Depends-on): Add stdint.
63608         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63609         * modules/perl: New module.
63610         * modules/regex (Depends-on): Add stdint.
63611         * modules/rmdir-errno: New module.
63612         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63613         m4/intmax_t.m4.
63614         (Depends-on): Add stdint.
63615         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63616         m4/uintmax_t.m4.
63617         (Depends-on): Add stdint.
63618         * modules/unlink-busy: New module.
63619         * modules/utimecmp (Depends-on): Add stdint.
63620         * modules/uptime: New module.
63621         * modules/winsz-ioctl: New module.
63622         * modules/winsz-termios: New module.
63623         * modules/xnanosleep (Depends-on): Add nanosleep.
63624         * modules/ullong_max: Remove.
63625         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63626         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63627         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63628         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63629         (Depends-on): Add inttypes.
63630         (lib_SOURCES): Add xstrtol.h.
63631         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63632         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63633         * MODULES.html.sh: Move 'assert' into the assert section.
63634         Move 'dummy' into the linking section.
63635         Remove ullong_max.
63636         Add section for compatibility checks for POSIX:2001 functions,
63637         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63638         winsz-ioctl, and winsz-termios into it.
63639         Add lchmod.
63640         Add top-level Misc section and put host-os, perl, and uptime
63641         into it.
63642
63643 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63646         now assume the stdint module.  Do not include inttypes.h.
63647         * lib/fsusage.h: Likewise.
63648         * lib/getndelim2.c: Likewise.
63649         * lib/human.h: Likewise.
63650         * lib/inttostr.h: Likewise.
63651         * lib/obstack.c: Likewise.
63652         * lib/regex_internal.h: Likewise.
63653         * lib/tempname.c: Likewise.
63654         * lib/utimecmp.c: Likewise.
63655         * lib/xstrtol.h: Likewise.
63656
63657         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63658
63659         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63660         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63661         * lib/xtime.h: Likewise.
63662
63663 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         * modules/openat (Files): Add lib/fchmodat.c.
63666         Fixes problem reported by Jay Youngman.
63667
63668 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63671         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63672
63673 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63674             Bruno Haible  <bruno@clisp.org>
63675
63676         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63677         and is a script that invokes bison. Tighten the code. Add comments.
63678
63679 2006-08-18  Jim Meyering  <jim@meyering.net>
63680
63681         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63682         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63683         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63684         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63685
63686 2006-08-18  Bruno Haible  <bruno@clisp.org>
63687
63688         * modules/bison-i18n: New file.
63689         * MODULES.html.sh (Internationalization functions): Add it.
63690
63691 2006-08-18  Bruno Haible  <bruno@clisp.org>
63692
63693         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63694         sys/statvfs.h. When getmntinfo was found, check its declaration and
63695         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63696
63697 2006-08-18  Bruno Haible  <bruno@clisp.org>
63698
63699         * m4/bison-i18n.m4: New file, from bison.
63700
63701 2006-08-18  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63704         (ME_DUMMY): Treat "kernfs" as a dummy.
63705         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63706
63707 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63708
63709         Update from coreutils.
63710
63711         2006-08-15  Jim Meyering  <jim@meyering.net>
63712
63713         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63714
63715         2006-01-17  Jim Meyering  <jim@meyering.net>
63716
63717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63718
63719         2006-01-11  Jim Meyering  <jim@meyering.net>
63720
63721         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63722         Check for the lchmod function.
63723
63724 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63725
63726         Update from coreutils.
63727
63728         * lib/__fpending.h: Add copyright notice.
63729         * lib/fprintftime.h: Likewise.
63730         * lib/savedir.c: Use (C) in copyright notice.
63731         * lib/savedir.h: Likewise.
63732
63733         2006-08-15  Jim Meyering  <jim@meyering.net>
63734
63735         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63736         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63737         in support of the EXPECTED_ERRNO macro.
63738         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63739         definitions.  Instead, define the appropriate symbols and include
63740         "at-func.c".
63741         * lib/mkdirat.c (mkdirat): Likewise.
63742         * lib/fchmodat.c (fchmodat): Likewise.
63743         (ENOSYS): Remove definition.
63744         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63745         it.  Don't include "unistd--.h" -- it wasn't ever used.
63746
63747         2006-01-17  Jim Meyering  <jim@meyering.net>
63748
63749         Rewrite fts.c not to change the current working directory,
63750         by using openat, fstatat, fdopendir, etc..
63751
63752         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63753         (HAVE_OPENAT_SUPPORT): Define.
63754         [_LIBC] (fchdir): Don't undef or define; no longer used.
63755         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63756         Now, this `function' always succeeds, and consumes its file descriptor
63757         parameter -- so callers must not close such FDs.  Update callers.
63758         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63759         (diropen): Add parameter, SP.  Adjust all callers.
63760         Implement using diropen_fd, rather than open.
63761         (fts_open): Initialize new member, fts_cwd_fd.
63762         Remove fts_rft-setting code.
63763         (fts_close): Close fts_cwd_fd, if necessary.
63764         (__opendir2): Define in terms of opendir or opendirat,
63765         depending on whether the FST_NOCHDIR flag is set.
63766         (fts_build): Since fts_safe_changedir consumes its FD, and since
63767         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63768         and close the dup'd file descriptor upon failure.
63769         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63770         (fts_safe_changedir): Tweak semantics to reflect that this function
63771         now calls cwd_advance_fd and hence consumes its FD argument.
63772         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63773         [struct FTS] (fts_rft): Remove now-unused member.
63774         [struct FTS] (fts_cycle.state): Improve comment.
63775
63776         * lib/openat.c (openat_needs_fchdir): New function.
63777         * lib/openat.h (openat_needs_fchdir): Declare it.
63778
63779 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63782         Problem and fix reported by Pádraig Brady in
63783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63784
63785 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63788
63789 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63790
63791         * lib/memcoll.c (memcoll): Optimize for the common case where the
63792         arguments are bytewise equal.
63793
63794 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63795
63796         * doc/regexprops-generic.texi: Add a copyright notice.
63797
63798 2006-08-15  Bruno Haible  <bruno@clisp.org>
63799
63800         * modules/tmpdir (License): Change to LGPL.
63801
63802 2006-08-15  Bruno Haible  <bruno@clisp.org>
63803
63804         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63805         module.
63806
63807 2006-08-14  Simon Josefsson  <jas@extundo.com>
63808
63809         * config/srclist.txt: Add gnupload.
63810
63811 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63812
63813         Change copyright notice from LGPL 2 to GPL 2, since that's the
63814         standard form used in the gnulib repository.
63815         * tests/test-lock.c: Likewise.
63816         * tests/test-stdint.c: Likewise.
63817         * tests/test-tls.c: Likewise.
63818
63819         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63820         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63821         Add copyright notice.
63822
63823         * check-module: Add copyright notice.  Output a copyright
63824         notice if "--version" is specified.
63825         * modules/COPYING: New file.
63826         * tests/test-getaddrinfo.c: Add copyright notice.
63827         * tests/test-verify.c: Likewise.
63828
63829 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63830
63831         Change copyright notice from LGPL 2 to GPL 2, since that's the
63832         standard form used in the gnulib repository.
63833         * lib/lock.c: LGPL -> GPL.
63834         * lib/lock.h: Likewise.
63835         * lib/strnlen1.c: Likewise.
63836         * lib/strnlen1.h: Likewise.
63837         * lib/tls.c: Likewise.
63838         * lib/tls.h: Likewise.
63839         * lib/tmpdir.c: Likewise.
63840
63841         * lib/TODO: Remove; this belongs only in coreutils.
63842
63843 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63844
63845         Add copyright notices to long-enough files that lack them, since
63846         otherwise the files aren't clearly free.  Use the same notice that
63847         getdate.texi already uses.
63848         * doc/alloca-opt.texi: Add copyright notice.
63849         * doc/alloca.texi: Likewise.
63850         * doc/ctime.texi: Likewise.
63851         * doc/functions.texi: Likewise.
63852         * doc/gcd.texi: Likewise.
63853         * doc/gnulib-tool.texi: Likewise.
63854         * doc/inet_ntoa.texi: Likewise.
63855         * doc/visibility.texi: Likewise.
63856
63857         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63858         * doc/quote.texi: Add copyright notice.
63859
63860         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63861         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63862         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63863         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63864         is now obsolete, and give a pointer to the Sun list.
63865         Add copyright notice.
63866
63867 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         * config/srclistvars.sh: Add copyright notice.
63870
63871 2006-08-14  Eric Blake  <ebb9@byu.net>
63872
63873         Import the following change from libc:
63874
63875         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63876
63877         Upstream bug 2997.
63878         * lib/misc/error.c: Add space between program name and message if file
63879         name is missing.
63880
63881 2006-08-12  Karl Berry  <karl@gnu.org>
63882
63883         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63884         remove, these originate in gnulib now.
63885
63886 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63887
63888         * doc/Makefile (standards.info standards.html standards.dvi):
63889         Also depend on make-stds.texi.
63890
63891 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63894         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63895
63896         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63897         in wchar_t.  Problem reported by Eric Blake.
63898
63899         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63900         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63901         Also, help the compiler to keep LEN in a register.
63902
63903 2006-08-11  Eric Blake  <ebb9@byu.net>
63904
63905         * users.txt: Sort.  Add tar.
63906
63907 2006-08-11  Bruno Haible  <bruno@clisp.org>
63908
63909         * users.txt: New file.
63910
63911 2006-08-11  Bruno Haible  <bruno@clisp.org>
63912
63913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63914         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63915
63916 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * modules/snprintf (Depends-on): Remove minmax.
63919         (Maintainer): Add self and Bruno.
63920
63921 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63924         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63925         (EOVERFLOW): Define if the system does not.
63926         Do not include "minmax.h"; it wasn't used.
63927         (snprintf): Don't assume size_t promotes to an unsigned type.
63928         Fix bug when generated string was too long for the buffer: the
63929         buffer's contents are supposed to be the initial prefix of the
63930         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63931         exceeds INT_MAX; do the check ourselves.
63932
63933         Import the following changes from libc:
63934
63935         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63936
63937         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63938         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63939         set wc to the byte which couldn't be converted.
63940         (re_string_reconstruct): Don't clear valid_raw_len before calling
63941         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63942         tip_context using re_string_context_at.
63943
63944         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63945
63946         * lib/posix/regex.h: g++ still cannot handled [restrict].
63947
63948         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63949
63950         * lib/posix/regex.h: Remove special handling for VMS.
63951
63952 2006-08-10  Jim Meyering  <jim@meyering.net>
63953
63954         * modules/same-inode: New module.
63955         * modules/dev-ino: New module.
63956         * modules/cycle-check: Depend on these modules, rather than simply
63957         including their .h files.
63958         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63959         required via m4/cycle-check.m4.
63960         * modules/same: Depend on new same-inode module, rather than
63961         including same-inode.h.
63962         * modules/chdir-safer: New file.
63963
63964         * modules/chown (Depends-on): Add stat-macros.
63965
63966 2006-08-10  Jim Meyering  <jim@meyering.net>
63967
63968         * m4/cycle-check.m4: New file.
63969         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63970         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63971
63972 2006-08-10  Eric Blake  <ebb9@byu.net>
63973
63974         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63975         in from original proposal.
63976
63977 2006-08-10  Eric Blake  <ebb9@byu.net>
63978         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63979
63980         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63981         namespace.
63982
63983 2006-08-10  Bruno Haible  <bruno@clisp.org>
63984
63985         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63986         as well.
63987
63988 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63989
63990         Sync from coreutils.
63991
63992         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63993
63994         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63995         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63996
63997 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * modules/restrict: Remove; no longer needed now that we assume
64000         Autoconf 2.59 or later.
64001         * MODULES.html.sh: Remove 'restrict'.
64002         * modules/argp (Depends-on): Remove 'restrict'.
64003         * modules/base64 (Depends-on): Likewise.
64004         * modules/gc (Depends-on): Likewise.
64005         * modules/getaddrinfo (Depends-on): Likewise.
64006         * modules/glob (Depends-on): Likewise.
64007         * modules/inet_ntop (Depends-on): Likewise.
64008         * modules/inet_pton (Depends-on): Likewise.
64009         * modules/memxor (Depends-on): Likewise.
64010         * modules/regex (Depends-on): Likewise.
64011         * modules/strtok_r (Depends-on): Likewise.
64012         * modules/time_r (Depends-on): Likewise.
64013
64014 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64017         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64018         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64019         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64020         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64021         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64022         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64023         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64024
64025         Merge from coreutils.
64026         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64027         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64029         * m4/time_r.m4 (gl_TIME_R): Likewise.
64030
64031 2006-08-09  Karl Berry  <karl@gnu.org>
64032
64033         * config/srclist.txt: no more gettext-tools, per Bruno.
64034
64035 2006-08-08  Eric Blake  <ebb9@byu.net>
64036
64037         * modules/verror: New module.
64038         * MODULES.html.sh: Document it.
64039
64040 2006-08-08  Eric Blake  <ebb9@byu.net>
64041
64042         * lib/verror.h, lib/verror.c: New files.
64043
64044 2006-08-08  Eric Blake  <ebb9@byu.net>
64045
64046         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64047         verror_at_line output complies with GNU Coding Standards even when
64048         file is NULL.
64049
64050 2006-08-07  Bruno Haible  <bruno@clisp.org>
64051
64052         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64053         versions of AIX.
64054         Reported by Ralf Wildenhues.
64055
64056 2006-08-07  Bruno Haible  <bruno@clisp.org>
64057
64058         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64059         in an AC_DEFUN. Needed so that the autoconf snippets can use
64060         AC_REQUIRE.
64061
64062 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64063
64064         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64065         Initialize pkgdata_DATA.
64066         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64067         overriding it.
64068
64069 2006-08-06  Eric Blake  <ebb9@byu.net>
64070
64071         * lib/error.h: Fold in some upstream changes from glibc.
64072         * lib/error.c: Likewise.
64073
64074 2006-08-04  Bruno Haible  <bruno@clisp.org>
64075
64076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64077         Make the mostlyclean-local rule depend on mostlyclean-generic.
64078         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64079
64080 2006-07-31  Bruno Haible  <bruno@clisp.org>
64081
64082         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64083         <stdlib.h>, <string.h>.
64084
64085 2006-07-30  Bruno Haible  <bruno@clisp.org>
64086
64087         * modules/readlink (License): Change to LGPL.
64088
64089 2006-07-30  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64092         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64093         set PKGDATADIR to point to it.
64094
64095 2006-07-30  Bruno Haible  <bruno@clisp.org>
64096
64097         * modules/csharpexec (configure.ac): Comment out macro invocation.
64098         * modules/javaexec (configure.ac): Likewise.
64099         * modules/javacomp-script (configure.ac): Likewise.
64100
64101         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64102
64103 2006-07-30  Bruno Haible  <bruno@clisp.org>
64104
64105         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64106         linked-list.
64107
64108 2006-07-30  Bruno Haible  <bruno@clisp.org>
64109
64110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64111
64112 2006-07-30  Bruno Haible  <bruno@clisp.org>
64113
64114         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64115         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64116         get removed.
64117
64118 2006-07-29  Bruno Haible  <bruno@clisp.org>
64119
64120         Make it possible for gnulib-tool to work with locally modified or
64121         augmented gnulib repositories.
64122         * gnulib-tool (func_usage): Document --local-dir option.
64123         (local_gnulib_dir): New variable.
64124         Handle --local-dir option.
64125         (func_lookup_file): New function.
64126         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64127         (func_get_description, func_get_filelist, func_get_description,
64128         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64129         func_get_automake_snippet, func_get_include_directive,
64130         func_get_license, func_get_maintainer): Use func_lookup_file.
64131         (func_import, func_create_testdir): Use func_lookup_file.
64132
64133 2006-07-29  Bruno Haible  <bruno@clisp.org>
64134
64135         * modules/setenv (Depends-on): Add unistd.
64136
64137 2006-07-29  Bruno Haible  <bruno@clisp.org>
64138
64139         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64140
64141 2006-07-29  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64144
64145 2006-07-29  Bruno Haible  <bruno@clisp.org>
64146
64147         * gnulib-tool (import, update): If there is no Makefile.am, look at
64148         aclocal.m4, instead of bailing out.
64149
64150 2006-07-29  Bruno Haible  <bruno@clisp.org>
64151
64152         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64153         Categorize the options by when they are useful.
64154
64155 2006-07-29  Bruno Haible  <bruno@clisp.org>
64156
64157         * gnulib-tool (func_usage): Document option --no-libtool.
64158         Handle option --no-libtool.
64159         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64160         for changed semantics of $libtool variable.
64161         (func_import): Likewise. If libtool is not used, show this through
64162         an option --no-libtool.
64163         (func_create_testdir): Update.
64164
64165 2006-07-29  Bruno Haible  <bruno@clisp.org>
64166
64167         * gnulib-tool (func_import): Extend error message about missing
64168         --doc-base.
64169
64170 2006-07-29  Bruno Haible  <bruno@clisp.org>
64171
64172         * gnulib-tool (func_import): Don't create the $docbase directory if
64173         there is no file to store there.
64174
64175 2006-07-29  Bruno Haible  <bruno@clisp.org>
64176
64177         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64178         relevant, look for configure.ac there, not in the current directory.
64179         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64180
64181 2006-07-29  Bruno Haible  <bruno@clisp.org>
64182
64183         * gnulib-tool (SORT): New variable.
64184         (func_usage): Undocument --assume-autoconf option.
64185         Remove --assume-autoconf option handling.
64186         (autoconf_minversion): Determine from the contents of configure.ac.
64187         (func_import): Remove autoconf_minversion handling.
64188         Suggested by Eric Blake.
64189
64190 2006-07-29  Bruno Haible  <bruno@clisp.org>
64191
64192         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64193
64194 2006-07-29  Bruno Haible  <bruno@clisp.org>
64195
64196         * config/srclist.txt (*setenv.[ch]): Remove rules.
64197
64198 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64199
64200         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64201
64202 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64203
64204         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64205         arpa/inet.h.
64206
64207 2006-07-28  Simon Josefsson  <jas@extundo.com>
64208
64209         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64210         * modules/inet_pton (Depends-on): Likewise.
64211
64212 2006-07-28  Simon Josefsson  <jas@extundo.com>
64213
64214         * m4/netinet_in_h.m4: New file.
64215
64216 2006-07-28  Simon Josefsson  <jas@extundo.com>
64217
64218         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64219         #include's.
64220
64221 2006-07-28  Simon Josefsson  <jas@extundo.com>
64222
64223         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64224         #include's.
64225
64226 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64227
64228         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64229         setgid on directories only if they set these bits.
64230         * lib/modechange.h: Remove obsolete comment about masks.
64231
64232 2006-07-28  Eric Blake  <ebb9@byu.net>
64233
64234         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64235         macro expansion.
64236
64237 2006-07-28  Bruno Haible  <bruno@clisp.org>
64238
64239         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64240
64241 2006-07-28  Bruno Haible  <bruno@clisp.org>
64242
64243         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64244
64245 2006-07-28  Bruno Haible  <bruno@clisp.org>
64246
64247         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64248         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64249         Define fallbacks.
64250         Avoids link error on FreeBSD 4.x.
64251         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64252
64253         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64254         encoding.
64255         * lib/mbswidth.c (iswcntrl): Likewise.
64256
64257 2006-07-27  Bruno Haible  <bruno@clisp.org>
64258
64259         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64260         test.
64261
64262 2006-07-27  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64265         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64266         defined.
64267
64268 2006-07-26  Eric Blake  <ebb9@byu.net>
64269
64270         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64271
64272 2006-07-26  Eric Blake  <ebb9@byu.net>
64273
64274         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64275         like mingw that lack mkstemp.
64276         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64277         avoid compilation warning on mingw.
64278
64279 2006-07-26  Bruno Haible  <bruno@clisp.org>
64280
64281         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64282         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64283         INT_FAST*_MIN, INTPTR_MIN.
64284
64285 2006-07-25  Bruno Haible  <bruno@clisp.org>
64286
64287         * modules/version-etc (Depends-on): Add stdarg.
64288
64289 2006-07-25  Bruno Haible  <bruno@clisp.org>
64290
64291         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64292         complex commands.
64293
64294 2006-07-25  Bruno Haible  <bruno@clisp.org>
64295
64296         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64297         defined in <stdarg.h> or config.h.
64298
64299 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64300
64301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64302         (gl_STDIO_SAFER): Remove.
64303
64304 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * MODULES.html.sh (File stream based Input/Output):
64307         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64308         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64309         * modules/fopen-safer, modules/tmpfile-safer: New files.
64310         * modules/stdio-safer: Remove.
64311
64312 2006-07-24  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/tmpdir: New file.
64315         * MODULES.html.sh (File system functions): Add it.
64316
64317 2006-07-24  Bruno Haible  <bruno@clisp.org>
64318
64319         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64320         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64321
64322 2006-07-24  Bruno Haible  <bruno@clisp.org>
64323
64324         * modules/clean-temp: New file.
64325
64326 2006-07-24  Bruno Haible  <bruno@clisp.org>
64327
64328         * m4/tmpdir.m4: New file, from GNU gettext.
64329
64330 2006-07-24  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/tmpdir.h: New file, from GNU gettext.
64333         * lib/tmpdir.c: New file, from GNU gettext.
64334
64335 2006-07-24  Bruno Haible  <bruno@clisp.org>
64336
64337         * lib/clean-temp.h: New file, from GNU gettext.
64338         * lib/clean-temp.c: New file, from GNU gettext.
64339
64340 2006-07-23  Eric Blake  <ebb9@byu.net>
64341
64342         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64343         (Depends-on): Add binary-io.
64344
64345 2006-07-23  Eric Blake  <ebb9@byu.net>
64346
64347         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64348
64349 2006-07-23  Eric Blake  <ebb9@byu.net>
64350
64351         * lib/tmpfile-safer.c: New file.
64352         * lib/stdio-safer.h (fopen_safer): Add prototype.
64353         * lib/stdio--.h (tmpfile): Make safer.
64354
64355 2006-07-23  Bruno Haible  <bruno@clisp.org>
64356
64357         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64358         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64359         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64360         gl_linked_remove_at): Use it.
64361
64362 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64363         and Simon Josefsson <jas@extundo.com>
64364
64365         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64366
64367         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64368
64369 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         * modules/close-stream: New file.
64372         * modules/closeout (Description): Make it clear that it exits
64373         with a diagnostic on error.
64374         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64375         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64376
64377 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64378
64379         * m4/close-stream.m4: New file.
64380
64381 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         * lib/close-stream.c, lib/close-stream.h: New files.
64384
64385 2006-07-22  Bruno Haible  <bruno@clisp.org>
64386
64387         Merge from GNU gettext 0.15.
64388
64389         2006-05-01  Bruno Haible  <bruno@clisp.org>
64390
64391                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64392
64393         2006-07-22  Bruno Haible  <bruno@clisp.org>
64394
64395                 * modules/javaversion: New file.
64396                 * MODULES.html.sh (Java): Add javaversion.
64397
64398         2006-03-12  Bruno Haible  <bruno@clisp.org>
64399
64400                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64401
64402         2005-12-04  Bruno Haible  <bruno@clisp.org>
64403
64404                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64405                 (untested).
64406
64407         2006-06-21  Bruno Haible  <bruno@clisp.org>
64408
64409                 Avoid warnings from recent versions of mcs.
64410                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64411                 -o, -L, -r any more. Use options documented since mcs-1.0
64412                 instead. Similarly for -g.
64413
64414         2005-12-04  Bruno Haible  <bruno@clisp.org>
64415
64416                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64417                 .resources, not .resource.
64418
64419         2005-07-09  Bruno Haible  <bruno@clisp.org>
64420
64421                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64422                 add a .dll suffix.
64423                 Reported by Mark Junker <mjscod@gmx.de>.
64424
64425         2006-07-22  Bruno Haible  <bruno@clisp.org>
64426
64427                 * modules/gettext: Upgrade to gettext-0.15.
64428                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64429                 m4/visibility.m4.
64430                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64431
64432 2006-07-22  Bruno Haible  <bruno@clisp.org>
64433
64434         Merge from GNU gettext 0.15.
64435
64436         2006-03-25  Bruno Haible  <bruno@clisp.org>
64437
64438                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64439
64440         2006-07-21  Bruno Haible  <bruno@clisp.org>
64441
64442                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64443                 "1.1".
64444
64445         2006-05-09  Bruno Haible  <bruno@clisp.org>
64446
64447                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64448                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64449                 for the conftestver execution.
64450
64451         2006-05-01  Bruno Haible  <bruno@clisp.org>
64452
64453                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64454                 optional target-version argument. Verify that the compiler
64455                 groks source of the specified source-version, or add -source
64456                 option as necessary. Verify that the compiler produces
64457                 bytecode in the specified target-version, or add -target and
64458                 -source options as necessary. Make the result of the test
64459                 available as variable CONF_JAVAC. Also log error output in
64460                 config.log.
64461
64462         2006-03-11  Bruno Haible  <bruno@clisp.org>
64463
64464                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64465
64466         2006-05-09  Bruno Haible  <bruno@clisp.org>
64467
64468                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64469                 CLASSPATH_SEPARATOR to a semicolon.
64470
64471         2006-03-12  Bruno Haible  <bruno@clisp.org>
64472
64473                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64474                 available as variable CONF_JAVA, for subsequent autoconf
64475                 tests. Also log error output in config.log.
64476
64477         2006-07-19  Bruno Haible  <bruno@clisp.org>
64478
64479                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64480                 that getline works on glibc2 systems. Needed to avoid trouble
64481                 in relocatable.c.
64482                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64483
64484         2005-12-04  Bruno Haible  <bruno@clisp.org>
64485
64486                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64487                 launcher (untested).
64488
64489         2005-12-04  Bruno Haible  <bruno@clisp.org>
64490
64491                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64492
64493         2006-07-22  Bruno Haible  <bruno@clisp.org>
64494
64495                 * gettext.m4: Update from GNU gettext-0.15.
64496                 * nls.m4: Likewise.
64497                 * po.m4: Likewise.
64498                 * inttypes-pri.m4: Likewise.
64499                 * inttypes-h.m4: Renamed from inttypes.m4.
64500                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64501
64502 2006-07-22  Bruno Haible  <bruno@clisp.org>
64503
64504         Merge from GNU gettext 0.15.
64505
64506         2005-07-05  Bruno Haible  <bruno@clisp.org>
64507
64508                 * printf-args.c (printf_fetchargs): Work around broken
64509                 definition of wint_t on mingw.
64510
64511         2005-02-12  Bruno Haible  <bruno@clisp.org>
64512
64513                 * xallocsa.h: Add extern "C" for C++.
64514
64515         2006-05-17  Bruno Haible  <bruno@clisp.org>
64516
64517                 Cygwin portability.
64518                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64519
64520         2006-04-30  Bruno Haible  <bruno@clisp.org>
64521
64522                 * progreloc.c: Include <mach-o/dyld.h> if available.
64523                 (find_executable): Use _NSGetExecutablePath when possible.
64524
64525         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64526
64527                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64528                 function.
64529
64530         2005-12-29  Bruno Haible  <bruno@clisp.org>
64531
64532                 * progreloc.c (set_program_name_and_installdir): Fix
64533                 compilation error.
64534
64535         2005-12-04  Bruno Haible  <bruno@clisp.org>
64536
64537                 Cygwin portability.
64538                 * progreloc.c: Include <windows.h> also on Cygwin.
64539                 (find_executable): Add support for Cygwin.
64540                 (set_program_name_and_installdir): Handle also platforms with
64541                 nonempty EXEEXT.
64542
64543         2006-07-11  Bruno Haible  <bruno@clisp.org>
64544
64545                 * javacomp.c: Fix a comment.
64546                 Reported by Jim Meyering.
64547
64548         2006-04-30  Bruno Haible  <bruno@clisp.org>
64549
64550                 * javacomp.h (compile_java_class): Add source_version,
64551                 target_version arguments.
64552                 * javacomp.c: Rewritten to choose only a compiler that
64553                 respects the specified source_version and target_version.
64554
64555         2006-06-27  Bruno Haible  <bruno@clisp.org>
64556
64557                 Assume correct S_ISDIR macro.
64558                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64559
64560         2006-07-22  Bruno Haible  <bruno@clisp.org>
64561
64562                 * javaversion.h: New file, from GNU gettext.
64563                 * javaversion.c: New file, from GNU gettext.
64564                 * javaversion.java: New file, from GNU gettext.
64565                 * javaversion.class: New file, from GNU gettext.
64566
64567         2006-05-17  Bruno Haible  <bruno@clisp.org>
64568
64569                 Cygwin portability.
64570                 * javaexec.c (execute_java_class): Test for jview program
64571                 also on Cygwin.
64572
64573         2006-04-09  Bruno Haible  <bruno@clisp.org>
64574
64575                 * fatal-signal.c: Don't include string.h.
64576                 (at_fatal_signal): Use a copying loop instead of memcpy.
64577
64578         2005-12-04  Bruno Haible  <bruno@clisp.org>
64579
64580                 * csharpexec.c: Add support for 'clix' launcher (untested).
64581                 (execute_csharp_using_sscli): New function.
64582                 (execute_csharp_program): Call it.
64583
64584         2006-06-21  Bruno Haible  <bruno@clisp.org>
64585
64586                 Avoid warnings from recent versions of mcs.
64587                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64588                 -o, -L, -r any more. Use options documented since mcs-1.0
64589                 instead. Similarly for -g.
64590
64591         2005-07-09  Bruno Haible  <bruno@clisp.org>
64592
64593                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64594                 add a .dll suffix.
64595                 Reported by Mark Junker <mjscod@gmx.de>.
64596
64597         2006-06-17  Bruno Haible  <bruno@clisp.org>
64598
64599                 * config.charset: Update for NetBSD 3.0.
64600
64601         2006-05-17  Bruno Haible  <bruno@clisp.org>
64602
64603                 Cygwin portability.
64604                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64605
64606         2006-05-16  Bruno Haible  <bruno@clisp.org>
64607
64608                 * localcharset.c [CYGWIN]: Include <windows.h>.
64609                 (get_charset_aliases): For Cygwin, return the same CPxxx
64610                 aliases list as under WIN32.
64611                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64612                 the environment variables. Fall back to GetACP().
64613
64614         2006-04-05  Bruno Haible  <bruno@clisp.org>
64615
64616                 * config.charset: Update Juan Manuel Guerrero's address.
64617
64618         2005-02-12  Bruno Haible  <bruno@clisp.org>
64619
64620                 * allocsa.h: Add extern "C" for C++.
64621
64622         2005-02-10  Bruno Haible  <bruno@clisp.org>
64623
64624                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64625                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64626
64627         2006-07-22  Bruno Haible  <bruno@clisp.org>
64628
64629                 * gettext.h: Update to GNU gettext-0.15.
64630
64631 2006-07-22  Bruno Haible  <bruno@clisp.org>
64632
64633         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64634         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64635         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64636
64637 2006-07-21  Eric Blake  <ebb9@byu.net>
64638
64639         * modules/stdlib-safer: New file.
64640         * MODULES.html.sh (File stream based Input/Output): Add
64641         stdlib-safer.
64642
64643 2006-07-21  Eric Blake  <ebb9@byu.net>
64644
64645         * lib/stdlib-safer.h: New file from coreutils, required by
64646         stdlib--.h.
64647
64648 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64651
64652 2006-07-20  Bruno Haible  <bruno@clisp.org>
64653
64654         * gnulib-tool: Recognize new option --assume-autoconf.
64655         (autoconf_minversion): New variable.
64656         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64657
64658 2006-07-20  Bruno Haible  <bruno@clisp.org>
64659
64660         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64661
64662 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64663
64664         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64665         Reindent and repaginate.
64666
64667 2006-07-19  Derek Price  <derek@ximbiot.com>
64668
64669         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64670         Correct grammar.
64671
64672 2006-07-17  Bruno Haible  <bruno@clisp.org>
64673
64674         * modules/list: New file.
64675         * modules/array-list: New file.
64676         * modules/carray-list, modules/carray-list-tests: New files.
64677         * modules/linked-list, modules/linked-list-tests: New files.
64678         * modules/avltree-list, modules/avltree-list-tests: New files.
64679         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64680         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64681         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64682         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64683         * modules/oset: New file.
64684         * modules/array-oset: New file.
64685         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64686         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64687         * tests/test-carray_list.c: New file.
64688         * tests/test-linked_list.c: New file.
64689         * tests/test-avltree_list.c: New file.
64690         * tests/test-rbtree_list.c: New file.
64691         * tests/test-linkedhash_list.c: New file.
64692         * tests/test-avltreehash_list.c: New file.
64693         * tests/test-rbtreehash_list.c: New file.
64694         * tests/test-avltree_oset.c: New file.
64695         * tests/test-rbtree_oset.c: New file.
64696         * MODULES.html.sh (Container data structures): New section.
64697
64698 2006-07-17  Bruno Haible  <bruno@clisp.org>
64699
64700         * m4/gl_list.m4: New file.
64701
64702 2006-07-17  Bruno Haible  <bruno@clisp.org>
64703
64704         * lib/gl_list.h: New file.
64705         * lib/gl_list.c: New file.
64706         * lib/gl_array_list.h: New file.
64707         * lib/gl_array_list.c: New file.
64708         * lib/gl_carray_list.h: New file.
64709         * lib/gl_carray_list.c: New file.
64710         * lib/gl_linked_list.h: New file.
64711         * lib/gl_linked_list.c: New file.
64712         * lib/gl_anylinked_list1.h: New file.
64713         * lib/gl_anylinked_list2.h: New file.
64714         * lib/gl_avltree_list.h: New file.
64715         * lib/gl_avltree_list.c: New file.
64716         * lib/gl_anyavltree_list1.h: New file.
64717         * lib/gl_anyavltree_list2.h: New file.
64718         * lib/gl_rbtree_list.h: New file.
64719         * lib/gl_rbtree_list.c: New file.
64720         * lib/gl_anyrbtree_list1.h: New file.
64721         * lib/gl_anyrbtree_list2.h: New file.
64722         * lib/gl_anytree_list1.h: New file.
64723         * lib/gl_anytree_list2.h: New file.
64724         * lib/gl_linkedhash_list.h: New file.
64725         * lib/gl_linkedhash_list.c: New file.
64726         * lib/gl_anyhash_list1.h: New file.
64727         * lib/gl_anyhash_list2.h: New file.
64728         * lib/gl_avltreehash_list.h: New file.
64729         * lib/gl_avltreehash_list.c: New file.
64730         * lib/gl_rbtreehash_list.h: New file.
64731         * lib/gl_rbtreehash_list.c: New file.
64732         * lib/gl_anytreehash_list1.h: New file.
64733         * lib/gl_anytreehash_list2.h: New file.
64734
64735         * lib/gl_oset.h: New file.
64736         * lib/gl_oset.c: New file.
64737         * lib/gl_array_oset.h: New file.
64738         * lib/gl_array_oset.c: New file.
64739         * lib/gl_avltree_oset.h: New file.
64740         * lib/gl_avltree_oset.c: New file.
64741         * lib/gl_rbtree_oset.h: New file.
64742         * lib/gl_rbtree_oset.c: New file.
64743         * lib/gl_anytree_oset.h: New file.
64744
64745 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64746
64747         * m4/mkancesdirs.m4: New file.
64748         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64749         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64750         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64751         it.
64752
64753 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64754
64755         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64756         * lib/mkancesdirs.h: New files.
64757         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64758         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64759         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64760         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64761         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64762         callers changed.  Revamp internals significantly, by not
64763         attempting to create directories that are temporarily more
64764         permissive than the final results.  Do not attempt to use
64765         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64766         This removes some race conditions, fixes some bugs, and simplifies
64767         things.  Use new dirchownmod function to do owner and mode changes.
64768         * lib/mkdir-p.h: Likewise.
64769         * lib/modechange.c (octal_to_mode): New function.
64770         (struct mode_change): New member mentioned.
64771         (make_node_op_equals): New arg mentioned.  All callers changed.
64772         (mode_compile): Keep track of which mode bits the user has explicitly
64773         mentioned.
64774         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64775         New arg PMODE_BITS, to keep track of which mode bits the user
64776         mentioned; it treats S_ISUID and S_ISGID speciall.
64777         All callers changed.
64778         * lib/modechange.h: Likewise.
64779
64780 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         * MODULES.html.sh: Add mkancestors.
64783         * modules/mkancesdirs: New module.
64784         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64785         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64786         The chdir-safer and afs files are now orphans; I'll remove them
64787         unless someone speaks up.
64788         Add lib/dirchownmod.c, lib/dirchownmod.h.
64789         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64790         Add lchown, mkancesdirs.
64791         (Maintainer): Add self.
64792
64793 2006-07-15  Karl Berry  <karl@gnu.org>
64794
64795         * gnulib-tool: help message wording/arrangement.
64796
64797 2006-07-14  Simon Josefsson  <jas@extundo.com>
64798
64799         * doc/gnulib.texi (Libtool and Windows): New section.
64800
64801 2006-07-12  Simon Josefsson  <jas@extundo.com>
64802
64803         * modules/gendocs (License): Fix license, approved by Karl.
64804
64805 2006-07-12  Eric Blake  <ebb9@byu.net>
64806
64807         * MODULES.html.sh: Add gendocs.
64808
64809 2006-07-11  Eric Blake  <ebb9@byu.net>
64810
64811         * modules/fdl: New module, to install doc/fdl.texi.
64812         * MODULES.html.sh: Add new section for documentation modules.
64813         * gnulib-tool: Avoid space-tab.
64814         (--doc-base): New option, to manage files from doc.
64815
64816 2006-07-11  Eric Blake  <ebb9@byu.net>
64817
64818         * m4/absolute-header.m4: Fix comments to match recent change.
64819
64820 2006-07-11  Eric Blake  <ebb9@byu.net>
64821
64822         * gnulib-tool: List --doc-base before --tests-base.
64823
64824 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64825
64826         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64827
64828 2006-07-11  Bruno Haible  <bruno@clisp.org>
64829
64830         * README: Mention where to put documentation.
64831
64832 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64833
64834         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64835
64836 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64839         to stdint.m4.
64840
64841 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64842
64843         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64844         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64845         "no/such/file/stdint.h" when there is no such file, so that
64846         the resulting C code can be parsed by dodgy compilers.
64847         Problems reported by Bob Proulx.
64848
64849 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64850
64851         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64852         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64853         macros into the GNU _D_EXACT_NAMLEN.
64854         * lib/savedir.c:  Likewise.
64855         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64856
64857 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64858         and Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64861         * m4/savedir.m4:
64862         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64863         macros into the GNU _D_EXACT_NAMLEN.
64864
64865 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64868         around the absolute name, to work around a problem with the HP-UX
64869         11.23 native C compiler, reported by Bob Proulx.
64870
64871 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64872
64873         * doc/maintain.texi, make-stds.texi: Sync from
64874         <http://savannah.gnu.org/projects/gnustandards>.
64875
64876 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64879
64880 2006-07-09  Jim Meyering  <jim@meyering.net>
64881
64882         * m4/glob.m4: Remove a doubled word in a comment.
64883
64884 2006-07-09  Jim Meyering  <jim@meyering.net>
64885
64886         * lib/argp-pv.c: Remove a doubled word in a comment.
64887         * lib/check-version.c (check_version): Likewise.
64888         * lib/javacomp.c (compile_java_class): Likewise.
64889
64890 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64893         for the benefit of people using Autoconf 2.60.  If you want to
64894         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64895         (or m4/onceonly.m4, if pre-2.57) manually.
64896
64897 2006-07-08  Jim Meyering  <jim@meyering.net>
64898
64899         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64900         comment.
64901         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64902         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64903         comment.
64904
64905 2006-07-08  Jim Meyering  <jim@meyering.net>
64906
64907         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64908
64909 2006-07-07  Simon Josefsson  <jas@extundo.com>
64910
64911         * tests/test-crc.c: Change expected crc value, the test vector
64912         were probably computed using the old broken crc.c?
64913
64914 2006-07-06  Simon Josefsson  <jas@extundo.com>
64915
64916         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64917         now the canonical place for the M4 file).
64918
64919         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64920         from the sys_socket dependency now.
64921
64922         * modules/inet_pton (Files): Ditto.
64923
64924         * modules/inet_ntop (Files): Ditto.
64925
64926 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64927
64928         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64929         not gl_PREREQ_GETUSERSHELL.
64930
64931 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64932
64933         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64934         with only one argument, for Autoconf 2.60.
64935         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64936         expand to nothing, so add a shell command to avoid syntax error.
64937         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64938
64939 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64940
64941         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64942
64943 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64944
64945         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64946         no longer needed.  Check for isblank decl.
64947         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64948         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64949         of existence.
64950
64951 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * lib/getloadavg.c: Use __VMS, not VMS.
64954         * lib/getopt.c: Likewise.
64955         * lib/getpagesize.h: Likewise.
64956         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64957         and probably does not work.
64958
64959 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64960
64961         * lib/.cppi-disable: Add wcwidth.
64962         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64963         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64964         (ISGRAPH): Remove.  All uses changed to isgraph.
64965         (FOLD) [!defined _LIBC]: Remove special case.
64966         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64967         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64968         HAVE_ISBLANK.
64969         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64970         case.
64971
64972 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64973
64974         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64975         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64976         brackets.  Other minor changes to suppress some compiler
64977         warnings.
64978
64979 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64980         and Paul Eggert  <eggert@cs.ucla.edu>
64981
64982         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64983         of invoking obsolescent AC_HEADER_DIRENT macro.
64984         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64985         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64986         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64987         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64988         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64989         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64990         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64991         * m4/readdir.m4: Remove; no longer needed.
64992
64993 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64994         and Paul Eggert  <eggert@cs.ucla.edu>
64995
64996         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64997         Don't worry about this obsolete case any more.
64998         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64999         directories.
65000         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65001         worry about this obsolete case any more.
65002         * lib/fts.c: Likewise.
65003         * lib/getcwd.c: Likewise.
65004         * lib/glob.h: Likewise.
65005         * lib/savedir.c: Likewise.
65006
65007 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65010         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65011         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65012         needed.
65013         All uses removed.
65014         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65015         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65016         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65017         needed.
65018         * m4/getdate.m4 (gl_GETDATE): Likewise.
65019         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65020         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65021         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65022         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65023         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65024         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65025         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65026         needed.
65027
65028 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         * lib/memcasecmp.c: Include <limits.h>.
65031         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65032         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65033         Don't assume isdigit succeeds only on '0' through '9'.
65034
65035 2006-07-05  Eric Blake  <ebb9@byu.net>
65036
65037         * modules/getaddrinfo (Depends-on): Add snprintf.
65038
65039 2006-07-05  Eric Blake  <ebb9@byu.net>
65040
65041         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65042         to avoid 'header present but could not be compiled' on cygwin.
65043
65044 2006-07-05  Eric Blake  <ebb9@byu.net>
65045
65046         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65047         missing from netdb.h.
65048         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65049
65050 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65051
65052         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65053         no longer needed.
65054         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65055         * m4/getdate.m4 (gl_GETDATE): Likewise.
65056         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65057         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65058         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65059         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65061
65062 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65063
65064         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65065         All uses of is_space replaced by isspace.
65066         * lib/exit.h: Don't talk about STDC_HEADERS.
65067         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65068         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65069         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65070         replaced by isprint etc.
65071         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65072         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65073         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65074         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65075         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65076         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65077
65078 2006-07-05  Bruno Haible  <bruno@clisp.org>
65079
65080         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65081         the function exists, before testing against AIX.
65082         Reported by Martin Lambers <marlam@marlam.de>.
65083
65084 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65087         From Mark D. Baushke.
65088
65089 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65092         to the absolute name, not just one, to bypass Sun C 5.8's
65093         "warning: #include of /usr/include/... may be non-portable".
65094
65095 2006-07-04  Eric Blake  <ebb9@byu.net>
65096
65097         * modules/dirname-tests: New test module.
65098         * tests/test-dirname.c: New file, replacing dirname.c
65099         TEST_DIRNAME section that was recently deleted.
65100
65101 2006-07-04  Bruno Haible  <bruno@clisp.org>
65102
65103         Assume ANSI C header files and <ctype.h> functions.
65104         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65105         (mbsnwidth): Use isprint, iscntrl instead.
65106
65107 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         Merge from coreutils.
65110         * MODULES.html.sh: Add xstrtold.
65111         * modules/xstrtold: New file.
65112         * modules/cycle-check (Files): Add lib/same-inode.h.
65113         * modules/dirname (Files): Add m4/double-slash-root.m4.
65114         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65115         * modules/mkdir-p (Files): Add lib/same-inode.h.
65116         * modules/same (Files): Add lib/same-inode.h.
65117
65118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65119
65120         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65121         This is to keep the terminology clean; POSIX talks about
65122         "absolute pathnames", not "full pathnames", but the GNU
65123         Coding Standards say to use "path" for something else;
65124         so use "absolute" to keep both sides happy.
65125         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65126         Set gl_absolute_header, not gl_full_header_path.
65127         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65128         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65129         All uses changed.
65130
65131         Merge from coreutils.
65132
65133         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65134
65135         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65136         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65137         want to require the building of c-strtod.o.
65138         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65139         needs -lm directly.
65140         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65141
65142         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65145         --as-needed option if available.  Problem reported by Albert Chin in
65146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65147         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65148         cc merely issues a bunch of annoying warnings for --as-needed
65149         (this problem was reported by Bob Proulx).  Also, try linking with
65150         -lm to detect a bug in binutils 2.16 (this problem was reported
65151         by Ralf Wildenhues).
65152
65153         2006-06-18  Jim Meyering  <jim@meyering.net>
65154
65155         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65156         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65157         macro.
65158         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65159         also check for glibc-2.4's abort-inducing bug.
65160
65161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65162         Low-probability clean-up should be to use rmdir to get rid of
65163         the just-created directory, not unlink.
65164
65165         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65166         configure fail, and request a bug report to inform us about it.
65167         Add a comment that, barring reports to the contrary, in 2007 we'll
65168         assume ftruncate is universally available.
65169
65170         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65171
65172         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65173
65174         2006-03-12  Jim Meyering  <jim@meyering.net>
65175
65176         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65177         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65178         * m4/same.m4 (gl_SAME): Likewise.
65179         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65180
65181         2006-03-11  Eric Blake  <ebb9@byu.net>
65182
65183         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65184         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65185         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65186         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65187
65188 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65191         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65192         reported by Mark D. Baushke, one in
65193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65194
65195         Merge from coreutils.
65196
65197         * lib/.cppi-disable: Add stdint_.h.
65198         * lib/.cvsignore: Add stdint.h.
65199
65200         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65201
65202         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65203         both double and long double versions.
65204         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65205         * lib/xstrtold.c: New file.
65206         * lib/xstrtod.h (xstrtold): New decl.
65207
65208         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * lib/filemode.c (setst): Remove.
65211         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65212         (arguably) clearer, and the generated code is a bit smaller on my
65213         Debian GNU/Linux stable x86 host.
65214
65215         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65218         Assume that filemode.h includes sys/types.h and sys/stat.h.
65219         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65220         (ftypelet): Reorder to put common cases first, for efficiency.
65221         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65222         to do 'M'.
65223         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65224         of 10, for compatibility with FreeBSD.  All callers changed.
65225         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65226         types that can't be deduced solely from st_mode.  First arg is now a
65227         const pointer.
65228         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65229         (strmode): Renamed from mode_string.
65230         (filemodestring): New decl.
65231         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65232         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65233         needed.
65234         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65235
65236         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65239         fsusage.h now does that.  Include fsusage.h first, to test interface.
65240         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65241         at most one method (the old code could have generated decls that
65242         didn't conform to C89, not that this was ever exercised).
65243         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65244
65245         2006-03-19  Jim Meyering  <jim@meyering.net>
65246
65247         Work even in a chroot where d_ino values for entries in "/"
65248         don't match the stat.st_ino values for the same names.
65249         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65250         number, iterate through all entries again, using lstat instead.
65251         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65252         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65253
65254         * lib/getcwd.c (__getcwd): Clarify a comment.
65255         Use memcpy in place of a call to strcpy.
65256
65257         2006-03-12  Jim Meyering  <jim@meyering.net>
65258
65259         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65260         matches that of the current directory (which we're about to chdir ".."
65261         out of), then save the dev-ino of the parent, instead.
65262
65263         * lib/same-inode.h (SAME_INODE): New file/macro.
65264         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65265         Include "same-inode.h", instead.
65266         * lib/same.c: Likewise.
65267         * lib/cycle-check.h: Include "same-inode.h".
65268         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65269         * lib/cycle-check.c (SAME_INODE): Remove definition.
65270         * lib/root-dev-ino.h: Include "same-inode.h".
65271
65272         2006-03-11  Eric Blake  <ebb9@byu.net>
65273
65274         * lib/same.c (same_name): s/base_name/last_component/
65275         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65276         * lib/filenamecat.c (file_name_concat): Likewise.
65277
65278         2006-03-11  Eric Blake  <ebb9@byu.net>,
65279                     Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65282         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65283         drive prefix.
65284         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65285         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65286         (last_component): New method.
65287         * lib/dirname.c (dir_len): Determine when drive letters need a
65288         subsequent slash.  Preserve // when it is special.
65289         (dir_name): Don't append dot when drive letter is absolute.
65290         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65291         * lib/basename.c (base_name): New semantics - malloc the result.
65292         Preserve // when it is special.  Preserve relative files that look
65293         like drive letters.
65294         (base_len): Preserve // when it is special.
65295         (last_component): New method, similar to old base_name semantics.
65296         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65297         base_name.  Strip redundant slashes from ///.
65298
65299 2006-07-03  Jim Meyering  <jim@meyering.net>
65300
65301         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65302         macro is used before the first cycle_check call.
65303
65304 2006-07-03  Eric Blake  <ebb9@byu.net>
65305
65306         * modules/dirname (Depends-on): Add xstrndup.
65307
65308 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65311         test cases, so that config.log is a bit easier to follow.
65312
65313 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65314
65315         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65316         both are 64 bits, since this seems to be the tradition, and this
65317         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65318         we ever run into a host that prefers long long to long in this
65319         case, we'll need another configure-time test.  Problem reported by
65320         Jim Meyering.
65321
65322 2006-07-02  Eric Blake  <ebb9@byu.net>
65323
65324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65325
65326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         * modules/inttypes (Depends-on): No longer depends on stdint.
65329         * modules/stdint (Description): Say more about assumptions.
65330         Say that the fast types might differ.  Say macros are used.
65331         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65332         (Makefile.am): Revise list of substituted symbols to match
65333         new stdint.m4.
65334         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65335         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65336         * tests/test-stdint.c (verify_same_types)
65337         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65338         the code conforms to C99/C89.
65339         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65340         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65341
65342 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65345         but fix a bug, by requiring at least 64 bits.
65346         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65347         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65348         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65349         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65350
65351         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65352         changes.  Make 2.59 a prerequisite.  Check and substitute for
65353         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65354         inttypes.h.  Do not use special include files; just use the
65355         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65356         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65357         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65358         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65359         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65360         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65361         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65362         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65363         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65364         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65365         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65366         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65367         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65368         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65369         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65370         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65371         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65372         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65373         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65374         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65375         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65376         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65377         not check for things that C99 does not require, e.g., int8_t.  If
65378         a test isn't needed unless <stdint.h> isn't working, and is
65379         unlikely to be needed for any other reason, then don't do it
65380         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65381         size_t, since we assume C89 freestanding at least.  Do not check
65382         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65383         the right thing even if the types are not defined.  Instead use:
65384         (gl_STDINT_TYPE_PROPERTIES): New macro.
65385         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65386         testing whether <sys/types.h> clashes, as Autoconf does this for
65387         us now.  All uses removed.
65388         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65389         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65390         (gl_CHECK_TYPE_SAME):
65391         Remove; no longer needed.
65392         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65393         exists, since we'll return 0 anyway in that case.
65394         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65395
65396 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65397
65398         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65399         possible collision with system files.
65400         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65401         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65402         WCHAR_MIN and WCHAR_MAX in this case.
65403         (<stddef.h>): Do not include; no longer needed.
65404         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65405         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65406         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65407         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65408         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65409         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65410         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65411         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65412         !defined(__c99))]: Include in this case too, since it's harmless
65413         now.
65414         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65415         dangerous to do so.
65416         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65417         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65418         (_STDINT_MIN, _STDINT_MAX): New macros.
65419         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65420         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65421         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65422         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65423         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65424         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65425         macros, not typedefs; this simplifies things quite a bit.
65426         Use long int for all types narrower than int64_t.
65427         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65428         Define in terms of long long int or int64_t or long int,
65429         not int64_t or int32_t.  This saves some compile-time testing.
65430         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65431         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65432         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65433         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65434         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65435         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65436         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65437         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65438         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65439         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65440         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65441         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65442         undef any previous version and define our own version, for
65443         simplicity and consistency with the new macros for types.
65444         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65445         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65446         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65447         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65448         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65449         @WINT_T_SUFFIX@ to keep things simple here.
65450         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65451         Simplify by assuming typical 8/16/32/64 host, since we're
65452         already doing that elsewhere anyway.
65453         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65454         and assume long long int is 64 bits if available.  This
65455         speeds up 'configure'.
65456
65457 2006-07-01  Eric Blake  <ebb9@byu.net>
65458
65459         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65460         Reported by Andreas Buening.
65461
65462 2006-07-01  Eric Blake  <ebb9@byu.net>
65463
65464         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65465
65466 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65467
65468         * lib/getaddrinfo.c: fixed typo
65469
65470 2006-06-29  Jim Meyering  <jim@meyering.net>
65471
65472         * modules/strftime (Maintainer): Add my name, since with the
65473         FPRINTFTIME changes strftime.c has forked from glibc.
65474
65475 2006-06-29  Eric Blake  <ebb9@byu.net>
65476
65477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65478
65479 2006-06-29  Eric Blake  <ebb9@byu.net>
65480
65481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65482
65483 2006-06-29  Eric Blake  <ebb9@byu.net>
65484
65485         * lib/stat_.h: New file.
65486
65487 2006-06-29  Eric Blake  <ebb9@byu.net>
65488
65489         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65490         unused static function.
65491
65492 2006-06-29  Eric Blake  <ebb9@byu.net>
65493
65494         * doc/functions.texi (Function Portability): Document missing lstat
65495         on mingw.
65496
65497 2006-06-29  Eric Blake  <ebb9@byu.net>
65498
65499         * MODULES.html.sh: Add sys_stat.
65500         * modules/sys_stat: New module.
65501         * modules/mkstemp (Depends-on): Add sys_stat.
65502
65503 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65504
65505         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65506
65507 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65508
65509         * m4/c-bs-a.m4: Removed.
65510
65511 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65512
65513         * lib/strftime.c: Assume strftime() exists.
65514
65515 2006-06-29  Derek Price  <derek@ximbiot.com>
65516
65517         * modules/c-bs-a: Removed - \a is C89.
65518         * MODULES.html.sh: Remove c-bs-a.
65519
65520 2006-06-29  Bruno Haible  <bruno@clisp.org>
65521
65522         * modules/wcwidth (License): Change to LGPL.
65523
65524 2006-06-28  Simon Josefsson  <jas@extundo.com>
65525
65526         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65527         on _WIN32.
65528
65529         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65530         getnameinfo.
65531
65532 2006-06-28  Simon Josefsson  <jas@extundo.com>
65533
65534         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65535
65536 2006-06-28  Simon Josefsson  <jas@extundo.com>
65537
65538         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65539         functions there.  It will succeed on Windows XP, but on Windows
65540         2000 and (presumably) earlier, it will fail, and use the internal
65541         re-implementation.
65542         (use_win32_p): New function.
65543         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65544         Support AI_NUMERICSERV to disable getservbyname.
65545         (getnameinfo): New function, only supports
65546         NI_NUMERICHOST|NI_NUMERICSERV for now.
65547
65548         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65549         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65550         getnameinfo.
65551
65552 2006-06-28  Eric Blake  <ebb9@byu.net>
65553
65554         * modules/wcwidth: New file.
65555         * modules/mbchar (Depends-on): Add wcwidth.
65556         * modules/mbswidth (Depends-on): Add wcwidth.
65557         * MODULES.html.sh: Add wcwidth.
65558
65559 2006-06-28  Eric Blake  <ebb9@byu.net>
65560
65561         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65563
65564 2006-06-28  Eric Blake  <ebb9@byu.net>
65565
65566         * lib/xvasprintf.h: Fix comments.
65567
65568 2006-06-28  Eric Blake  <ebb9@byu.net>
65569
65570         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65571         * lib/mbswidth.c (wcwidth): Move from here...
65572         * lib/wcwidth.h: ...to this new file.
65573
65574 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65575
65576         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65577
65578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65579         it's obsolete.
65580         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65581
65582 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65583
65584         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65585         Autoconf 2.60 says this stuff was obsolete.
65586
65587 2006-06-28  Bruno Haible  <bruno@clisp.org>
65588
65589         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65590
65591 2006-06-28  Bruno Haible  <bruno@clisp.org>
65592
65593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65594         gt_TYPE_WCHAR_T.
65595
65596 2006-06-28  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65599         declaration for wcwidth.
65600         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65601
65602 2006-06-28  Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65605         (mkdir): Define using _mkdir.
65606
65607 2006-06-28  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/getaddrinfo.h: Fix POSIX URL.
65610         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65611         _WIN32.
65612         (use_win32_p): Make static.
65613         (getaddrinfo): Reject service name if it is empty or does not consist
65614         solely of decimal digits, or if its value is > 65535.
65615         (getnameinfo): Remove useless casts.
65616
65617 2006-06-27  Simon Josefsson  <jas@extundo.com>
65618
65619         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65620         Eggert and Martin Lambers.
65621
65622 2006-06-27  Simon Josefsson  <jas@extundo.com>
65623
65624         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65625         Eggert and Martin Lambers.
65626
65627 2006-06-27  Bruno Haible  <bruno@clisp.org>
65628
65629         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65630         result to 0, not to empty.
65631         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65632
65633 2006-06-27  Bruno Haible  <bruno@clisp.org>
65634
65635         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65636
65637 2006-06-26  Simon Josefsson  <jas@extundo.com>
65638
65639         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65640         present.
65641
65642 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65643
65644         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65645         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65647
65648 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65649
65650         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65651
65652 2006-06-26  Bruno Haible  <bruno@clisp.org>
65653
65654         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65655
65656 2006-06-26  Bruno Haible  <bruno@clisp.org>
65657
65658         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65659
65660 2006-06-26  Bruno Haible  <bruno@clisp.org>
65661
65662         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65663         SGI C compiler in pre-C99 mode.
65664         Suggested by Mark D. Baushke and Larry Jones.
65665
65666 2006-06-26  Bruno Haible  <bruno@clisp.org>
65667
65668         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65669         WCHAR_MAX.
65670         Reported by Mark D. Baushke and Larry Jones.
65671
65672 2006-06-26  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65675         in pre-C99 mode.
65676         Suggested by Mark D. Baushke and Larry Jones.
65677
65678 2006-06-23  Simon Josefsson  <jas@extundo.com>
65679             Bruno Haible  <bruno@clisp.org>
65680
65681         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65682         Emit mostlyclean-local rule.
65683         (func_emit_tests_Makefile_am): Likewise.
65684         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65685
65686 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65687
65688         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65689
65690 2006-06-23  Bruno Haible  <bruno@clisp.org>
65691
65692         * tests/test-stdint.c: Update to match ISO C 99 Technical
65693         Corrigendum 1.
65694
65695 2006-06-23  Bruno Haible  <bruno@clisp.org>
65696
65697         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65698
65699 2006-06-23  Bruno Haible  <bruno@clisp.org>
65700
65701         * lib/stdint_.h: Treat IRIX like OpenBSD.
65702
65703 2006-06-23  Bruno Haible  <bruno@clisp.org>
65704
65705         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65706         ISO C 99 Technical Corrigendum 1.
65707
65708 2006-06-22  Simon Josefsson  <jas@extundo.com>
65709
65710         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65711         MinGW.
65712
65713 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65714
65715         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65716         needed.  Some compiler complained about some of them.  Problem reported
65717         by Larry Jones in
65718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65719
65720 2006-06-21  Simon Josefsson  <jas@extundo.com>
65721
65722         * tests/test-getaddrinfo.c: New file.
65723
65724         * modules/getaddrinfo-tests: New file.
65725
65726         * MODULES.html.sh: Add inet_pton.
65727
65728         * modules/inet_pton: New file.
65729
65730 2006-06-21  Simon Josefsson  <jas@extundo.com>
65731
65732         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65733         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65734         of using the (limited) gnulib implementation on Windows XP.
65735
65736         * m4/inet_pton.m4: New file.
65737
65738 2006-06-21  Simon Josefsson  <jas@extundo.com>
65739
65740         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65741         variable.
65742
65743         * lib/socket_.h: Don't define WINVER.
65744
65745         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65746         slightly modified to work in gnulib.
65747
65748 2006-06-21  Simon Josefsson  <jas@extundo.com>
65749
65750         * doc/gnulib.texi (Windows sockets): Add.
65751
65752 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         * lib/read-file.c (fread_file): Start with buffer allocation of
65755         0 bytes rather than 1 byte; this simplifies the code.
65756         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65757         code to free buffer and save/restore errno.
65758         (internal_read_file): Remove unused local.
65759
65760 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65763         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65764         Problem reported by Denis Excoffier in
65765         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65766
65767 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65768
65769         * modules/sys_socket, modules/socklen: Include sys/types since
65770         FreeBSD 4.x's sys/socket.h needs it.
65771
65772 2006-06-19  Simon Josefsson  <jas@extundo.com>
65773
65774         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65775
65776 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65779
65780 2006-06-19  Bruno Haible  <bruno@clisp.org>
65781
65782         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65783         and FULL_PATH_INTTYPES_H in angle brackets.
65784         Reported by Mark D. Baushke <mdb@gnu.org>.
65785
65786 2006-06-17  Eric Blake  <ebb9@byu.net>
65787
65788         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65789         errno.
65790
65791 2006-06-17  Bruno Haible  <bruno@clisp.org>
65792
65793         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65794         <sys/inttypes.h>.
65795
65796 2006-06-17  Bruno Haible  <bruno@clisp.org>
65797
65798         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65799         whether errno is declared. Assume <errno.h> declares errno.
65800
65801 2006-06-17  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65804
65805 2006-06-17  Bruno Haible  <bruno@clisp.org>
65806
65807         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65808         problem on Solaris 2.5.1.
65809
65810 2006-06-16  Eric Blake  <ebb9@byu.net>
65811
65812         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65813         * lib/unicodeio.c [!defined errno]: Likewise.
65814         * lib/strtol.c [!defined errno]: Likewise.
65815         * lib/strtod.c [!defined errno]: Likewise.
65816
65817 2006-06-15  Eric Blake  <ebb9@byu.net>
65818
65819         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65820
65821 2006-06-15  Eric Blake  <ebb9@byu.net>
65822
65823         * config/srclist.txt (ssize_t.m4): Lose sync.
65824
65825 2006-06-15  Bruno Haible  <bruno@clisp.org>
65826
65827         * modules/stdint (Files): Include m4/full-header-path.m4,
65828         m4/size_max.m4, m4/wchar_t.m4.
65829         (Makefile.am): Many more substitutions.
65830         * modules/stdint-tests: New file.
65831         * tests/test-stdint.c: New file.
65832
65833 2006-06-15  Bruno Haible  <bruno@clisp.org>
65834
65835         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65836         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65837         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65838         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65839         gl_CHECK_TYPE_SAME): New macros.
65840
65841 2006-06-15  Bruno Haible  <bruno@clisp.org>
65842
65843         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65844
65845 2006-06-15  Bruno Haible  <bruno@clisp.org>
65846
65847         * lib/stdint_.h: Rewritten to be fully auto-configured.
65848         Fixes bug on HP-UX/IA64.
65849
65850 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65851
65852         * lib/getdate.y (__attribute__): Don't define if already defined.
65853         Problem reported by Larry Jones.
65854         * lib/utimens.c (__attribute__): Likewise.
65855
65856 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65857
65858         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65859         reported by Andreas Schwab.
65860
65861 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65862             Bruno Haible  <bruno@clisp.org>
65863
65864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65865         check for the declaration of strnlen and a run test that exposes the
65866         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65867         rpl_strndup.
65868
65869 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65870             Bruno Haible  <bruno@clisp.org>
65871
65872         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65873
65874 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65875
65876         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65877         compile test, for Tru64 4.0D.
65878
65879 2006-05-28  Karl Berry  <karl@gnu.org>
65880
65881         * config/srclist.txt (printf-args.c): lose sync.
65882
65883 2006-05-26  Martin Lambers  <marlam@marlam.de>
65884
65885         * lib/getpass.c: Updates the test for the native W32 API, and adds
65886         missing includes, thus fixing compilation warnings.
65887
65888 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65889
65890         * lib/exclude.c (exclude_fnmatch): New function.
65891         (excluded_file_name): Call exclude_fnmatch.
65892         * lib/exclude.h (excluded_file_name): New prototype
65893
65894 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65895
65896         * lib/tempname.c (small_open, large_open): New macros.
65897         (__open, __open64) [!_LIBC]: Remove.
65898         (__gen_tempname): Use small_open and large_open instead of __open
65899         and __open64.  This fixes a portability bug on HP-UX 11.11i
65900         reported by Simon Wing-Tang in
65901         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65902
65903 2006-05-24  Bruno Haible  <bruno@clisp.org>
65904
65905         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65906         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65907         Reported by Thorsten Maerz <torte@netztorte.de> via
65908         Aaron Stone <aaron@serendipity.cx>.
65909
65910 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65911
65912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65913         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65914         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65915         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65916         not really conditional on the cache.
65917         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65918
65919 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65922         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65923         (my_usleep): Don't mishandle maximum value.
65924
65925 2006-05-19  Jim Meyering  <jim@meyering.net>
65926
65927         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65928
65929 2006-05-17  Bruno Haible  <bruno@clisp.org>
65930
65931         Cygwin portability.
65932         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65933
65934 2006-05-17  Bruno Haible  <bruno@clisp.org>
65935
65936         * lib/stdint_.h: Fix recognition of Cygwin.
65937
65938 2006-05-15  Bruno Haible  <bruno@clisp.org>
65939
65940         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65941         on libtool patch by Ralf Wildenhues.
65942
65943 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65946         test for C99 conformance; (bool) 0.5 is an integer constant
65947         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65948         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65949
65950 2006-05-11  Simon Josefsson  <jas@extundo.com>
65951
65952         * m4/xvasprintf.m4: Fix obvious typo.
65953
65954 2006-05-11  Jim Meyering  <jim@meyering.net>
65955
65956         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65957         James Lemley.
65958
65959 2006-05-10  Simon Josefsson  <jas@extundo.com>
65960
65961         * lib/md4.c: Typo fix, update copyright years.
65962         (K1, K2): Don't use L because it turn computations into 64-bit on
65963         64-bit platforms.
65964
65965 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65966
65967         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65968         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65969         unwanted sign propagation, e.g., on hosts with 64-bit int.
65970         There still are some problems with reeelly weird theoretical hosts
65971         (e.g., 33-bit int) but it's not worth worrying about now.
65972         * lib/sha1.c (rol): Likewise.
65973         (K1, K2, K3, K4): Remove unnecessary L suffix.
65974
65975 2006-05-10  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/des.c: Cast to avoid warnings.
65978
65979 2006-05-09  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65982         (Depends-on): Depend also on xsize, stdarg.
65983         (configure.ac): Add gl_XVASPRINTF.
65984
65985 2006-05-09  Bruno Haible  <bruno@clisp.org>
65986
65987         * m4/xvasprintf.m4: New file.
65988
65989 2006-05-09  Bruno Haible  <bruno@clisp.org>
65990
65991         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65992         (EOVERFLOW): Define fallback value.
65993         (xstrcat): New function.
65994         (xvasprintf): Recognize the special case of a string concatenation.
65995
65996 2006-05-08  Eric Blake  <ebb9@byu.net>
65997
65998         * gnulib-tool (func_version): Base copyright year on CVS date.
65999         (func_emit_copyright_notice): New function.
66000         (func_emit_lib_Makefile_am): Use it.
66001         (func_emit_tests_Makefile_am): Likewise.
66002         (func_import): Likewise.
66003
66004 2006-05-08  Bruno Haible  <bruno@clisp.org>
66005
66006         * modules/stdarg: New file.
66007         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66008
66009 2006-05-08  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/stdarg.m4: New file, from GNU gettext.
66012
66013 2006-05-08  Bruno Haible  <bruno@clisp.org>
66014
66015         * config/srclist.txt (build-aux/config.rpath): different from latest
66016         release.
66017
66018 2006-05-08  Bruno Haible  <bruno@clisp.org>
66019
66020         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66021
66022 2006-05-05  Jim Meyering  <jim@meyering.net>
66023
66024         * m4/warning.m4: New file, derived from bison's file by the same name.
66025
66026 2006-05-03  Bruno Haible  <bruno@clisp.org>
66027
66028         * lib/stdint_.h: Shorter URL.
66029         * lib/inttypes.h: Likewise.
66030
66031 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66032
66033         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66034
66035 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * lib/verify.h: Document the internals better.  Most of this change
66038         was written by Bruno Haible.
66039
66040 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         * doc/verify.texi: New file, partly based on a proposal by
66043         Bruno Haible.
66044
66045 2006-05-02  Bruno Haible  <bruno@clisp.org>
66046
66047         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66048         test from here...
66049         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66050
66051 2006-04-29  Bruno Haible  <bruno@clisp.org>
66052
66053         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66054         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66055
66056 2006-04-29  Bruno Haible  <bruno@clisp.org>
66057
66058         * gnulib-tool: Make --update option actually work.
66059
66060 2006-04-29  Bruno Haible  <bruno@clisp.org>
66061
66062         * doc/gcd.texi: New file.
66063         * doc/gnulib.texi: Include it.
66064
66065 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * lib/getdate.y (get_date): When adding relative date, start with the
66068         initial time, not with the result of the first mktime call.
66069
66070 2006-04-25  Bruno Haible  <bruno@clisp.org>
66071
66072         * gnulib-tool (func_import): Output the include directives in three
66073         blocks, sorted separately.
66074         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66075
66076 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66079         to define main with arguments, for C++.  Reported by Eric Blake.
66080         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66081         Prefer 'int main ()' to 'int main (void)', for C++.
66082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66084         for 'main', for C99 and C++.
66085
66086 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66087
66088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66089         Don't assume that exit status -1 is valid.
66090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66091         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66092         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66093         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66094         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66095         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66096         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66097         functions can be used without declaring them, or that you can
66098         exit with status -1.
66099         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66100
66101 2006-04-24  Karl Berry  <karl@gnu.org>
66102
66103         * config/srclist.txt (longdouble.m4): sync lost.
66104
66105 2006-04-24  Eric Blake  <ebb9@byu.net>
66106
66107         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66108
66109 2006-04-24  Bruno Haible  <bruno@clisp.org>
66110
66111         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66112         poll() implementation in AIX.
66113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66114
66115 2006-04-24  Bruno Haible  <bruno@clisp.org>
66116
66117         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66118         assigned exactly once.
66119
66120 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66121             Bruno Haible  <bruno@clisp.org>
66122
66123         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66124         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66125         for AM_CPPFLAGS.
66126
66127 2006-04-23  Bruno Haible  <bruno@clisp.org>
66128
66129         * modules/copy-file: Depend on unistd.
66130         * modules/execute: Likewise.
66131         * modules/fatal-signal: Likewise.
66132         * modules/findprog: Likewise.
66133         * modules/mkdtemp : Likewise.
66134         * modules/pipe: Likewise.
66135         * modules/wait-process: Likewise.
66136
66137 2006-04-23  Bruno Haible  <bruno@clisp.org>
66138
66139         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66140         condition was already detected.
66141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66142
66143 2006-04-23  Bruno Haible  <bruno@clisp.org>
66144
66145         * lib/copy-file.c: Include <unistd.h> unconditionally.
66146         * lib/execute.c: Likewise.
66147         * lib/fatal-signal.c: Likewise.
66148         * lib/findprog.c: Likewise.
66149         * lib/mkdtemp.c: Likewise.
66150         * lib/pipe.h: Likewise.
66151         * lib/pipe.c: Likewise.
66152         * lib/wait-process.h: Likewise.
66153
66154 2006-04-23  Bruno Haible  <bruno@clisp.org>
66155
66156         * gnulib-tool (func_usage): Fix --import description. Document
66157         --update.
66158         (func_import): Create temporary file in a temporary directory, if
66159         --dry-run is specified. Silence errors from 'grep' when there are no
66160         m4 files in $m4dir.
66161         (func_create_testdir): Silence errors from 'grep' when there are no
66162         m4 files in $m4dir.
66163         Reported by Karl Berry <karl@freefriends.org>.
66164
66165 2006-04-20  Bruno Haible  <bruno@clisp.org>
66166
66167         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66168         one argument, so that the code will be portable to Autoconf 2.60.
66169         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66170         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66171         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66172
66173 2006-04-19  Derek Price  <derek@ximbiot.com>
66174             Eric Blake  <ebb9@byu.net>
66175
66176         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66177         rather than "/full/path.h".  Update comment to match.  Shorten &
66178         generalize m4_translit call via AS_TR_CPP.
66179
66180 2006-04-19  Derek Price  <derek@ximbiot.com>
66181             Eric Blake  <ebb9@byu.net>
66182
66183         * lib/inttypes.h: Correct grammar in comment.
66184
66185 2006-04-18  Derek Price  <derek@ximbiot.com>
66186             Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         * modules/inttypes: New file.
66189         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66190
66191 2006-04-18  Derek Price  <derek@ximbiot.com>
66192             Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66195         New files.
66196
66197 2006-04-18  Derek Price  <derek@ximbiot.com>
66198             Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * lib/inttypes.h: New file.
66201         * lib/strtoimax.c: Assume <inttypes.h>.
66202
66203 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66206         isn't mounted.  Problem reported by Kir Kolyshkin.
66207
66208 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66209
66210         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66211         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66212         Derek R. Price.
66213         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66214         implementation.
66215
66216 2006-04-12  Eric Blake  <ebb9@byu.net>
66217
66218         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66219         is now done automatically by the corresponding Autoconf macro.
66220
66221 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66222
66223         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66224         time_r.h.
66225
66226 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         Merge regex changes from libc, removing some of our
66229         POSIX-conformance changes that were rejected and redoing them in a
66230         less-intrusive way.
66231
66232         * lib/regcomp.c (re_compile_internal, init_dfa):
66233         Length arg is now size_t, not Idx.  All uses changed.
66234         (peek_token): Forward decl now says internal_function.
66235         (__re_error_msgid, __re_error_msgid_idx):
66236         Now static rather than extern with attribute_hidden.
66237         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66238         For some reason libc prefers K&R style defns for external functions.
66239         (regerror) [!defined _LIBC]: Likewise.
66240         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66241         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66242         (build_range_exp, build_collating_symbol):
66243         Use K&R-style defn.
66244         (re_compile_fastmap): Use '\0' to memset, not 0.
66245         (utf8_sb_map): Make the calculations more obvious.
66246         (init_dfa, parse_bracket_exp, build_charclass_op):
66247         Call calloc and cast result, as glibc does.
66248         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66249         (build_range_exp, build_collating_symbol):
66250         Now internal functions.
66251
66252         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66253
66254         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66255         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66256         Don't depend on VMS; depend on __VMS instead, for POSIX
66257         namespace cleanness.
66258         (regoff_t): Define to ssize_t, not long int.
66259
66260         Remove the REG_ macros named below.  Instead, make the old names
66261         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66262         __USE_GNU_REGEX.
66263         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66264         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66265         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66266         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66267         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66268         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66269         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66270         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66271         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66272         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66273         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66274         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66275         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66276         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66277         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66278         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66279         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66280         (REG_NREGS):
66281         Remove.  All uses replaced by the old RE_* names.
66282         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66283         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66284         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66285         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66286         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66287         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66288         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66289         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66290         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66291         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66292         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66293         Don't bother having these macros be independent of each others'
66294         values, since they no longer exist in the POSIX name space.
66295
66296         Rename the following member names back to their old names,
66297         unless !__USE_GNU_REGEX.  All uses changed back.
66298         (buffer): Renamed from re_buffer.
66299         (allocated): Renamed from re_allocated.
66300         (used): Renamed from re_used.
66301         (syntax): Renamed from re_syntax.
66302         (fastmap): Renamed from re_fastmap.
66303         (translate): Renamed from re_translate.
66304         (can_be_null): Renamed from re_can_be_null.
66305         (regs_allocated): Renamed from re_regs_allocated.
66306         (fastmap_accurate): Renamed from re_fastmap_accurate.
66307         (no_sub): Renamed from re_no_sub.
66308         (not_bol): Renamed from re_not_bol.
66309         (not_eol): Renamed from re_not_eol.
66310         (newline_anchor): Renamed from re_newline_anchor.
66311         (num_regs): Renamed from rm_num_regs.
66312         (start): Renamed from rm_start.
66313         (end): Renamed from rm_end.
66314
66315         (free_state): Move up a bit.
66316
66317         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66318         #define to be empty.
66319         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66320         when that is what is intended.
66321         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66322         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66323         (MAX): New macro.
66324         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66325         All uses changed back to re_malloc, etc.  It's now the caller's
66326         responsibility to check for overflow; all callers changed.
66327         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66328         (re_x2nrealloc): Remove.
66329         (free_state): Remove decl.
66330
66331         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66332         (re_set_registers, re_exec):
66333         Use K&R-style defn.
66334
66335         2006-01-31  Roland McGrath  <roland@redhat.com>
66336
66337         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66338         Reported by Mike Frysinger <vapier@gentoo.org>.
66339
66340         2006-01-15  Andreas Jaeger  <aj@suse.de>
66341
66342         [BZ #1950]
66343         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66344         build_wcs_upper_buffer change.
66345         (build_wcs_upper_buffer): Change return type.
66346
66347         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66348
66349         * lib/regex_internal.h: Include <stdint.h> if available.
66350
66351         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66352
66353         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66354
66355         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66356
66357         * lib/regcomp.c: Adjust for changed secondary hash function.
66358
66359         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66360
66361         * lib/regex.h: Pretty printing.
66362         Clean up namespace a bit.
66363
66364         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66365
66366         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66367         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66368
66369         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66370                     Ulrich Drepper  <drepper@redhat.com>
66371
66372         [BZ #1302]
66373         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66374         changed.
66375         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66376
66377         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66378
66379         [BZ #281]
66380         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66381         * lib/regcomp.c: Remove unnecessary uses of
66382         unsigned RE_TRANSLATE_TYPE.
66383         * lib/regex_internal.h: Likewise.
66384         * lib/regex_internal.c: Likewise.
66385         * lib/regexec.c: Likewise.
66386         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66387
66388         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66389
66390         * lib/regexec.c (find_recover_state): Remove unnecessary
66391         initialization.
66392         (transit_state_bkref): Make DFA a const pointer.
66393         (get_subexp): Likewise.
66394         (check_arrival): Likewise.
66395         (update_cur_sifted_state): Likewise.
66396         (re_search_internal): Likewise.
66397         (prune_impossible_nodes): Likewise.
66398         (acquire_init_state_context): Likewise.
66399         (proceed_next_node): Likewise.
66400         (set_regs): Likewise.
66401         (free_fail_stack_return): Likewise.
66402         (check_arrival_expand_ecl): Mark DFA parameter as const.
66403         (check_arrival_expand_ecl_sub): Likewise.
66404         (check_subexp_limits): Likewise.
66405         (sub_epsilon_src_nodes):  Likewise.
66406         (add_epsilon_src_nodes):  Likewise.
66407         (merge_state_array): Likewise.
66408         (update_regs): Likewise.
66409         (build_trtable): Likewise.
66410         (sift_states_backward): Mark MCTX parameter as const.
66411         (build_sifted_states): Likewise.
66412         (update_cur_sifted_state): Likewise.
66413         (sift_states_mkref): Likewise.
66414         (check_arrival_expand_ecl): Mark eclosure as const.
66415         (check_dst_limits_calc_pos_1): Likewise.
66416         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66417         pointer.
66418
66419         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66420
66421         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66422         (transit_state_sb): Likewise.
66423         (transit_state_mb): Likewise.
66424         (sift_states_iter_mb): Likewise.
66425         (check_arrival_add_next_nodes): Likewise.
66426         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66427         [_LIBC] (re_search_2_stub): Use mempcpy.
66428
66429         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66430         mbrtowc for very simple UTF-8 case.
66431
66432         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66433         a pointer-to-const.
66434         (re_acquire_state_context): Likewise.
66435         * lib/regex_internal.h: Adjust prototypes.
66436
66437         * lib/regex.c: Prevent using C++ compilers.
66438
66439         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66440         (re_acquire_state_context): Likewise.
66441
66442 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * modules/regex (Depends-on): Add ssize_t.
66445
66446 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66449         translation table.
66450
66451 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66452
66453         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66454
66455 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66456             Bruno Haible  <bruno@clisp.org>
66457
66458         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66459         <sys/types.h> and <inttypes.h>.
66460
66461 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66462
66463         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66464         `__error_t_defined', so argp.h will not typedef the former.
66465
66466 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66467
66468         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66469         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66470         glibc names.  Even if glibc is changed to conform to POSIX, the
66471         traditional names will be available anyway, since regex depends on
66472         the extensions module.  Also, fix a longstanding typo in the
66473         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66474         reported by Emanuele Giaquinta.  Also, change sense of cached
66475         variable, so that the message makes sense.
66476
66477 2006-03-24  Simon Josefsson  <jas@extundo.com>
66478
66479         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66480         including some doc fixes.
66481         (base64_encode_alloc): Fix +1 bug on allocation failures.
66482
66483 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66484
66485         * lib/base64.c (base64_encode): Do not read past end of array with
66486         unsanitized input on systems with CHAR_BIT > 8.
66487
66488 2006-03-24  Eric Blake  <ebb9@byu.net>
66489
66490         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66491
66492 2006-03-22  Karl Berry  <karl@gnu.org>
66493
66494         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66495         * config/srclistvars.sh (COREUTILS): new var.
66496
66497 2006-03-17  Jim Meyering  <jim@meyering.net>
66498
66499         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66500         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66501
66502 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66503
66504         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66505         no longer needs it.  Instead, check that regoff_t is as least
66506         as wide as ptrdiff_t.
66507
66508         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66509         so that our regex.h stays compatible with the installed regex.
66510         This is helpful for installers who configure --without-included-regex.
66511         Problem reported by Emanuele Giaquinta.
66512
66513 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66514
66515         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66516         Typedef to long int, not to off_, as POSIX will likely change
66517         in that direction.
66518
66519 2006-03-15  Eric Blake  <ebb9@byu.net>
66520
66521         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66522
66523 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66524
66525         * lib/argp-help.c (validate_uparams): Fix typo
66526         * lib/argp-parse.c (argp_default_options): Consistently begin help
66527         messages with a lowercase letter.
66528
66529 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66532         overrun buffers and shouldn't be used (much as gets shouldn't be
66533         used).
66534         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66535
66536 2006-03-08  Simon Josefsson  <jas@extundo.com>
66537
66538         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66539         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66540
66541 2006-03-08  Simon Josefsson  <jas@extundo.com>
66542
66543         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66544         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66545
66546 2006-03-08  Simon Josefsson  <jas@extundo.com>
66547
66548         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66549         signal that configure disabled the device.
66550
66551 2006-03-08  Simon Josefsson  <jas@extundo.com>
66552
66553         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66554         languages.
66555
66556 2006-03-07  Simon Josefsson  <jas@extundo.com>
66557
66558         * modules/getopt (Depends-on): Add unistd.
66559
66560         * modules/unistd: New file.
66561
66562 2006-03-07  Simon Josefsson  <jas@extundo.com>
66563
66564         * modules/gc-random: New file.
66565
66566 2006-03-07  Simon Josefsson  <jas@extundo.com>
66567
66568         * m4/unistd_h.m4: New file.
66569
66570 2006-03-07  Simon Josefsson  <jas@extundo.com>
66571
66572         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66573         test to be side-effect free by storing the result in the cache
66574         variable gl_cv_lib_readline, and moving the assignment of
66575         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66576         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66577
66578 2006-03-07  Simon Josefsson  <jas@extundo.com>
66579
66580         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66581         error on missing devices (the functions will return an error).
66582
66583         * m4/gc.m4: Move random stuff to gc-random.m4
66584
66585 2006-03-07  Simon Josefsson  <jas@extundo.com>
66586
66587         * lib/unistd_.h: New file.
66588
66589 2006-03-07  Simon Josefsson  <jas@extundo.com>
66590
66591         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66592
66593 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66596         Problem reported by Juan Manuel Guerrero.
66597
66598 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66601         the unistd module.
66602         * lib/getlogin_r.c: Likewise.
66603         * lib/getlogin_r.h: Likewise.
66604         * lib/glob.c: Likewise.
66605         * lib/pagealign_alloc.c: Likewise.
66606         * lib/unistd_.h: Remove; no longer needed.
66607
66608 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66609
66610         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66611         Add unistd.
66612         * modules/c-stack (Depends-on): Add unistd.
66613         * modules/getlogin_r: Likewise.
66614         * modules/glob: Likewise.
66615         * modules/pagealign_alloc: Likewise.
66616         * modules/unistd (Files): Remove lib/unistd_.h.
66617         (EXTRA_DIST): Remove.
66618         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66619         need unistd_.h.
66620         (MOSTLYCLEANFILES): Remove unistd.h-t.
66621
66622 2006-03-03  Simon Josefsson  <jas@extundo.com>
66623
66624         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66625
66626 2006-03-03  Simon Josefsson  <jas@extundo.com>
66627
66628         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66629         libidn and bison.
66630
66631 2006-03-03  Simon Josefsson  <jas@extundo.com>
66632
66633         * build-aux/maint.mk: Add indent target.
66634
66635 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66636
66637         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66638         our replacement poll.h in any case, to avoid a differing
66639         declaration from a system header.  Seen on AIX.
66640
66641 2006-03-01  Simon Josefsson  <jas@extundo.com>
66642
66643         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66644         <kasal@ucw.cz>.
66645
66646 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66647
66648         * modules/gettime (Depends-on): Add extensions module.
66649         * modules/nanosleep (Depends-on): Likewise.
66650         * modules/settime (Depends-on): Likewise.
66651
66652 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66653
66654         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66655         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66656         pedantically.
66657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66658         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66659
66660         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66661         not "==".  Reported by Ralf Wildenhues.
66662
66663 2006-03-01  Karl Berry  <karl@gnu.org>
66664
66665         * doc/Copyright/request-*: new files, synced from gnuorg.
66666
66667 2006-03-01  Karl Berry  <karl@gnu.org>
66668
66669         * config/srclist.txt (Copyright/*): new entries.
66670
66671 2006-02-28  Simon Josefsson  <jas@extundo.com>
66672
66673         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66674
66675 2006-02-27  Simon Josefsson  <jas@extundo.com>
66676
66677         * lib/base64.h: Indent #define's.  From Jim Meyering
66678         <jim@meyering.net>.
66679
66680 2006-02-27  Jim Meyering  <jim@meyering.net>
66681
66682         Revert the change of 2006-02-24, so these files can continue
66683         to be sync'd from gettext.
66684         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66685         of `config.h'.
66686
66687 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * modules/intprops: New file.
66690         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66691         Add intprops.
66692         * modules/getloadavg (Files): Remove lib/intprops.h.
66693         (Depends-on): Add intprops.
66694         * modules/human: Likewise.
66695         * modules/inttostr: Likewise.
66696         * modules/openat: Likewise.
66697         * modules/sig2str: Likewise.
66698         * modules/userspec: Likewise.
66699         * modules/utimecmp: Likewise.
66700         * modules/xnanosleep: Likewise.
66701         * modules/xstrtol: Likewise.
66702
66703 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66704
66705         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66706         * modules/lock-tests (TESTS): Use $(EXEEXT).
66707         * modules/tls-tests: Likewise.
66708         * modules/argp-tests: Likewise.
66709         (check_PROGRAMS): New var, replacing...
66710         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66711
66712 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66713
66714         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66715         `config.h'.
66716
66717 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66720
66721 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66722
66723         Sync from coreutils.
66724         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66725         gl_CHDIR_SAFER.
66726
66727 2006-02-22  Jim Meyering  <jim@meyering.net>
66728
66729         Sync from coreutils.
66730         * m4/chdir-safer.m4: New file.
66731
66732 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66735         AT_FDCWD exceeds INT_MAX.
66736         * lib/openat.h (AT_FDCWD): Likewise.
66737
66738 2006-02-17  Eric Blake  <address@hidden>
66739
66740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66741
66742 2006-02-16  Simon Josefsson  <jas@extundo.com>
66743
66744         * modules/getaddrinfo (Depends-on): Add sys_socket.
66745
66746 2006-02-15  Simon Josefsson  <jas@extundo.com>
66747
66748         * build-aux/maint.mk: Add dsyntax-check rule.
66749
66750 2006-02-15  Eric Blake  <ebb9@byu.net>
66751
66752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66753         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66754         'present but cannot compile' warnings on cygwin.
66755         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66756         use ws2tcpip.h if sys/socket.h works.
66757         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66758         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66759
66760 2006-02-14  Simon Josefsson  <jas@extundo.com>
66761
66762         * modules/maintainer-makefile (Files): Rename.
66763
66764         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66765         and (the local) Makefile.cfg to maint-cfg.mk.
66766
66767         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66768         to the latter.
66769
66770         * modules/maintainer-makefile: New module.
66771
66772         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66773         severaly stripped to make it possible to build it up from scratch
66774         with reliable tests.
66775
66776         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66777         fixes to permit overriding the default actions when configure and
66778         makefile are not available.
66779
66780 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         Sync from coreutils.
66783         * modules/lstat (Depends-on): Don't depend on xalloc.
66784         (License): Change from GPL to LGPL, since this is now simply a
66785         replacement for a libc function.
66786
66787 2006-02-14  Jim Meyering  <jim@meyering.net>
66788
66789         Sync from coreutils.
66790
66791         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66792         failure on deficient systems, and simplify gnulib lgpl dependencies.
66793         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66794         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66795
66796         * lib/xalloc-die.c: Remove unused definition of N_.
66797
66798 2006-02-14  Jim Meyering  <jim@meyering.net>
66799
66800         Sync from coreutils.
66801         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66802         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66803         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66804         double-quote uses of that variable, to accommodate the rare case in
66805         which getmntent is available in none of the libraries checked.  This
66806         happens at least on FreeBSD 5.0.
66807
66808 2006-02-13  Simon Josefsson  <jas@extundo.com>
66809
66810         * gnulib-tool (Usage): Fix --import, from
66811         karl@freefriends.org (Karl Berry).
66812
66813 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66814
66815         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66816
66817 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66818
66819         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66820         "autoupdate" on 2005-12-12.
66821
66822 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * modules/closeout (Depends-on): Remove atexit.
66825
66826 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66827
66828         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66829         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66830
66831 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66834         __EXTENSIONS__ if this causes compilation to fail.  Problem
66835         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66836         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66837
66838 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66841         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66843         All uses changed.
66844
66845 2006-01-26  Simon Josefsson  <jas@extundo.com>
66846
66847         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66848         prototype is visible on mingw32.
66849
66850         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66851         for mingw32.
66852
66853         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66854         mingw32).
66855
66856 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66857
66858         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66859         attempt to open for write; this always fails, at least on POSIX
66860         hosts.  This reinstates the 2006-01-09 change, which was
66861         inadvertently removed.
66862
66863 2006-01-26  Bruno Haible  <bruno@clisp.org>
66864
66865         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66866         Reported by Paul Eggert.
66867
66868 2006-01-26  Bruno Haible  <bruno@clisp.org>
66869             Paul Eggert  <eggert@cs.ucla.edu>
66870
66871         * lib/stdbool_.h (_Bool)
66872         [(! (defined __cplusplus || defined __BEOS__)
66873           && !defined __GNUC__
66874           && !(defined __HP_cc || defined __xlc__
66875                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66876                || defined __sgi))]:
66877         #define to signed char in these cases too; this simplifies
66878         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66879         etc., separately) and makes it more conservative.
66880
66881 2006-01-25  Simon Josefsson  <jas@extundo.com>
66882
66883         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66884         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66885         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66886
66887 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66888
66889         * lib/argp-namefrob.h: Bugfix. Remove stray #
66890
66891 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66892
66893         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66894         so that we test the test.
66895         Check for yet another HP-UX cc bug involving *bool |= bool.
66896
66897 2006-01-25  Karl Berry  <karl@gnu.org>
66898
66899         * config/srclist.txt (vasnprintf.c): sync lost.
66900
66901 2006-01-25  Jim Meyering  <jim@meyering.net>
66902
66903         Sync from the stable (b5) branch of coreutils:
66904
66905         * lib/fts.c (fts_children): Don't let close() clobber errno from
66906         failed fchdir().
66907
66908         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66909         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66910         a dangling symlink.  That can also happen at least for ELOOP.
66911         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66912         FYI, this bug predates the inclusion of fts.c in coreutils.
66913
66914         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66915         in their own block, so pre-c99 compilers don't object.
66916
66917         Avoid the double-free (first in fts_read, second in fts_close) that
66918         would occur when an `active' directory is made inaccessible (e.g.,
66919         via chmod a-x) during a traversal.
66920         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66921         before returning.  Reproduce this failure by
66922         mkdir -p a/b; cd a; chmod a-x . b
66923         Reported by Stavros Passas.
66924
66925 2006-01-25  Jim Meyering  <jim@meyering.net>
66926
66927         * lib/fileblocks.c: Remove more useless parentheses.
66928         * lib/readutmp.h: Likewise.
66929
66930 2006-01-25  Bruno Haible  <bruno@clisp.org>
66931
66932         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66933         warnings.
66934         Reported by Paul Eggert.
66935
66936 2006-01-25  Bruno Haible  <bruno@clisp.org>
66937
66938         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66939         rid of a trap command. For Solaris sh.
66940         Reported by Mark D. Baushke <mdb@gnu.org>.
66941
66942 2006-01-24  Simon Josefsson  <jas@extundo.com>
66943
66944         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66945         Bruno.
66946
66947 2006-01-24  Karl Berry  <karl@gnu.org>
66948
66949         * config/srclist.txt (argp-namefrob.h): sync lost.
66950
66951 2006-01-24  Jim Meyering  <jim@meyering.net>
66952
66953         * modules/openat (Files): Add lib/intprops.h.
66954         From Mark D. Baushke.
66955
66956 2006-01-24  Jim Meyering  <jim@meyering.net>
66957
66958         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66959         Reported by Mark D. Baushke.
66960
66961 2006-01-24  Jim Meyering  <jim@meyering.net>
66962
66963         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66964
66965 2006-01-24  Bruno Haible  <bruno@clisp.org>
66966
66967         * modules/strnlen (Maintainer): Change from glibc to all.
66968
66969 2006-01-24  Bruno Haible  <bruno@clisp.org>
66970
66971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66972         Patch by Paul Eggert.
66973
66974 2006-01-24  Bruno Haible  <bruno@clisp.org>
66975
66976         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66977         already has it.
66978         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66979         2005-11-26.
66980
66981         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66982         'signed char' to avoid problems with the built-in _Bool type.
66983         Reported by Paul Eggert on 2005-11-26.
66984
66985 2006-01-24  Bruno Haible  <bruno@clisp.org>
66986
66987         * gnulib-tool (func_import): Avoid constructing complicated sed
66988         expressions inside backquote.
66989         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66990
66991 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66992
66993         These changes imported from libc.
66994         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66995         test and two separate function calls.
66996         * lib/strndup.c (__strndup): Add libc_hidden_def.
66997
66998 2006-01-23  Simon Josefsson  <jas@extundo.com>
66999
67000         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67001         Remove the test_*_SOURCES variable: automake infers it by default.
67002         * modules/tls-tests: Likewise.
67003
67004 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67005
67006         Work around porting bugs reported by Dieter in
67007         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67008         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67009         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67010         Include "getopt.h" first, to check interface.
67011         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67012         !HAVE_DECL_GETENV.
67013         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67014         (__strndup): Revert to K&R-style function dfns, the glibc style.
67015         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67016         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67017         Include strnlen.h first, to get prototype properly.
67018         (strnlen): Renamed from __strnlen.
67019         Remove weak alias.
67020
67021 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67024
67025 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * config/srclist.txt: Adjust to reflect glibc reorganization.
67028         This affects only comments.
67029
67030 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67031
67032          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67033          Reported by Bruce Korb <bkorb@gnu.org>.
67034
67035 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67038         to pacify gcc -Wswitch-default.
67039
67040 2006-01-22  Bruno Haible  <bruno@clisp.org>
67041
67042         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67043         temporary buffer for sprintf, take into account the precision also
67044         for 'd', 'i', 'u', 'o', 'x', 'X'.
67045
67046 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67047
67048         * modules/argp-tests: New module
67049         * tests/test-argp.c: New file
67050         * tests/test-argp-2.sh: New file
67051
67052 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67053
67054         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67055         (__argp_base_name): Removed
67056         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67057         typo.
67058         (__argp_base_name): Provide macro definition or extern declaration
67059         depending on the configuration
67060
67061 2006-01-20  Simon Josefsson  <jas@extundo.com>
67062
67063         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67064
67065 2006-01-20  Simon Josefsson  <jas@extundo.com>
67066
67067         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67068
67069 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67070
67071         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67072         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67073         Suggested by Bruno Haible.
67074
67075 2006-01-20  Karl Berry  <karl@gnu.org>
67076
67077         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67078         until changes propagate, I guess.
67079
67080 2006-01-19  Simon Josefsson  <jas@extundo.com>
67081
67082         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67083
67084 2006-01-19  Simon Josefsson  <jas@extundo.com>
67085
67086         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67087
67088 2006-01-19  Simon Josefsson  <jas@extundo.com>
67089
67090         * gnulib-tool: Set check_PROGRAMS.
67091
67092         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67093         modules/des-tests, modules/gc-arcfour-tests,
67094         modules/gc-arctwo-tests, modules/gc-des-tests,
67095         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67096         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67097         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67098         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67099         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67100         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67101         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67102         test_*_SOURCES.
67103
67104 2006-01-18  Simon Josefsson  <jas@extundo.com>
67105
67106         * modules/socklen (Depends-on): Depend on sys_socket.
67107
67108 2006-01-18  Simon Josefsson  <jas@extundo.com>
67109
67110         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67111         modules/des-tests, modules/gc-arcfour-tests,
67112         modules/gc-arctwo-tests, modules/gc-des-tests,
67113         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67114         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67115         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67116         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67117         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67118         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67119         $(EXEEXT) to automake TESTS variable, for mingw32.
67120
67121 2006-01-17  Simon Josefsson  <jas@extundo.com>
67122
67123         * modules/socklen (Include): Need sys/socket.h.
67124
67125 2006-01-17  Bruno Haible  <bruno@clisp.org>
67126
67127         * modules/ssize_t (Include): Add <sys/types.h>.
67128
67129 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67130
67131         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67132         it's not portable and it doesn't work with cross-compiles.
67133         Problem reported by Bruno Haible.  Fix missing-$ typo in
67134         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67135         -zignore from being used with Sun's C compiler.
67136
67137 2006-01-12  Simon Josefsson  <jas@extundo.com>
67138
67139         * lib/base64.c: Fix warning, reported by Bruno Haible
67140         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67141
67142 2006-01-12  Bruno Haible  <bruno@clisp.org>
67143
67144         * modules/ldd: New file.
67145         * build-aux/ldd.sh.in: New file.
67146         * MODULES.html.sh (Support for building libraries and executables): Add
67147         ldd.
67148
67149 2006-01-12  Bruno Haible  <bruno@clisp.org>
67150
67151         * m4/ldd.m4: New file.
67152
67153 2006-01-12  Bruno Haible  <bruno@clisp.org>
67154
67155         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67156         endless loop while replacing $auxdir with build-aux.
67157
67158 2006-01-11  Simon Josefsson  <jas@extundo.com>
67159
67160         * lib/stdint_.h (SIZE_MAX): Add missing (.
67161
67162 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         Sync from coreutils.
67165         * lib/md5.c: Fix commentary typos.
67166         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67167         * lib/md5.h (__attribute__): Remove; unused.
67168         * lib/sha1.c: Fix commentary to match md5 better.
67169         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67170         so that we don't need to worry about alignment.  All uses changed.
67171         This merges the 2005-10-28 md5 change into sha1.
67172
67173 2006-01-11  Jim Meyering  <jim@meyering.net>
67174
67175         Sync from coreutils.
67176         * lib/md5.c (OP): Fix spacing.
67177
67178 2006-01-11  Bruno Haible  <bruno@clisp.org>
67179
67180         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67181         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67182         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67183
67184 2006-01-11  Bruno Haible  <bruno@clisp.org>
67185
67186         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67187         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67188         the "early" section as well.
67189
67190 2006-01-11  Bruno Haible  <bruno@clisp.org>
67191
67192         Avoid "ar: no archive members specified" error on MacOS X.
67193         * gnulib-tool (func_modules_add_dummy): New function.
67194         (func_import, func_create_testdir): Invoke it.
67195
67196 2006-01-11  Bruno Haible  <bruno@clisp.org>
67197
67198         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67199         with $auxdir in AC_CONFIG_FILES statements.
67200
67201 2006-01-11  Bruno Haible  <bruno@clisp.org>
67202
67203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67204         Initialize also noinst_HEADERS to empty.
67205
67206 2006-01-11  Bruno Haible  <bruno@clisp.org>
67207
67208         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67209         variables.
67210         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67211         autoreconf.
67212
67213 2006-01-11  Bruno Haible  <bruno@clisp.org>
67214
67215         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67216         overridable by the user.
67217         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67218
67219 2006-01-10  Simon Josefsson  <jas@extundo.com>
67220
67221         * modules/sys_socket: New file.
67222
67223 2006-01-10  Simon Josefsson  <jas@extundo.com>
67224
67225         * m4/sys_socket_h.m4: New file.
67226
67227 2006-01-10  Simon Josefsson  <jas@extundo.com>
67228
67229         * lib/socket_.h: New file.
67230
67231 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         * modules/readutmp (Maintainer): Add myself.
67234
67235 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67238         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67239         People who are still concerned with buggy memcmp implementations
67240         can invoke gl_FUNC_MEMCMP themselves.
67241
67242 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * lib/regex_internal.h (BITSET_WORD_BITS):
67245         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67246         preprocessor mishandles large unsigned values as if they were signed.
67247         Problem reported by Claudio Fontana in
67248         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67249
67250 2006-01-10  Jim Meyering  <jim@meyering.net>
67251
67252         Avoid the double-free (first in fts_read, second in fts_close) that
67253         would occur when an `active' directory is made inaccessible (e.g.,
67254         via chmod a-x) during a traversal.
67255         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67256         before returning.  Reproduce this failure by
67257         mkdir -p a/b; cd a; chmod a-x . b
67258         Reported by Stavros Passas.
67259
67260         Sync from coreutils.
67261         * lib/sha1.c: Tweak grammar in a comment.
67262
67263 2006-01-10  Jim Meyering  <jim@meyering.net>
67264
67265         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67266         Patch by Joerg Sonnenberger.
67267
67268 2006-01-10  Bruno Haible  <bruno@clisp.org>
67269
67270         * modules/readutmp: Depend on module free.
67271         * modules/strtok_r: Depend on module restrict.
67272
67273 2006-01-10  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/gettext (configure.ac): Add an invocation of
67276         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67277
67278 2006-01-10  Bruno Haible  <bruno@clisp.org>
67279
67280         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67281         Reported by Werner Lemberg <wl@gnu.org>.
67282
67283 2006-01-10  Bruno Haible  <bruno@clisp.org>
67284
67285         * lib/localcharset.c: Update from GNU gettext.
67286
67287 2006-01-10  Bruno Haible  <bruno@clisp.org>
67288
67289         * lib/argp.h (__const): Remove macro. Use const instead.
67290         * lib/argp-fmtstream.h (__const): Likewise.
67291         * lib/glob_.h (__const): Remove macro.
67292         * lib/glob-libc.h: Use const instead of __const.
67293
67294 2006-01-10  Bruno Haible  <bruno@clisp.org>
67295
67296         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67297         variable.
67298         Needed to avoid an automake error regarding the 'gettext' module.
67299
67300 2006-01-09  Simon Josefsson  <jas@extundo.com>
67301
67302         * modules/inet_ntop (Depends-on): Add restrict.
67303
67304 2006-01-09  Simon Josefsson  <jas@extundo.com>
67305
67306         * modules/gc-rijndael-tests (License): Put under LGPL.
67307
67308         * modules/gc-des-tests (License): Likewise.
67309
67310         * modules/gc-arcfour-tests (License): Likewise.
67311
67312         * modules/gc-arctwo-tests (License): Likewise.
67313
67314         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67315
67316         * modules/gc-hmac-sha1-tests (Files): Likewise.
67317
67318         * modules/gc-hmac-md5-tests (License): Likewise.
67319
67320         * modules/gc-sha1-tests (License): Likewise.
67321
67322         * modules/gc-md5-tests (License): Likewise.
67323
67324         * modules/gc-md4-tests (License): Likewise.
67325
67326         * modules/gc-md2-tests (License): Likewise.
67327
67328         * modules/gc-tests (License): Likewise.
67329
67330         * modules/des-tests (License): Likewise.
67331
67332         * modules/md4-tests (License): Likewise.
67333
67334         * modules/md2-tests (License): Likewise.
67335
67336 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         Sync from coreutils:
67339
67340         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67341         * modules/lib-ignore: New file.
67342         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67343         chdir-safer.m4, lchmod.m4.
67344         * modules/openat: Add mkdirat.c, openat-priv.h.
67345
67346 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         Sync from coreutils.
67349         * m4/lib-ignore.m4: New file.
67350         * m4/lchmod.m4: New file.
67351
67352 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         Sync from coreutils.
67355         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67356         for write access: POSIX says that must fail.
67357         * lib/fts.c (diropen): Likewise.
67358         * lib/save-cwd.c (save_cwd): Likewise.
67359         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67360         well, for minor improvements on hosts that lack O_DIRECTORY.
67361         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67362         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67363         Fall back on chown if open failed with EACCES.
67364
67365         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67366         Report an error at compile-time if only a 1-second nominal clock
67367         resolution is found.
67368
67369         * lib/lchmod.h: New file.
67370         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67371         (make_dir_parents): Use lchown rather than chown, and
67372         lchmod rather than chmod.
67373
67374         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67375         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67376         "proc" reported by n0dalus.
67377
67378         * lib/mountlist.c: Include <limits.h>.
67379         (dev_from_mount_options)
67380         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67381         New function.  It no longer assumes "dev=" has the System V meaning
67382         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67383         (read_file_system_list)
67384         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67385         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67386         dev= in that case.
67387
67388         * lib/posixtm.h (PDS_PRE_2000): New macro.
67389         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67390         allow_century.  All usages changed.  Reject dates outside the range
67391         1969-1999 if PDS_PRE_2000 is used.
67392
67393 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         Sync from coreutils.
67396         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67397         (Time of day items): Mention the possibility of leap seconds.
67398         Problem reported by Dr. David Alan Gilbert.
67399
67400 2006-01-09  Jim Meyering  <jim@meyering.net>
67401
67402         Sync from coreutils.
67403
67404         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67405
67406         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67407
67408         * lib/modechange.c (mode_compile): Reject an invalid mode string
67409         that starts with an octal digit.  From Andreas Gruenbacher.
67410
67411         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67412         and dup to open_safer and dup_safer, respectively.
67413         (openat_permissive): Fix typo in comment.
67414
67415         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67416         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67417         (_): Remove; no longer needed.
67418         (openat): Renamed from rpl_openat; no need for rpl_openat
67419         since openat.h renames openat for us.
67420         Replace most of the body with a call to openat_permissive,
67421         to avoid duplicate code.
67422         Port to (probably hypothetical) environments were mode_t is
67423         wider than int.
67424         (openat_permissive): Require mode arg, so that we can check
67425         types better.  Put it just after flags.  Change cwd failure
67426         indicator from pointer-to-bool to pointer-to-errno-value.
67427         All callers changed.
67428         Invoke openat_save_fail and/or openat_restore_fail if
67429         cwd_errno is null, so that openat can call us.
67430         (openat_permissive, fdopendir, fstatat, unlinkat):
67431         Simplify errno handling to avoid some duplicate code,
67432         as it's OK to set errno on success.
67433         * lib/openat.h: Revamp code so that function macros depend on
67434         __OPENAT_PREFIX only, not also on AT_FDCWD.
67435         (openat_ro): Remove.  Caller changed to use openat_permissive.
67436         (openat_permissive): Now a macro, if not a function.
67437         (openat_restore_fail, openat_save_fail): Now always functions,
67438         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67439
67440         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67441         and openat.c.
67442         * lib/mkdirat.c: Include openat-priv.h.
67443         Remove definitions of macros defined therein.
67444         * lib/openat.c: Likewise.
67445
67446         * lib/mkdirat.c (mkdirat): New file and function.
67447         * lib/openat.h (mkdirat): Declare.
67448
67449         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67450
67451         * lib/openat.h (openat_permissive): Declare.
67452         (openat_ro): Define.
67453
67454         * lib/openat.c (EXPECTED_ERRNO): New macro.
67455         (openat_permissive): New function -- used in remove.c rewrite.
67456         (all functions): Set errno just before returning, only if there
67457         was an actual failure.
67458         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67459
67460         Emulate openat-family functions using Linux's procfs, if possible.
67461         Idea and some code based on Ulrich Drepper's glibc changes.
67462
67463         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67464         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67465         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67466         before falling back on save_cwd and restore_cwd.
67467         (fdopendir, fstatat, unlinkat): Likewise.
67468
67469         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67470         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67471
67472         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67473         as second argument to va_arg.  Otherwise, some versions of gcc
67474         warn that `if this code is reached, the program will abort'.
67475
67476 2006-01-09  Jim Meyering  <jim@meyering.net>
67477
67478         Sync from coreutils.
67479         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67480         Require openat-priv.h.
67481
67482 2006-01-09  Bruno Haible  <bruno@clisp.org>
67483
67484         * modules/strnlen (Include): Use strnlen.h.
67485
67486 2006-01-09  Bruno Haible  <bruno@clisp.org>
67487
67488         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67489
67490 2006-01-09  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/sysexit_.h (EX_OK): New macro.
67493         Suggested by Martin Lambers <marlam@marlam.de>.
67494
67495 2006-01-09  Bruno Haible  <bruno@clisp.org>
67496
67497         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67498         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67499
67500 2006-01-09  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67503         numbers.
67504
67505 2006-01-09  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67508         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67509         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67510         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67511
67512 2006-01-09  Bruno Haible  <bruno@clisp.org>
67513
67514         * build-aux/javacomp.sh.in: New file, moved from lib/.
67515         * modules/javacomp-script (Files): Update.
67516         (configure.ac): Add AC_CONFIG_FILES invocation.
67517         (EXTRA_DIST): Remove variable.
67518
67519         * build-aux/javaexec.sh.in: New file, moved from lib/.
67520         * modules/javaexec (Files): Update.
67521         (configure.ac): Add AC_CONFIG_FILES invocation.
67522         (EXTRA_DIST): Remove javaexec.sh.in.
67523
67524         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67525         * modules/csharpcomp-script (Files): Update.
67526         (configure.ac): Add AC_CONFIG_FILES invocation.
67527         (EXTRA_DIST): Remove variable.
67528
67529         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67530         * modules/csharpexec (Files): Update.
67531         (configure.ac): Add AC_CONFIG_FILES invocation.
67532         (EXTRA_DIST): Remove csharpexec.sh.in.
67533
67534 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67535
67536         Sync from coreutils.
67537
67538         Add POSIX ACL support
67539         * lib/acl.h (copy_acl, set_acl): Add declarations.
67540         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67541         systems other than Linux.
67542         (chmod_or_fchmod): New function: use fchmod when possible,
67543         and chmod otherwise.
67544         (file_has_acl): Add a POSIX ACL implementation, with a
67545         Linux-specific subcase.
67546         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67547         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67548         acls are unsupported.
67549         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67550         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67551         are unsupported.
67552
67553 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67554
67555         Sync from coreutils.
67556         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67557
67558 2006-01-07  Bruno Haible  <bruno@clisp.org>
67559
67560         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67561         gl_EARLY.
67562
67563 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67566         Problem reported for Mingw by Mark Junker.
67567
67568 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67569
67570         * README: Gnulib normally doesn't generate a tarball.
67571
67572 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67573
67574         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67575         long int, not int, for nanosecond counts, so that people who are
67576         used to POSIX struct timespec won't be surprised.  Reported by Jim
67577         Meyering.
67578
67579 2005-12-28  Bruno Haible  <bruno@clisp.org>
67580
67581         * build-aux/config.rpath: Update from GNU gettext.
67582
67583 2005-12-16  Jim Meyering  <jim@meyering.net>
67584
67585         * modules/fprintftime: New module.
67586         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67587
67588 2005-12-16  Jim Meyering  <jim@meyering.net>
67589
67590         * m4/fprintftime.m4: New file.
67591
67592 2005-12-16  Jim Meyering  <jim@meyering.net>
67593
67594         * lib/fprintftime.c, lib/fprintftime.h: New files.
67595
67596 2005-12-15  Simon Josefsson  <jas@extundo.com>
67597
67598         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67599         new m4/socklen.m4.
67600
67601 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67602
67603         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67604         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67605
67606 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67607
67608         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67609         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67610         struct uparams is valid. Fall back to the default values if it is
67611         not.
67612
67613 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67614
67615         * modules/argp (Files): Add argp-pin.c
67616         (Depends-on): dirname
67617         (lib_SOURCES): Add argp-pin.c
67618
67619 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67620
67621         * m4/argp.m4:  Check if program_invocation_name and
67622         program_invocation_short_name are declared and define appropriate
67623         macros if they are not.
67624
67625 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67626
67627         * lib/argp-help.c (__argp_base_name): New function
67628         (__argp_short_program_name): Rewrite using __argp_base_name
67629         * lib/argp-namefrob.h: Define program_invocation_name and
67630         program_invocation_short_name if requested
67631         (__argp_base_name): Add prototype
67632         * lib/argp-parse.c (argp_def): Use gettext wrappers
67633         (argp_default_parser): Use __argp_base_name
67634         * lib/argp-pin.c: New file. Defines program_invocation_name and
67635         program_invocation_short_name on systems that lack them.
67636
67637 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67640         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67641         porting problem reported by Georg Schwarz in
67642         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67643
67644 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67647         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67648         porting problem reported by Georg Schwarz in
67649         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67650
67651 2005-12-05  Bruno Haible  <bruno@clisp.org>
67652
67653         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67654         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67655         Reported by Mark Junker <mjscod@gmx.de>.
67656
67657 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67660         Use implementation from Albert Chin, with some
67661         comments/corrections by Stepan Kasal and myself.
67662
67663 2005-12-02  Bruno Haible  <bruno@clisp.org>
67664
67665         * gnulib-tool (func_import): Accept GPLed build tool modules when
67666         --lgpl is given.
67667         * modules/csharpcomp-script: New file.
67668         * modules/csharpcomp: Depend on it.
67669         * modules/javacomp-script: New file.
67670         * modules/javacomp: Depend on it.
67671         Suggested by Simon Josefsson.
67672
67673 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67676         statement, to work around an HP-UX 10.20 compiler bug reported by
67677         Peter O'Gorman.
67678
67679 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * modules/savedir (Depends-on): Add openat.
67682
67683 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67686         (uintmax_t) [defined uintmax_t]: Do not declare.
67687         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67688         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67689         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67690         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67691         sake of portability to weird hosts that C allows (though we don't
67692         know of any practical examples).
67693
67694         * lib/savedir.h (fdsavedir): New decl.
67695         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67696         contains most of the former guts of savedir.
67697         (savedir): Use savedirstream.
67698         Include "openat.h".
67699
67700 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * modules/obstack (Files): Add m4/ulonglong.m4.
67703         Problem reported by Davide Angelocola.
67704
67705 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67706
67707         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67708         coreutils no longer futzes with rounding modes.
67709
67710 2005-11-14  Jim Meyering  <jim@meyering.net>
67711
67712         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67713         replacement of mkstemp.
67714
67715 2005-11-10  Simon Josefsson  <jas@extundo.com>
67716
67717         * lib/readline.c: Remove EOL.
67718
67719 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * modules/gethrxtime (Depends-on): Add gettime.
67722
67723 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67726         or gettimeofday; no longer needed.
67727
67728 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67731         time business.
67732         (gethrxtime) [! (HAVE_NANOUPTIME
67733         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67734         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67735         our own approximation.
67736
67737 2005-11-08  Eric Blake  <ebb9@byu.net>
67738
67739         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67740
67741 2005-11-08  Eric Blake  <ebb9@byu.net>
67742
67743         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67744
67745 2005-11-04  Bruno Haible  <bruno@clisp.org>
67746
67747         * gnulib-tool: Implement --update mode.
67748
67749 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         Fix porting problem reported by Theodoros V. Kalamatianos.
67752         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67753         Don't assume that futimes failing means we must fail.
67754
67755 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67758         variables to suggest the intended function of the PATH_MAX check.
67759
67760 2005-10-30  Kean Johnston  <jkj@sco.com>
67761
67762         Trivial changes to support SCO systems.
67763         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67764         as PATH_MAX.
67765         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67766         where __ptr is null when no I/O is pending.
67767
67768 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67771         leave errno alone.  Problem reported by Dmitry V. Levin.
67772
67773 2005-10-28  Simon Josefsson  <jas@extundo.com>
67774
67775         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67776         Test more.
67777
67778         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67779
67780         * modules/md2, modules/md2-tests: New files.
67781
67782 2005-10-28  Simon Josefsson  <jas@extundo.com>
67783
67784         * m4/inet_ntop.m4: More tests.
67785
67786         * m4/gc-md2.m4, md2.m4: New file.
67787
67788 2005-10-28  Simon Josefsson  <jas@extundo.com>
67789
67790         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67791         "restrict" keywords, as per POSIX.  Protect the function
67792         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67793         Don't use K&R prototypes.  Check the sprintf return values.
67794         Re-define EAFNOSUPPORT if not present.  Indent.
67795
67796         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67797         suggested by Bruno Haible <bruno@clisp.org>.
67798
67799         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67800
67801         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67802
67803         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67804         libgcrypt).
67805
67806         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67807
67808         * lib/md2.h, lib/md2.c: New files.
67809
67810 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67813         errno alone.  Problem reported by Frederic Jolliton.
67814
67815 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67816
67817         * modules/verify (License): Change from GPL to LGPL.  This is a
67818         tiny module and there are apparently near-equivalents that are
67819         under the BSD license.
67820
67821 2005-10-24  Simon Josefsson  <jas@extundo.com>
67822
67823         * modules/sha1: Relicense to LGPL.
67824
67825 2005-10-24  Simon Josefsson  <jas@extundo.com>
67826
67827         * lib/md4.h: Shrink buffer size, now that we changed the type.
67828
67829 2005-10-23  Simon Josefsson  <jas@extundo.com>
67830
67831         * gnulib-tool (func_import): Fix --tests-base.
67832
67833 2005-10-22  Simon Josefsson  <jas@extundo.com>
67834
67835         * modules/arcfour (Depends-on): Need stdint.
67836
67837 2005-10-22  Simon Josefsson  <jas@extundo.com>
67838
67839         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67840         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67841
67842 2005-10-22  Simon Josefsson  <jas@extundo.com>
67843
67844         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67845         suggested by Bruno Haible <bruno@clisp.org>.
67846
67847 2005-10-22  Simon Josefsson  <jas@extundo.com>
67848
67849         * lib/crc.h: Include stddef.h, for size_t.
67850
67851 2005-10-22  Simon Josefsson  <jas@extundo.com>
67852
67853         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67854         arcfour_context struct (simplify test vector testing in GNU
67855         Shishi).
67856
67857 2005-10-21  Simon Josefsson  <jas@extundo.com>
67858
67859         * modules/des, modules/des-tests: New files.
67860
67861         * modules/gc-des, modules/gc-des-tests: New files.
67862
67863         * tests/test-des.c, tests/test-gc-des.c: New file.
67864
67865 2005-10-21  Simon Josefsson  <jas@extundo.com>
67866
67867         * modules/arctwo, modules/arctwo-tests: New files.
67868
67869         * tests/test-arctwo.c: New file.
67870
67871         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67872
67873         * tests/test-gc-arctwo.c: New file.
67874
67875 2005-10-21  Simon Josefsson  <jas@extundo.com>
67876
67877         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67878         Bruno Haible <bruno@clisp.org>.
67879
67880         * m4/gc-des.m4: New file.
67881
67882 2005-10-21  Simon Josefsson  <jas@extundo.com>
67883
67884         * m4/arctwo.m4: New file.
67885
67886         * m4/gc-arctwo.m4: New file.
67887
67888 2005-10-21  Simon Josefsson  <jas@extundo.com>
67889
67890         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67891         block.
67892
67893 2005-10-21  Simon Josefsson  <jas@extundo.com>
67894
67895         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67896         <bruno@clisp.org>.
67897
67898         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67899
67900         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67901         Bruno Haible <bruno@clisp.org>.
67902
67903         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67904         <bruno@clisp.org>.
67905
67906 2005-10-21  Simon Josefsson  <jas@extundo.com>
67907
67908         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67909
67910 2005-10-21  Simon Josefsson  <jas@extundo.com>
67911
67912         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67913
67914 2005-10-21  Simon Josefsson  <jas@extundo.com>
67915
67916         * lib/des.h, lib/des.c: New files.
67917
67918         * lib/gc-gnulib.c: Support DES.c
67919
67920 2005-10-21  Simon Josefsson  <jas@extundo.com>
67921
67922         * lib/arctwo.h, lib/arctwo.c: New files.
67923
67924         * lib/gc-gnulib.c: Support ARCTWO.
67925
67926 2005-10-21  Simon Josefsson  <jas@extundo.com>
67927
67928         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67929         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67930
67931 2005-10-21  Simon Josefsson  <jas@extundo.com>
67932
67933         * gnulib-tool (func_import, func_create_testdir): Define automake
67934         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67935         Makefile.am snippet),
67936         suggested by Bruno Haible <bruno@clisp.org>.
67937
67938         * modules/gc (Makefile.am): Use it.
67939
67940 2005-10-21  Bruno Haible  <bruno@clisp.org>
67941
67942         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67943         patch.
67944
67945 2005-10-19  Simon Josefsson  <jas@extundo.com>
67946
67947         * tests/test-gc-rijndael.c: New file.
67948
67949         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67950
67951 2005-10-19  Simon Josefsson  <jas@extundo.com>
67952
67953         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67954         interface too.
67955
67956 2005-10-19  Simon Josefsson  <jas@extundo.com>
67957
67958         * tests/test-gc-arcfour.c: New file.
67959
67960         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67961
67962 2005-10-19  Simon Josefsson  <jas@extundo.com>
67963
67964         * modules/gc-md4, modules/gc-md4-tests: New file.
67965
67966         * tests/test-gc-md4.c: New file.
67967
67968 2005-10-19  Simon Josefsson  <jas@extundo.com>
67969
67970         * m4/gc-md4.m4: New file.
67971
67972 2005-10-19  Simon Josefsson  <jas@extundo.com>
67973
67974         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67975         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67976         <kasal@ucw.cz>.
67977
67978 2005-10-19  Simon Josefsson  <jas@extundo.com>
67979
67980         * m4/gc-arcfour.m4: New file.
67981
67982         * m4/gc-rijndael.m4: New file.
67983
67984 2005-10-19  Simon Josefsson  <jas@extundo.com>
67985
67986         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67987
67988 2005-10-19  Simon Josefsson  <jas@extundo.com>
67989
67990         * lib/gc-gnulib.c: Support ARCFOUR.
67991
67992 2005-10-19  Simon Josefsson  <jas@extundo.com>
67993
67994         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67995         support.
67996
67997         * lib/gc.h: Add ECB enum type.
67998
67999         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68000
68001 2005-10-18  Simon Josefsson  <jas@extundo.com>
68002
68003         * tests/test-md5.c: New file.
68004
68005         * modules/md5-tests: New file.
68006
68007 2005-10-18  Simon Josefsson  <jas@extundo.com>
68008
68009         * tests/test-md4.c: New file.
68010
68011         * modules/md4, modules/md4-tests: New files.
68012
68013 2005-10-18  Simon Josefsson  <jas@extundo.com>
68014
68015         * m4/md4.m4: New file.
68016
68017 2005-10-18  Simon Josefsson  <jas@extundo.com>
68018
68019         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68020
68021 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68022
68023         * gnulib-tool (func_create_testdir): Omit the second check whether
68024         BUILT_SOURCES in nonempty.
68025
68026 2005-10-17  Simon Josefsson  <jas@extundo.com>
68027
68028         * tests/test-rijndael.c: New file.
68029
68030 2005-10-17  Simon Josefsson  <jas@extundo.com>
68031
68032         * modules/sha1: Depend on stdint instead of md5.
68033
68034         * modules/md5: Depend on stdint, remove uint32_t.
68035
68036 2005-10-17  Simon Josefsson  <jas@extundo.com>
68037
68038         * modules/gc-sha1-tests: New file.
68039
68040         * tests/test-gc-sha1.c: New file.
68041
68042 2005-10-17  Simon Josefsson  <jas@extundo.com>
68043
68044         * m4/md5.m4: Remove call to uint32_t.m4.
68045
68046 2005-10-17  Simon Josefsson  <jas@extundo.com>
68047
68048         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68049
68050         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68051         md5.h.
68052
68053         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68054
68055         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68056
68057 2005-10-17  Simon Josefsson  <jas@extundo.com>
68058
68059         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68060
68061 2005-10-17  Simon Josefsson  <jas@extundo.com>
68062
68063         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68064
68065 2005-10-17  Simon Josefsson  <jas@extundo.com>
68066
68067         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68068
68069         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68070
68071 2005-10-17  Bruno Haible  <bruno@clisp.org>
68072
68073         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68074         that it can also be used in a test.
68075
68076 2005-10-16  Bruno Haible  <bruno@clisp.org>
68077
68078         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68079         TESTS_ENVIRONMENT, so that individual tests can augment it.
68080
68081         * gnulib-tool (func_create_testdir): Use an intermediate target for
68082         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68083         macros, like $(ALLOCA_H), which cannot be passed through the command
68084         line.
68085
68086 2005-10-15  Simon Josefsson  <jas@extundo.com>
68087
68088         * modules/rijndael-tests: New file.
68089
68090         * modules/rijndael: New file.
68091
68092 2005-10-15  Simon Josefsson  <jas@extundo.com>
68093
68094         * m4/rijndael.m4: New file.
68095
68096 2005-10-15  Simon Josefsson  <jas@extundo.com>
68097
68098         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68099
68100         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68101
68102 2005-10-14  Simon Josefsson  <jas@extundo.com>
68103
68104         * tests/test-arcfour.c: New file.
68105
68106         * modules/arcfour, modules/arcfour-tests: New files.
68107
68108 2005-10-14  Simon Josefsson  <jas@extundo.com>
68109
68110         * m4/arcfour.m4: New file.
68111
68112 2005-10-14  Simon Josefsson  <jas@extundo.com>
68113
68114         * lib/arcfour.h, lib/arcfour.c: New files.
68115
68116 2005-10-14  Roland McGrath  <roland@redhat.com>
68117
68118         Import from libc.  [BZ #1331]
68119         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68120         macro argument.
68121         Reported by Matej Vela <vela@debian.org>.
68122
68123 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68126         include <wchar.h>; no longer needed.
68127
68128 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68131
68132 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68133         and  Ulrich Drepper  <drepper@redhat.com>
68134
68135         Import from libc.
68136         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68137         instead of inline stream orientation test and two separate
68138         function calls.  Pay no attention to USE_IN_LIBIO.
68139
68140 2005-10-13  Simon Josefsson  <jas@extundo.com>
68141
68142         * modules/gc-hmac-md5-tests: New file.
68143
68144         * tests/test-gc-hmac-sha1.c: New file.
68145
68146         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68147
68148         * modules/gc-hmac-md5-tests: New file.
68149
68150         * tests/test-gc-md5.c: New file.
68151
68152         * modules/gc-md5-tests: New file.
68153
68154 2005-10-13  Simon Josefsson  <jas@extundo.com>
68155
68156         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68157         Move memory allocation outside of loop.
68158
68159 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68162         intermediate directory is in a read-only file system.  Problem
68163         reported by Eric Blake.
68164
68165 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68166
68167         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68168
68169 2005-10-12  Simon Josefsson  <jas@extundo.com>
68170
68171         * tests/test-hmac-sha1.c: New file.
68172
68173         * modules/hmac-sha1-tests: New file.
68174
68175         * modules/hmac-sha1: New file.
68176
68177 2005-10-12  Simon Josefsson  <jas@extundo.com>
68178
68179         * modules/gc-sha1: New file.
68180
68181 2005-10-12  Simon Josefsson  <jas@extundo.com>
68182
68183         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68184
68185         * tests/test-gc-pbkdf2-sha1.c: New file.
68186
68187 2005-10-12  Simon Josefsson  <jas@extundo.com>
68188
68189         * modules/gc-md5, modules/gc-hmac-md5: New files.
68190
68191         * modules/gc (Files): Remove md5, memxor and hmac files.
68192
68193 2005-10-12  Simon Josefsson  <jas@extundo.com>
68194
68195         * m4/gc-pbkdf2-sha1.m4: New file.
68196
68197         * m4/gc-hmac-sha1.m4: New file.
68198
68199         * m4/gc-sha1: New file.
68200
68201         * m4/hmac-sha1.m4: New file.
68202
68203 2005-10-12  Simon Josefsson  <jas@extundo.com>
68204
68205         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68206
68207         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68208
68209 2005-10-12  Simon Josefsson  <jas@extundo.com>
68210
68211         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68212         suggested by Bruno Haible <bruno@clisp.org>.
68213
68214 2005-10-12  Simon Josefsson  <jas@extundo.com>
68215
68216         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68217
68218 2005-10-12  Simon Josefsson  <jas@extundo.com>
68219
68220         * lib/gc-pbkdf2-sha1.c: New file.
68221
68222         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68223
68224 2005-10-12  Simon Josefsson  <jas@extundo.com>
68225
68226         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68227
68228         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68229
68230 2005-10-12  Simon Josefsson  <jas@extundo.com>
68231
68232         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68233         GC_USE_HMAC_MD5, respectively.
68234
68235         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68236         (gc_md5): Fix typo.
68237
68238         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68239
68240         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68241
68242         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68243
68244 2005-10-12  Bruno Haible  <bruno@clisp.org>
68245
68246         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68247         Reported by Stepan Kasal <kasal@ucw.cz>.
68248
68249 2005-10-11  Simon Josefsson  <jas@extundo.com>
68250
68251         * tests/test-crc.c: New file.
68252
68253         * modules/crc, modules/crc-tests: New files.
68254
68255 2005-10-11  Simon Josefsson  <jas@extundo.com>
68256
68257         * m4/crc.m4: New file.
68258
68259 2005-10-11  Simon Josefsson  <jas@extundo.com>
68260
68261         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68262
68263         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68264
68265         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68266
68267 2005-10-11  Simon Josefsson  <jas@extundo.com>
68268
68269         * lib/crc.h, lib/crc.c: New files.
68270
68271         * lib/gc.h (gc_hash_buffer): Add doc.
68272
68273 2005-10-11  Bruno Haible  <bruno@clisp.org>
68274
68275         * modules/c-strcasestr: New file.
68276         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68277
68278 2005-10-11  Bruno Haible  <bruno@clisp.org>
68279
68280         * modules/c-strcase: New file.
68281         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68282
68283 2005-10-11  Bruno Haible  <bruno@clisp.org>
68284
68285         * lib/strcasecmp.c: Include limits.h.
68286         (strcasecmp): Avoid integer overflow on exotic platforms.
68287         * lib/strncasecmp.c: Include limits.h.
68288         (strncasecmp): Avoid integer overflow on exotic platforms.
68289         Reported by Paul Eggert.
68290
68291 2005-10-11  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/c-strcasestr.h: New file, from GNU gettext.
68294         * lib/c-strcasestr.c: New file, from GNU gettext.
68295
68296 2005-10-11  Bruno Haible  <bruno@clisp.org>
68297
68298         * lib/c-strcase.h: New file, from GNU gettext.
68299         * lib/c-strcasecmp.c: New file, from GNU gettext.
68300         * lib/c-strncasecmp.c: New file, from GNU gettext.
68301
68302 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68303
68304         * modules/mempcpy (License): GPL -> LGPL.
68305         * modules/strchrnul (License): Likewise.
68306         * modules/sysexits (License): Likewise.
68307
68308 2005-10-08  Simon Josefsson  <jas@extundo.com>
68309
68310         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68311
68312 2005-10-07  Simon Josefsson  <jas@extundo.com>
68313
68314         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68315
68316 2005-10-06  Simon Josefsson  <jas@extundo.com>
68317
68318         * tests/test-hmac-md5.c: New file.
68319
68320         * modules/hmac-md5-tests: New file.
68321
68322         * modules/hmac-md5: New file.
68323
68324 2005-10-06  Simon Josefsson  <jas@extundo.com>
68325
68326         * m4/hmac-md5.m4: New file.
68327
68328         * m4/memxor.m4: Require gl_C_RESTRICT.
68329
68330 2005-10-06  Simon Josefsson  <jas@extundo.com>
68331
68332         * lib/memxor.c (memxor): Avoid casts and warnings.
68333
68334 2005-10-06  Simon Josefsson  <jas@extundo.com>
68335
68336         * lib/hmac-md5.c: New file.
68337
68338         * lib/hmac.h: New file.
68339
68340 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68343         promotes to int, not unsigned int, to catch the AIX 5.3
68344         compiler bug.
68345
68346 2005-10-05  Simon Josefsson  <jas@extundo.com>
68347
68348         * modules/memxor: New file.
68349
68350         * modules/iconv (Files): Move config.rpath to havelib, it is used
68351         there.
68352
68353         * modules/havelib (Files): Add config.rpath.
68354
68355 2005-10-05  Simon Josefsson  <jas@extundo.com>
68356
68357         * m4/memxor.m4: New file.
68358
68359 2005-10-05  Simon Josefsson  <jas@extundo.com>
68360
68361         * lib/memxor.c (memxor): Fix compiler error.
68362
68363         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68364         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68365
68366         * lib/memxor.h, lib/memxor.c: New files.
68367
68368         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68369         we assume all systems have it, suggested by Jim Meyering
68370         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68371         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68372         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68373         same reasons.
68374
68375 2005-10-05  Simon Josefsson  <jas@extundo.com>
68376
68377         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68378
68379 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68382         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68383         needed, since the source code now assumes these .h files.
68384
68385 2005-10-05  Derek Price  <derek@ximbiot.com>
68386
68387         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68388
68389 2005-10-05  Bruno Haible  <bruno@clisp.org>
68390
68391         * modules/stdint (License): Change to LGPL.
68392
68393 2005-10-04  Simon Josefsson  <jas@extundo.com>
68394
68395         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68396         D. Baushke" <mdb@gnu.org>.
68397
68398 2005-10-04  Bruno Haible  <bruno@clisp.org>
68399
68400         * lib/verify.h (verify_true): Provide alternative definition for C++.
68401
68402 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68405         (SSIZE_MAX): New macro, if not already defined.
68406         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68407         than 2 GiB.
68408
68409 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         Sync from coreutils.
68412         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68413         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68414         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68415         ULLONG_MAX doesn't work with 2.7.2.1.
68416
68417 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68420         From Ben Pfaff.
68421
68422         * modules/exclude (Depends-on): Depend on verify.
68423         * modules/strtoimax (Depends-on): Likewise.
68424         * modules/utimecmp (Depends-on): Likewise.
68425
68426 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * lib/exclude.c: Include verify.h.
68429         (verify): Remove.  All callers changed to use verify.h's version.
68430         * lib/strtoimax.c: Likewise.
68431         * lib/utimecmp.c: Likewis.e
68432
68433         Sync from coreutils.
68434         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68435         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68436         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68437         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68438         bother returning ENOSYS if settimeofday or stime fails; just let
68439         them return whatever errno they want to return.
68440         * lib/utimens.c: Include unistd.h, for dup2.
68441         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68442         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68443
68444 2005-10-02  Jim Meyering  <jim@meyering.net>
68445
68446         Sync from coreutils.
68447         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68448         from glibc-2.2.5 that fails for read-only files.
68449
68450 2005-10-02  Jim Meyering  <jim@meyering.net>
68451
68452         Sync from coreutils.
68453         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68454         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68455         `#if HAVE_CONFIG_H'.
68456         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68457         Remove AT_FDCWD test.
68458         Do not consume the fd unless successful.
68459         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68460         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68461         block, so that we don't even try to compile it if settimeofday is
68462         available.  This works around a compilation failure on OSF1 V5.1,
68463         due to stime requiring a `long int*' while tv_sec is `int'.
68464
68465 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68466
68467         Sync from coreutils.
68468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68469         against `yes', rather than just testing for nonempty.
68470
68471 2005-10-01  Simon Josefsson  <jas@extundo.com>
68472
68473         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68474         and Darwin.
68475
68476         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68477         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68478         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68479         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68480         Check if struct addrinfo is declared.
68481
68482 2005-10-01  Simon Josefsson  <jas@extundo.com>
68483
68484         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68485         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68486         AI_* and EAI_* definitions.  Protect function declarations.
68487
68488 2005-10-01  Jim Meyering  <jim@meyering.net>
68489
68490         Sync from coreutils.
68491
68492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68493         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68494         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68496         in the inet and nsl libraries.  Required on Solaris 5.7.
68497
68498 2005-10-01  Jim Meyering  <jim@meyering.net>
68499
68500         Sync from coreutils.
68501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68502         in the inet and nsl libraries.  Required on Solaris 5.7.
68503
68504 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68505
68506         * lib/getdelim.c (getdelim): Remove unused variables.
68507
68508 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68511         so that the code works even with ancient cpp.  Portability problem
68512         with GCC 2.7.2.1 reported by Thomas M.Ott.
68513
68514 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68515
68516         * modules/regex (Depends-on): Add strcase.
68517
68518         * modules/gethostname (Licence): Change from GPL to LGPL, since
68519         gethostname.c is a trivial implementation of a standard library
68520         function.
68521         * modules/poll (License): Change from GPL to LGPL, since it's
68522         derived from LGPL code.
68523
68524 2005-09-27  Jim Meyering  <jim@meyering.net>
68525
68526         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68527         HAVE_CONFIG_H.
68528
68529         * lib/intprops.h (signed_type_or_expr__): Define.
68530         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68531         for unsigned types.
68532
68533 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68534
68535         * lib/verify.h (verify_expr): Remove, replacing with:
68536         (verify_true): New macro that returns true instead of void.
68537         (verify_type__): Remove.
68538         (verify): Use verify_true rather than verify_type__.
68539
68540 2005-09-26  Bruno Haible  <bruno@clisp.org>
68541
68542         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68543         is necessary.
68544         (lib_SOURCES): Remove mbchar.c.
68545         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68546         (Files): Add m4/mbrtowc.m4.
68547         * modules/mbiter: Likewise.
68548         * modules/mbuiter: Likewise.
68549
68550 2005-09-26  Bruno Haible  <bruno@clisp.org>
68551
68552         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68553         compile mbchar.c if they are not both present.
68554         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68555         * m4/mbiter.m4 (gl_MBITER): Likewise.
68556         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68557         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68558         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68559
68560 2005-09-25  Jim Meyering  <jim@meyering.net>
68561
68562         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68563         also uses socklen_t.
68564
68565 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * lib/utimens.c (ENOSYS): Define if not already defined.
68568         (futimens): Support having a null PATH if the file descriptor
68569         is nonnegative.
68570
68571         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68572         Remove.
68573         (__attribute): Define to empty unless GCC 3.1 or later.
68574         This works around a core dump on OpenBSD 3.4, which has GCC
68575         2.95.3, which dumps core when given __attribute__(()).  It also
68576         simplifies other tests, since we really don't want to bother with
68577         worrying about which ancient version of GCC supported what.
68578         Original problem reported by Yoann Vandoorselaere, with part of
68579         the fix suggested by Derek Price.
68580
68581 2005-09-24  Jim Meyering  <jim@meyering.net>
68582
68583         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68584         so we can once again use a positive bitfield width of 1 -- now we
68585         don't have to explain why we were using a bitfield width of 2.
68586
68587 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68590         and similarly for the other external symbols.  Problem reported
68591         by James Gallager.
68592
68593         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68594         bug reported by Jim Meyering.
68595
68596         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68597         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68598         not needed, since socklen is a prerequisite module.
68599
68600 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68603         Problem reported by Eric Blake.
68604         (getaddrinfo): Initialize se so that it's not garbage.
68605         Redo internal storage allocation so that it doesn't make unportable
68606         assumptions about alignment.
68607         Fix a memory leak.
68608
68609         * lib/utimens.c (futimens): Use futimesat if available.
68610         Prefer it to futimes since it doesn't have the futimes bug.
68611
68612         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68613         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68614         Instead, declare a function that returns a pointer to an array,
68615         and use verify_type__ to declare the size of the array.
68616         Problem and germ of a solution reported by Bruno Haible.
68617         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68618         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68619
68620 2005-09-23  Jim Meyering  <jim@meyering.net>
68621
68622         Sync from coreutils.
68623         Correct build failure (socklen_t not defined) on at least
68624         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68625         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68626
68627 2005-09-23  Jim Meyering  <jim@meyering.net>
68628
68629         * modules/getaddrinfo (Depends-on): Add socklen.
68630
68631 2005-09-23  Bruno Haible  <bruno@clisp.org>
68632
68633         * tests/test-verify.c: New file.
68634
68635 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68636
68637         Sync from coreutils.
68638
68639         * modules/argmatch (Depends-on): Add verify.
68640         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68641         unistd-safer.
68642         * modules/save-cwd (Depends-on): Likewise.
68643
68644         * modules/openat (Files): Add lib/openat-die.c.
68645         (Depends-on): Remove error, exitfail.
68646         Add dirname.
68647
68648         * modules/verify: New file.
68649         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68650         with "verify" module.
68651
68652 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         Sync from coreutils.
68655
68656         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68657         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68658         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68659         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68660         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68661         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68662         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68663         Don't bother checking for string.h, stdlib.h, unistd.h.
68664         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68665         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68666         module's job.
68667         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68668         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68669
68670         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68671         (gl_GETDATE): Use it.
68672
68673         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68674
68675 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68676
68677         Sync from coreutils.
68678
68679         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68680         stat-time.h.
68681         * lib/argmatch.h: Include verify.h
68682         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68683         (ARGMATCH_ASSERT): Remove; unused.
68684         * lib/canonicalize.c: Assume STDC_HEADERS.
68685         * lib/exclude.c: Include "strcase.h".
68686         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68687         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68688         and stdio-safer.h.
68689         (getusershell): Call fopen, not fopen_safer.
68690         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68691         Do not include unistd-safer.h.
68692         (save_cwd): Don't call fd_safer; no longer needed
68693         now that we include fcntl--.h.
68694
68695         * lib/getdate.y (relative_time): New type.
68696         (RELATIVE_TIME_0): New constant.
68697         (parser_control): Use relative_time instead of doing it ourselves.
68698         (%union): Add new relative_time rel member.
68699         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68700         Now typeless.
68701         (relunit, relunit_snumber): Now of type rel.
68702         (zone, rel, relunit, get_date): Adjust to above changes.
68703
68704         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68705         Do not include unistd-safer.h.
68706         (getloadavg): Don't call fd_safer; no longer needed
68707         now that we include fcntl--.h.
68708
68709         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68710         (make_dir_parents): Treat ENOSYS like EEXIST.
68711
68712         Improve quality of diagnostics on restore_cwd failure.
68713         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68714         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68715         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68716         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68717         each time through the loop.  Do not diagnose restore_cwd failure;
68718         that is the caller's job (and perhaps the caller does not care).
68719
68720         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68721         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68722         If the file already exists but is not a directory, don't bother
68723         to try to make its parents.
68724         Close potential file descriptor leak if we can't chdir("/") (!).
68725         Don't always return true if chdir($PWD) fails; return true only
68726         if the requested action was done successfully (except for the
68727         chdir($PWD)).
68728         Don't log final directory unless we actually made it.
68729         Refactor to avoid duplicate code to fix up permissions.
68730         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68731
68732         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68733         to make it a bit faster and (I hope) clearer.
68734         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68735         Fix bug in formats like %2N.
68736
68737         * lib/verify.h: New file.
68738
68739 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68740
68741         Sync from coreutils.
68742         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68743
68744 2005-09-22  Jim Meyering  <jim@meyering.net>
68745
68746         Sync from coreutils.
68747
68748         * m4/lstat.m4 (gl_FUNC_LSTAT):
68749         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68750         Remove obsolete comment.
68751         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68752         * m4/xstrtod.m4: Likewise.
68753
68754         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68755
68756 2005-09-22  Jim Meyering  <jim@meyering.net>
68757
68758         Sync from coreutils.
68759
68760         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68761
68762         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68763         the .tm_year member, since otherwise gcc-4.0 would now warn about
68764         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68765
68766         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68767         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68768
68769         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68770         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68771         when run in a time zone for which daylight savings time is in effect
68772         for the starting date.
68773
68774         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68775         stop us from restricting permissions of just-created absolute-named
68776         directories.
68777         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68778         to restore initial working directory.
68779         * lib/mkdir-p.c (make_dir_parents): New parameter:
68780         different_working_dir, to tell caller if/when we change the working
68781         directory and are unable to return to the initial one.
68782         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68783         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68784         `return false'.  This fixes a bug introduced on 2004-07-30.
68785
68786         * lib/openat.c (fdopendir): Be sure to close the supplied
68787         file descriptor before returning.  This makes our replacement
68788         implementation a little closer to Solaris's, where fdopendir
68789         ties the file descriptor to the returned DIR* pointer.
68790         * lib/openat.c (unlinkat): New function.
68791         * lib/openat.h (unlinkat): Add prototype.
68792         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68793         (openat_restore_fail): Rename from openat_restore_die.
68794         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68795
68796         Provide an alternative to exiting immediately upon save_cwd or
68797         restore_cwd failure.  Now, an application can arrange e.g.,
68798         to perform a longjump in that case.
68799         * lib/openat.c: Include dirname.h.
68800         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68801         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68802         and openat_restore_die rather than calling error directly.
68803         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68804
68805         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68806         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68807         define.
68808
68809         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68810         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68811                             int utc, int nanoseconds);
68812         Background:
68813         date should not have to allocate a megabyte of virtual memory to
68814         handle a format argument like +%1048575T.  When implemented with
68815         strftime, it must allocate such a buffer, use strftime to fill it
68816         in, print it, then free it.
68817         With fprintftime, it simply prints everything and exits.
68818         With no need for memory allocation, that's one fewer way to fail.
68819         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68820         optional field width, not before, so we accept %9:z, not %:9z.
68821         (my_strftime): Be sure to use L_('x') for literals.
68822
68823         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68824         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68825         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68826         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68827         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68828         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68829         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68830         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68831         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68832         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68833         * lib/xgethostname.c, lib/xreadlink.c:
68834         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68835
68836         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68837         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68838         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68839         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68840         and don't include <sys/file.h>).
68841
68842 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68843
68844         Sync from coreutils.
68845
68846         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68847         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68848         [!LDAV_DONE]: Avoid unused variable warning.
68849
68850 2005-09-21  Bruno Haible  <bruno@clisp.org>
68851
68852         * lib/unicodeio.h (unicode_to_mb): New declaration.
68853
68854 2005-09-20  Derek Price  <derek@ximbiot.com>
68855
68856         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68857         getaddrinfo.h.
68858
68859 2005-09-20  Bruno Haible  <bruno@clisp.org>
68860
68861         * gnulib-tool: Remove trailing slashes from the values specified for
68862         --source-base, --m4-base, --tests-base, --aux-dir.
68863         Suggested by Simon Josefsson <jas@extundo.com>.
68864
68865 2005-09-20  Bruno Haible  <bruno@clisp.org>
68866
68867         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68868         func_modules_to_filelist, func_import, func_create_testdir): Make all
68869         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68870         change when gnulib-tool is invoked in a different locale.
68871
68872 2005-09-19  Simon Josefsson  <jas@extundo.com>
68873
68874         * m4/socklen.m4: Fix typo.
68875
68876 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68877
68878         Use a consistent style for including <config.h>.
68879         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68880         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68881         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68882         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68883         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68884         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68885         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68886         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68887         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68888         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68889         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68890         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68891         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68892         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68893         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68894         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68895         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68896         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68897         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68898         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68899         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68900         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68901         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68902         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68903         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68904         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68905         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68906         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68907         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68908         lib/xstrtoumax.c, lib/yesno.c:
68909         Standardize inclusion of config.h.
68910         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68911         lib/inttostr.h:  Removed inclusion of config.h from header files.
68912         * lib/inttostr.c:  Adjusted in-tree users.
68913         * lib/timespec.h: Remove superfluous warning to include config.h.
68914         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68915         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68916         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68917         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68918         config.h with HAVE_CONFIG_H.
68919
68920 2005-09-19  Jim Meyering  <jim@meyering.net>
68921
68922         * modules/pathmax (License): Change to LGPL.
68923
68924 2005-09-19  Derek Price  <derek@ximbiot.com>
68925
68926         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68927
68928 2005-09-19  Bruno Haible  <bruno@clisp.org>
68929
68930         * gnulib-tool (import): Provide default for --tests-base.
68931
68932 2005-09-19  Bruno Haible  <bruno@clisp.org>
68933
68934         * doc/quote.texi: New file, extracted from gnulib.texi.
68935         * doc/ctime.texi: New file, extracted from gnulib.texi.
68936         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68937         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68938         * doc/gnulib.texi: Include them.
68939
68940 2005-09-18  Bruno Haible  <bruno@clisp.org>
68941
68942         Portability fix.
68943         * gnulib-tool (func_readlink): New function.
68944         (func_ln_if_changed): Use it.
68945
68946 2005-09-18  Bruno Haible  <bruno@clisp.org>
68947
68948         * gnulib-tool: Support --with-tests also with --import.
68949         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68950         (func_import): Use variables $testsbase and $inctests. Emit a
68951         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68952         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68953         SUBDIRS += $testsdir.
68954         (func_create_testdir): Update.
68955
68956 2005-09-18  Bruno Haible  <bruno@clisp.org>
68957
68958         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68959         instead of $dry_run.
68960         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68961         (func_ln_if_changed): Don't handle dry-run here.
68962         (func_import): In dry-run mode, detect more precisely which actions
68963         would be performed, and don't use "...ing" verbs.
68964
68965 2005-09-18  Bruno Haible  <bruno@clisp.org>
68966
68967         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68968         (func_import): Use join on two temporary files instead of three nested
68969         loops, in order to determine which files are new or old.
68970
68971 2005-09-18  Bruno Haible  <bruno@clisp.org>
68972
68973         * gnulib-tool (func_import): Comment out code that spits out the
68974         new files with --dry-run.
68975
68976 2005-09-18  Bruno Haible  <bruno@clisp.org>
68977
68978         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68979
68980 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         * lib/stat-time.h: New file.
68983         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68984         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68985         in a different way.
68986         (timespec_cmp): New function.
68987         * lib/utimecmp.c: Include stat-time.h.
68988         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68989         members exist, not on the obsolescent ST_MTIM_NSEC.
68990         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68991
68992 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68995
68996 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         * MODULES.html.sh (File system functions): Add stat-time.
68999         * modules/stat-time: New file.
69000         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69001         is now done in a different way, by the stat-time module.
69002         * modules/utimecmp (Depends-on): Add stat-time.
69003
69004 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69005
69006         * m4/st_mtim.m4: Remove.  Superseded by...
69007         * m4/stat-time.m4: New file.
69008         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69009         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69010
69011 2005-09-15  Derek Price  <derek@ximbiot.com>
69012
69013         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69014
69015 2005-09-15  Derek Price  <derek@ximbiot.com>
69016
69017         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69018         * lib/regex_internal.c: Ditto, using this...
69019         (__GNUC_PREREQ): ...new macro.
69020         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69021         using...
69022         (__GNUC_PREREQ): ...this new macro.
69023
69024         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69025
69026 2005-09-15  Derek Price  <derek@ximbiot.com>
69027             Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69030         changes, consolidating in...
69031         * lib/regex_internal.h: ...this file.
69032
69033 2005-09-13  Jim Meyering  <jim@meyering.net>
69034
69035         * lib/canon-host.c: Filter through gnu indent and reword comments
69036         slightly.
69037         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69038
69039 2005-09-13  Derek Price  <derek@ximbiot.com>
69040
69041         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69042         failure.
69043         Reported by Jim Meyering  <jim@meyering.net>.
69044
69045 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69046
69047         * lib/base64.c: Typo.
69048         (base64_encode): Put b64str in initialized data section.
69049
69050 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69051
69052         Merge glibc and coreutils changes into gnulib, plus a few
69053         extra fixes.
69054         * lib/md5.c: Use #error rather than a string.
69055         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69056         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69057         (__attribute__): Define to empty for non recent-GCC.
69058         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69059         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69060         Renamed from their non-__ counterparts, with new macros replacing
69061         them if not _LIBC.  Add __THROW attribute.
69062         (rol): Remove.
69063         (struct md5_ctx): Align buffer if using GCC.
69064         * lib/sha1.h (struct sha1_ctx): Likewise.
69065         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69066         The old name was backwards.
69067         (NOTSWAP): Remove; not used.
69068         (rol): New macro, moved here from md5.h.
69069         (sha1_process_block): Remove a FIXME that doesn't make sense.
69070
69071 2005-09-12  Derek Price  <derek@ximbiot.com>
69072
69073         Return usable errors from canon-host.
69074         * lib/canon-host.h: New file.
69075         * lib/canon-host.c (canon_host): Wrap...
69076         (canon_host_r): ...this new function, which now relies exclusively on
69077         getaddrinfo.
69078         (ch_strerror): New function.
69079         (last_cherror): New global.
69080         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69081         interface.
69082         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69083         void *.
69084         (freeaddrinfo): Free ai->ai_canonname when set.
69085
69086 2005-09-12  Derek Price  <derek@ximbiot.com>
69087
69088         Make canon-host require getaddrinfo.
69089         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69090         AC_LIBSOURCE canon-host.h.  Call...
69091         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69092         gl_GETADDRINFO.
69093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69094
69095 2005-09-12  Derek Price  <derek@ximbiot.com>
69096
69097         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69098         LGPL.
69099         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69100
69101 2005-09-12  Derek Price  <derek@ximbiot.com>
69102
69103         * lib/gai_strerror.c: Include config.h when available.  Include
69104         getaddrinfo.h before other headers to test interface.
69105         Reported by Larry Jones <lawrence.jones@ugs.com>.
69106
69107 2005-09-12  Derek Price  <derek@ximbiot.com>
69108             Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * modules/glob (Files): Add glob-libc.h.
69111
69112 2005-09-12  Derek Price  <derek@ximbiot.com>
69113             Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69116         glob_.h, glob-libc.h.
69117         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69118
69119 2005-09-12  Derek Price  <derek@ximbiot.com>
69120             Paul Eggert  <eggert@cs.ucla.edu>
69121
69122         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69123         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69124         protecting things that should be done only in gnulib contexts.
69125         * lib/glob_.h: New file, containing only the glob things needed for
69126         gnulib.
69127         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69128         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69129         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69130         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69131         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69132         and to respect the namespace rules better.
69133
69134 2005-09-08  Simon Josefsson  <jas@extundo.com>
69135
69136         * modules/socklen: New file.
69137
69138 2005-09-08  Simon Josefsson  <jas@extundo.com>
69139
69140         * m4/socklen.m4: New file.
69141
69142 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * modules/utimens (Files): Add m4/utimbuf.m4, since
69145         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69146         Reported by Sergey Poznyakoff.
69147
69148 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69151         definitions, since that's the preferred style in glibc.
69152         Fix a minor spacing issue, and update copyright notice to match
69153         glibc's.
69154
69155 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69158
69159 2005-09-06  Simon Josefsson  <jas@extundo.com>
69160
69161         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69162         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69163
69164 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69167         warning.
69168
69169 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69170
69171         * config/srclist.txt: Add glibc bug 1302.
69172
69173 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         Change bitset word type from unsigned int to unsigned long int,
69176         as this has better performance on typical 64-bit hosts.
69177         Port bitset code to hosts with unusual word sizes.
69178         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69179         (build_collating_symbol):
69180         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69181         argument is a bitset.  This is merely a style issue, but it makes
69182         it clearer that an entire array is expected.
69183         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69184         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69185         Port to the case where bitset_word is not the same as unsigned int.
69186         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69187         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69188         Likewise.
69189         * lib/regexec.c (check_dst_limits_calc_pos_1,
69190         check_subexp_matching_top):
69191         (build_trtable, group_nodes_into_DFAstates):
69192         Likewise.
69193         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69194         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69195         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69196         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69197         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69198         * lib/regcomp.c (optimize_subexps, lower_subexp):
69199         Work even if bitset_word has holes in its bitwise representation.
69200         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69201         * lib/regexec.c (check_dst_limits_calc_pos_1,
69202         check_subexp_matching_top):
69203         Likewise.
69204         * lib/regex_internal.c (re_string_reconstruct):
69205         Don't assume UCHAR_MAX == 255.
69206         * lib/regex_internal.h (bitset_set_all): Likewise.
69207         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69208         All uses changed.
69209         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69210         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69211         All uses changed.
69212         (BITSET_WORD_MAX): New macro.
69213         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69214         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69215         (bitset_empty, bitset_copy):
69216         Prefer sizeof (bitset) to multiplying it out ourselves.
69217         (bitset_not_merge): Remove; unused.
69218         (bitset_contain): Return bool, not unsigned int with one bit on.
69219         All callers changed.
69220         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69221         alignment than re_node_set; do this by defining a new internal
69222         type struct dests_alloc and using it to allocate memory.
69223
69224 2005-09-05  Bruno Haible  <bruno@clisp.org>
69225
69226         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69227         links.
69228
69229 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69230
69231         * modules/size_max (Makefile.am): Add size_max.h
69232
69233 2005-09-04  Derek Price  <derek@ximbiot.com>
69234
69235         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69236
69237 2005-09-03  Simon Josefsson  <jas@extundo.com>
69238
69239         * gnulib-tool: Fix typo.
69240
69241 2005-09-03  Simon Josefsson  <jas@extundo.com>
69242
69243         * config/srclist.txt: Add glibc bug 1293.
69244
69245 2005-09-03  Derek Price  <derek@ximbiot.com>
69246
69247         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69248         From Larry Jones <lawrence.jones@ugs.com>.
69249
69250 2005-09-02  Simon Josefsson  <jas@extundo.com>
69251
69252         * modules/socklen: New file.
69253
69254 2005-09-02  Simon Josefsson  <jas@extundo.com>
69255
69256         * modules/havelib: New module.
69257
69258         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69259         Use havelib.
69260
69261 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         Check for arithmetic overflow when calculating sizes, to prevent
69264         some buffer-overflow issues.  These patches are conservative, in the
69265         sense that when I couldn't determine whether an overflow was possible,
69266         I inserted a run-time check.
69267         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69268         macros.
69269         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69270         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69271         (re_xnrealloc, re_x2nrealloc): New inline functions.
69272         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69273         parse_bracket_exp):
69274         (build_equiv_class, build_charclass): Check for arithmetic overflow
69275         in size expression calculations.
69276         * lib/regex_internal.c (re_string_realloc_buffers):
69277         (build_wcs_upper_buffer, re_node_set_add_intersect):
69278         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69279         (re_dfa_add_node, register_state): Likewise.
69280         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69281         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69282         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69283         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69284
69285 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69288         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69289
69290 2005-09-02  Bruno Haible  <bruno@clisp.org>
69291
69292         Support for lib vs. lib64 distinction on biarch platforms.
69293         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69294         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69296
69297 2005-09-02  Bruno Haible  <bruno@clisp.org>
69298
69299         * gnulib-tool (import): In the other first-use case, provide defaults
69300         as well.
69301
69302 2005-09-02  Bruno Haible  <bruno@clisp.org>
69303
69304         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69305         patches not yet found in the latest gettext release.
69306
69307 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69310         to avoid a collision with bits/local_lim.h in glibc.
69311         All uses changed.  Problem reported by Dmitry V. Levin in
69312         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69313
69314         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69315         bugs in int versus size_t comparisons.
69316         (re_string_context_at): Fix bug where the code assumed that
69317         Idx is signed.
69318
69319         Use bool where appropriate.
69320         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69321         All callers changed.
69322         (calc_eclosure_iter): Likewise, for ROOT arg.
69323         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69324         (build_charclass_op): Likewise, for NON_MATCH arg.
69325         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69326         (re_string_construct_common): Likewise, for ICASE arg.
69327         * lib/regexec.c (re_search_2_stub, re_search_stub):
69328         Likewise, for RET_LEN arg.
69329         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69330         (set_regs): Likewise, for FL_BACKTRACK arg.
69331         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69332         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69333         (calc_eclosure_iter, parse_bracket_exp):
69334         Use bool for internal variables that are booleans.
69335         * lib/regexec.c (re_search_internal, check_matching,
69336         proceed_next_node):
69337         (set_regs, build_sifted_states, sift_states_bkref):
69338         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69339         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69340         (find_collation_sequence_value):
69341         Likewise.
69342         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69343         (re_node_set_compare):
69344         Return bool, not int. All callers changed.
69345         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69346         (build_trtable, check_node_accept): Likewise.
69347         * lib/regex_internal.h: Include stdbool.h.
69348
69349         Fix bugs uncovered when converting to bool.
69350         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69351         failure instead of charging ahead blindly.
69352         * lib/regex_internal.c (register_state): Likewise.
69353         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69354         for freeing internal storage.
69355         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69356         bitset pieces used as boolean, to avoid undefined behavior
69357         on hosts that do int overflow checking.
69358
69359 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69360
69361         * config/srclist.txt: Add glibc bugs 1285-1287.
69362
69363 2005-09-01  Jim Meyering  <jim@meyering.net>
69364
69365         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69366         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69367         Require gl_STAT_MACROS, too.
69368
69369 2005-09-01  Bruno Haible  <bruno@clisp.org>
69370
69371         * gnulib-tool (import): In the first-use case, provide defaults.
69372
69373 2005-09-01  Bruno Haible  <bruno@clisp.org>
69374
69375         * gnulib-tool (func_import): Remove the .tmp files.
69376
69377 2005-09-01  Bruno Haible  <bruno@clisp.org>
69378
69379         * gnulib-tool (func_import): Fix handling of symbolic links.
69380
69381 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69384         old glibc regex code mishandles strings longer than 2**31 bytes.
69385         This patch fixes this when the regex code is used in gnulib
69386         (i.e., outside glibc).
69387
69388         This patch should not affect the use of the regex code inside
69389         glibc.  No doubt this problem also needs to be handled for glibc
69390         as well, but the result will be an incompatible change to the
69391         glibc ABI, and the old ABI will have to be supported too.  That
69392         can be the the subject for another patch.
69393
69394         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69395         governing whether the rest of this patch is active.  By default,
69396         the macro is disabled and the patch has no effect.
69397         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69398         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69399         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69400         (re_match_2, re_set_registers): Use the new types.
69401         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69402         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69403         New macros.
69404         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69405         (re_string_context_at, bin_tree_t, re_dfastate_t):
69406         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69407         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69408         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69409         (re_string_char_size_at, re_string_wchar_at):
69410         (re_string_elem_size_at):
69411         Use the new types and macros to port to 64-bit hosts.
69412         Use unsigned types for internal values, so that the code
69413         mostly works even for arrays larger than SSIZE_MAX.
69414         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69415         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69416         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69417         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69418         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69419         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69420         (calc_inveclosure, parse_dup_op, build_range_exp):
69421         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69422         (fetch_number, create_token_tree, mark_opt_subexp):
69423         Likewise.
69424         * lib/regex_internal.c (re_string_construct_common,
69425         create_ci_newstate):
69426         (create_cd_newstate, re_string_allocate, re_string_construct):
69427         (re_string_realloc_buffers, build_wcs_upper_buffer):
69428         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69429         (re_string_reconstruct, re_string_peek_byte_case):
69430         (re_string_fetch_byte_case, re_string_context_at):
69431         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69432         (re_node_set_init_copy, re_node_set_add_intersect):
69433         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69434         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69435         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69436         (re_acquire_state, re_acquire_state_context, register_state):
69437         Likewise.
69438         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69439         search_cur_bkref_entry):
69440         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69441         (re_search_internal, re_search_2_stub, re_search_stub)
69442         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69443         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69444         (update_cur_sifted_state, check_dst_limits):
69445         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69446         (check_subexp_limits, sift_states_bkref, merge_state_array):
69447         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69448         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69449         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69450         (expand_bkref_cache, check_node_accept_bytes):
69451         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69452         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69453         (acquire_init_state_context, check_halt_node_context):
69454         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69455         (sift_states_backward, clean_state_log_if_needed):
69456         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69457         (find_recover_state, transit_state_sb, transit_state_mb):
69458         (transit_state_bkref, build_trtable, match_ctx_clean):
69459         Likewise.
69460         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69461         to work around an assumption that REG_MISSING is negative.
69462
69463         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69464         (seek_collating_symbol_entry) [defined _LIBC]:
69465         (lookup_collation_sequence_value) [defined _LIBC]:
69466         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69467         Use prototypes rather than old-style function definitions.
69468         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69469         (transit_state_sb) [0]:
69470         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69471
69472         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69473         rm_eo.
69474
69475         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69476         (optimize_subexps, lower_subexp):
69477         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69478         since the signed shift might overflow.  Use 1u<<31 instead.
69479         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69480         Likewise.
69481         * lib/regexec.c (check_dst_limits_calc_pos_1,
69482         check_subexp_matching_top): Likewise.
69483
69484         * lib/regcomp.c (optimize_subexps, lower_subexp):
69485         Use CHAR_BIT rather than 8, for clarity.
69486         * lib/regexec.c (check_dst_limits_calc_pos_1):
69487         (check_subexp_matching_top): Likewise.
69488         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69489         have to worry about portability issues when shifting it left.
69490         Remove no-longer-needed test for table_size > 0.
69491         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69492         in a word, as the resulting behavior is undefined.
69493         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69494         in one case, a <= should have been an <, and in another case the
69495         whole test was missing.
69496         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69497         the standard name CHAR_BIT.
69498         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69499         this is not true on one's complement and signed-magnitude hosts.
69500
69501         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69502         next_last_offset.
69503         (struct re_dfa_t): Remove unused member states_alloc.
69504         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69505
69506 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69509         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69510         and large-file glibc and in 32-bit large-file Solaris.
69511
69512 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69513
69514         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69515         lengths fit in regoff_t; this isn't true if regoff_t is the same
69516         width as size_t.
69517         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69518         (= START + RANGE) instead of RANGE.  This avoids overflow
69519         problems when regoff_t is the same width as size_t.
69520         All callers changed.
69521         (re_search_2_stub): Check for overflow when adding the
69522         sizes of the two strings.
69523         (re_search_stub): Check for overflow when adding START
69524         to RANGE; if it occurs, substitute the extreme value.
69525
69526 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69529
69530 2005-08-31  Jim Meyering  <jim@meyering.net>
69531
69532         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69533         a pointer-to-const.
69534         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69535         (register_state): Likewise.
69536         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69537         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69538         (group_nodes_into_DFAstates): Likewise.
69539
69540 2005-08-31  Jim Meyering  <jim@meyering.net>
69541
69542         * check-module: Add a FIXME comment.
69543
69544 2005-08-31  Eric Blake  <ebb9@byu.net>
69545
69546         * modules/unistd-safer (Files): Add unistd--.h.
69547         * modules/stdio-safer (Files): Add stdio--.h.
69548
69549 2005-08-31  Derek Price  <derek@ximbiot.com>
69550
69551         * lib/getdelim.c (getdelim): Return EOF on EOF.
69552         Reported by Larry Jones <lawrence.jones@ugs.com>.
69553
69554 2005-08-31  Bruno Haible  <bruno@clisp.org>
69555
69556         Avoid unnecessary diffs in the generated lib/Makefile.am.
69557         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69558         the generated files.
69559         (func_import): Don't set cmd.
69560
69561 2005-08-31  Bruno Haible  <bruno@clisp.org>
69562
69563         * lib/strstr.c: Include <stddef.h>, for NULL.
69564         * lib/strcasestr.c: Likewise.
69565         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69566
69567 2005-08-31  Bruno Haible  <bruno@clisp.org>
69568
69569         * gnulib-tool: New option --macro-prefix.
69570         (func_import): Use macro_prefix.
69571         (import): Handle option --macro-prefix.
69572
69573 2005-08-31  Bruno Haible  <bruno@clisp.org>
69574
69575         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69576         Also use new variables cached_lgpl, cached_libtool.
69577
69578 2005-08-31  Bruno Haible  <bruno@clisp.org>
69579
69580         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69581         always instantiating them.
69582
69583 2005-08-31  Bruno Haible  <bruno@clisp.org>
69584
69585         * gnulib-tool (func_import): Read the previous cached settings
69586         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69587         earlier added by gnulib but are now dropped. Warn when a gnulib file
69588         overwrites a non-gnulib file.
69589
69590 2005-08-31  Bruno Haible  <bruno@clisp.org>
69591
69592         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69593         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69594         projects that don't keep autogenerated files in CVS. Put into
69595         actioncmd only the specified modules, not the transitive closure.
69596
69597 2005-08-31  Bruno Haible  <bruno@clisp.org>
69598
69599         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69600         Create directories that shall be filled.
69601         (import): Don't look for gl_* macros in configure.ac. Recurse across
69602         all directories containing a gnulib-cache.m4 files, if meaningful.
69603
69604 2005-08-31  Bruno Haible  <bruno@clisp.org>
69605
69606         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69607         (import): Set seen_libtool when we see gl_LIBTOOL.
69608
69609 2005-08-31  Bruno Haible  <bruno@clisp.org>
69610
69611         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69612         declaration macro definitions from generated gnulib.m4.
69613
69614 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69615
69616         * lib/iconvme.h: Add prototype for iconv_alloc.
69617
69618 2005-08-29  Simon Josefsson  <jas@extundo.com>
69619
69620         * lib/iconvme.c: Fix errno.
69621
69622 2005-08-29  Bruno Haible  <bruno@clisp.org>
69623
69624         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69625         that it works when the directory contains spaces.
69626
69627 2005-08-29  Bruno Haible  <bruno@clisp.org>
69628
69629         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69630
69631 2005-08-29  Bruno Haible  <bruno@clisp.org>
69632
69633         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69634         Emit more advice.
69635
69636 2005-08-29  Bruno Haible  <bruno@clisp.org>
69637         and Stepan Kasal  <kasal@ucw.cz>
69638
69639         * check-module: If more parameters are given, check each of them
69640         separately; add more exceptions, as noted by Jim Meyering.
69641         (check_module): New procedure.
69642         (%exempt_header): Now contains all exceptions.
69643
69644 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69645
69646         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69647
69648 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69649
69650         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69651
69652 2005-08-28  Bruno Haible  <bruno@clisp.org>
69653
69654         * m4/gnulib-tool.m4: New file.
69655
69656 2005-08-27  Jim Meyering  <jim@meyering.net>
69657
69658         * modules/unistd-safer (Files): Add pipe-safer.c.
69659         * modules/fcntl-safer (Files): Add creat-safer.c.
69660
69661 2005-08-27  Jim Meyering  <jim@meyering.net>
69662
69663         * m4/stdlib-safer.m4: New file.  From coreutils.
69664         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69665         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69666         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69667         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69668         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69669
69670 2005-08-27  Jim Meyering  <jim@meyering.net>
69671
69672         * lib/fopen-safer.c: Merge minor changes from coreutils.
69673         * lib/dup-safer.c: Likewise.
69674         * lib/fd-safer.c: Likewise.
69675
69676         Merge from coreutils.
69677         * lib/stdio--.h: New file.
69678         * lib/stdlib--.h: New file.
69679         * lib/mkstemp-safer.c: New file.
69680
69681         GNU tar needs these.
69682         * lib/pipe-safer.c: New file.
69683         * lib/creat-safer.c: New file.
69684         * lib/fcntl--.h (creat): Define to creat_safer.
69685         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69686         * lib/unistd--.h (pipe): Define to pipe_safer.
69687         * lib/unistd-safer.h: Declare pipe_safer.
69688
69689 2005-08-26  Simon Josefsson  <jas@extundo.com>
69690
69691         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69692         Haible <bruno@clisp.org>.
69693
69694 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69695
69696         * lib/regex_internal.h: Remove all references to
69697         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69698         or better.
69699         (bitset_not, bitset_merge, bitset_not_merge):
69700         (bitset_mask, re_string_allocate, re_string_construct):
69701         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69702         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69703         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69704         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69705         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69706         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69707         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69708         (re_acquire_state_context):
69709         Remove unnecessary forward decls.
69710         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69711         Put __attribute at function definition,
69712         now that the function decl has been removed.
69713         * lib/regex_internal.c (re_string_peek_byte_case):
69714         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69715         Likewise.
69716
69717 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69718
69719         * m4/regex.m4: Add AC_PREREQ(2.50).
69720         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69721
69722 2005-08-25  Simon Josefsson  <jas@extundo.com>
69723
69724         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69725         __fsetlocking.
69726
69727 2005-08-25  Simon Josefsson  <jas@extundo.com>
69728
69729         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69730         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69731         GLIBC specific code.
69732
69733 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         Make regex safe for g++.  This fixes one real bug (an "err"
69736         that should have been "*err").  g++ problem reported by
69737         Sam Steingold.
69738         * lib/regex_internal.h (re_calloc): New macro, consistent with
69739         re_malloc etc.  All callers of calloc changed to use re_calloc.
69740         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69741         not int.  All callers changed.
69742         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69743         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69744         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69745         (find_recover_state): Change "err" to "*err"; this fixes what
69746         appears to be a real bug.
69747         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69748         versus int.
69749
69750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * modules/regex (Depends-on): Add malloc, since the code
69753         assumes that !malloc(0) means failure.
69754
69755 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69758
69759         alloca modernization/simplification for regex.
69760         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69761         needs to be at the start of the file, and can be moved into
69762         regex_internal.h and simplified.
69763         * lib/regex_internal.h: Include <alloca.h>.
69764         (__libc_use_alloca) [!defined _LIBC]: New macro.
69765         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69766         now works outside glibc.
69767
69768 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * config/srclist.txt: Add glibc bugs 1241, 1245.
69771
69772 2005-08-25  Jim Meyering  <jim@meyering.net>
69773
69774         * lib/open-safer.c: Include <config.h>.
69775         Otherwise, we'd lose LARGEFILE support in any file using
69776         e.g. "fcntl--.h"
69777
69778 2005-08-25  Bruno Haible  <bruno@clisp.org>
69779
69780         * m4/minmax.m4: Require autoconf 2.52.
69781         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69782         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69783         alternatives of translit over the alphabet.
69784         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69785
69786 2005-08-24  Simon Josefsson  <jas@extundo.com>
69787
69788         * tests/test-getpass.c: New file.
69789
69790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69793         for GNU regex features.
69794
69795 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69798         * lib/regex.h (regerror): Likewise.
69799
69800         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69801         requires this.  (The code never needed it.)
69802
69803         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69804         All uses of recently-renamed identifiers changed to use the new,
69805         POSIX-compliant names.  The code will build and run just fine
69806         without these changes, but it's better to eat our own dog food
69807         and use the standard-conforming names.
69808
69809         * lib/regex.h: Fix a multitude of POSIX name space violations.
69810         These changes have an effect only for programs that define
69811         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69812         do not change anything for programs compiled in the normal way.
69813         Also, there is no effect on the ABI.
69814
69815         (_REGEX_SOURCE): New macro.
69816         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69817         defined and _GNU_SOURCE is not; this fixes a name space violation.
69818
69819         Rename the following macros to obey POSIX requirements.
69820         The old names are still visible as macros if _REGEX_SOURCE is defined.
69821         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69822         RE_BACKSLASH_ESCAPE_IN_LISTS.
69823         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69824         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69825         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69826         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69827         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69828         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69829         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69830         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69831         (REG_INTERVALS): renamed from RE_INTERVALS.
69832         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69833         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69834         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69835         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69836         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69837         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69838         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69839         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69840         RE_UNMATCHED_RIGHT_PAREN_ORD.
69841         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69842         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69843         (REG_DEBUG): renamed from RE_DEBUG.
69844         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69845         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69846         unusual, since we can't clash with the POSIX REG_ICASE.
69847         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69848         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69849         (REG_NO_SUB): renamed from RE_NO_SUB.
69850         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69851         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69852         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69853         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69854         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69855         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69856         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69857         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69858         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69859         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69860         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69861         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69862         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69863         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69864         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69865         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69866         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69867         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69868         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69869         (REG_FIXED): Renamed from REGS_FIXED.
69870         (REG_NREGS): Renamed from RE_NREGS.
69871
69872         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69873         of other REG_* macros, since POSIX says the user is allowed to
69874         #undef these macros selectively.
69875
69876         (reg_errcode_t): Update comment stating what other tables need
69877         to be consistent.
69878
69879         Rename the following enum values to obey POSIX requirements.
69880         The old names are still visible as macros.
69881         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69882         is not defined, since GNU is supposed to be a superset of POSIX as
69883         much as possible, and since we want reg_errcode_t to be a signed
69884         type for implementation consistency.
69885         (_REG_NOERROR): Renamed from REG_NOERROR.
69886         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69887         (_REG_BADPAT): Renamed from REG_BADPAT.
69888         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69889         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69890         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69891         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69892         (_REG_EBRACK): Renamed from REG_EBRACK.
69893         (_REG_EPAREN): Renamed from REG_EPAREN.
69894         (_REG_EBRACE): Renamed from REG_EBRACE.
69895         (_REG_BADBR): Renamed from REG_BADBR.
69896         (_REG_ERANGE): Renamed from REG_ERANGE.
69897         (_REG_ESPACE): Renamed from REG_ESPACE.
69898         (_REG_BADRPT): Renamed from REG_BADRPT.
69899         (_REG_EEND): Renamed from REG_EEND.
69900         (_REG_ESIZE): Renamed from REG_ESIZE.
69901         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69902         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69903         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69904         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69905         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69906
69907         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69908         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69909         changed.  But support the old name if the new one is not defined
69910         and if _REGEX_SOURCE.
69911
69912         Change the following member names in struct re_pattern_buffer.
69913         The old names are still supported if !_REGEX_SOURCE.
69914         The new names are always supported, regardless of _REGEX_SOURCE.
69915         (re_buffer): Renamed from buffer.
69916         (re_allocated): Renamed from allocated.
69917         (re_used): Renamed from used.
69918         (re_syntax): Renamed from syntax.
69919         (re_fastmap): Renamed from fastmap.
69920         (re_translate): Renamed from translate.
69921         (re_can_be_null): Renamed from can_be_null.
69922         (re_regs_allocated): Renamed from regs_allocated.
69923         (re_fastmap_accurate): Renamed from fastmap_accurate.
69924         (re_no_sub): Renamed from no_sub.
69925         (re_not_bol): Renamed from not_bol.
69926         (re_not_eol): Renamed from not_eol.
69927         (re_newline_anchor): Renamed from newline_anchor.
69928
69929         Change the following member names in struct re_registers.
69930         The old names are still supported if !_REGEX_SOURCE.
69931         The new names are always supported, regardless of _REGEX_SOURCE.
69932         (rm_num_regs): Renamed from num_regs.
69933         (rm_start): Renamed from start.
69934         (rm_end): Renamed from end.
69935
69936         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69937         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69938         Prepend __ to parameter names.
69939
69940         Undo yesterday's changes.
69941
69942 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69945         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69946         lib/regex.c.
69947
69948 2005-08-24  Jim Meyering  <jim@meyering.net>
69949
69950         Sync from coreutils.
69951         * m4/fcntl-safer.m4: New file.
69952
69953         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69954         and object files for this module.
69955
69956 2005-08-24  Jim Meyering  <jim@meyering.net>
69957
69958         Sync from coreutils.
69959         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69960
69961 2005-08-24  Jim Meyering  <jim@meyering.net>
69962
69963         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69964         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69965
69966 2005-08-24  Jim Meyering  <jim@meyering.net>
69967
69968         * modules/fcntl-safer: New module.
69969         * modules/fts (Depends-on): Add fcntl-safer.
69970         * MODULES.html.sh (File descriptor based Input/Output):
69971         Add fcntl-safer.
69972
69973 2005-08-24  Bruno Haible  <bruno@clisp.org>
69974
69975         Support for unit test modules.
69976         * modules/README: Mention tests modules.
69977         * modules/TEMPLATE-TESTS: New file.
69978         * gnulib-tool: New options --extract-tests-module, --with-tests and
69979         --tests-base (unused for the moment).
69980         (testsbase, inctests): New variables.
69981         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69982         (func_verify_module): Exclude TEMPLATE-TESTS.
69983         (func_verify_nontests_module, func_verify_tests_module): New functions.
69984         (func_get_dependencies): Add implicit dependency for tests modules.
69985         (func_get_tests_module): New function.
69986         (func_modules_transitive_closure): When --with-tests was specified,
69987         include the unit tests as well, unless explicitly avoided.
69988         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69989         (func_emit_tests_Makefile_am): New function.
69990         (func_create_testdir): When --with-tests was specified, emit a
69991         tests/ directory.
69992         * MODULES.html.sh (Future developments): Update.
69993
69994 2005-08-24  Bruno Haible  <bruno@clisp.org>
69995
69996         * modules/tls-tests: New file.
69997         * tests/test-tls.c: New file, from GNU gettext.
69998
69999 2005-08-24  Bruno Haible  <bruno@clisp.org>
70000
70001         * modules/lock-tests: New file.
70002         * tests/test-lock.c: New file, from GNU gettext.
70003
70004 2005-08-24  Bruno Haible  <bruno@clisp.org>
70005
70006         * lib/lock.h: Add multiple inclusion guard.
70007         * lib/tls.h: Add multiple inclusion guard.
70008
70009 2005-08-24  Bruno Haible  <bruno@clisp.org>
70010
70011         * gnulib-tool: Add support for the --aux-dir option to
70012         --create-testdir, --create-megatestdir, --test, --megatest.
70013         (func_create_testdir, func_create_megatestdir): Optionally emit a
70014         AC_CONFIG_AUX_DIR directive.
70015         (create-testdir, create-megatestdir, test, megatest): Provide a
70016         default value for $auxdir.
70017
70018 2005-08-24  Bruno Haible  <bruno@clisp.org>
70019
70020         * gnulib-tool (import): Use compound statement instead of subshell
70021         where possible.
70022
70023 2005-08-24  Bruno Haible  <bruno@clisp.org>
70024
70025         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70026
70027 2005-08-24  Bruno Haible  <bruno@clisp.org>
70028
70029         * gnulib-tool (func_version): Update.
70030
70031 2005-08-24  Bruno Haible  <bruno@clisp.org>
70032
70033         * gnulib-tool (func_import, func_create_testdir,
70034         func_create_megatestdir): Quote all autoconf macro arguments.
70035
70036 2005-08-24  Bruno Haible  <bruno@clisp.org>
70037
70038         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70039         option --force, because --force causes the aclocal.m4 of each
70040         subdirectory to be newer than the corresponding config.h.in.
70041
70042 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70043
70044         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70045         All contents moved to gl_REGEX.
70046         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70047         assume that it does.
70048
70049 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * lib/regex.h (REG_NOSYS)
70052         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70053         Define, since POSIX requires it as of 2001.
70054         (_REG_ENOSYS)
70055         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70056         New private symbol, used to keep the enum signed in all cases.
70057         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70058         Youngman in
70059         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70060
70061         * lib/regex_internal.c (re_string_skip_chars, register_state):
70062         (calc_state_hash):
70063         Remove forward decls; no longer needed now that we use prototypes.
70064         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70065         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70066         (clean_state_log_if_needed): Likewise.
70067
70068 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * config/srclist.txt: Add glibc bugs 1231-1233.
70071
70072 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         Fix problems reported by Sam Steingold in
70075         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70076         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70077         assumed that reg_errcode_t is a signed type, which is not
70078         necessarily true if _XOPEN_SOURCE is not defined.
70079         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70080         since some compilers warn about it otherwise.
70081
70082 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70085         (init_word_char, create_initial_state, duplicate_node_closure):
70086         (fetch_token, peek_token_bracket, build_range_exp):
70087         (build_collating_symbol): Remove forward decls; no longer needed
70088         now that we use prototypes.
70089
70090         * lib/regcomp.c:
70091         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70092         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70093         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70094         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70095         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70096         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70097         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70098         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70099         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70100         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70101         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70102         (build_charclass, build_charclass_op, fetch_number, create_tree):
70103         (create_token_tree, mark_opt_subexp, duplicate_tree):
70104         Use prototypes rather than old-style definitions.
70105
70106         * lib/regex_internal.c:
70107         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70108         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70109         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70110         (re_string_reconstruct, re_string_peek_byte_case):
70111         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70112         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70113         (re_node_set_init_copy, re_node_set_add_intersect):
70114         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70115         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70116         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70117         (re_acquire_state, re_acquire_state_context, register_state):
70118         (create_ci_newstate, create_cd_newstate, free_state):
70119         Likewise.
70120         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70121         re_search_2):
70122         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70123         (re_search_internal, prune_impossible_nodes):
70124         (acquire_init_state_context, check_matching, static):
70125         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70126         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70127         (update_regs, sift_states_backward, build_sifted_states):
70128         (clean_state_log_if_needed, merge_state_array):
70129         (update_cur_sifted_state, add_epsilon_src_nodes):
70130         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70131         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70132         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70133         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70134         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70135         (check_arrival, check_arrival_add_next_nodes):
70136         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70137         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70138         (check_node_accept_bytes, check_node_accept, extend_buffers):
70139         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70140         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70141         (sift_ctx_init):
70142         Likewise.
70143
70144         * lib/regex_internal.h:
70145         (re_string_allocate, re_string_construct, re_string_reconstruct):
70146         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70147         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70148         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70149         (re_string_context_at, re_string_peek_byte_case):
70150         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70151         is defined, since we now use prototypes always.
70152
70153         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70154         C89 or better.  All uses removed.
70155
70156 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70157
70158         * config/srclist.txt: Add glibc bugs 1220-1227.
70159
70160 2005-08-20  Jim Meyering  <jim@meyering.net>
70161
70162         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70163         of unused local, dfa.
70164
70165 2005-08-20  Bruno Haible  <bruno@clisp.org>
70166
70167         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70168
70169 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70170
70171         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70172         (re_node_set_insert_last, re_dfa_add_node):
70173         Rename local variables to avoid GCC shadowing warnings.
70174
70175 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70176
70177         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70178         [defined lint]: Suppress bogus uninitialized-variable warnings.
70179
70180         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70181         and let the caller return REG_ESPACE if out of space.  This
70182         removes an uninitialied-variable warning with GCC 4.0.1, and also
70183         avoids taking the address of a local variable.  All callers
70184         changed.
70185
70186 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70189         $LIBCSRC/posix/regexec.c.
70190         Add glibc bug 1217 for regcomp.c.
70191
70192 2005-08-19  Jim Meyering  <jim@meyering.net>
70193
70194         * lib/regexec.c (proceed_next_node): Redo local variables to
70195         avoid GCC shadowing warnings.
70196
70197 2005-08-18  Bruno Haible  <bruno@clisp.org>
70198
70199         * lib/strstr.c (strstr): Fix return value in multibyte case.
70200         * lib/strcasestr.c (strcasestr): Likewise.
70201
70202 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70205
70206 2005-08-17  Jim Meyering  <jim@meyering.net>
70207
70208         Make the %s format (seconds since the epoch) work for a negative
70209         number and when used with a zero-padded field width, e.g. %015s.
70210
70211         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70212         label so that it precedes the code to set `digits'.  Otherwise,
70213         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70214         print `00-22'.  Now, it prints `-0022', as it should.
70215
70216 2005-08-17  Bruno Haible  <bruno@clisp.org>
70217
70218         * modules/strstr (Files): Add m4/mbrtowc.m4.
70219         (Depends-on): Add mbuiter.
70220
70221 2005-08-17  Bruno Haible  <bruno@clisp.org>
70222
70223         * modules/strcasestr: New file.
70224         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70225         strcasestr.
70226
70227 2005-08-17  Bruno Haible  <bruno@clisp.org>
70228
70229         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70230
70231 2005-08-17  Bruno Haible  <bruno@clisp.org>
70232
70233         * modules/mbuiter: New file.
70234         * MODULES.html.sh (Extended multibyte and wide character utilities):
70235         Add mbuiter.
70236
70237 2005-08-17  Bruno Haible  <bruno@clisp.org>
70238
70239         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70240         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70241
70242 2005-08-17  Bruno Haible  <bruno@clisp.org>
70243
70244         * m4/strcasestr.m4: New file.
70245
70246 2005-08-17  Bruno Haible  <bruno@clisp.org>
70247
70248         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70249         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70250
70251 2005-08-17  Bruno Haible  <bruno@clisp.org>
70252
70253         * lib/strcasestr.h: New file.
70254         * lib/strcasestr.c: New file.
70255
70256 2005-08-17  Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/strcasecmp.c: Use mbuiter.h.
70259
70260 2005-08-17  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/mbuiter.h: New file.
70263
70264 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70265
70266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70267         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70268         and gl_GETOPT are both invoked via different paths (as happens
70269         with GNU tar CVS because it uses both argp and getopt), the former
70270         wins.
70271
70272 2005-08-16  Bruno Haible  <bruno@clisp.org>
70273
70274         * modules/tls: New file.
70275         * MODULES.html.sh (Multithreading): Add tls.
70276
70277 2005-08-16  Bruno Haible  <bruno@clisp.org>
70278
70279         * modules/strnlen1: New file.
70280         * MODULES.html.sh (String handling): Add strnlen1.
70281
70282 2005-08-16  Bruno Haible  <bruno@clisp.org>
70283
70284         * modules/strcase (Files): Add m4/mbrtowc.m4.
70285         (Depends-on): Add strnlen1, mbchar.
70286
70287 2005-08-16  Bruno Haible  <bruno@clisp.org>
70288
70289         * modules/mbiter: New file.
70290         * MODULES.html.sh (Extended multibyte and wide character utilities):
70291         Add mbiter.
70292
70293 2005-08-16  Bruno Haible  <bruno@clisp.org>
70294
70295         * modules/mbfile: New file.
70296         * MODULES.html.sh (Extended multibyte and wide character utilities):
70297         Add mbfile.
70298
70299 2005-08-16  Bruno Haible  <bruno@clisp.org>
70300
70301         * modules/mbchar: New file.
70302         * MODULES.html.sh (Extended multibyte and wide character utilities):
70303         New section.
70304
70305 2005-08-16  Bruno Haible  <bruno@clisp.org>
70306
70307         * m4/tls.m4: New file, from GNU gettext.
70308
70309 2005-08-16  Bruno Haible  <bruno@clisp.org>
70310
70311         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70312         always.
70313         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70314
70315 2005-08-16  Bruno Haible  <bruno@clisp.org>
70316
70317         * m4/mbiter.m4: New file.
70318
70319 2005-08-16  Bruno Haible  <bruno@clisp.org>
70320
70321         * m4/mbfile.m4: New file.
70322
70323 2005-08-16  Bruno Haible  <bruno@clisp.org>
70324
70325         * m4/mbchar.m4: New file.
70326
70327 2005-08-16  Bruno Haible  <bruno@clisp.org>
70328
70329         * lib/tls.h: New file, from GNU gettext.
70330         * lib/tls.c: New file, from GNU gettext.
70331
70332 2005-08-16  Bruno Haible  <bruno@clisp.org>
70333
70334         * lib/strnlen1.h: New file.
70335         * lib/strnlen1.c: New file.
70336
70337 2005-08-16  Bruno Haible  <bruno@clisp.org>
70338
70339         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70340         (mbi_init): Update.
70341         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70342         NUL byte, not after it.
70343
70344 2005-08-16  Bruno Haible  <bruno@clisp.org>
70345
70346         * lib/strcase.h (strcasecmp): Add note in comments.
70347         * lib/strncasecmp.c: Use code from strcasecmp.c.
70348         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70349         (strcasecmp): Work correctly in multibyte locales.
70350
70351 2005-08-16  Bruno Haible  <bruno@clisp.org>
70352
70353         * lib/mbiter.h: New file.
70354
70355 2005-08-16  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/mbfile.h: New file.
70358
70359 2005-08-16  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/mbchar.h: New file.
70362         * lib/mbchar.c: New file.
70363
70364 2005-08-16  Bruno Haible  <bruno@clisp.org>
70365
70366         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70367         the valid ones. Makes the comparison operations transitive:
70368         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70369         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70370
70371 2005-08-15  Simon Josefsson  <jas@extundo.com>
70372
70373         * modules/ssize_t (License): Change to 'unlimited'.
70374
70375         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70376
70377 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70378
70379         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70380         Add comments for each pending glibc patch.
70381
70382 2005-08-15  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70385         __cplusplus is defined.
70386
70387 2005-08-14  Jim Meyering  <jim@meyering.net>
70388
70389         Sync from coreutils.
70390
70391         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70392         Use the hash-table-based cycle-detection code not just when
70393         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70394         Reported by James Youngman in
70395         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70396         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70397         FTS_TIGHT_CYCLE_CHECK.
70398         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70399         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70400         once again.
70401         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70402         * lib/fts.c (fd_safer): Remove decl.
70403         Include fcntl--.h rather than unistd-safer.h
70404         (fts_safe_changedir): Don't call fd_safer; no longer needed
70405         now that we include fcntl--.h.
70406
70407 2005-08-12  Simon Josefsson  <jas@extundo.com>
70408
70409         * modules/getndelim2: Use ssize_t module.
70410         * modules/getnline: Likewise.
70411         * modules/safe-read: Likewise.
70412         * modules/xreadlink: Likewise.
70413
70414         * modules/ssize_t: New file.
70415
70416 2005-08-12  Simon Josefsson  <jas@extundo.com>
70417
70418         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70419
70420 2005-08-12  Simon Josefsson  <jas@extundo.com>
70421
70422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70423         ssize_t.
70424
70425 2005-08-12  Simon Josefsson  <jas@extundo.com>
70426
70427         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70428         readline, getdelim and check_version.
70429         (Support for systems lacking ISO C 99: Sizes of integer types):
70430         Add size_max.
70431
70432 2005-08-12  Bruno Haible  <bruno@clisp.org>
70433
70434         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70435
70436 2005-08-11  Simon Josefsson  <jas@extundo.com>
70437
70438         * modules/readline: New file.
70439
70440         * modules/strnlen (Files): Add strnlen.h.
70441
70442 2005-08-11  Simon Josefsson  <jas@extundo.com>
70443
70444         * m4/readline.m4: New file.
70445
70446 2005-08-11  Simon Josefsson  <jas@extundo.com>
70447
70448         * lib/readline.h, readline.c: New file.
70449
70450 2005-08-11  Simon Josefsson  <jas@extundo.com>
70451
70452         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70453         gl_AVOID.
70454
70455 2005-08-11  Bruno Haible  <bruno@clisp.org>
70456
70457         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70458
70459 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70460
70461         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70462
70463 2005-08-10  Simon Josefsson  <jas@extundo.com>
70464
70465         * tests/test-iconvme.c: New file.
70466
70467 2005-08-10  Simon Josefsson  <jas@extundo.com>
70468
70469         * m4/strnlen.m4: New file.
70470
70471         * m4/strndup.m4: Don't check for strnlen declaration, done in
70472         strnlen.m4.
70473
70474 2005-08-10  Simon Josefsson  <jas@extundo.com>
70475
70476         * lib/strndup.c: Use strnlen.h.
70477
70478         * lib/strnlen.h: New file.
70479
70480 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70481
70482         * README: Typos.
70483
70484 2005-08-02  Simon Josefsson  <jas@extundo.com>
70485
70486         * modules/readline: New file.
70487
70488 2005-08-02  Simon Josefsson  <jas@extundo.com>
70489
70490         * modules/getdelim: New file.
70491
70492         * modules/getline: Rewrite, don't use getndelim2.
70493
70494 2005-08-02  Simon Josefsson  <jas@extundo.com>
70495
70496         * m4/getline.m4: Separate out getdelim stuff into separate module.
70497
70498         * m4/getdelim.m4: New file.
70499
70500 2005-08-02  Simon Josefsson  <jas@extundo.com>
70501
70502         * lib/getline.h, getline.c: Rewrite.
70503
70504         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70505
70506 2005-07-31  Bruno Haible  <bruno@clisp.org>
70507
70508         * lib/lock.h (gl_lock_initializer): New macro.
70509         (gl_lock_define_initialized): Use it.
70510         (gl_rwlock_initializer): New macro.
70511         (gl_rwlock_define_initialized): Use it.
70512         (gl_recursive_lock_initializer): New macro.
70513         (gl_recursive_lock_define_initialized): Use it.
70514
70515 2005-07-30  Karl Berry  <karl@gnu.org>
70516
70517         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70518         Report from Ben Pfaff, regarding getopt.
70519
70520 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70523         normal way.
70524         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70525         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70526         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70527         (gl_GETOPT): Use the new macros.  Most of the implementation
70528         is moved to the new macros.  This is for programs like Emacs
70529         that don't want all the functionality of gl_GETOPT.
70530
70531 2005-07-26  Bruno Haible  <bruno@clisp.org>
70532
70533         * m4/lock.m4: Update from GNU gettext.
70534
70535 2005-07-26  Bruno Haible  <bruno@clisp.org>
70536
70537         * lib/lock.h: Update from GNU gettext.
70538         * lib/lock.c: Update from GNU gettext.
70539
70540 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70543         obsolescent AC_TRY_RUN.  Include the default includes files, for
70544         'exit'.
70545
70546 2005-07-24  Bruno Haible  <bruno@clisp.org>
70547
70548         * modules/visibility: New file.
70549         * MODULES.html.sh (Misc): Add visibility.
70550
70551 2005-07-24  Bruno Haible  <bruno@clisp.org>
70552
70553         * m4/visibility.m4: New file.
70554
70555 2005-07-24  Bruno Haible  <bruno@clisp.org>
70556
70557         * doc/visibility.texi: New file.
70558
70559 2005-07-22  Bruno Haible  <bruno@clisp.org>
70560
70561         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70562         $(ALLOCA_H), redundant through BUILT_SOURCES.
70563         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70564         redundant through BUILT_SOURCES.
70565         * modules/byteswap (Makefile.am): Remove explicit dependency on
70566         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70567         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70568         $(FNMATCH_H), redundant through BUILT_SOURCES.
70569         * modules/getopt (Makefile.am): Remove explicit dependency on
70570         $(GETOPT_H), redundant through BUILT_SOURCES.
70571         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70572         redundant through BUILT_SOURCES.
70573         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70574         redundant through BUILT_SOURCES.
70575         * modules/stdbool (Makefile.am): Remove explicit dependency on
70576         $(STDBOOL_H), redundant through BUILT_SOURCES.
70577         * modules/stdint (Makefile.am): Remove explicit dependency on
70578         $(STDINT_H), redundant through BUILT_SOURCES.
70579         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70580         Remove explicit dependency on $(SYSEXITS_H).
70581         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70582
70583 2005-07-18  Simon Josefsson  <jas@extundo.com>
70584
70585         * lib/check-version.c (check_version): Accept identical versions too.
70586
70587 2005-07-18  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/lock: New file.
70590         * MODULES.html.sh (Multithreading): New section.
70591
70592 2005-07-18  Bruno Haible  <bruno@clisp.org>
70593
70594         * m4/lock.m4: New file, from GNU gettext.
70595
70596 2005-07-18  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/lock.h: New file, from GNU gettext.
70599         * lib/lock.c: New file, from GNU gettext.
70600
70601 2005-07-18  Bruno Haible  <bruno@clisp.org>
70602
70603         * lib/lock.h (gl_once_t): New type.
70604         (gl_once_define, gl_once): New macros.
70605         * lib/lock.c (fresh_once): New variable.
70606         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70607         functions.
70608
70609 2005-07-16  Simon Josefsson  <jas@extundo.com>
70610
70611         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70612         workaround, suggested by Bruno.
70613
70614 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * modules/xalloc (Depends-on): Add xalloc-die.
70617         * modules/xvasprintf (Depends-on): Add xalloc-die.
70618
70619 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70622         with a minor change.
70623
70624 2005-07-15  Bruno Haible  <bruno@clisp.org>
70625
70626         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70627         When using lib/poll.c, define poll as rpl_poll.
70628
70629 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70630
70631         * modules/argp (Depends-on): Remove unlocked-io.
70632
70633 2005-07-14  Derek Price  <derek@ximbiot.com>
70634
70635         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70636         for glob symlink bug.
70637
70638 2005-07-14  Bruno Haible  <bruno@clisp.org>
70639
70640         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70641         Instead, test for *_unlocked function declarations directly.
70642
70643 2005-07-11  Simon Josefsson  <jas@extundo.com>
70644
70645         * modules/size_max: New file.
70646
70647         * modules/xsize: Depend on size_max module for size_max.m4.
70648
70649 2005-07-11  Simon Josefsson  <jas@extundo.com>
70650
70651         * lib/size_max.h: New file.
70652
70653 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70656         copyright symbol and the year.
70657         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70658         (version_etc_va): Use parameterized copyright notice.
70659         Reword to conform to the current GNU coding standards.
70660
70661 2005-07-11  Karl Berry  <karl@gnu.org>
70662
70663         * doc/gnulib.texi (Quoting): new node.
70664         (Initial import): more info, from Patrice.
70665
70666 2005-07-11  Bruno Haible  <bruno@clisp.org>
70667
70668         * gnulib-tool (func_usage): Document option --avoid.
70669         (Command line options): Handle --avoid.
70670         (func_acceptable): New function.
70671         (func_modules_transitive_closure): Use it.
70672
70673 2005-07-11  Bruno Haible  <bruno@clisp.org>
70674
70675         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70676         Reported by Jim Meyering.
70677
70678 2005-07-10  Bruno Haible  <bruno@clisp.org>
70679
70680         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70681         Needed when size_t is smaller than 'unsigned int'.
70682         Reported by Paul Eggert.
70683
70684 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70685
70686         * modules/argp (Depends-on): Add unlocked-io
70687
70688 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70689
70690         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70691         block of defines.
70692
70693 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70696         fix now.
70697
70698 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70699         and Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70702         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70703
70704 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * modules/regex (Files): Add lib/regex_internal.c,
70707         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70708         (Depends-on): Add extensions.
70709         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70710
70711 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70714         pathconf.
70715         * m4/same.m4 (gl_SAME): Likewise.
70716         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70717
70718         * m4/regex.m4: Adjust to new libc regex implementation.
70719         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70720         all the .c and .h parts of (the new) regex.
70721         Quote the m4 stuff better.
70722         Check for RE_ICASE bug of old gnulib.
70723         Check for REG_STARTEND of recent libc.
70724         Rename local variables from jm_* to gl_*.
70725         Quote operand of "test -f".
70726         Say "recent enough" version of libc, not "version 2".
70727         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70728         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70729         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70730         Remove check for btowc, isascii.
70731         Require AM_LANGINFO_CODESET.
70732
70733 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/regex.c, regex.h: Sync from libc.
70736         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70737         * lib/regexec.c:
70738         New files, synced from libc, except that regex_internal.h
70739         currently has a small porting fix.
70740
70741 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70744         regex_internal.c, regexec.c.
70745         Add regex_internal.h too, but as a comment, since the libc version
70746         is currently broken in gnulib mode.
70747
70748 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70749
70750         Support programs like Emacs that use gnulib but not gettext.
70751         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70752         * modules/gettext-h: New file.
70753         * modules/gettext (Files): Remove lib/gettext.h.
70754         (Depends-on): Add gettext-h.
70755         (Makefile.am): Remove lib_SOURCES.
70756         * modules/argmatch, modules/c-stack, modules/closeout:
70757         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70758         * modules/execute, modules/file-type, modules/getaddrinfo:
70759         * modules/getopt, modules/human, modules/javacomp:
70760         * modules/javaexec, modules/mkdir-p, modules/obstack:
70761         * modules/openat, modules/pagealign_alloc, modules/pipe:
70762         * modules/quotearg, modules/regex, modules/rpmatch:
70763         * modules/unicodeio, modules/userspec, modules/version-etc:
70764         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70765         * modules/xsetenv:
70766         Depend on gettext-h, not gettext.
70767
70768 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * gnulib-tool (func_import): Add support for 'public domain' license.
70771         * modules/alloca, modules/atexit, modules/memmove:
70772         Now public domain, not GPL.
70773         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70774         * modules/realloc, modules/strerror, modules/strtod:
70775         Now LGPL, not GPL.
70776
70777 2005-07-05  Bruno Haible  <bruno@clisp.org>
70778
70779         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70780         autoconf CVS. Needed for mingw.
70781
70782 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         Remove the dependency of the strftime module on the tzset module.
70785         * modules/strftime (Depends-on): Remove dependency on tzset.
70786
70787 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         Remove the dependency of the strftime module on the tzset module.
70790         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70791         gl_FUNC_TZSET_CLOBBER.
70792
70793 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         Remove the dependency of the strftime module on the tzset module.
70796         * lib/strftime.c (my_strftime)
70797         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70798         Copy the input structure, to work around some of the bug with
70799         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70800         Solaris releases, you should also use the tzset module, but we won't
70801         require it as a dependency any more since we don't want LGPLed code
70802         to depend on GPLed code.
70803
70804 2005-07-02  Jim Meyering  <jim@meyering.net>
70805
70806         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70807         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70808         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70809         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70810
70811 2005-07-02  Jim Meyering  <jim@meyering.net>
70812
70813         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70814
70815 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70818         declares only 'struct timespec;' (!).
70819
70820 2005-07-01  Jim Meyering  <jim@meyering.net>
70821
70822         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70823         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70824         * lib/save-cwd.c, tempname.c:
70825         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70826         and don't include <sys/file.h>).
70827
70828 2005-06-29  Jim Meyering  <jim@meyering.net>
70829
70830         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70831         type name.  Use the variable name instead.
70832         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70833         Likewise.
70834
70835 2005-06-28  Simon Josefsson  <jas@extundo.com>
70836
70837         * modules/check-version (Files): Add check-version.m4.
70838
70839 2005-06-28  Simon Josefsson  <jas@extundo.com>
70840
70841         * m4/check-version.m4: New file, suggested by Jim Meyering
70842         <jim@meyering.net>.
70843
70844 2005-06-28  Simon Josefsson  <jas@extundo.com>
70845
70846         * lib/check-version.h, lib/check-version.c: New files.
70847
70848 2005-06-28  Simon Josefsson  <jas@extundo.com>
70849
70850         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70851         collision with global variable.  Better indentation.  Don't
70852         increment buffer pointer beyond buffer end.  Based on comments
70853         from Paul Eggert <eggert@cs.ucla.edu>.
70854
70855         * lib/base64.h: Indent.
70856
70857 2005-06-28  Simon Josefsson  <jas@extundo.com>
70858
70859         * doc/gnulib.texi (Library version handling): New section.
70860
70861 2005-06-28  Jim Meyering  <jim@meyering.net>
70862
70863         * check-module (find_included_lib_files): Hard-code another
70864         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70865         but modules/fts-lgpl (correctly) does not list those files.
70866
70867         * modules/canonicalize (Files): Add lib/pathmax.h.
70868
70869 2005-06-25  Simon Josefsson  <jas@extundo.com>
70870
70871         * modules/check-version: New file.
70872
70873 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70876         initializer of struct addrinfo, as an indication that we don't
70877         care how many members the structure has.
70878
70879 2005-06-24  Derek Price  <derek@ximbiot.com>
70880         and Bruno Haible  <bruno@clisp.org>
70881
70882         Remove stat module & update lstat.
70883         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70884         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70885         * m4/stat.m4: Remove this file.
70886
70887 2005-06-24  Derek Price  <derek@ximbiot.com>
70888         and Bruno Haible  <bruno@clisp.org>
70889
70890         Remove stat module & update lstat.
70891         * lib/stat.c: Remove this file...
70892         (slash_aware_lstat): ...moving this content and its support...
70893         * lib/lstat.c (rpl_lstat): ...into here.
70894         * lib/lstat.h: New file.
70895
70896 2005-06-24  Derek Price  <derek@ximbiot.com>
70897         and Bruno Haible  <bruno@clisp.org>
70898
70899         Remove stat module & update lstat.
70900         * config/srclist.txt (libc sources): Remove stat.
70901
70902 2005-06-24  Derek Price  <derek@ximbiot.com>
70903         and Bruno Haible  <bruno@clisp.org>
70904
70905         Remove stat module & update lstat.
70906         * MODULES.html.sh (stat): Remove.
70907         * MODULES.html: Regenerated.
70908         * modules/lstat (Description): Correct function name.
70909         (Files): Add "lstat.h".
70910         (Depends-on): Remove stat, add xalloc, stat-macros.
70911         * modules/stat: Remove this file.
70912         (Include): Add "lstat.h", remove <sys/stat.h>.
70913
70914 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70917         (ranged_convert): Don't save conversion in a temporary struct.
70918         This causes a warning with GCC 4.0.0, and anyway in the typical
70919         case it's not worth the extra 100 bytes or so of code.
70920         (ranged_convert, __mktime_internal): When calling a function via a
70921         pointer P, use P () rather than (*P) (), as we now assume C89 or
70922         better.
70923
70924 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70927         "who -r" failed to give output.  Problem reported by Tim Waugh.
70928
70929         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70930         (xcalloc): Use it to avoid needless tests.
70931         Problem reported by Jim Meyering.
70932
70933 2005-06-20  Derek Price  <derek@ximbiot.com>
70934
70935         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70936         unnecessary for Autoconfs > 2.59c.
70937
70938 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70939
70940         * lib/argp.h (__option_is_short): Check upper limit of
70941         __key. Isprint() requires its argument to have the value
70942         of an unsigned char or EOF.
70943
70944 2005-06-16  Jim Meyering  <jim@meyering.net>
70945
70946         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70947         when either N or S is zero.
70948
70949 2005-06-16  Derek Price  <derek@ximbiot.com>
70950
70951         * m4/bison.m4: Declare YACC & YFLAGS precious.
70952
70953 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70956         multibyte string or pattern, fall back on unibyte matching.
70957         Problem reported by James Youngman.
70958
70959 2005-06-08  Bruno Haible  <bruno@clisp.org>
70960
70961         * modules/csharpcomp: New file.
70962         * MODULES.html.sh (C#): Add csharpcomp.
70963
70964 2005-06-08  Bruno Haible  <bruno@clisp.org>
70965
70966         * m4/csharpcomp.m4: New file, from GNU gettext.
70967
70968 2005-06-08  Bruno Haible  <bruno@clisp.org>
70969
70970         * lib/csharpcomp.h: New file, from GNU gettext.
70971         * lib/csharpcomp.c: New file, from GNU gettext.
70972         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70973
70974 2005-06-08  Bruno Haible  <bruno@clisp.org>
70975
70976         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70977         warning on mingw.
70978
70979 2005-06-07  Derek Price  <derek@ximbiot.com>
70980
70981         Sync from CVS.
70982         * lib/glob_.h: Indent nested #ifdef.
70983
70984 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         Sync from coreutils.
70987         Use "file name" when talking about file names, instead of "filename"
70988         or "path", as per the GNU coding standards.
70989         * lib/mkdir-p.c: Renamed from makepath.c.
70990         (make_dir_parents): Renamed from make_path.  All callers changed.
70991         * lib/mkdir-p.h: Likewise.  All includers changed.
70992         * lib/filenamecat.c: Renamed from path-concat.c.
70993         (file_name_concat): Renamed from path_concat.  All callers changed.
70994         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70995         * lib/filenamecat.h: Likewise.  All includers changed.
70996         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70997         in comments or local variable names.
70998         * lib/basename.c: Likewise.
70999         * lib/canonicalize.c, canonicalize.h: Likewise.
71000         * lib/dirname.c, dirname.h: Likewise.
71001         * lib/euidaccess.c: Likewise.
71002         * lib/exclude.c: Likewise
71003         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71004         * lib/fsusage.c, fsuage.h: Likewise.
71005         * lib/fts.c, fts_.h: Likewise.
71006         * lib/getcwd.c: Likewise.
71007         * lib/getloadavg.c: Likewise.
71008         * lib/mkstemp.c: Likewise.
71009         * lib/mountlist.c, mountlist.h: Likewise.
71010         * lib/openat.c, openat.h: Likewise.
71011         * lib/readlink-stub.c: Likewise.
71012         * lib/readutmp.c, readutmp.h: Likewise.
71013         * lib/rename.c: Likewise.
71014         * lib/rmdir.c: Likewise.
71015         * lib/same.c: Likewise.
71016         * lib/savedir.c: Likewise.
71017         * lib/stripslash.c: Likewise.
71018         * lib/tempname.c: Likewise.
71019         * lib/xreadlink.c: Likewise.
71020         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71021         All uses changed.
71022         * lib/exclude.h: Likewise.
71023
71024         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71025         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71026         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71027         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71028         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71029         files have been getting away with it for years (MORE/BSD 4.3
71030         is extinct now).
71031         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71032         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71033
71034         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71035         Define to 256, not 255, as per modern POSIX.
71036
71037 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         Sync from coreutils.
71040         Use "file name" when talking about file names, instead of "filename"
71041         or "path", as per the GNU coding standards.
71042         * MODULES.html.sh: mkdir-p renamed from makepath.
71043         filenamecat renamed from path-concat.
71044         * modules/filenamecat: Renamed from modules/path-concat.
71045         (Files): filenamecat.h and filenamecat.c renamed from
71046         path-concat.h and path-concat.c.
71047         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71048         (Include): filenamecat.h, not path-concat.h.
71049         * modules/mkdir-p: Renamed from modules/makepath.
71050         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71051         makepath.c.
71052         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71053         (Include): mkdir-p.h, not makepath.h.
71054
71055 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         Sync from coreutils.
71058         * m4/mkdir-p.m4: Renamed from makepath.m4.
71059         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71060         Rename files from makepath.c to mkdir-p.c, and from
71061         makepath.h to mkdir-p.h.
71062         * m4/filenamecat.m4: Renamed from path-concat.m4.
71063         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71064         Rename files from path-concat.c to filenamecat.c,
71065         and from path-concat.h to filenamecat.h.
71066         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71067         "file name" in local variables or comments.
71068         * m4/rename.m4: Likewise.
71069
71070 2005-06-01  Bruno Haible  <bruno@clisp.org>
71071
71072         * modules/csharpexec: New file.
71073         * MODULES.html.sh (C#): New section.
71074
71075 2005-06-01  Bruno Haible  <bruno@clisp.org>
71076
71077         * m4/csharp.m4: New file, from GNU gettext.
71078         * m4/csharpexec.m4: New file, from GNU gettext.
71079
71080 2005-06-01  Bruno Haible  <bruno@clisp.org>
71081
71082         * lib/csharpexec.h: New file, from GNU gettext.
71083         * lib/csharpexec.c: New file, from GNU gettext.
71084         * lib/csharpexec.sh.in: New file, from GNU gettext.
71085
71086 2005-05-31  Derek Price  <derek@ximbiot.com>
71087             Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         Sync from cvs.
71090         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71091
71092 2005-05-31  Derek Price  <derek@ximbiot.com>
71093             Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         Sync from cvs.
71096         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71097
71098 2005-05-29  Derek Price  <derek@ximbiot.com>
71099
71100         * config/srclist.txt (glob_.h, glob.c): Add these files.
71101
71102 2005-05-29  Derek Price  <derek@ximbiot.com>
71103
71104         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71105         * modules/glob: New file.
71106         * modules/getlogin_r: Add link to POSIX spec in description.
71107
71108 2005-05-29  Derek Price  <derek@ximbiot.com>
71109             Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * m4/glob.m4: New file.
71112
71113 2005-05-29  Derek Price  <derek@ximbiot.com>
71114             Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * lib/glob_.h, lib/glob.c: New files.
71117
71118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71121         * modules/fts-lgpl (Depends-on): Remove gettext.
71122
71123 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71124
71125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71126         and don't require gt_INTTYPES_PRI.
71127
71128 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71131
71132         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71133         the configuration hassle isn't worth it.
71134         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71135         (LONGEST_MODIFIER, PRIuMAX): Remove.
71136
71137 2005-05-27  Bruno Haible  <bruno@clisp.org>
71138
71139         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71140
71141 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71142
71143         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71144         _POSIX_PTHREAD_SEMANTICS for Solaris.
71145
71146 2005-05-25  Derek Price  <derek@ximbiot.com>
71147
71148         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71149
71150 2005-05-25  Derek Price  <derek@ximbiot.com>
71151             Paul Eggert  <eggert@cs.ucla.edu>
71152
71153         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71154         * lib/getlogin_r.c, getlogin_r.h: New files.
71155
71156 2005-05-25  Bruno Haible  <bruno@clisp.org>
71157             Derek Price  <derek@ximbiot.com>
71158
71159         * lib/getlogin_r.h: Simplify API documentation.
71160
71161 2005-05-23  Derek Price  <derek@ximbiot.com>
71162
71163         * modules/minmax (Files): Add m4/minmax.m4.
71164         (configure.ac): Add gl_MINMAX.
71165
71166 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71169         so that unistd-safer.h (GPL'ed code) need not be included.
71170
71171 2005-05-22  Bruno Haible  <bruno@clisp.org>
71172
71173         * m4/minmax.m4: New file.
71174         Based on a patch by Derek Price <derek@ximbiot.com>.
71175
71176 2005-05-22  Bruno Haible  <bruno@clisp.org>
71177
71178         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71179         (INT64_MIN): Fix definition.
71180         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71181
71182         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71183         NEED_SIGNED_INT_TYPES.
71184
71185         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71186         HAVE_SYSTEM_INTTYPES.
71187
71188 2005-05-22  Bruno Haible  <bruno@clisp.org>
71189
71190         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71191         Also include <sys/param.h> if it defines MIN, MAX.
71192         Based on a patch by Derek Price <derek@ximbiot.com>.
71193
71194 2005-05-21  Jim Meyering  <jim@meyering.net>
71195
71196         * modules/fts (Files): Add m4/inttypes-pri.m4.
71197         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71198
71199 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         New fts module.
71202         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71203         (setup_dir, free_dir): New functions.
71204         (enter_dir, leave_dir): Define trivial
71205         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71206         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71207         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71208         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71209         Move to fts-cycle.c.
71210         (fts_open): Use setup_dir.
71211         (fts_close): Use free_dir.
71212         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71213         This adds a label and some gotos, but the alternatives were messier.
71214         Check for memory allocation failure when entering a dir.
71215         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71216         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71217         (FTS): New member fts_cycle, that is a union that contains the
71218         old active_dir_ht and cycle_state.  All uses changed to mention
71219         fts_cycle.ht and fts_cycle.state.
71220         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71221         fts.c, with the following changes:
71222         (setup_dir, free_dir): New functions.
71223         (enter_dir): Now returns bool.  Return true if successful, false
71224         if memory exhausted.  All callers changed.
71225         Do not bother partly cleaning up on
71226         memory allocation failure; that is free_dir's job.
71227         However, free ad if hash_insert fails, to avoid memory leak.
71228         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71229         fts->fts_options to see which union member to use.
71230
71231 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71234         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71235
71236 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71239
71240 2005-05-20  Jim Meyering  <jim@meyering.net>
71241
71242         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71243         Now a macro, to pacify GCC.
71244
71245 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71246
71247         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71248         of -1.
71249
71250 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71251
71252         * lib/chown.c (rpl_chown): Return -1 on failure.
71253
71254 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71255
71256         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71257         Don't check for stddef.h.
71258         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71259         don't use its results.
71260         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71261         since we include them unconditionally.  Don't require
71262         AM_STDBOOL_H, since stdbool is a prerequisite.
71263         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71264         since we assume C89 or better.
71265         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71266         as we don't use their results.
71267         Don't check for fchdir, memmove, memset, strrchr, as we use
71268         them unconditionally.
71269         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71270         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71271
71272 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71275         Include <stddef.h> unconditionally, since we assume C89 now.
71276         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71277         * lib/fts.c: Include fts_.h first, to check interface.
71278         Do not include intprops.h; no longer needed.
71279         Include cycle-check.h and hash.h, since fts_.h no longer does.
71280         Remove unnecessary casts of closedir to void.
71281         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71282         decide whether to decrement nlinks.
71283         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71284         (FTS): Use struct hash_table * instead of Hash_table, so that
71285         we no longer need to include hash.h here.
71286
71287 2005-05-18  Jim Meyering  <jim@meyering.net>
71288
71289         * modules/dirfd (License): Change to LGPL.  Most of the code
71290         is already in the public domain.
71291
71292 2005-05-18  Jim Meyering  <jim@meyering.net>
71293
71294         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71295         Reported by Yoann Vandoorselaere.
71296
71297 2005-05-17  Jim Meyering  <jim@meyering.net>
71298
71299         * m4/fts.m4: New file, from coreutils.
71300
71301 2005-05-17  Jim Meyering  <jim@meyering.net>
71302
71303         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71304
71305 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         Sync from coreutils.
71308         * m4/unlinkdir.m4: New file.
71309
71310 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         Sync from coreutils.
71313         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71314         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71315         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71316         White space changes only.
71317         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71318         special.
71319         * lib/yesno.c: Include getline.h, not ctype.h.
71320         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71321         Use getline to remove arbitrary restriction on response length.
71322
71323 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * config/srclist-update: Spell out "Street" in FSF postal
71326         mail address; this is the style the FSF seems to prefer.
71327
71328         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71329         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71330         this updates FSF postal mail address.
71331
71332         Sync from coreutils.
71333         * modules/unlinkdir: New file.
71334         * modules/yesno (Depends-on): Add getline.
71335         * MODULES.html.sh (File system functions): Add unlinkdir.
71336
71337 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71340         lib/strsep.h:
71341         Change the initial comment to refer to GPL, not LGPL.
71342         gnulib-tool will change it to LGPL as needed.
71343
71344         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71345         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71346         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71347         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71348         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71349         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71350         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71351         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71352         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71353         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71354         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71355         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71356         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71357         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71358         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71359         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71360         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71361         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71362         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71363         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71364         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71365         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71366         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71367         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71368         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71369         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71370         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71371         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71372         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71373         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71374         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71375         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71376         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71377         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71378         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71379         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71380         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71381         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71382         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71383         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71384         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71385         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71386         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71387         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71388         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71389         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71390         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71391         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71392         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71393         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71394         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71395         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71396         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71397         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71398         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71399         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71400         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71401         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71402         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71403         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71404         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71405         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71406         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71407         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71408         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71409         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71410         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71411         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71412         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71413         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71414         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71415         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71416         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71417         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71418         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71419         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71420         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71421         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71422         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71423         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71424         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71425         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71426         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71427         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71428         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71429         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71430         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71431         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71432         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71433         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71434         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71435         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71436         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71437         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71438         lib/yesno.c, lib/yesno.h:
71439         Update FSF postal mail address.
71440
71441 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71444         tests/test-memmem.c, tests/test-stpncpy.c:
71445         Update FSF postal mail address.
71446
71447 2005-05-13  Bruno Haible  <bruno@clisp.org>
71448
71449         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71450         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71451         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71452         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71453         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71454         Add support for 64-bit integers in the MSVC compiler.
71455
71456 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71457
71458         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71459
71460 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71461
71462         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71463
71464 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * doc/getdate.texi (General date syntax): Don't say that date
71467         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71468         Problem reported by Nic Ferrier.
71469
71470 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71471
71472         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71473         specified in ai_socktype. Fix invalid ai_protocol
71474         check. ai_protocol is usually set to 0 or depending on
71475         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71476         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71477         ai_socktype / ai_protocol in the returned addrinfo structure.
71478
71479 2005-05-10  Simon Josefsson  <jas@extundo.com>
71480
71481         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71482         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71483
71484 2005-05-10  Karl Berry  <karl@gnu.org>
71485
71486         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71487         (from http://www.gnu.org/licenses).
71488         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71489         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71490         fdl.texi suffices.
71491
71492 2005-05-10  Karl Berry  <karl@gnu.org>
71493
71494         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71495         (COPYING.DOC): remove.
71496
71497         * config/srclist-update: new FSF address.
71498
71499 2005-05-10  Derek Price  <derek@ximbiot.com>
71500
71501         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71502         possible.
71503
71504 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71505             Bruno Haible  <bruno@clisp.org>
71506
71507         * modules/inet_ntop: New file.
71508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71509         inet_ntop.
71510
71511 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71512             Bruno Haible  <bruno@clisp.org>
71513
71514         * m4/inet_ntop.m4: New file.
71515
71516 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71517             Bruno Haible  <bruno@clisp.org>
71518
71519         * lib/inet_ntop.h: New file.
71520         * lib/inet_ntop.c: New file, from glibc with modifications.
71521
71522 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71523
71524         * modules/time_r (License): Change to LGPL.
71525         * modules/extensions (License): Change to LGPL.  Actually,
71526         the license is more permissive than that, but currently gnulib-tool
71527         doesn't know how to handle more-permissive licenses.
71528
71529         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71530         Problem reported by Dave Love.
71531
71532 2005-05-08  Jim Meyering  <jim@meyering.net>
71533
71534         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71535         blank.
71536
71537 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71538
71539         * modules/argmatch (Depends-on): Add stdbool.
71540         * modules/backupfile (Depends-on): Likewise.
71541         * modules/chdir-long (Depends-on): Likewise.
71542         * modules/closeout (Depends-on): Likewise.
71543         * modules/cycle-check (Depends-on): Likewise.
71544         * modules/dirname (Depends-on): Likewise.
71545         * modules/fnmatch (Depends-on): Likewise.
71546         * modules/fsusage (Depends-on): Likewise.
71547         * modules/fwriteerror (Depends-on): Likewise.
71548         * modules/getcwd (Depends-on): Likewise.
71549         * modules/getloadavg (Depends-on): Likewise.
71550         * modules/hard-locale (Depends-on): Likewise.
71551         * modules/makepath (Depends-on): Likewise.
71552         * modules/mountlist (Depends-on): Likewise.
71553         * modules/nanosleep (Depends-on): Likewise.
71554         * modules/posixtm (Depends-on): Likewise.
71555         * modules/quotearg (Depends-on): Likewise.
71556         * modules/readtokens (Depends-on): Likewise.
71557         * modules/readtokens0 (Depends-on): Likewise.
71558         * modules/readutmp (Depends-on): Likewise.
71559         * modules/save-cwd (Depends-on): Likewise.
71560         * modules/strftime (Depends-on): Likewise.
71561         * modules/userspec (Depends-on): Likewise.
71562         * modules/utimecmp (Depends-on): Likewise.
71563         * modules/xgetcwd (Depends-on): Likewise.
71564         * modules/xnanosleep (Depends-on): Likewise.
71565         * modules/xstrtod (Depends-on): Likewise.
71566         * modules/yesno (Depends-on): Likewise.
71567
71568 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71571         needless checks.
71572
71573 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71574
71575         Merge from coreutils.  Among other things,
71576         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71577         * lib/fd-safer.c: New file.
71578         * lib/fcntl-safer.h, open-safer.c: Remove.
71579         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71580         * lib/dup-safer.c: Include unistd-safer.h first.
71581         Don't include errno.h.
71582         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71583         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71584         * lib/file-type.c: Rely on file-type.h change.
71585         * lib/getloadavg.c: Include unistd-safer.h.
71586         (getloadavg): Use safer open.
71587         * lib/getusershell.c: Include "stdio-safer.h".
71588         (getusershell): Use safer fopen.
71589         * lib/long-options.c (long_options): Use NULL rather than 0.
71590         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71591         'free'.
71592         * lib/modechange.c: Likewise.
71593         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71594         (MODE_DONE): New constant.
71595         (struct mode_change): Remove 'next' member.
71596         (make_node_op_equals): New function; like the old one of the
71597         same name, except it allocates an array.
71598         (mode_compile, mode_create_from_ref): Use it.
71599         (mode_compile): Allocate result as an array, not a linked list.
71600         Parse octal string ourself, so that we catch mistakes like "+0".
71601         (mode_adjust): Arg is an array, not a linked list.
71602         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71603         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71604         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71605         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71606         Remove.  This is now stat-macros.h's job.
71607         (talloc): Remove.  All callers replaced by xalloc, so that
71608         our invokers don't have to worry about reporting memory failures.
71609         (make_node_op_equals): Remove.
71610         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71611         New constants.
71612         (struct mode_change): Moved here from modechange.h.
71613         (mode_append_entry): Remove.
71614         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71615         apps to have incorrect behavior.  Use simpler algorithm for head
71616         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71617         Detect more invalid usages rather than having somewhat-random behavior.
71618         Don't insert an "a=" action, as that leads to incorrect behavior.
71619         (mode_compile, mode_create_from_ref): Return NULL on error instead
71620         of an enum, since now there's only one way to have an error.  All
71621         callers changed.
71622         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71623         at the correct time.  Simplify calculation of "+u" and its ilk.
71624         Don't mishandle "+X".
71625         (mode_free): Remove "register" and localize decls.
71626         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71627         (struct mode_change): Move to modechange.c; callers don't
71628         need to see this stuff.
71629         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71630         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71631         (mode_change, mode_adjust): Reflect the new signatures noted above.
71632         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71633         that might redefine system include files.
71634         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71635         (my_usleep): Use NULL rather than (void *) 0.
71636         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71637         Use siginterrupt to specify that system calls should be interrupted.
71638         (rpl_nanosleep): Move initialization of suspended closer to call of
71639         my_usleep.
71640         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71641         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71642         (desirable_utmp_entry): New function.
71643         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71644         using x2nrealloc, to simplify logic.
71645         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71646         size calculation.  Do not assume utmp file is a regular file.
71647         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71648         (READ_UTMP_CHECK_PIDS): New constant.
71649         * lib/save-cwd.c: Include unistd-safer.h.
71650         (save_cwd): Use fd_safer.
71651         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71652         [!_LIBC] Include "stat-macros.h" instead.
71653         * lib/unistd-safer.h (fd_safer): New decl.
71654
71655 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * modules/getloadavg (Depends-on): Add unistd-safer.
71658         * modules/getusershell (Depends-on): Add stdio-safer.
71659         * modules/lstat (Depends-on): Remove xalloc.
71660         * modules/mkstemp (Depends-on): Add stat-macros.
71661         * modules/modechange (Depends-on): Remove xstrtol.
71662         Add stat-macros, xalloc.
71663         * modules/save-cwd (Depends-on): Add unistd-safer.
71664         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71665         * modules/unistd-safer (Files): Add lib/fd-safer.c
71666         (Makefile.am): Remove lib_SOURCES.
71667
71668         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71669         Remove fcntl-safer; unistd-safer supersedes it.
71670
71671 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71674         AC_HEADER_STAT.
71675         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71676         (gl_PREREQ_CHOWN): Remove.
71677         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71678         it.  Don't require AC_HEADER_STAT.
71679         (gl_PREREQ_LSTAT): Remove.
71680         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71681         Don't require AC_HEADER_STAT.
71682         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71683         (gl_PREREQ_RMDIR): Remove.
71684         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71685         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71686         the stat-macros module a prerequisite.
71687         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71688         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71689         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71690         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71691         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71692         variable names.
71693         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71694         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71695         variable prefixes.
71696         * m4/fcntl-safer.m4: Remove.
71697         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71698         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71699         Invoke gl_PREREQ_FD_SAFER.
71700         (gl_PREREQ_FD_SAFER): New macro.
71701         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71702         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71703         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71704         Remove duplicate call to AC_LIBOBJ(readutmp).
71705         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71706
71707         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71708         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71709
71710 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71711
71712         * MODULES.html.sh (Misc): Add byteswap.
71713
71714 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71715
71716         * modules/getcwd (Depends-on): Add extensions.
71717         * modules/openat (Depends-on): Likewise.
71718
71719 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71720
71721         * modules/byteswap: New file.
71722
71723 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71724
71725         * m4/byteswap.m4: New file.
71726
71727 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71728
71729         * lib/byteswap_.h: New file.
71730
71731 2005-04-25  Karl Berry  <karl@gnu.org>
71732
71733         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71734
71735 2005-04-25  Albert Chin  <china@thewrittenword.com>
71736
71737         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71738         Toolkit C bug.
71739
71740 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71741
71742         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71743         (func_ln_if_changed): Remove forcibly for no error message
71744         in case file does not exist.
71745
71746 2005-04-19  Simon Josefsson  <jas@extundo.com>
71747
71748         * gnulib-tool (Options): Make --symlink mean --symbolic.
71749
71750 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71751
71752         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71753
71754 2005-04-16  Simon Josefsson  <jas@extundo.com>
71755
71756         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71757
71758 2005-04-15  Simon Josefsson  <jas@extundo.com>
71759
71760         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71761
71762 2005-04-15  Simon Josefsson  <jas@extundo.com>
71763
71764         * gnulib-tool: Rename --symlink to --symbolic.
71765
71766 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71767
71768         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71769         symbolic links to files instead of copying/moving.  Add --aux-dir,
71770         specifying directory relative --dir where auxiliary build tools
71771         are placed.
71772
71773 2005-04-14  Bruno Haible  <bruno@clisp.org>
71774
71775         * modules/allocsa (License): Change to LGPL.
71776         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71777
71778 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71779
71780         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71781         that "UTC +1 second" continues to work.  Problem reported
71782         by Dmitry V. Levin.
71783         (relunit_snumber): New rule.
71784         (relunit): Use it.
71785
71786 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71787
71788         * lib/getdate.y (universal_time_zone_table): New constant.
71789         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71790         universal_time_zone_table.
71791         (lookup_zone): Prefer universal_time_zone_table to
71792         local_time_zone_table, so that "GMT" time stamps are allowed in
71793         London during the summer.  Problem reported by Ian Abbott.
71794
71795 2005-04-12  Jim Meyering  <jim@meyering.net>
71796
71797         * lib/human.c (humblock): Set *options even when returning due to
71798         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71799         warning from gcc-4.
71800
71801 2005-04-09  Jim Meyering  <jim@meyering.net>
71802
71803         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71804         -Wuninitialized: initialize tm0.tm_year.
71805
71806 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71807
71808         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71809         count, since there's no maximum.  All uses changed.
71810         Add member dsts_seen.
71811         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71812         not being INT_MAX.
71813         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71814         Use pc_rels_seen to decide whther a date is absolute.
71815
71816         * lib/getdate.y (number): Don't overwrite year.
71817         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71818         check.
71819
71820 2005-04-02  Simon Josefsson  <jas@extundo.com>
71821
71822         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71823         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71824
71825 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71826
71827         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71828         where no absolute path name can be longer than PATH_MAX.
71829
71830 2005-03-27  Jim Meyering  <jim@meyering.net>
71831
71832         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71833
71834 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71835
71836         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71837         "one's complement" -> "ones' complement" in comment, as per Knuth.
71838         "value of type" -> "type or expression" in comment.
71839         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71840
71841 2005-03-26  Jim Meyering  <jim@meyering.net>
71842
71843         Comment nits.
71844         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71845         Correct typos: s/or/of/.
71846
71847 2005-03-26  Jim Meyering  <jim@meyering.net>
71848
71849         * modules/check-include-files: Move to ../ and rename to...
71850         * check-module: ...this.
71851
71852 2005-03-25  Jim Meyering  <jim@meyering.net>
71853
71854         * modules/xvasprintf (Files): Add xalloc.h.
71855
71856 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71857
71858         * modules/gettext (Files): config/config.rpath ->
71859         build-aux/config.rpath
71860         * modules/iconv (Files): Likewise.
71861         Problem reported by Oskar Liljeblad.
71862
71863 2005-03-23  Jim Meyering  <jim@meyering.net>
71864
71865         * modules/check-include-files: New script to check for
71866         missing dependencies, multiple includes, etc.
71867
71868         * modules/c-strtold (Depends-on): Add xalloc.
71869         * modules/c-strtod (Depends-on): Add xalloc.
71870         * modules/hash (Depends-on): Add xalloc.
71871         (Files): Remove lib/xalloc.h.
71872
71873         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71874         * modules/userspec (Files): Add lib/inttostr.h.
71875
71876 2005-03-23  Jim Meyering  <jim@meyering.net>
71877
71878         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71879
71880 2005-03-22  Jim Meyering  <jim@meyering.net>
71881
71882         * modules/stat-macros: New module.
71883         * modules/canonicalize, modules/euidaccess, modules/file-type,
71884         * modules/filemode, modules/lchown, modules/makepath,
71885         * modules/rmdir, modules/stat: Depend on new stat-macros module
71886         rather than listing lib/stat-macros.h manually.
71887         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71888
71889 2005-03-22  Jim Meyering  <jim@meyering.net>
71890
71891         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71892
71893 2005-03-22  Bruno Haible  <bruno@clisp.org>
71894
71895         * config/srclist.txt: Replace target directory 'config' with
71896         'build-aux'.
71897         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71898         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71899         ../build-aux/.
71900
71901 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * modules/chdir-long (Depends-on): Add mempcpy.
71904
71905         * modules/acl, modules/backupfile, modules/c-strtod,
71906         modules/c-strtold, modules/canon-host, modules/canonicalize,
71907         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71908         modules/exclude, modules/exitfail, modules/file-type,
71909         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71910         modules/getdate, modules/getline, modules/getpagesize,
71911         modules/getpass, modules/getugroups, modules/group-member,
71912         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71913         modules/inttostr, modules/long-options, modules/makepath,
71914         modules/md5, modules/memcasecmp, modules/memcoll,
71915         modules/modechange, modules/mountlist, modules/path-concat,
71916         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71917         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71918         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71919         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71920         modules/strftime, modules/strndup, modules/strverscmp,
71921         modules/timespec, modules/unlocked-io, modules/userspec,
71922         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71923         modules/yesno:
71924         Remove lib_SOURCES line from Makefile.am section, as this is now
71925         done automatically by the corresponding Autoconf macro.
71926
71927 2005-03-21  Jim Meyering  <jim@meyering.net>
71928
71929         Changes imported from coreutils.
71930
71931         * lib/cycle-check.c: Don't include xalloc.h.
71932
71933         * lib/path-concat.c: Don't include assert.h.
71934         (path_concat): Remove assertion that would have triggered
71935         for ABASE starting with more than one slash.
71936         Reported by Andreas Schwab.
71937
71938         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71939         properly when ABASE is an absolute file name.
71940         Correct the description of this function.
71941         Include <assert.h>.
71942         Add an assertion and a test driver.
71943         This fixes a bug introduced on 2004-07-02.
71944         Andreas Schwab reported the resulting failure of cp --parents:
71945         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71946
71947 2005-03-21  Jim Meyering  <jim@meyering.net>
71948
71949         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71950         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71951
71952 2005-03-21  Jim Meyering  <jim@meyering.net>
71953         and  Paul Eggert  <eggert@cs.ucla.edu>
71954
71955         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71956         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71957         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71958         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71959         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71960         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71961         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71962         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71963         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71964         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71965         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71966         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71967         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71968         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71969         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71970         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71971         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71972         for these modules.
71973
71974 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71975
71976         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71977         (which shouldn't happen), generate nothing instead of returning 0
71978         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71979
71980 2005-03-16  Bruno Haible  <bruno@clisp.org>
71981
71982         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71983         HAVE_LONGLONG_64BIT.
71984
71985 2005-03-16  Bruno Haible  <bruno@clisp.org>
71986
71987         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71988         HAVE_LONGLONG_64BIT.
71989
71990 2005-03-16  Bruno Haible  <bruno@clisp.org>
71991
71992         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71993         HAVE_LONGLONG_64BIT.
71994
71995 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71998         reliably distinguish strftime failure from empty output on POSIX
71999         hosts.
72000
72001 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72002
72003         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72004         (iconv_string): Don't guess a size-zero buffer, as that might cause
72005         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72006         result would be 'too large', where 'too large' is (heuristically)
72007         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72008         overflow concerns.  This will prevent some unwanted malloc failures
72009         when the inputs are very large.
72010
72011 2005-03-15  Karl Berry  <karl@gnu.org>
72012
72013         * config/srclist.txt (config.rpath): from gettext.
72014         * config/config.rpath: update.
72015
72016 2005-03-15  Bruno Haible  <bruno@clisp.org>
72017
72018         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72019         to 'negate'.
72020
72021         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72022         variable.
72023
72024         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72025         results.
72026
72027 2005-03-14  Simon Josefsson  <jas@extundo.com>
72028
72029         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72030         <fx@gnu.org>.
72031
72032 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72033
72034         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72035         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72036         intprops.h.
72037         * lib/strtol.c: Likewise.
72038
72039 2005-03-14  Jim Meyering  <jim@meyering.net>
72040
72041         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72042         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72043         to be nonzero so that we (and caller) can detect the difference
72044         between a valid zero-length expansion and an error return, even
72045         when the underlying strftime fails before writing anything into
72046         that location.
72047
72048 2005-03-14  Bruno Haible  <bruno@clisp.org>
72049
72050         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72051         Update from GNU gettext 0.14.3.
72052
72053 2005-03-10  Jim Meyering  <jim@meyering.net>
72054
72055         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72056
72057 2005-03-10  Jim Meyering  <jim@meyering.net>
72058
72059         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72060         so that this module works on systems without fchdir.
72061
72062 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72063
72064         Factor int-properties macros into a single file, except for
72065         glibc-related files.
72066         * lib/intprops.h: New file.
72067         * lib/getloadavg.c: Include it instead of limits.h.
72068         (INT_STRLEN_BOUND): Remove.
72069         * lib/human.c: Include intprops.h.
72070         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72071         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72072         302/1000.
72073         * lib/inttostr.h: Include intprops.h instead of limits.h.
72074         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72075         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72076         for consistency with intprops.h.
72077         (time_t_is_integer, twos_complement_arithmetic): Use them.
72078         * lib/sig2str.h: Include <signal.h>, intprops.h.
72079         (INT_STRLEN_BOUND): Remove.
72080         * lib/strftime.c (TYPE_SIGNED): Remove.
72081         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72082         * lib/strtol.c: Adjust comments to match intprops.h.
72083         * lib/userspec.c: Include intprops.h.
72084         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72085         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72086         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72087         instead of rolling our own expressions.
72088         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72089
72090         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72091         instead of int.
72092         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72093         the right thing even if adding 1900 would overflow.  Similarly
72094         for tm_mon + 1 and tm_yday + 1.
72095         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72096         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72097         (DO_SIGNED_NUMBER): New macro.
72098         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72099
72100 2005-03-07  Bruno Haible  <bruno@clisp.org>
72101
72102         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72103
72104 2005-03-07  Bruno Haible  <bruno@clisp.org>
72105
72106         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72107
72108 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72109
72110         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72111         (func_import): Only replace files via --import when they have actually
72112         changed.
72113
72114 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72115
72116         * m4/mmap-anon.m4: New file.
72117         * m4/pagealign_alloc.m4: New file.
72118
72119 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72120             Bruno Haible  <bruno@clisp.org>
72121
72122         * modules/pagealign_alloc: New file.
72123         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72124
72125 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72126             Bruno Haible  <bruno@clisp.org>
72127
72128         * lib/pagealign_alloc.h: New file.
72129         * lib/pagealign_alloc.c: New file.
72130
72131 2005-03-03  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72134         Use an all-permissive copyright notice, recommended by RMS.
72135
72136 2005-03-02  Bruno Haible  <bruno@clisp.org>
72137
72138         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72139         of AIX, the replacement has to be done only after <string.h> is
72140         included, therefore not in config.h. stpncpy.h does the replacement,
72141         and stpncpy.c uses it.
72142
72143 2005-03-02  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72146         stpncpy.c uses it.
72147
72148 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72151         The workaround isn't strictly needed for POSIX conformance, and
72152         it's too much of a pain to configure and maintain.  We'll ask
72153         people to fix their kernels instead.
72154         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72155         (NANOSLEEP_BUG_WORKAROUND): Remove.
72156         (xnanosleep): Remove the workaround.
72157
72158 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72161         Reported by Derek Price.
72162         (Include): Add "timespec.h".
72163
72164         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72165
72166 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72169         to detect nanosleep bug.
72170
72171 2005-03-01  Bruno Haible  <bruno@clisp.org>
72172
72173         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72174
72175 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72176
72177         * modules/gethrxtime: New file.
72178         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72179         (Depends-on): Add gethrxtime.
72180         (configure.ac): Add gl_XNANOSLEEP.
72181         (Makefile.am): Remove lib_SOURCES line.
72182
72183 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72184
72185         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72186         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72187
72188 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72191         * lib/timespec.h (gettime): Return void, since it always
72192         succeeds now.  All uses changed.
72193         * lib/gettime.c (gettime): Likewise.
72194         [HAVE_NANOTIME]: Prefer nanotime.
72195         Assume gettimeofday succeeds, as POSIX requires.
72196         Assime time () succeeds, since other code already does.
72197         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72198         (timespec_subtract): Remove.
72199         (NANOSLEEP_BUG_WORKAROUND): New constant.
72200         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72201         things considerably.  Use it only on GNU/Linux hosts, since the
72202         workaround shouldn't be needed elsewhere.
72203
72204 2005-02-24  Bruno Haible  <bruno@clisp.org>
72205
72206         * modules/gettext (Files): Add m4/glibc2.m4.
72207
72208 2005-02-24  Bruno Haible  <bruno@clisp.org>
72209
72210         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72211         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72212         * m4/progtest.m4:
72213         Update from GNU gettext 0.14.2.
72214         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72215
72216 2005-02-24  Bruno Haible  <bruno@clisp.org>
72217
72218         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72219         * lib/config.charset: Update from GNU gettext 0.14.2.
72220
72221 2005-02-24  Bruno Haible  <bruno@clisp.org>
72222
72223         * lib/gettext.h: Update from GNU gettext 0.14.2.
72224
72225 2005-02-23  Simon Josefsson  <jas@extundo.com>
72226
72227         * m4/iconvme.m4: New file.
72228
72229 2005-02-23  Jim Meyering  <jim@meyering.net>
72230
72231         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72232         change.
72233         Thanks to Bruno Haible for catching it.
72234
72235 2005-02-22  Simon Josefsson  <jas@extundo.com>
72236
72237         * modules/iconvme: New file.
72238
72239         * MODULES.html.sh: Add iconvme.
72240
72241 2005-02-22  Simon Josefsson  <jas@extundo.com>
72242
72243         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72244
72245 2005-02-22  Simon Josefsson  <jas@extundo.com>
72246
72247         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72248
72249 2005-02-22  Jim Meyering  <jim@meyering.net>
72250
72251         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72252         s/ifndef/ifdef/.
72253
72254 2005-02-20  Neil Conway  <neilc@samurai.com>
72255
72256         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72257         returned by OSX/Darwin if the specified buffer is not large
72258         enough for the hostname.
72259
72260 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72261
72262         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72263         pass it to _help, otherwise the latter coredumps trying to
72264         dereference state.root_argp.
72265
72266 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         * modules/chdir-long (Depends-on): Add memrchr.
72269         * modules/memrchr (Files): Add lib/memrchr.h.
72270         (Include): "memrchr.h".
72271
72272 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72275
72276 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * lib/memrchr.h: New file.
72279         * lib/chdir-long.c: Include it.
72280         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72281         Don't bother including stddef.h.
72282
72283 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72286         inclusion.
72287         Include <sys/types.h>, for dev_t.
72288         (ME_DUMMY, ME_REMOTE): Move from here....
72289         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72290         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72291         Dmitry V. Levin.
72292         Include mountlist.h first, to test the interface.
72293
72294 2005-01-29  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/progname.c (program_name): Initialize.
72297         Needed when linking statically on MacOS X.
72298
72299 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         Sync from coreutils.
72302         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72303         (Depends-on): Add c-strtod.
72304         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72305
72306 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72307
72308         Sync from coreutils.
72309         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72310
72311         Remove files that are specific to coreutils.
72312         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72313
72314 2005-01-28  Bruno Haible  <bruno@clisp.org>
72315
72316         * modules/javacomp: New file.
72317         * MODULES.html.sh (Java): Add javacomp.
72318
72319 2005-01-28  Bruno Haible  <bruno@clisp.org>
72320
72321         * m4/javacomp.m4: New file, from GNU gettext.
72322
72323 2005-01-28  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/javacomp.sh.in: New file, from GNU gettext.
72326         * lib/javacomp.h: New file, from GNU gettext.
72327         * lib/javacomp.c: New file, from GNU gettext.
72328
72329 2005-01-26  Simon Josefsson  <jas@extundo.com>
72330
72331         * lib/gai_strerror.c: Use GPL in header.
72332
72333 2005-01-26  Bruno Haible  <bruno@clisp.org>
72334
72335         * modules/javaexec: New file.
72336         * MODULES.html.sh (Java): Add javaexec.
72337
72338 2005-01-26  Bruno Haible  <bruno@clisp.org>
72339
72340         * m4/javaexec.m4: New file, from GNU gettext.
72341
72342 2005-01-26  Bruno Haible  <bruno@clisp.org>
72343
72344         * lib/javaexec.sh.in: New file, from GNU gettext.
72345         * lib/javaexec.h: New file, from GNU gettext.
72346         * lib/javaexec.c: New file, from GNU gettext.
72347
72348 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72349
72350         * modules/lchown (Depends-on): Remove lchown.h
72351
72352 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72353
72354         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72355         must be defined if the header file was not found, in order
72356         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72357
72358 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72359
72360         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72361         initializers for struct pentry_state.
72362         (__argp_error): Check return value of __asprintf
72363         (__argp_failure): Translate error message
72364
72365         * lib/argp-parse.c: Removed braces around the expansion of N_()
72366
72367 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72370         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72371         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72372         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72373         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72374         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72375         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72376         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72377         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72378         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72379         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72380         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72381         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72382         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72383         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72384         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72385         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72386         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72387         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72388         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72389         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72390         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72391         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72392         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72393         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72394         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72395         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72396         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72397         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72398         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72399         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72400         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72401         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72402         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72403         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72404         Use an all-permissive copyright notice, recommended by RMS.
72405
72406 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         * modules/chdir-long (Depends-on): Remove mempcpy.
72409
72410 2005-01-21  Jim Meyering  <jim@meyering.net>
72411
72412         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72413         same value as for Solaris 9.
72414
72415         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72416         component length.  This included changing the parameter to be
72417         of type `char *' rather than `char const *'.
72418         * lib/chdir-long.h (chdir_long): Update prototype.
72419
72420         * lib/openat.c (fdopendir, fstatat): New functions.
72421         * lib/openat.h: Include headers required for use of DIR and struct
72422         stat.
72423         [AT_SYMLINK_NOFOLLOW]: Define.
72424         (fdopendir, fstatat): Add prototypes.
72425
72426 2005-01-21  Bruno Haible  <bruno@clisp.org>
72427
72428         * modules/classpath: New file.
72429         * MODULES.html.sh (Java): Add classpath.
72430
72431 2005-01-21  Bruno Haible  <bruno@clisp.org>
72432
72433         * lib/classpath.h: New file, from GNU gettext.
72434         * lib/classpath.c: New file, from GNU gettext.
72435
72436 2005-01-20  Simon Josefsson  <jas@extundo.com>
72437
72438         * modules/version-etc-fsf: New file.
72439
72440 2005-01-20  Simon Josefsson  <jas@extundo.com>
72441
72442         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72443         * lib/version-etc.c: Remove version_etc_copyright.
72444         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72445         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72446
72447 2005-01-20  Simon Josefsson  <jas@extundo.com>
72448
72449         * lib/base64.h (isbase64): Add.
72450
72451         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72452         using a unsigned prototype, don't inline.
72453         (base64_decode): Use it.
72454
72455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72458         it.
72459
72460 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * lib/save-cwd.c (save_cwd): Remove code to support the case
72463         where fchdir is missing or flaky.
72464
72465 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72468
72469 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72472         AC_LIBSOURCES now does this.
72473         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72474         with new ullong_max module.
72475
72476 2005-01-19  Bruno Haible  <bruno@clisp.org>
72477
72478         * modules/sh-quote: New file.
72479         * MODULES.html.sh (Executing programs): Add sh-quote.
72480
72481 2005-01-19  Bruno Haible  <bruno@clisp.org>
72482
72483         * lib/sh-quote.h: New file, from GNU gettext.
72484         * lib/sh-quote.c: New file, from GNU gettext.
72485
72486 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         Merge from coreutils.
72489         * m4/ullong_max.m4: New file.
72490         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72491         (gl_MACROS): Assume localeconv exists.
72492
72493 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72494
72495         Merge changes from coreutils, as described below in several
72496         changelogs dated today.
72497
72498         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72499         (O_DIRECTORY): Remove; not needed here, since "." must be
72500         a directory.  All uses removed.
72501         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72502         universal on Suns, and we also need to test for IRIX.
72503         Revamp code to use 'if' rather than '#if'.
72504         Avoid unnecessary comparison of cwd->desc to 0.
72505
72506         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72507         for known valid error numbers rather than observed invalid ones.
72508
72509 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * modules/ullong_max: New file.
72512
72513         * modules/chdir-long, modules/openat: New files.
72514         * modules/save-cwd (Depends-on): Depend on chdir-long.
72515         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72516
72517 2005-01-18  Jim Meyering  <jim@meyering.net>
72518
72519         Merge from coreutils.
72520         * m4/chdir-long.m4, m4/openat.m4: New files.
72521         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72522         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72523         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72524         is sane and DOES follow symlinks.  Besides, testing 20 different
72525         systems found no broken chown implementations.
72526         Prompted by a change in rsync's copy of this macro.
72527         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72528
72529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72530
72531         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72532         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72533         NULL-means-set-to-current-time semantics.
72534         Remove temporary file immediately, rather than waiting
72535         for configure's at-exit trap code to do it.
72536
72537 2005-01-18  Jim Meyering  <jim@meyering.net>
72538
72539         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72540
72541         * lib/utimens.c (futimens): Account for the fact that futimes
72542         can also fail with errno == ENOSYS or errno == ENOENT.
72543         Patch from Dmitry V. Levin.
72544
72545         Change the name of the robust chdir function from chdir to chdir_long.
72546         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72547         (restore_cwd): Use chdir_long, not chdir.
72548         * lib/chdir-long.c: Renamed from chdir.c.
72549         * lib/chdir-long.h: Renamed from chdir.h.
72550         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72551         Hurd.
72552
72553 2005-01-18  Bruno Haible  <bruno@clisp.org>
72554
72555         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72556         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72557         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72558         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72559         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72560         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72561         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72562         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72563         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72564         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72565         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72566         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72567         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72568         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72569         Use an all-permissive copyright notice, recommended by RMS.
72570
72571 2005-01-18  Bob Proulx  <bob@proulx.com>
72572
72573         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72574         simplify offsetof() macro construct to avoid compile failure with
72575         native HP-UX 11.0 ANSI C compiler.
72576
72577 2005-01-17  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72580         redundant because stpncpy.m4 takes care of it.
72581
72582 2005-01-17  Bruno Haible  <bruno@clisp.org>
72583
72584         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72585
72586 2005-01-17  Bruno Haible  <bruno@clisp.org>
72587
72588         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72589         used.
72590
72591 2005-01-17  Bruno Haible  <bruno@clisp.org>
72592
72593         * lib/fwriteerror.h (fwriteerror): Change specification to include
72594         fclose.
72595         * lib/fwriteerror.c: Include <stdbool.h>.
72596         (fwriteerror): At the end, close the file stream. Record whether
72597         stdout was already closed.
72598
72599 2005-01-17  Bruno Haible  <bruno@clisp.org>
72600
72601         * lib/execute.c (environ): Declare if needed.
72602         * lib/pipe.c (environ): Likewise.
72603         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72604
72605 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72606
72607         * modules/argp: Depend on vsnprintf
72608
72609 2005-01-10  Jim Meyering  <jim@meyering.net>
72610
72611         * modules/closeout (Depends-on): Add atexit.
72612
72613 2005-01-06  Bruno Haible  <bruno@clisp.org>
72614
72615         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72616
72617 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72618
72619         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72620         definitions to be after all include files, to avoid collisions.
72621         Problem reported by Bob Proulx.
72622
72623 2005-01-04  Jim Meyering  <jim@meyering.net>
72624
72625         Changes imported from coreutils.
72626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72627         as the mkstemp template, use a temporary directory and an
72628         8.3-friendly template to avoid trouble on systems like DJGPP.
72629         Reported by Juan M. Guerrero via Stepan Kasal.
72630         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72631         close. Remove the temporary directory right away, rather than waiting
72632         for configure's at-exit trap code to do it.
72633         Suggestion from Stepan Kasal.
72634
72635 2005-01-01  Simon Josefsson  <jas@extundo.com>
72636
72637         * gnulib-tool: Print #include directives when --import'ing.
72638
72639 2004-12-28  Simon Josefsson  <jas@extundo.com>
72640
72641         * tests/test-base64.c: Include required header files.  Remove
72642         unused variables.
72643
72644 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * modules/error (Depends-on): Remove gettext.
72647
72648 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72651         not needed.  This removes a dependency on the gettext module.
72652         [defined _LIBC]: Do not include <libintl.h>; not needed.
72653
72654 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72657         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72658
72659 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72662         HAVE_DECL_STRTOLD.
72663
72664 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * modules/getdate (Depends-on): Remove alloca-opt.
72667
72668 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72669
72670         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72671
72672 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * lib/argp-parse.c: Include <stddef.h>.
72675         (alignof, alignto): New macros.
72676         (parser_init): Don't assume that void * is aligned sufficiently
72677         for struct option.
72678
72679         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72680         need to extend the stack.
72681         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72682         large.
72683
72684 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72685
72686         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72687
72688 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72689
72690         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72691         (2004-10-24) change.  Apparently this was a false alarm.
72692
72693         * modules/getdate: Depend on alloca-opt, not alloca.
72694
72695 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72698         Remove now-obsolete comment about AIX.
72699         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72700         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72701         (YYMAXDEPTH): New macro.
72702
72703 2004-12-18  Simon Josefsson  <jas@extundo.com>
72704
72705         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72706
72707 2004-12-18  Bruno Haible  <bruno@clisp.org>
72708
72709         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72710
72711 2004-12-18  Bruno Haible  <bruno@clisp.org>
72712
72713         * lib/fatal-signal.c (fatal_signals): Make non-const.
72714         (init_fatal_signals): New function.
72715         (uninstall_handlers, install_handlers): Ignore signals that were set to
72716         SIG_IGN.
72717         (at_fatal_signal): Call init_fatal_signals.
72718         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72719         SIG_IGN.
72720         Reported by Paul Eggert.
72721
72722 2004-12-18  Bruno Haible  <bruno@clisp.org>
72723
72724         * doc/alloca.texi: New file.
72725         * doc/alloca-opt.texi: New file.
72726
72727 2004-12-17  Jim Meyering  <jim@meyering.net>
72728
72729         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72730         Otherwise, install-sh could exit with improper exit status when
72731         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72732
72733 2004-12-16  Simon Josefsson  <jas@extundo.com>
72734
72735         * tests/test-base64.c: Add license.
72736
72737 2004-12-15  Stepan Kasal  <address@hidden>
72738
72739         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72740
72741 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72742
72743         * modules/getcwd (Files): Add m4/d-ino.m4.
72744         Suggested by Mark D. Baushke.
72745
72746 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         * lib/getdate.y (textint): New member "negative".
72749         (time_zone_hhmm): New function.
72750         Expect 14 shift-reduce conflicts, not 13.
72751         (o_colon_minutes): New rule.
72752         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72753         (yylex): Set the "negative" member of signed numbers.
72754
72755 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * doc/getdate.texi (Time of day items, Time zone items):
72758         Describe new formats +00:00, UTC+00:00.
72759
72760 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72763         spurious "-l"s.  Problem reported by Stepan Kasal.
72764
72765 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72766
72767         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72768         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72769
72770 2004-12-04  Simon Josefsson  <jas@extundo.com>
72771
72772         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72773         Vandoorselaere <yoann@prelude-ids.org>.
72774
72775 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72776
72777         Changes imported from coreutils.
72778         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72779         exist.
72780         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72781
72782 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         Changes imported from coreutils.
72785         * lib/hard-locale.c: Assume <locale.h> exists.
72786         Include "strdup.h".
72787         (GLIBC_VERSION): New macro.
72788         (hard_locale): Assume setlocale exists.
72789         Rewrite to avoid #ifdef.
72790         Use strdup rather than malloc + strcpy.
72791         * lib/human.c: Assume <locale.h> exists.
72792         (human_readable): Assume localeconv exists.
72793
72794 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72795
72796         * modules/hard-locale (Depends-on): Add strdup.
72797
72798 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72799
72800         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72801         convert T2, not T.  (Imported from libc.)
72802
72803 2004-11-30  Simon Josefsson  <jas@extundo.com>
72804
72805         * modules/restrict (License): Change to LGPL.
72806
72807 2004-11-30  Simon Josefsson  <jas@extundo.com>
72808
72809         * m4/restrict.m4: Add copyright and copying conditions.
72810
72811 2004-11-30  Simon Josefsson  <jas@extundo.com>
72812
72813         * m4/base64.m4: New file.
72814
72815 2004-11-30  Simon Josefsson  <jas@extundo.com>
72816
72817         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72818         base64.
72819
72820         * tests/test-base64.c: New file.
72821
72822         * modules/base64: New file.
72823
72824 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72827         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72828
72829         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72830
72831 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72834         (__getcwd.c): Don't restore errno; glibc doesn't.
72835         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72836         first, falling back to our code only if its results look suspicious.
72837         Ensure that the resulting buffer is only as large as necessary.
72838
72839         * lib/readutmp.c: Include readutmp.h first.
72840         Include <errno.h>, since readutmp.h no longer does that.
72841         * lib/readutmp.h: Don't include <errno.h>,
72842         <sys/param.h>, <time.h>; not needed to establish interface.
72843         (errno): Remove decl.
72844         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72845         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72846         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72847
72848 2004-11-28  Simon Josefsson  <jas@extundo.com>
72849
72850         * lib/base64.h, base64.c: New file.
72851
72852 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72853
72854         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72855
72856 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72859         (Depends-on): Remove pathmax, same.  Add mempcpy.
72860         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72861         (Makefile.am): Append getcwd.h to lib_SOURCES.
72862         (Include): Add getcwd.h.
72863         (Maintainer): Change from Jim Meyering to "all, glibc",
72864         since getdate now uses intended-for-glibc code.
72865         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72866         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72867
72868 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72871         HP's ANSI C compiler.
72872         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72873         Declaring int functions causes warnings on some modern systems and
72874         shouldn't be needed to compile on ancient ones.
72875         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72876         defined.
72877
72878         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72879         with the following changes.
72880         (__set_errno): Parenthesize properly.
72881         Include <stdbool.h>.
72882         (MIN, MAX, MATCHING_INO): New macros.
72883         (__getcwd): Define with prototype, not K&R form.
72884         Use heuristics to allocate default buffer on stack if possible.
72885         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72886         behavior, and to avoid the PATH_MAX limit when computing
72887         ../../../../...
72888         Use MATCHING_INO to compare inode number to file.
72889         Check for arithmetic overflow in size calculations.
72890         Fix bug in reallocation of dot array that caused getcwd to fail
72891         on directories nested deeper than 75.
72892         Be more careful about saving errno on error.
72893         Do not use realloc; use only free+malloc, as this is a bit
72894         more flexible and avoids a needless copy operation.
72895         Do not inspect st_dev and st_ino for symbolic links; POSIX
72896         doesn't specify the latter.
72897         Check for closedir errors.
72898         Avoid needless casts.
72899         Use "#ifdef weak_alias" around weak_alias, to be like other
72900         glibc code.
72901         The following changes to getcwd.c have effect only when used in
72902         gnulib; they have no effect inside glibc proper.
72903         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72904         as alloca isn't used.
72905         (alloca, __alloca): Likewise.
72906         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72907         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72908         unconditionally, as gnulib assumes C89 or better.
72909         Do not include <sys/param.h>.
72910         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72911         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72912         better.
72913         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72914         Include <dirent.h> in a way that is compatible with modern Autoconf.
72915         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72916         New macros, if not already defined.
72917         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72918         Use "_LIBC", not "defined _LIBC", for consistency.
72919         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72920         a mempcpy module.
72921         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72922         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72923         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72924         credit only to Jim Meyering and adjust the copyright dates.
72925         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72926         <stdlib.h>, <unistd.h>, "pathmax.h".
72927         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72928         (INITIAL_BUFFER_SIZE): Remove.
72929         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72930
72931 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72932
72933         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72934         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72935         Use the _ONCE methods, for efficiency.
72936         Check for fcntl.h.  In test program, include <errno.h>
72937         and <fcntl.h> if available.  Remove old K&R cruft from
72938         test program.  Check for common errors in GNU/Linux,
72939         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72940         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72941         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72942         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72943         name accordingly.
72944         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72945         accommodate new getcwd.c.
72946         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72947         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72948         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72949         that's all we need now.
72950
72951 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72952
72953         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72954         argp-parse.c depends on getopt internals, that means we should
72955         always use our getopt, to be on the safe side.
72956         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72957         order not to spoil the result of an eventual previous invocation
72958         of gl_GETOPT_SUBSTITUTE.
72959
72960 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72961
72962         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72963         redefinition warnings. To avoid them, include the defines
72964         in `#if !defined __need_getopt ... #endif'. The only place
72965         where __getopt_argv_const is used is in definitions
72966         of getopt_long and getopt_long_only below, which are as well
72967         protected by `#ifndef __need_getopt'.
72968         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72969         __need_getopt after including <stdio.h> and <unistd.h> These
72970         headers might have defined it.
72971
72972 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72975
72976 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72977
72978         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72979         (futimens): New function, which uses futimes if available.
72980         (futimens, utimens): Support timespec==NULL, with same semantics
72981         as utime and utimens.
72982         * lib/utimens.h (futimens): New decl.
72983
72984 2004-11-23  Jim Meyering  <jim@meyering.net>
72985
72986         * lib/getopt_.h: Remove trailing blanks.
72987
72988 2004-11-23  Jim Meyering  <jim@meyering.net>
72989
72990         * lib/__fpending.c: Add comment.
72991
72992 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * modules/canonicalize (Depends-on): Add xreadlink.
72995         Problem reported by James Youngman.
72996
72997 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73000         New macros.
73001         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73002         optopt): Use them instead of invoking ## directly; otherwise, the
73003         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73004
73005 2004-11-19  Bruno Haible  <bruno@clisp.org>
73006
73007         * lib/strtok_r.c: Move comments from here...
73008         * lib/strtok_r.h: ... to here.
73009
73010 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73013         implementations that mishandle size_t overflow.
73014
73015 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73018         might fail.  Problem reported by Yoann Vandoorselaere.
73019         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73020         implementations that mishandle size_t overflow.
73021
73022 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73023
73024         * modules/canon-host (Depends-on): Add strdup.
73025
73026 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73029
73030 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73031
73032         * lib/canon-host.c: Include "strdup.h".
73033         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73034         Use strdup instead of malloc/strcpy to duplicate strings.
73035
73036         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73037         (human_space_before_unit): New constant.
73038         * lib/human.c (human_readable): Support it.
73039
73040         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73041         (xgetcwd): Set errno correctly when failing.
73042         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73043         the failure is actually due to a PATH_MAX problem.
73044
73045         Further getopt changes to make it more likely that glibc will
73046         buy the changes back.
73047         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73048         (getopt): Use it, so to preserve glibc semantic
73049         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73050         when compiling for libc.
73051         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73052         (getopt_long, getopt_long_only): Use it.
73053
73054         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73055         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73056         (getopt): Argv is now char * const *, as per standard.
73057         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73058         not char *__getopt_argv_const *.
73059         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73060         _getopt_long_only_r): Likewise.
73061         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73062         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73063         _getopt_long_r, _getopt_long_only_r): Likewise.
73064         * lib/getopt_.h (__getopt_argv_const): Remove.
73065         (getopt): Argv is now char * const *, as per standard.
73066
73067         * lib/getdate.y (tORDINAL): New token.
73068         (day, relunit): Allow it for relative times.
73069         (relative_time_table): Use tORDINAL for ordinals.
73070
73071 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73074         Document that "second" isn't allowed as an ordinal number.
73075
73076 2004-11-16  Jim Meyering  <jim@meyering.net>
73077
73078         * modules/closeout (Depends-on): Add fpending.
73079
73080 2004-11-15  Jim Meyering  <jim@meyering.net>
73081
73082         * lib/closeout.c: Include "__fpending.h" once again.
73083         Include <stdbool.h>.
73084         (close_stdout): Don't fail just because stdout was closed initially,
73085         since some programs don't write to stdout in the normal course of
73086         operation (other than --version and --help), and we don't want this
73087         function to make e.g. `touch file >&-' fail.
73088         But do fail if it was closed and someone has tried to write to it.
73089         E.g., `printf foo >&-' must fail.
73090
73091 2004-11-13  Jim Meyering  <jim@meyering.net>
73092
73093         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73094
73095 2004-11-12  Simon Josefsson  <jas@extundo.com>
73096
73097         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73098         small doc fix is still pending.
73099
73100 2004-11-11  Simon Josefsson  <jas@extundo.com>
73101
73102         * modules/strtok_r: New file.
73103
73104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73105         strtok_r.
73106
73107 2004-11-11  Simon Josefsson  <jas@extundo.com>
73108
73109         * m4/strtok_r.m4: New file.
73110
73111         * m4/getopt.m4: Replace opterr.
73112
73113 2004-11-11  Simon Josefsson  <jas@extundo.com>
73114
73115         * lib/strtok_r.h, strtok_r.c: New file.
73116
73117 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73118
73119         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73120         of replacing opterr, getopt, etc.  This should handle the
73121         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73122
73123 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73126         we can stop lying to compilers about the constness of argv when we
73127         are compiled outside glibc.
73128         (getopt, getopt_long, getopt_long_only): Use it.
73129         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73130         _getopt_internal, getopt): Likewise.
73131         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73132         _getopt_long_only_r): Likewise.
73133         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73134         _getopt_long_r, _getopt_long_only_r): Likewise.
73135
73136         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73137         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73138         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73139         the other external symbols.
73140         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73141         declaration, since the above renaming now works around collisions.
73142
73143 2004-11-11  Jim Meyering  <jim@meyering.net>
73144
73145         * lib/linebreak.c: Remove trailing blanks.
73146         * lib/alloca_.h: Likewise.
73147         * lib/acosl.c: Likewise.
73148         * lib/euidaccess.c: Likewise.
73149         * lib/allocsa.h: Likewise.
73150
73151 2004-11-10  Simon Josefsson  <jas@extundo.com>
73152
73153         * m4/getaddrinfo.m4: New file.
73154
73155 2004-11-10  Simon Josefsson  <jas@extundo.com>
73156
73157         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73158
73159 2004-11-10  Simon Josefsson  <jas@extundo.com>
73160
73161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73162         getaddrinfo.
73163
73164         * modules/getaddrinfo: New file.
73165
73166 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73169
73170 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * lib/mktime.c (SHR): New macro, which is a portable
73173         substitute for >> that should work even on Crays.
73174         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73175         Problem reported by Mark D. Baushke in
73176         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73177         * lib/getdate.y (SHR): Likewise.
73178         (tm_diff): Use it.
73179         * lib/strftime.c (SHR): Likewise.
73180         (tm_diff): Use it.
73181         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73182         quote_these_too, so that right shifts are well defined.  All uses
73183         changed.
73184
73185 2004-11-10  Jim Meyering  <jim@meyering.net>
73186
73187         Ensure that no close failure goes unreported.
73188         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73189         return early when it seems there's nothing to flush.
73190         Don't include __fpending.h.
73191
73192 2004-11-10  Jim Meyering  <jim@meyering.net>
73193
73194         * modules/closeout (Depends-on): Remove fpending.
73195
73196 2004-11-10  Jim Meyering  <jim@meyering.net>
73197
73198         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73199
73200 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73203         gl_FUNC_STRFTIME.
73204         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73205         and AC_REQUIRE when possible, to avoid duplicate checks.
73206         Check for <wchar.h>.
73207
73208 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73211
73212 2004-11-09  Bruno Haible  <bruno@clisp.org>
73213
73214         * m4/sockpfaf.m4: New file.
73215
73216 2004-11-05  Bruno Haible  <bruno@clisp.org>
73217
73218         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73219         Reported by Mark D. Baushke <mdb@cvshome.org>.
73220
73221 2004-11-04  Bruno Haible  <bruno@clisp.org>
73222
73223         2004-09-11  Bruno Haible  <bruno@clisp.org>
73224                 * allocsa.valgrind: New file.
73225         2004-02-06  Bruno Haible  <bruno@clisp.org>
73226                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73227                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73228                 Reported by Christopher Seip <chris.seip@hp.com>.
73229
73230 2004-11-04  Bruno Haible  <bruno@clisp.org>
73231
73232         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73233         (Makefile.am): Distribute it.
73234
73235 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73238         with errno == ERANGE if the buffer is too small.
73239         Problem reported by Mark D. Baushke.
73240
73241 2004-11-03  Albert Chin  <china@thewrittenword.com>
73242             Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73245         equivalent, substitute $ac_type for equivalent type rather than
73246         blindly using uint32_t *always* which won't work if uint32_t is not
73247         available.  Define _UINT32_T to work around typedef of uint32_t if
73248         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73249         2.5.1.
73250
73251 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         * m4/jm-macros.m4: Sync from coreutils.
73254         (gl_MACROS): Check for mbrlen, for pathchk.
73255         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73256
73257 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73258
73259         * lib/xreadlink.c (MAXSIZE): New macro.
73260         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73261         size does not exceed MAXSIZE.  Avoid cast.
73262         As suggested by Mark D. Baushke in
73263         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73264         if readlink fails with buffer size just under MAXSIZE, try again
73265         with MAXSIZE.
73266
73267 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73270
73271 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73272         and  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73275         (get_date): Overparenthesize to avoid GCC warning.
73276
73277 2004-11-02  Bruno Haible  <bruno@clisp.org>
73278
73279         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73280         returns void.
73281
73282 2004-11-02  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73285         function returns void.
73286
73287 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73290         fflush_unlocked, flockfile, funlockfile, funlockfile,
73291         fputs_unlocked, putc_unlocked.
73292
73293 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73294
73295         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73296         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73297         already declared.
73298
73299 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         * modules/getdate (Files): Add doc/getdate.texi.
73302         (Depends-on): Add setenv, xalloc.
73303
73304 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73305
73306         * lib/getdate.y: Add support for TZ="foo" within a date string.
73307         Fix some bugs near time_t boundaries.  Reject dates with
73308         out-of-range components, e.g., "Sept 31".
73309         Include <stdlib.h>, "setenv.h", "xalloc.h".
73310         (ISDIGIT_LOCALE): Remove; unused.
73311         Note that the TZ and time functions used here are not reentrant.
73312         (mktime_ok, get_tz): New functions.
73313         (TZBUFSIZE): New constant.
73314         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73315         This requires that we sometimes generate our own TZ="XXX..." setting.
73316
73317 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73318
73319         * doc/getdate.texi: New file, from coreutils with modifications for
73320         the new TZ parsing.
73321
73322 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73323
73324         * lib/mktime.c (not_equal_tm): Remove redundant check.
73325
73326 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * modules/regex (lib_SOURCES): Add regex.c.
73329         Reported by James Youngman in
73330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73331
73332 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73333
73334         * lib/getdate.y: Use Bison 1.875 features, and some minor
73335         code cleanups.  This change does not affect semantics.
73336         Don't include <stdlib.h>; no longer needed.
73337         Don't include unlocked-io.h; only the "#if TEST" code uses
73338         stdio, and performance isn't crucial there.
73339         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73340         Bison 1.875 features as described below.
73341         All uses of "PC." replaced by "pc->".
73342         (YYSTYPE): Add a forward declaration.
73343         (yylex, yyerror): Use full prototypes in forward decls.
73344         Use "%pure-parser" rather than obsolescent "%pure_parser".
73345         Use %parse-param and %lex-param instead of obsolescent
73346         YYPARSE_PARAM and YYLEX_PARAM.
73347         (meridian_table, month_and_day_table, time_units_table,
73348         relative_time_table, time_zone_table, military_table,
73349         lookup_zone, lookup_word, get_date):
73350         Use NULL instead of 0 where appropriate.
73351         (to_hour): Avoid abort (), to avoid a dependency on
73352         stdlib.h.
73353         (yyerror, yylex): Now accepts parser_control * arg.
73354         (main) [TEST]: Use '\0' rather than 0 for char.
73355
73356 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73357
73358         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73359
73360 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73361
73362         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73363         It's now the caller's responsibility to handle the case where
73364         !HAVE_GETPAGESIZE && !defined getpagesize.
73365
73366         * lib/mktime.c (leapyear): Arg is long int, not int.
73367
73368 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73369
73370         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73371
73372 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73375         missing.  Problem reported by James Youngman.
73376
73377 2004-10-16  Simon Josefsson  <jas@extundo.com>
73378
73379         * gnulib-tool: Fix comments.  Fix parse problem.
73380         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73381
73382 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73383
73384         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73385         implementation of getopt_long.  Problem reported by Alexander Taler in:
73386         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73387
73388 2004-10-15  Bruno Haible  <bruno@clisp.org>
73389
73390         * gnulib-tool: Untabify. Initialize supplied_libname.
73391         (func_usage): More homogenous output.
73392         (func_modules_transitive_closure, func_modules_to_filelist,
73393         func_emit_lib_Makefile_am): New functions.
73394         (func_import): New function, extracted from big case statement. Use
73395         func_get_license, func_modules_transitive_closure,
73396         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73397         opt_lgpl. Don't use test -a, as it's not portable.
73398         (func_create_testdir): Use func_modules_transitive_closure,
73399         func_modules_to_filelist, func_emit_lib_Makefile_am.
73400
73401 2004-10-15  Bruno Haible  <bruno@clisp.org>
73402
73403         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73404
73405 2004-10-15  Bruno Haible  <bruno@clisp.org>
73406
73407         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73408         the portions belonging to each module.
73409         Suggested by Derek Robert Price <derek@ximbiot.com>.
73410
73411 2004-10-12  Simon Josefsson  <jas@extundo.com>
73412
73413         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73414         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73415         to real functions.
73416
73417 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73418
73419         * modules/vsnprintf: New file.
73420
73421 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73422
73423         * m4/vsnprintf.m4: New file.
73424
73425 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73426
73427         * lib/vsnprintf.h: New file.
73428         * lib/vsnprintf.c: New file.
73429
73430 2004-10-11  Bruno Haible  <bruno@clisp.org>
73431
73432         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73433         vsnprintf.
73434
73435 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73436
73437         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73438
73439 2004-10-07  Bruno Haible  <bruno@clisp.org>
73440
73441         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73442         fits into the provided buffer.
73443
73444 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * lib/diacrit.c, diacrit.h: Add GPL notice.
73447
73448         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73449         notice.
73450         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73451         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73452         This avoids a potential constant-folding bug.
73453
73454 2004-10-05  Bruno Haible  <bruno@clisp.org>
73455
73456         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73457         for the declaration of strsep.
73458
73459 2004-10-05  Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73462
73463 2004-10-04  Simon Josefsson  <jas@extundo.com>
73464
73465         * modules/memmem: New file.
73466         * tests/test-memmem.c: New file.
73467         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73468
73469 2004-10-04  Simon Josefsson  <jas@extundo.com>
73470
73471         * m4/memmem.m4: New file.
73472
73473 2004-10-04  Simon Josefsson  <jas@extundo.com>
73474
73475         * lib/memmem.h: New file.
73476         * lib/memmem.c: New file, taken from glibc.
73477
73478 2004-10-04  Simon Josefsson  <jas@extundo.com>
73479
73480         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73481         '#ifdef USE_UNLOCKED_IO'.
73482
73483 2004-10-04  Simon Josefsson  <jas@extundo.com>
73484
73485         * config/srclist.txt: Add memmem from glibc.
73486
73487 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73488
73489         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73490
73491         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73492         modules/exclude, modules/getdate, modules/getline,
73493         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73494         modules/getusershell, modules/linebuffer, modules/md5,
73495         modules/mountlist, modules/posixtm, modules/readtokens,
73496         modules/readutmp, modules/regex, modules/sha1,
73497         modules/version-etc, modules/yesno:
73498         Remove dependency on unlocked-io.
73499
73500 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73501
73502         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73503
73504         * m4/unlocked-io.m4: Add copyright notice.
73505         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73506
73507 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73510         * lib/xmalloc.c (xmemdup): Likewise.
73511         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73512         XFREE): Remove these long-obsolescent macros.
73513         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73514         * lib/xstrdup.c: Remove.
73515
73516         * lib/regex.c (re_comp): Cast gettext return value to char *,
73517         Problem reported by Martin Neitzel via Mark D. Baushke.
73518
73519 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73520
73521         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73522         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73523         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73524         regex.c, sha1.c, version-etc.c, yesno.c:
73525         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73526         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73527         the includer's responsibility.
73528
73529         Sync from coreutils.
73530
73531         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73532         points to the start of a string, as the C Standard says the
73533         resulting behavior is undefined.
73534
73535         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73536         simple -> simple_backups, numbered_existing ->
73537         numbered_existing_backups, numbered -> numbered_backups
73538         to avoid shadowing problems.  All uses changed.
73539         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73540         * lib/backupfile.c (check_extension, numbered_backup):
73541         Rename locals to avoid shadowing 'basename'.
73542         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73543         once.
73544
73545         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73546         * lib/.cvsignore: Add getopt.h.
73547
73548 2004-10-04  Bruno Haible  <bruno@clisp.org>
73549
73550         * modules/README: New file.
73551         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73552         not a module.
73553
73554 2004-10-02  Jim Meyering  <jim@meyering.net>
73555
73556         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73557
73558 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73559
73560         * modules/strsep: New file.
73561
73562 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73563
73564         * m4/strsep.m4: New file.
73565
73566 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73567
73568         * lib/strsep.h: New file.
73569         * lib/strsep.c: New file.
73570
73571 2004-10-01  Simon Josefsson  <jas@extundo.com>
73572
73573         * lib/snprintf.c (snprintf): Handle size==0.
73574
73575 2004-10-01  Simon Josefsson  <jas@extundo.com>
73576             Bruno Haible  <bruno@clisp.org>
73577
73578         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73579         (snprintf): Declare 'args'.
73580
73581 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * lib/snprintf.c: Remove comments as to why each header is needed.
73584
73585 2004-10-01  Bruno Haible  <bruno@clisp.org>
73586
73587         * MODULES.html.sh: Add strsep.
73588
73589 2004-09-30  Simon Josefsson  <jas@extundo.com>
73590
73591         * modules/snprintf: New file.
73592
73593 2004-09-30  Simon Josefsson  <jas@extundo.com>
73594
73595         * m4/snprintf.m4: New file.
73596
73597 2004-09-30  Simon Josefsson  <jas@extundo.com>
73598
73599         * lib/snprintf.h, lib/snprintf.c: New files.
73600
73601 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73602
73603         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73604         (hol_entry_help): Never translate an empty string.
73605         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73606         * lib/argp.h (OPTION_NO_TRANS): New option.
73607
73608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * modules/argp (Maintainer): Replace Simon Josefsson
73611         by Sergey Poznyakoff.
73612
73613 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73616         changes merged back into glibc.
73617
73618 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73621
73622 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73623
73624         * lib/xvasprintf.c: Include xalloc.h.
73625         (xvasprintf): Use xalloc_die, not xmalloc_die.
73626
73627 2004-09-29  Bruno Haible  <bruno@clisp.org>
73628
73629         * modules/alloca-opt: New file, derived from modules/alloca.
73630         * modules/allocsa: Depend on alloca-opt instead of alloca.
73631         * modules/setenv: Likewise.
73632         * modules/vasnprintf: Likewise.
73633         * MODULES.html.sh: Add alloca-opt.
73634
73635 2004-09-28  Simon Josefsson  <jas@extundo.com>
73636
73637         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73638         LGPL, and to replace license template from GPL to LGPL.
73639
73640 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * modules/dummy: Change license to LGPL.
73643
73644 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73647
73648 2004-09-24  Simon Josefsson  <jas@extundo.com>
73649
73650         * modules/minmax (License): Change from GPL to LGPL.
73651
73652 2004-09-23  Simon Josefsson  <jas@extundo.com>
73653
73654         * gnulib-tool (--import): Typo.
73655
73656 2004-09-23  Simon Josefsson  <jas@extundo.com>
73657
73658         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73659
73660 2004-09-22  Bruno Haible  <bruno@clisp.org>
73661
73662         * modules/*: Add 'License' field.
73663         * gnulib-tool: Accept --extract-license option.
73664         (func_get_license): New function.
73665
73666 2004-09-21  Bruno Haible  <bruno@clisp.org>
73667
73668         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73669         Reported by Simon Josefsson.
73670
73671 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73674         gl_AC_TYPE_LONG_LONG.
73675
73676 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73679
73680 2004-09-18  Simon Josefsson  <jas@extundo.com>
73681         and  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73684         calls with autoreconf.  Define GL_LIB.
73685
73686 2004-09-14  Karl Berry  <karl@gnu.org>
73687
73688         * config/srclist.txt: unsync setenv.c, sigh.
73689
73690 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73691
73692         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73693         Problem reported by Bruno Haible in:
73694         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73695
73696 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73697
73698         * config/srclist.txt: Comment out argp-pvh.c.
73699
73700 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73701
73702         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73703         in case some system header has #define'd it.  Problem reported by
73704         Soeren D. Schulze in
73705         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73706
73707 2004-09-09  Karl Berry  <karl@gnu.org>
73708
73709         * regex.[ch]: delete from the root.  These were supposed to be
73710                 synced with emacs cvs, but this has not happened for about
73711                 a year, and anyway nothing else uses emacs regex.[ch].
73712                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73713                 lib/regex[.ch] is untouched.
73714
73715 2004-09-09  Bruno Haible  <bruno@clisp.org>
73716
73717         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73718
73719 2004-09-09  Bruno Haible  <bruno@clisp.org>
73720
73721         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73722         modifications.
73723         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73724
73725 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73726
73727         * modules/xvasprintf: New file.
73728         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73729
73730 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73731
73732         * lib/xvasprintf.h: New file.
73733         * lib/xvasprintf.c: New file.
73734         * lib/xasprintf.c: New file.
73735
73736 2004-09-08  Bruno Haible  <bruno@clisp.org>
73737
73738         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73739
73740 2004-09-08  Bruno Haible  <bruno@clisp.org>
73741
73742         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73743         length is > INT_MAX.
73744         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73745         more.
73746
73747 2004-09-08  Bruno Haible  <bruno@clisp.org>
73748
73749         * lib/stdint_.h: New file, taken from GNU clisp.
73750
73751 2004-09-08  Bruno Haible  <bruno@clisp.org>
73752             Oskar Liljeblad  <oskar@osk.mine.nu>
73753
73754         * modules/stdint: New file.
73755         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73756
73757 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73758
73759         Import from coreutils.
73760         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73761         strings on unbounded length.  alloca's performance benefits aren't
73762         that important here.
73763         (V_STRDUP): Remove.
73764         (parse_with_separator): New function, with most of the internals
73765         of the old parse_user_spec.  Allow user to omit both user and group,
73766         for compatibility with FreeBSD.
73767         Clone only the user name, not the entire spec.
73768         Do not set *uid, *gid unless entirely successful.
73769         Avoid memory leak in some failing cases.
73770         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73771         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73772         (parse_user_spec): Rewrite to use parse_with_separator.
73773
73774 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73775
73776         * modules/userspec: Don't depend on alloca.
73777
73778 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73779
73780         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73781
73782 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73785         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73786         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73787
73788 2004-08-16  Simon Josefsson  <jas@extundo.com>
73789
73790         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73791         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73792         Add --dry-run for --import.
73793         Let user provided command line parameters override configure.ac
73794         settings.
73795
73796 2004-08-12  Simon Josefsson  <jas@extundo.com>
73797
73798         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73799         as discussed with Paul Eggert in threads rooted at
73800         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73801         and
73802         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73803         Before, the test was empty, and relied on ELIDE_CODE in source
73804         code.)
73805         (gl_PREREQ_GETOPT): New macro.
73806         (gl_GETOPT): Use them.
73807
73808 2004-08-12  Simon Josefsson  <jas@extundo.com>
73809
73810         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73811         * lib/getopt_.h: Renamed from getopt.h.
73812
73813 2004-08-12  Simon Josefsson  <jas@extundo.com>
73814
73815         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73816         Change default library name from libfoo to libgnu.
73817         Now, if you have a configure.ac that says:
73818                 gl_SOURCE_BASE(gl)
73819                 gl_M4_BASE(gl/m4)
73820                 gl_MODULES(error getopt etcetera)
73821                 gl_INIT
73822         you can import all you need by running:
73823                 ../gnulib/gnulib-tool --import
73824
73825         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73826         (Makefile.am): Rewrite, use logic from argz.
73827         (Include): Use <getopt.h> instead of "getopt.h".
73828
73829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * modules/argp (Files): Add m4/unlocked-io.m4.
73832         (Depends-on): Add extensions.
73833
73834 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73837         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73838         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73839         Check for program_invocation_name, program_invocation_short_name,
73840         flockfile, funlockfile, features.h, _getopt_long_only_r.
73841
73842 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73845         its complicated substitute.
73846         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73847         and program_invocation_name.
73848         (__argp_basename) [!_LIBC]: Remove; the only use was
73849         replaced by its body.
73850         (__argp_short_program_name): Change condition from
73851         !defined __argp_short_program_name to
73852         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73853         to match argp-namefrob.h.
73854         (__argp_failure): Don't assume strerror_r returns char *.
73855         * lib/argp-parse.c (N_): Define unconditionally.
73856         (argp_default_options): Fill out initializers with 0 to avoid
73857         gcc warnings.
73858
73859 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73860
73861         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73862         getopt1.c.
73863
73864 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73865
73866         Merge from coreutils.
73867
73868         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73869
73870         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73871         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73872
73873 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         Merge from coreutils.
73876
73877         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73878         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73879         for Reliant Unix 5.43.
73880
73881         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73882         (union fooround): Use uintmax_t, not long int.
73883         The rest is a merge from libc:
73884         [defined _LIBC]: Include <shlib-compat.h>.
73885         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73886
73887         * lib/settime.c (settime): Recode to avoid warning with
73888         Sun Forte C 6U2.
73889
73890         * lib/strverscmp.c: Convert to UTF-8.
73891
73892 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73895         m4/uintmax_t.m4.
73896
73897 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73898
73899         * modules/xalloc-die: New file.
73900         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73901
73902         * modules/md5 (Files): Add m4/uint32_t.m4.
73903         * modules/sha1: Renamed from modules/sha.
73904         (Files):
73905         Rename lib/sha.h to lib/sha1.h.
73906         Rename lib/sha.c to lib/sha1.c.
73907         Rename m4/sha.m4 to m4/sha1.m4.
73908         (lib_SOURCES): Likewise.
73909         (configure.ac): Rename gl_SHA to gl_SHA1.
73910         (Include): sha.h -> sha1.h.
73911
73912 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73915         * m4/sha1.m4: Renamed from sha.m4.
73916         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73917
73918 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * lib/obstack.h (obstack_empty_p):
73921         Don't assume that chunk->contents is suitably aligned.
73922         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73923         Likewise. Problem reported by Benno in
73924         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73925
73926         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73927         readable.  This could be improved further but it'd take some work.
73928
73929 2004-08-08  Simon Josefsson  <jas@extundo.com>
73930
73931         * modules/xgethostname (Depends-on): Remove exit and error (not
73932         used).
73933
73934         * modules/getpass-gnu: Add getpass.h.
73935         (Depends-on): Add stdbool.
73936         * modules/getpass: Add getpass.h.
73937
73938 2004-08-08  Simon Josefsson  <jas@extundo.com>
73939
73940         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73941         Check getpass declaration.
73942
73943 2004-08-08  Simon Josefsson  <jas@extundo.com>
73944
73945         * lib/xgethostname.c: Don't include error.h (not used).
73946
73947         * lib/getpass.h: Add.
73948         * lib/getpass.c: Include getpass.h first.
73949
73950 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73951
73952         * lib/xalloc-die.c: New file.
73953         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73954         All uses removed.
73955         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73956         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73957         xalloc-die.c.
73958         (_, N_, xalloc_die): Move to xalloc-die.c.
73959         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73960         so that we needn't mess with xalloc_msg_memory_exhausted.
73961
73962         * lib/sha1.h: Renamed from sha.h.
73963         (SHA1_H): Renamed from _SHA_H.
73964         (sha1_ctx): Renamed from sha_ctx.
73965         (sha1_init_ctx): Renamed from sha_init_ctx.
73966         (sha1_process_block): Renamed from sha_process_block.
73967         (sha1_process_bytes): Renamed from sha_process_bytes.
73968         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73969         (sha1_read_ctx): Renamed from sha_read_ctx.
73970         (sha1_stream): Renamed from sha_stream.
73971         (sha1_buffer): Renamed from sha_buffer.
73972         * lib/sha1.c: Likewise; renamed from sha.c.
73973         Do not include <sys/types.h>.
73974         Include <stddef.h> rather than <stdlib.h>.
73975
73976 2004-08-08  Bruno Haible  <bruno@clisp.org>
73977
73978         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73979         FILESYSTEM_PREFIX_LEN.
73980         * lib/progreloc.c: Likewise.
73981         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73982
73983 2004-08-06  Simon Josefsson  <jas@extundo.com>
73984
73985         * modules/progname (Depends-on): Don't depend on stdbool.
73986
73987 2004-08-06  Simon Josefsson  <jas@extundo.com>
73988
73989         * modules/getsubopt: New file.
73990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73991         getsubopt.
73992
73993 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         More merge from coreutils.
73996
73997         * m4/utimens.m4, m4/utimecmp.m4: New files.
73998         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73999         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74000         prereq.m4, sha.m4: Import changes from coreutils.
74001
74002 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         More merge from coreutils.
74005         * modules/raise, modules/readtokens0, modules/utimens:
74006         * modules/utimecmp, module/xnanosleep: New files.
74007         * modules/strftime: Add lib/strftime.h.
74008         Change include from <time.h> to "strftime.h".
74009         * modules/yesno: Add lib/yesno.h.
74010         * modules/backupfile: Remove lib/addext.c.
74011         * modules/euidaccess: Add stat-macros.h.
74012         * modules/canonicalize, modules/euidaccess,
74013         modules/filemode, modules/lchown, modules/makepath,
74014         modules/rmdir, modules/stat: Likewise.
74015
74016 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74017
74018         Merge from tar.
74019         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74020         SIZE_MAX is a valid preprocessor constant.
74021         (__argp_basename): Change from "#ifndef _LIBC"
74022         to "#ifndef __argp_short_program_name", so that
74023         we don't compile these functions for tar.
74024
74025         More merges from coreutils.
74026         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74027         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74028         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74029         * lib/addext.c: Remove; no longer needed.
74030         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74031         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74032         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74033         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74034         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74035         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74036         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74037         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74038         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74039         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74040         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74041         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74042         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74043         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74044         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74045         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74046         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74047         Import changes from coreutils.
74048
74049 2004-08-05  Simon Josefsson  <jas@extundo.com>
74050
74051         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74052
74053 2004-08-05  Simon Josefsson  <jas@extundo.com>
74054
74055         * m4/getsubopt.m4: New file.
74056
74057 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         Merge from coreutils.
74060
74061         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74062         * m4/getcwd-path-max.m4: New files.
74063
74064         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74065         FILESYSTEM_PREFIX_LEN ->
74066         FILE_SYSTEM_PREFIX_LEN.
74067         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74068         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74069         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74070         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74071
74072         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74073         prerequisite modules now handle the DOS stuff.
74074         Don't check for unistd.h.
74075
74076 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74077
74078         Merge from coreutils.
74079
74080         * lib/.gdb-history: Remove; this doesn't belong here.
74081
74082         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74083         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74084         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74085         * lib/getcwd.c: New files.
74086
74087         * lib/dirname.h: Include <stdbool.h>.
74088         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74089         for consistency with POSIX terminology.  All uses changed.
74090         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74091         (strip_trailing_slashes): Use bool for booleans.
74092         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74093
74094         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74095         sometimes returns a positive errno value even when it succeeds.
74096         (print_errno_message) [!LIBC]: Fall back on strerror if
74097         __strerror_r fails.
74098
74099         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74100         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74101         (longest_relative_suffix): New function.
74102         (path_concat): Use it.  Assume first argument is not NULL.
74103         Port to DOS.  Omit redundant separators.
74104         Report an error instead of returning NULL.
74105         Use mempcpy instead of memcpy.
74106         (xpath_concat): Remove: not declared or used.
74107
74108         * lib/same.h: Include <stdbool.h>
74109         (same_name): Return bool, not int.
74110         * lib/same.c (same_name): Likewise.
74111         (errno): Don't declare; we assume C89 or better now.
74112
74113         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74114         if not already defined.
74115
74116         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74117         * lib/dup-safer.c (errno): Likewise.
74118
74119 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74120
74121         Merge from coreutils.
74122         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74123         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74124         * modules/path-concat: Don't depend on strdup.
74125
74126 2004-08-03  Simon Josefsson  <jas@extundo.com>
74127
74128         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74129         * lib/progname.h: Don't include stdbool.h.
74130
74131 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74134         * MODULES.html.sh (func_all_modules): Remove fatal.
74135
74136 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74139
74140 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74141
74142         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74143         working.
74144
74145 2004-08-02  Simon Josefsson  <jas@extundo.com>
74146
74147         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74148         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74149         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74150
74151 2004-08-01  Simon Josefsson  <jas@extundo.com>
74152
74153         * lib/xgetdomainname.c: Include stdlib.h, for free().
74154
74155 2004-07-19  Bruno Haible  <bruno@clisp.org>
74156
74157         * MODULES.html.sh (func_all_modules): Add dummy.
74158
74159 2004-07-16  Simon Josefsson  <jas@extundo.com>
74160
74161         * modules/dummy: New file.
74162
74163 2004-07-16  Simon Josefsson  <jas@extundo.com>
74164
74165         * lib/dummy.c: New file.
74166
74167 2004-07-16  Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/backupfile.h: Add extern "C" for C++.
74170         * lib/closeout.h: Likewise.
74171         * lib/copy-file.h: Likewise.
74172         * lib/findprog.h: Likewise.
74173         * lib/full-write.h: Likewise.
74174         * lib/pathname.h: Likewise.
74175         * lib/progname.h: Likewise.
74176         * lib/stpcpy.h: Likewise.
74177         * lib/stpncpy.h: Likewise.
74178         * lib/strcase.h: Likewise.
74179         * lib/strstr.h: Likewise.
74180         * lib/xalloc.h: Likewise.
74181
74182         * lib/mbswidth.h: Add extern "C" for C++.
74183         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74184
74185 2004-07-13  Robert Millan  <robertmh@gnu.org>
74186
74187         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74188
74189 2004-07-09  Simon Josefsson  <jas@extundo.com>
74190
74191         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74192         failed without this.)
74193
74194 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74195
74196         * modules/chown (Files): Add lib/fchown-stub.c, since
74197         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74198
74199 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74200
74201         * lib/fchown-stub.c: New file.
74202
74203 2004-06-24  Jim Meyering  <jim@meyering.net>
74204
74205         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74206
74207 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         * modules/argz: Omit "#include".
74210
74211         * MODULES.html.sh (func_all_modules): Add calloc, to match
74212         2004-06-01 addition of calloc module.
74213
74214 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         * m4/argz.m4: New file, which is autoupdated from libtool.
74217
74218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74221         libtool.
74222
74223 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * config/srclist-update: Don't insist on "USA." before the
74226         close-comment, as libtool omits the period and puts the */ on a
74227         separate line.
74228         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74229         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74230
74231 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74232
74233         * modules/argz: New file.
74234         * MODULES.html.sh (func_all_modules): Add argz.
74235
74236 2004-06-12  Jim Meyering  <jim@meyering.net>
74237         and  Paul Eggert  <eggert@cs.ucla.edu>
74238
74239         * modules/hash (Files): Add lib/xalloc.h.
74240         * modules/pipe (Depends-on): Add wait-process.
74241         * modules/stat (Depends-on): Add xalloc.
74242         * modules/userspec (Files): Add lib/userspec.h.
74243         * modules/xstrto
74244
74245         Upgrade from gettext-0.13.
74246         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74247         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74248         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74249
74250 2004-06-10  Jim Meyering  <jim@meyering.net>
74251
74252         * lib/calloc.c: New file.
74253
74254 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         * lib/getdate.y (yylex): Allow space between sign and number.
74257         Problem reported by Dan Jacobson.
74258
74259 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         Merge from coreutils CVS.
74262
74263         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74264         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74265         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74266         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74267         xstrtol.m4: Fix copyright date and/or serial number.
74268
74269         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74270         See if we need an fchown replacement.
74271         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74272         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74273         and use the replacement function if we detect either defect.
74274
74275         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74276         gl_UTIMECMP.
74277
74278 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74279         and  Jim Meyering  <jim@meyering.net>
74280
74281         Merge from coreutils CVS.
74282
74283         * lib/stat-macros.h: New file, with contents from file-type.h
74284         and coreutils' system.h.
74285         * lib/file-type.c: Include "stat-macros.h".
74286         * lib/file-type.h (file_type): Move all macro definitions to new file,
74287         stat-macros.h.
74288
74289         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74290         Wrap old code with this conditional.
74291         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74292         function that does not dereference symlinks.
74293         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74294
74295         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74296         dependency problems.
74297         (xreadlink): Accept new arg SIZE, for efficiency.
74298         All decls and uses changed.
74299         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74300
74301         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74302         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74303
74304         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74305         sysexits.h.
74306
74307 2004-06-01  Jim Meyering  <jim@meyering.net>
74308
74309         * m4/calloc.m4: New file.
74310
74311 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74314         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74315         Also, fix a typo in a diagnostic.
74316
74317 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74320         or AC_FUNC_REALLOC.
74321
74322 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74325         macros to be defined.
74326         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74327         the allocator returns NULL because the requested size is zero.
74328
74329 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74330
74331         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74332         var.  Add comment explaining why libc still defines it.  This
74333         merges the following patch from glibc:
74334         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74335
74336 2004-05-20  Andreas Schwab  <schwab@suse.de>
74337
74338         * m4/free.m4: Replace free if it not known to work, not the other
74339         way round.
74340
74341 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74342
74343         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74344         present in glibc since revision 1.1 of this file.
74345         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74346         obstack_alignment_mask, obstack_alloc, obstack_base,
74347         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74348         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74349         obstack_grow0, obstack_init, obstack_int_grow,
74350         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74351         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74352         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74353         nonexistent functions.
74354
74355 2004-05-18  Karl Berry  <karl@gnu.org>
74356
74357         * config/srclist.txt: break link for vasnprintf.c.
74358
74359 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         Port obstack to the AS/400, where pointers are 16 bytes wide and
74362         you cannot cast an integer to a valid pointer.  This patch is
74363         currently waiting to be integrated into glibc; see
74364         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74365
74366         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74367         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74368         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74369         (struct obstack): temp member is now a union of a pointer and
74370         an integer, instead of an integer.  All integer uses changed.
74371         This does not affect the physical layout of struct obstack,
74372         except on hosts (like the AS/400) where the size or alignment of
74373         void * is greater than that of ptrdiff_t.
74374         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74375         __STDC__)]: Store temporary in pointer member of union, not
74376         integer member.
74377         * lib/obstack.c: Include <stddef.h>, for offsetof.
74378         (struct fooalign): Remove; it doesn't need a name.
74379         (union fooround): Change double to long double, and add void *.
74380         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74381         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74382         not a macro.  Hence the values are always int; so remove all
74383         casts-to-int in uses.
74384
74385 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74386
74387         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74388         we can get this patch merged into glibc.
74389
74390 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74391             Paul Eggert  <eggert@cs.ucla.edu>
74392
74393         * m4/argp: Depend on alloca.
74394
74395 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74396             Paul Eggert  <eggert@cs.ucla.edu>
74397
74398         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74399         freecoding.
74400
74401 2004-05-17  Bruno Haible  <bruno@clisp.org>
74402
74403         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74404         precision that consists of a '.' followed by an empty digit string.
74405         Patch by Tor Lillqvist <tml@iki.fi>.
74406
74407 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74408
74409         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74410         for backward compatibility with older code.  We need our own
74411         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74412         it under some other name, and our alloca.h will define it.
74413
74414 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74415             Derek Price  <derek@ximbiot.com>
74416
74417         * lib/alloca.c: Include <alloca.h>, to get our interface.
74418         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74419         include <alloca.h> first.  Use C89 prototype for alloca; this
74420         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74421         Use #elif for simplicity, since we can assume C89 now.
74422         Don't try to source the system alloca.h since it will not be found
74423         and to prevent recursively including its replacement.
74424         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74425         * lib/regex.c: Likewise.
74426
74427 2004-05-16  Derek Price  <derek@ximbiot.com>
74428             Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         getline cleanup.  This changes the getndelim2 API: both order of
74431         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74432         no delimiter).
74433
74434         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74435         interface does that.
74436         (getline): Always use getdelim, so that we don't have two
74437         copies of this code.
74438         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74439         if available.
74440         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74441         (GETNDELIM2_MAXIMUM): New macro.
74442         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74443         instead of the old practice of delim2==0.  All callers changed.
74444         Return -1 on overflow, instead of returning junk.
74445         Do not set *linesize unless allocation succeeds.
74446         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74447         that we include sys/types.h.
74448         * lib/getnline.h: Likewise.
74449         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74450         (getndelim2): Reorder arguments.
74451         * lib/getnline.c (getnline, getndelim):
74452         Don't discard the NMAX argument.
74453         (getnline): Invoke getndelim, to avoid code duplication.
74454         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74455         of (size_t) -1 by callers of the getnline family.
74456
74457 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74460         Check for gettimeofday.
74461         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74462         Check for settimeofday, stime.
74463
74464 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74465
74466         * lib/nanosleep.c (suspended): Change its type from int to
74467         sig_atomic_t volatile.
74468         (first_call): Make it private to rpl_nanosleep, and have it
74469         be zero initially as that's a bit faster.
74470         (my_usleep): Round up fractional times instead of truncating them,
74471         as this is the usual meaning for 'sleep'.
74472
74473         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74474         doesn't work.
74475         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74476         (ENOSYS): Define if not defined.
74477         (settime): Fall back on stime if it exists and settimeofday fails.
74478         But don't bother with fallbacks if a method fails with errno == EPERM.
74479
74480 2004-05-11  Jim Meyering  <jim@meyering.net>
74481
74482         Prior to this change, the save_cwd caller required read access to the
74483         current directory on most systems (ones with the fchdir function).
74484
74485         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74486         fails, try write-only, and finally, resort to using xgetcwd.
74487
74488 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74489
74490         * lib/obstack.c, obstack.h: Import changes from libc.
74491
74492 2004-04-28  Bruno Haible  <bruno@clisp.org>
74493
74494         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74495         also implicitly appends .exe to executables.
74496         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74497         accepts Windows pathnames.
74498         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74499         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74500         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74501         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74502         Reported by Derek Robert Price <derek@ximbiot.com>.
74503
74504 2004-04-21  Karl Berry  <karl@gnu.org>
74505
74506         * config/srclist.txt (localcharset.c): break sync.
74507
74508 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74509
74510         * m4/host-os.m4: Add a copyright notice.
74511
74512 2004-04-20  Jim Meyering  <jim@meyering.net>
74513
74514         Change UTILS_ to gl_ in AC_DEFINE'd names.
74515         Change utils_- and jm_-prefixed variables, too.
74516         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74517         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74519
74520         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74521         Don't emit trailing blanks.
74522         Also rename jm_-prefixed variables to have gl_ prefix.
74523
74524         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74525         Also rename jm_-prefixed variables to have gl_ prefix.
74526
74527         * m4/jm-macros.m4: Reflect the renamings.
74528         * m4/prereq.m4: Likewise.
74529
74530 2004-04-20  Jim Meyering  <jim@meyering.net>
74531
74532         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74533         memory.
74534
74535 2004-04-20  Jim Meyering  <jim@meyering.net>
74536             Bruno Haible  <bruno@clisp.org>
74537
74538         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74539         memory when realloc fails.
74540
74541 2004-04-19  Jim Meyering  <jim@meyering.net>
74542
74543         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74544         now that readutmp.c may call `free (0)'.
74545
74546 2004-04-19  Bruno Haible  <bruno@clisp.org>
74547
74548         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74549         * m4/inttypes_h.m4: Likewise.
74550         * m4/stdint_h.m4: Likewise.
74551         * m4/intmax_t.m4: Likewise.
74552         * m4/uintmax_t.m4: Likewise.
74553
74554 2004-04-18  Jim Meyering  <jim@meyering.net>
74555
74556         * m4/prereq.m4: Don't forbid jm_ prefix.
74557
74558         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74559         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74560         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74561         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74562         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74563         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74564         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74565         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74566         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74567         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74568         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74569         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74570         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74571         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74572         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74573         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74574         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74575         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74576         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74577
74578 2004-04-18  Jim Meyering  <jim@meyering.net>
74579
74580         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74581         failure, don't leak memory and do call END_UTMP_ENT.
74582
74583 2004-04-16  Jim Meyering  <jim@meyering.net>
74584
74585         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74586         coreutils' stat program.
74587         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74588
74589 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74590
74591         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74592         C89.
74593         (CHAR_BIT): Remove, since we assume C89.
74594         Include <stdint.h> if available, as per current Autoconf CVS advice.
74595
74596 2004-03-31  Jim Meyering  <jim@meyering.net>
74597
74598         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74599         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74600         * m4/xalloc.m4: Likewise.
74601
74602 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74603
74604         Merge from coreutils.
74605
74606         * m4/inttostr.m4: New file.
74607         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74608         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74609         Require gl_CLOCK_TIME.
74610         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74611
74612 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74613
74614         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74615         not bool, to be more consistent with Unix conventions.
74616         Suggested by Bruno Haible.
74617
74618         Merge from coreutils.
74619
74620         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74621         * lib/umaxtostr.c: New files.
74622
74623         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74624         the usual <time.h> dance.
74625         (get_date): Change signature to support fractional time stamps.
74626         All callers changed.
74627         * lib/getdate.y: Include "getdate.h" first, as we can now
74628         assume C89 and don't need to worry about 'const'.
74629         Similarly, include "unlocked-io.h" near start, not in middle.
74630         Include <limits.h>.
74631         (textint.value): Use long int rather than int.
74632         (textint.digits): Use size_t rather than int.
74633         (BILLION, LOG10_BILLION): New constants.
74634         (parser_control): New member rel_ns.  Members day_ordinal,
74635         time_zone, month, day, hour, minutes, rel_year, rel_month,
74636         rel_day, rel_hour, rel_minutes, rel_seconds
74637         are now long int, not int.  Member seconds is now struct timespec,
74638         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74639         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74640         not int.
74641         (%union.intval): Now long int, not int.
74642         New member timespec.
74643         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74644         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74645         (spec): Now is a timespec or an item list.
74646         (timespec, items): New nonterminals.
74647         (time, rel, relunit, number, get_date):
74648         Add support for fractional seconds.
74649         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74650         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74651         (to_hour): First arg is now long int, not int.
74652         (to_year): Returns long int, not int.
74653         Don't treat year -70 like 70.
74654         (tm_diff): Returns long int, not int.
74655         (lookup_word): Use bool instead of int when appropriate.
74656         (yylex): Use size_t for count, not int.
74657         Detect overflow when parsing large integer constants.
74658         Add support for fractions.
74659         (get_date): Make pointers 'const' if possible.
74660         Use more-portable code to detect integer overflow.
74661         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74662         Don't use ctime; it's not reliable if the year has >4 digits.
74663
74664         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74665         This is for compatibility with BSD.
74666
74667         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74668         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74669         From coreutils' system.h.
74670
74671         * lib/userspec.c: Don't include "posixver.h".
74672         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74673         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74674         compatible extension.  Simplify code by removing a boolean int
74675         that was always nonzero if a string was nonnull.
74676
74677 2004-03-30  Jim Meyering  <jim@meyering.net>
74678
74679         Merge from coreutils.
74680
74681         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74682         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74683         on some systems one must include <grp.h> before it.
74684         Reported by Christian Krackowizer.
74685
74686 2004-03-30  Jim Meyering  <jim@meyering.net>
74687
74688         Merge from coreutils.
74689
74690         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74691
74692         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74693         an empty input stream.
74694
74695         * lib/readtokens.c: Include <stdbool.h>.
74696         (readtoken): Use `size_t' rather than int/long.
74697         All callers adjusted.
74698         Use `bool' rather than `int' where appropriate.
74699         Use memset rather than an explicit loop.
74700         Use x2nrealloc rather than xrealloc.
74701         Allow the use of `\0' as a delimiter.
74702         (readtokens): Likewise.
74703         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74704
74705 2004-03-30  Jim Meyering  <jim@meyering.net>
74706
74707         * m4/realloc.m4: Remove file, since now it does no more than
74708         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74709         the `configure.ac' section of module/realloc.
74710         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74711
74712 2004-03-30  Bruno Haible  <bruno@clisp.org>
74713
74714         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74715         nonnull.
74716
74717 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74718
74719         Merge changes to getloadavg.c from coreutils and Emacs.
74720
74721         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74722         Define to an expression, not to the empty string.
74723         Include cloexec.h and xalloc.h.
74724         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74725         Use set_cloexec_flag rather than rolling our own.
74726         * lib/cloexec.c, lib/cloexec.h: New files.
74727
74728 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74729
74730         * m4/cloexec.m4: New file.
74731
74732 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74733
74734         * lib/getopt.h: Sync with libc CVS.
74735
74736 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74737             Bruno Haible  <bruno@clisp.org>
74738
74739         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74740         mbswidth.
74741
74742 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74743             Bruno Haible  <bruno@clisp.org>
74744
74745         * lib/mbswidth.h: Include <wchar.h> only if
74746         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74747         <wchar.h>.
74748         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74749
74750 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74751
74752         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74753         Sync with libc CVS.
74754         * lib/getopt_int.h: New file, also synced from libc.
74755
74756 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74757
74758         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74759         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74760         Bring back getopt.c, getopt.h, getopt1.c.
74761
74762 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74763
74764         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74765         All uses changed.  Check for sa_sigaction member; this fixes
74766         a bug first reported by Jason Andrade in
74767         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74768
74769 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74770
74771         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74772         '#if' expressions.  Unlike the code it replaces, it does not
74773         depend on (defined _SC_PAGESIZE).  However, it does depend on
74774         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74775         first reported by Jason Andrade in
74776         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74777
74778 2004-02-25  Simon Josefsson  <jas@extundo.com>
74779
74780         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74781
74782 2004-02-25  Simon Josefsson  <jas@extundo.com>
74783
74784         * lib/strdup.h: New file.
74785         * lib/strdup.c: Include it.
74786         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74787         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74788
74789 2004-02-23  Karl Berry  <karl@gnu.org>
74790
74791         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74792         (from fencepost.gnu.org:/gd/gnuorg).
74793
74794 2004-02-23  Karl Berry  <karl@gnu.org>
74795
74796         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74797         * config/srclist.txt: add maintain/standards documents.
74798
74799 2004-02-18  Bruno Haible  <bruno@clisp.org>
74800
74801         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74802         Reported by Derek Robert Price <derek@ximbiot.com>.
74803
74804 2004-02-16  Karl Berry  <karl@gnu.org>
74805
74806         * config/mkinstalldirs, install-sh: update from automake.
74807
74808 2004-02-06  Karl Berry  <karl@gnu.org>
74809
74810         * m4/po.m4: update from gettext 0.14.1.
74811
74812 2004-02-06  Karl Berry  <karl@gnu.org>
74813
74814         * lib/config.charset: update from gettext 0.14.1.
74815
74816 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74817
74818         Add comments and code, prompted by suggestions from Bruno Haible
74819         for sh-quote.
74820         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74821         describing the enum quoting_style values.
74822         * lib/quotearg.c (quotearg_alloc): New function.
74823         (quotearg_buffer_restyled): Treat lone { and } as special.
74824         Treat = as special.  Work around bug with older shells
74825         that "see" a '\' that is really the 2nd byte of a multibyte char.
74826         Quote empty string with shell_quoting_style.
74827
74828 2004-02-03  Bruno Haible  <bruno@clisp.org>
74829
74830         * m4/pipe.m4: New file, from GNU gettext.
74831
74832 2004-02-03  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/pipe.h: New file, from GNU gettext.
74835         * lib/pipe.c: New file, from GNU gettext.
74836
74837 2004-01-27  Bruno Haible  <bruno@clisp.org>
74838
74839         * m4/execute.m4: New file, from GNU gettext.
74840
74841 2004-01-27  Bruno Haible  <bruno@clisp.org>
74842
74843         * lib/execute.h: New file, from GNU gettext.
74844         * lib/execute.c: New file, from GNU gettext.
74845         * lib/w32spawn.h: New file, from GNU gettext.
74846
74847 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74848
74849         Merge from diffutils.
74850
74851         * lib/file-type.c (file_type): Add typed memory objects.
74852         * lib/file-type.h (S_TYPEISTMO): New macro.
74853
74854         * lib/c-stack.h (c_stack_action): Remove argv argument.
74855         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74856         (die): Don't calculate message unless segv_action returns.
74857         (get_stack_location, min_address_from_argv, max_address_from_argv,
74858         volatile stack_base, volatile_stack_size): Remove.
74859         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74860         that every segmentation violation is a stack overflow.  (Ouch!)
74861         See Debian bug 136249 (still outstanding) for more info about why
74862         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74863
74864 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74865
74866         Exit-status fix from coreutils.
74867
74868         Use exit_failure consistently in place of EXIT_FAILURE,
74869         so that program exit statuses are consistent on failure.
74870
74871         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74872         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74873         * lib/argmatch.h: Comment fix to match the above.
74874         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74875         Now a macro referring to exit_failure, instead of a separate
74876         variable.  Include "exitfail.h" to get it.
74877         * lib/xstrtol.h: Include "exitfail.h".
74878         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74879
74880         * lib/long-options.c (parse_long_options): Use prototype
74881         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74882         for clarity.
74883
74884 2004-01-21  Jim Meyering  <jim@meyering.net>
74885
74886         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74887         so as not to conflict with a different-sized __mktime_internal
74888         function in GNU libc.
74889         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74890         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74891
74892 2004-01-20  Karl Berry  <karl@gnu.org>
74893
74894         * config/config.guess: update from config.
74895
74896         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74897
74898 2004-01-20  Bruno Haible  <bruno@clisp.org>
74899
74900         Safer stack allocation.
74901         * lib/setenv.c: Include allocsa.h.
74902         (alloca): Remove fallback definition.
74903         (freea): Remove macro.
74904         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74905         instead of freea.
74906
74907 2004-01-20  Bruno Haible  <bruno@clisp.org>
74908
74909         * m4/eealloc.m4: New file, from GNU gettext.
74910
74911 2004-01-20  Bruno Haible  <bruno@clisp.org>
74912
74913         * m4/allocsa.m4: New file, from GNU gettext.
74914
74915 2004-01-20  Bruno Haible  <bruno@clisp.org>
74916
74917         * lib/xallocsa.h: New file, from GNU gettext.
74918         * lib/xallocsa.c: New file, from GNU gettext.
74919
74920 2004-01-20  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74923
74924 2004-01-20  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74927         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74928         specially.
74929
74930 2004-01-20  Bruno Haible  <bruno@clisp.org>
74931
74932         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74933         patch.
74934
74935 2004-01-20  Bruno Haible  <bruno@clisp.org>
74936
74937         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74938
74939 2004-01-20  Bruno Haible  <bruno@clisp.org>
74940
74941         * lib/eealloc.h: New file.
74942
74943 2004-01-20  Bruno Haible  <bruno@clisp.org>
74944
74945         * lib/binary-io.h: Avoid warnings on Cygwin.
74946
74947 2004-01-20  Bruno Haible  <bruno@clisp.org>
74948
74949         * lib/allocsa.h: New file, from GNU gettext.
74950         * lib/allocsa.c: New file, from GNU gettext.
74951
74952 2004-01-18  Karl Berry  <karl@gnu.org>
74953
74954         * doc/gpl.texi, doc/lgpl.texi: new files.
74955
74956 2004-01-18  Karl Berry  <karl@gnu.org>
74957
74958         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74959         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74960
74961 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74962
74963         Merge from coreutils.
74964
74965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74966         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74967         (gl_DEFAULT_POSIX2_VERSION): Move
74968         the documentation from 'configure' into 'config.hin',
74969         so that 'configure --help' isn't burdened by it and
74970         we don't have to worry about its formatting there.
74971         Reword the documentation so that it's more succinct
74972         and can be run together into a single paragraph.
74973         * m4/same.m4 (gl_SAME): Check for pathconf.
74974
74975 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74976
74977         Merge from coreutils.
74978
74979         * lib/posixver.c: Include posixver.h.
74980
74981         * lib/same.c: Include <stdbool.h>, <limits.h>.
74982         (_POSIX_NAME_MAX): Define if not defined.
74983         (MIN): New macro.
74984         (same_name): If file names are silently truncated, report
74985         that the file names are the same if they are the same after
74986         the silent truncation.
74987
74988         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74989         conversion function.
74990         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74991         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74992         longer needed.
74993
74994 2004-01-15  Jim Meyering  <jim@meyering.net>
74995
74996         Merge from coreutils.
74997
74998         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74999         if no library is required.
75000         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75001         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75002         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75003         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75004         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75005         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75006         value, $ac_cv_search_crypt, if it's "none required".
75007         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75008         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75009         not gl_FUNC_GETLOADAVG.
75010         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75011         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75012
75013 2004-01-15  Jim Meyering  <jim@meyering.net>
75014
75015         Merge from coreutils.
75016
75017         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75018         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75019         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75020
75021         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75022         optional configure-time default.
75023
75024         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75025
75026         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75027
75028 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75029
75030         Merge from coreutils.
75031
75032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75033         value, $ac_cv_search_nanosleep, if it's "none required".
75034
75035 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75036
75037         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75038         with like-named macro in fnmatch.c.
75039         (EXT): Use an internal constant instead.
75040
75041         Merge fnmatch patches from glibc.
75042         * lib/fnmatch.c (mbsinit): Remove define.
75043         Add libc_hidden_ver (__fnmatch, fnmatch).
75044         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75045         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75046
75047 2004-01-14  Karl Berry  <karl@gnu.org>
75048
75049         * config/install-sh: update from automake.
75050
75051 2004-01-13  Karl Berry  <karl@gnu.org>
75052
75053         * config/install-sh: update from automake.
75054
75055 2004-01-09  Karl Berry  <karl@gnu.org>
75056
75057         * config/install-sh: update from automake.
75058
75059 2004-01-05  Karl Berry  <karl@gnu.org>
75060
75061         * config/config.{sub,guess}: update from config.
75062
75063 2003-12-31  Karl Berry  <karl@gnu.org>
75064
75065         * config/depcomp: update from automake.
75066
75067 2003-12-14  Karl Berry  <karl@gnu.org>
75068
75069         * lib/config.charset: update from gettext-runtime.
75070
75071 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75072
75073         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75074         Bug reported by Alfred M. Szmidt.
75075
75076 2003-12-03  Bruno Haible  <bruno@clisp.org>
75077
75078         * m4/gettext.m4: Upgrade from gettext-0.13.
75079         * m4/po.m4: Upgrade from gettext-0.13.
75080         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75081         * m4/intmax.m4: New file, from gettext-0.13.
75082         * m4/printf-posix.m4: New file, from gettext-0.13.
75083
75084 2003-11-29  Karl Berry  <karl@gnu.org>
75085
75086         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75087
75088 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75089             Bruno Haible  <bruno@clisp.org>
75090
75091         * lib/printf-parse.h: Don't include sys/types.h.
75092         (ARG_NONE): New macro.
75093         (char_directive): Change type of *arg_index fields to size_t.
75094         * lib/printf-parse.c: Don't include sys/types.h.
75095         (SSIZE_MAX): Remove macro.
75096         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75097         Remove unnecessary overflow check.
75098         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75099         fields.
75100
75101 2003-11-25  Bruno Haible  <bruno@clisp.org>
75102
75103         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75104
75105 2003-11-25  Bruno Haible  <bruno@clisp.org>
75106
75107         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75108         gt_TYPE_SSIZE_T.
75109
75110 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75111
75112         * modules/alloca: Remove dependency on xalloc.
75113
75114 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75115
75116         * lib/alloca.c: Remove dependency on xalloc module.
75117         (xalloc_die): Remove.
75118         (memory_full) [!defined emacs]: New macro.
75119         [!defined emacs]: Don't include xalloc.h.
75120         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75121         address arithmetic overflows.  Change datatypes a bit to avoid
75122         unnecessary casts.
75123
75124 2003-11-22  Jim Meyering  <jim@meyering.net>
75125
75126         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75127         s/size/size_t/.
75128
75129 2003-11-21  Karl Berry  <karl@gnu.org>
75130
75131         * config/config.{sub,guess}: update from config.
75132
75133 2003-11-18  Karl Berry  <karl@gnu.org>
75134
75135         * config/config.{sub,guess}: update from config.
75136
75137         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75138
75139 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75140
75141         * README: Mention that S+T cannot overflow if S is the size of
75142         an existing object and T is sufficiently small.
75143
75144 2003-11-17  Jim Meyering  <jim@meyering.net>
75145
75146         On systems without utime and without a utimes function capable of
75147         dealing with a NULL struct utimbuf* argument, this utime replacement
75148         could -- in unusual circumstances -- leak a file descriptor.
75149         * lib/utime.c: Include <unistd.h> and <errno.h>.
75150         (utime_null): Be sure to close `fd' and to preserve errno.
75151         Reported by Geoff Collyer via Arnold Robbins.
75152
75153 2003-11-17  Bruno Haible  <bruno@clisp.org>
75154
75155         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75156         (Depends-on): Add xsize.
75157
75158 2003-11-17  Bruno Haible  <bruno@clisp.org>
75159
75160         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75161
75162 2003-11-17  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/vasnprintf.c (alloca): Remove fallback definition.
75165         (freea): Remove definition.
75166         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75167         Reported by Paul Eggert.
75168
75169 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75170             Bruno Haible  <bruno@clisp.org>
75171
75172         Protect against address arithmetic overflow.
75173         * lib/printf-args.h: Include stddef.h.
75174         (arguments): Change type of field 'count' to size_t.
75175         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75176         'unsigned int' where appropriate.
75177         * lib/printf-parse.h: Include sys/types.h.
75178         (char_directive): Change type of *arg_index fields to ssize_t.
75179         (char_directives): Change type of fields 'count', max_*_length to
75180         size_t.
75181         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75182         (SSIZE_MAX): Define fallback value.
75183         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75184         instead of 'int' where appropriate. Check a_allocated, d_allocated
75185         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75186         * lib/vasnprintf.c: Include xsize.h.
75187         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75188         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75189         overflow. Avoid wraparound when converting a width or precision from
75190         decimal to binary.
75191
75192 2003-11-16  Bruno Haible  <bruno@clisp.org>
75193
75194         Update from GNU gettext.
75195         * lib/printf-parse.c: Generalize to it can be compiled for wide
75196         strings.
75197         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75198         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75199         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75200         SNPRINTF): New macros.
75201         Don't include <alloca.h> if the file is used inside libintl.
75202         (local_wcslen): New function, for Solaris 2.5.1.
75203         (VASNPRINTF): Use it instead of wcslen.
75204
75205 2003-11-16  Bruno Haible  <bruno@clisp.org>
75206
75207         * lib/xsize.h (xmax): New function.
75208         (xsum, xsum3, xsum4): Declare as "pure" functions.
75209
75210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75211
75212         * modules/xalloc (Files): Undo latest change, since xalloc.h
75213         no longer needs SIZE_MAX or PTRDIFF_MAX.
75214
75215 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75216
75217         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75218         gl_PTRDIFF_MAX.
75219
75220 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75221
75222         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75223         "return", to pacify some unknown compiler.  Problem reported
75224         by Joerg Schilling.
75225
75226 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75227
75228         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75229         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75230         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75231         heuristic is just as accurate as far as we know, and it removes a
75232         dependency on size_max.m4 and ptrdiff_max.m4.
75233
75234 2003-11-11  Bruno Haible  <bruno@clisp.org>
75235
75236         * modules/xsize (Files): Add m4/size_max.m4.
75237         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75238
75239 2003-11-11  Bruno Haible  <bruno@clisp.org>
75240
75241         * m4/size_max.m4: New file.
75242         * m4/ptrdiff_max.m4: New file.
75243         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75244         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75245         (gl_XALLOC): Invoke it.
75246
75247 2003-11-11  Bruno Haible  <bruno@clisp.org>
75248
75249         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75250         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75251         defined.
75252
75253 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75254
75255         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75256         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75257         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75258         From Bruno Haible.
75259         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75260         not (size_t) -1, since it's defined here.
75261
75262 2003-11-09  Karl Berry  <karl@gnu.org>
75263
75264         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75265
75266 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75267
75268         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75269         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75270         Reject sizes of exactly SIZE_MAX bytes.
75271         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75272         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75273
75274 2003-11-05  Bruno Haible  <bruno@clisp.org>
75275
75276         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75277         SIZE_MAX defined in <limits.h> on Solaris.
75278
75279 2003-11-04  Jim Meyering  <jim@meyering.net>
75280
75281         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75282         variable names, rather than @VAR@.
75283         * modules/poll: Likewise.
75284
75285 2003-11-04  Bruno Haible  <bruno@clisp.org>
75286
75287         * modules/xsize: New file.
75288         * modules/linebreak: Depend on xsize.
75289         * MODULES.html.sh (func_all_modules): Add xsize.
75290
75291 2003-11-04  Bruno Haible  <bruno@clisp.org>
75292
75293         * m4/xsize.m4: New file.
75294
75295 2003-11-04  Bruno Haible  <bruno@clisp.org>
75296
75297         * lib/xsize.h: New file.
75298         * lib/linebreak.c: Include xsize.h.
75299         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75300         argument for overflow.
75301         Suggested by Paul Eggert.
75302
75303 2003-11-03  Karl Berry  <karl@gnu.org>
75304
75305         * config/config.{guess,sub}: update from config.
75306
75307 2003-11-03  Jim Meyering  <jim@meyering.net>
75308
75309         * modules/userspec (lib_SOURCES): Add userspec.h.
75310         (Include): Add "userspec.h".
75311         Improve description.
75312
75313 2003-11-03  Jim Meyering  <jim@meyering.net>
75314
75315         * lib/userspec.c: Include "userspec.h".
75316         * lib/userspec.h: New file.
75317
75318 2003-11-03  Bruno Haible  <bruno@clisp.org>
75319
75320         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75321
75322 2003-11-03  Bruno Haible  <bruno@clisp.org>
75323
75324         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75325         available, to avoid (extremely rare) race condition.
75326         Suggested by Paul Eggert.
75327
75328 2003-11-02  Karl Berry  <karl@gnu.org>
75329
75330         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75331
75332 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75333
75334         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75335         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75336         (read_filesystem_list): Set and use me_type_malloced.
75337         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75338         whatever the type happens to be), for brevity and consistency.
75339         Check for size calculation overflow on Alphas running OSF/1.
75340
75341 2003-10-31  Jim Meyering  <jim@meyering.net>
75342
75343         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75344
75345         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75346
75347 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75348             Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75351         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75352
75353 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75356         netbsd*-gnu*.  Suggested by Robert Millan.
75357
75358 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75359
75360         * modules/group-member: Depend on stdbool.
75361
75362 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75363
75364         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75365
75366 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75367
75368         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75369         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75370         after the 'gnu' in these cases.  This fixes some bugs in the
75371         previous change, and is based on suggestions by Robert Millan.
75372
75373 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75374
75375         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75376         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75377         no longer needed.
75378         * lib/quotearg.c (quotearg_n_options): Use it.
75379         * lib/group-member.c: Include <stdbool.h>.
75380         (free_group_info): Arg is now const *; don't free arg.
75381         (get_group_info): Now returns bool and accepts struct group_info *,
75382         rather than returning a malloc'ed struct group_info *.
75383         All uses changed.  Check for overflow in internal size calculation.
75384
75385         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75386         rather than xmalloc/xrealloc.
75387         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75388         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75389         conformance bug: the old code used a pointer after freeing the
75390         storage that it addressed.
75391         * lib/hash.c (hash_initialize): Simplify the code by using
75392         xalloc_oversized rather than doing it by hand.
75393         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75394         the buffer preserved.  Use free and xmalloc instead.
75395         * lib/quotearg.c (quotearg_n_options): Likewise.
75396         Use a simpler test for size overflow.  Don't use xalloc_oversized
75397         because unsigned int might be wider than size_t (!); this suggests
75398         that we should switch from unsigned int to size_t for slot numbers.
75399
75400 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75401
75402         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75403         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75404         NetBSD kernels.  Requested by Richard Stallman.
75405
75406 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75407
75408         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75409         to allocate the returned structure.  Do not allocate a subarray,
75410         as x2nrealloc will do that.
75411         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75412         instead of xnrealloc.
75413         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75414
75415 2003-10-27  Bruno Haible  <bruno@clisp.org>
75416
75417         * lib/stdbool_.h: Better support for BeOS.
75418
75419 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75420
75421         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75422         now uses inline.
75423
75424 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75425
75426         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75427         callers that want to do their own size-overflow checking.  Include
75428         <stdbool.h>, since xalloc_oversized returns bool.
75429         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75430         to use xalloc_oversized.
75431
75432         Add two functions x2realloc, x2nrealloc, for programs that grow
75433         arrays dynamically by doubling their sizes.
75434         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75435         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75436         New functions.
75437
75438         Port to C99 semantics for 'inline' of external functions.
75439         Bug reported by Bruno Haible.
75440         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75441         with the old contents of xnmalloc.
75442         (xnmalloc, xmalloc): Use it.
75443         (xnrealloc_inline): New static inline function,
75444         with the old contents of xnrealloc.
75445         (xnrealloc, xrealloc): Use it.
75446
75447         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75448         that.
75449
75450 2003-10-26  Karl Berry  <karl@gnu.org>
75451
75452         * config/srclist.txt (COPYING.DOC): no longer available from
75453         /gd/gnuorg; don't know where the ultimate source is.
75454
75455 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75456
75457         Fix several address-calculation bugs in the hash modules,
75458         plus some minor code cleanup.
75459
75460         * lib/hash.h: Include <stdbool.h>, for bool.
75461         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75462         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75463         hash_get_n_entries, hash_get_max_bucket_length,
75464         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75465         hash_rehash): Use size_t rather than unsigned.
75466         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75467         hash_get_n_buckets_used, hash_get_n_entries,
75468         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75469         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75470         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75471         Likewise.
75472         (SIZE_MAX): Define if not defined.
75473         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75474         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75475         hash_print):
75476         Use const * when possible.
75477         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75478         (check_tuning): Fix bug: if tuning parameters were very close to
75479         0 or 1, rounding errors could have caused subscript violations.
75480         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75481         (hash_initialize): Add 'fail:' label
75482         to free table and return NULL, and use it to simplify code.
75483         Use calloc rather than clearing the storage ourself.
75484         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75485         buffer size calculations.
75486         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75487         Include <stddef.h>, for size_t.
75488         * lib/hash-pjw.c (hash_pjw): Likewise.
75489         Switch to method described by Bruno Haible.
75490         Include <limits.h>, for CHAR_BIT.
75491         (SIZE_BITS): New macro.
75492
75493 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75494
75495         * m4/getline.m4 (AM_FUNC_GETLINE):
75496         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75497         hosts.  Problem reported by Derek Robert Price in
75498         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75499         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75500         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75501
75502 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75503
75504         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75505         ceiling the allocation at NMAX bytes rather than silently
75506         discarding input bytes before NMAX is reached.  This makes
75507         a difference only if NMAX exceeds SIZE_MAX / 2.
75508
75509         * lib/obstack.c: Merge from glibc.
75510         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75511         Add libc_hidden_def (_obstack_newchunk).
75512         (_obstack_free) [! defined _LIBC]: Remove.
75513         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75514         a clone of the function body.
75515         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75516         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75517
75518         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75519         glibc.
75520         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75521         arg to memcpy.
75522
75523         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75524         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75525         Don't use lvalue casts, as GCC plans to remove support for them
75526         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75527         was also present in the non-GCC version, indicating that this
75528         code had always been buggy and had never been widely used.
75529         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75530         Use the fast variant of each macro, rather than copying the
75531         definiens of the fast variant; that way, we'll be more likely to
75532         catch future bugs in the fast variants.
75533
75534 2003-10-20  Bruno Haible  <bruno@clisp.org>
75535
75536         * modules/wait-process: New file.
75537         * MODULES.html.sh (func_all_modules): Add wait-process.
75538
75539 2003-10-20  Bruno Haible  <bruno@clisp.org>
75540
75541         * m4/wait-process.m4: New file.
75542
75543 2003-10-20  Bruno Haible  <bruno@clisp.org>
75544
75545         * lib/wait-process.h: New file, from GNU gettext.
75546         * lib/wait-process.c: New file, from GNU gettext.
75547
75548 2003-10-19  Jim Meyering  <jim@meyering.net>
75549
75550         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75551         HPUX 10.20.
75552
75553 2003-10-18  Karl Berry  <karl@gnu.org>
75554
75555         * config/config.guess: update from config.
75556
75557 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75558
75559         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75560         (getgroups): First arg is int, not size_t.
75561         Don't let 'free' mangle errno.
75562
75563 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75564
75565         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75566
75567 2003-10-16  Karl Berry  <karl@gnu.org>
75568
75569         * config/config.{guess,sub}: update from config.
75570
75571 2003-10-16  Jim Meyering  <jim@meyering.net>
75572
75573         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75574         memcpy.
75575
75576 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75577
75578         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75579         (SIZE_MAX): Remove.
75580         (new_exclude, add_exclude_file): Initial size no longer needs to
75581         be a power of 2.
75582         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75583         our own address arithmetic overflow checking.
75584
75585         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75586         (fnmatch): Do not alloca more than 2000 wide characters;
75587         instead, use malloc for large buffers.
75588         Check for address arithmetic overflow, and return -1
75589         with errno set to ENOMEM in that case.
75590         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75591         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75592         instead, return -1.  Check for address arithmetic overflow.
75593
75594 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75595
75596         Handle invalid suffixes and overflow independently, so that
75597         callers can treat them independently as needed.  Fix some bugs in
75598         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75599         suffix for a human-readable blocksize.  The major caller-visible
75600         change is the addition of a new
75601         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75602         that both overflow and suffix chars were found.
75603
75604         * lib/human.c (humblock): Don't check separately for invalid suffix
75605         char; that is xstrtoumax's job (now that its bug is fixed).
75606         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75607         INTMAX_MAX]: New macros.
75608         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75609         TYPE_MAXIMUM): New macros.
75610         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75611         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75612         if overflow occurs, as it's what __strtol does and it's more useful
75613         in practice.
75614         (__xstrtol): If __strtol reports some error other than ERANGE,
75615         reflect it to the caller as LONGINT_INVALID.  If it reports
75616         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75617         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75618         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75619         value.
75620         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75621         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75622         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75623         [defined UINTMAX_MAX]: New macros.
75624
75625 2003-10-14  Bruno Haible  <bruno@clisp.org>
75626
75627         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75628
75629 2003-10-14  Bruno Haible  <bruno@clisp.org>
75630
75631         * m4/sig_atomic_t: New file, from GNU gettext.
75632         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75633
75634 2003-10-14  Bruno Haible  <bruno@clisp.org>
75635
75636         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75637         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75638         Also use volatile where needed.
75639
75640 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75641
75642         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75643         Change maintainer from Bruno Haible to 'all'.
75644
75645 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75646
75647         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75648
75649 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75650
75651         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75652         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75653         and define in terms of the other primitives.
75654         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75655         (SIZE_MAX): Define if not already defined.
75656         (array_size_overflow): New function.
75657         (xalloc_die): Abort instead of exiting if 'error' returns.
75658         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75659         (xmalloc, xrealloc): Use them.
75660         (xcalloc): Check for address arithmetic overflow.
75661         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75662         a bit faster than strcpy.
75663
75664 2003-10-10  Simon Josefsson  <jas@extundo.com>
75665
75666         * modules/argp (Depends-on): Add restrict and strcase.
75667
75668 2003-10-10  Simon Josefsson  <jas@extundo.com>
75669
75670         * m4/argp.m4: Add AC_C_INLINE.
75671
75672 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75673
75674         Merge getpass from libc, plus a few fixes.
75675
75676         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75677         Include <stdbool.h>.
75678         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75679         __fsetlocking to empty.
75680         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75681         do include <bits/libc-lock.h>.
75682         Do not include <fcntl.h>; not needed.
75683         [_LIBC]: Include <wchar.h>.
75684         (NOTCANCEL_MODE): New macro.
75685         (flockfile, funlockfile) [_LIBC]: New macros.
75686         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75687         [!_LIBC]: New macros.
75688         (call_fclose): New function.
75689         (getpass): Use it.  Save tty stream separately; this simplifies the
75690         code and makes it more reliable if stdin happens to equal stdout.
75691         Invoke __fsetlocking on tty.
75692         Handle thread cancellation if needed.
75693         Namespace cleanup (use __tcgetattr, __getline).
75694         Use bool for Booleans.
75695         [USE_IN_LIBIO]: Handle wide streams.
75696         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75697         stream might go where.
75698
75699         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75700         doesn't have to include <stdio.h> before us.
75701         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75702         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75703         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75704         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75705         if not declared, so that we can use getpass.c code from libc without
75706         rewriting it.
75707         (flockfile, ftrylockfile, funlockfile): New macros.
75708
75709 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75710
75711         * modules/getpass: Depend on stdbool.
75712
75713 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75714
75715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75716
75717 2003-10-07  Karl Berry  <karl@gnu.org>
75718
75719         * config/config.{guess,sub}: update from config.
75720
75721 2003-10-06  Jim Meyering  <jim@meyering.net>
75722             Bruno Haible  <bruno@clisp.org>
75723
75724         This lets translators provide better translations for the
75725         "Written by ..." part of --version output.
75726         * lib/version-etc.h: Include stdarg.h.
75727         (version_etc_copyright): Declare as readonly.
75728         (version_etc): Make this function variadic with a NULL-terminated list
75729         of author name strings.
75730         (version_etc_va): New declaration.
75731         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75732         (version_etc_copyright): Declare as readonly.
75733         (version_etc_va): New function. Provide a different translatable string
75734         for each possible number of authors < 10. Abbreviate when there are 10
75735         authors or more.
75736         (version_etc): Make this function variadic. Call version_etc_va.
75737         Suggestion from Gary V. Vaughan.
75738
75739         * lib/long-options.h (parse_long_options): Change prototype: the
75740         authors string is moved to the end and becomes variadic.
75741         * lib/long-options.c: Include stdarg.h.
75742         (parse_long_options): Make this function variadic, too.
75743         Call version_etc_va, not version_etc.
75744
75745 2003-10-06  Bruno Haible  <bruno@clisp.org>
75746
75747         * modules/version-etc-2: Remove file.
75748         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75749
75750 2003-10-06  Bruno Haible  <bruno@clisp.org>
75751
75752         * modules/fatal-signal: New file.
75753         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75754
75755 2003-10-06  Bruno Haible  <bruno@clisp.org>
75756
75757         * m4/fatal-signal.m4: New file.
75758         * m4/signalblocking.m4: New file, from GNU gettext.
75759
75760 2003-10-06  Bruno Haible  <bruno@clisp.org>
75761
75762         * lib/version-etc-2.h: Remove file.
75763         * lib/version-etc-2.c: Remove file.
75764
75765 2003-10-06  Bruno Haible  <bruno@clisp.org>
75766
75767         * lib/fatal-signal.h: New file, from GNU gettext.
75768         * lib/fatal-signal.c: New file, from GNU gettext.
75769
75770 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75771
75772         * README: Rework advice for preventing empty .o files.
75773         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75774         not <sys/types.h>.
75775
75776 2003-10-04  Karl Berry  <karl@gnu.org>
75777
75778         * lib/argp*: update from libc.
75779
75780 2003-10-04  Karl Berry  <karl@gnu.org>
75781
75782         * config/config.{guess,sub}: update from config.
75783
75784 2003-10-02  Bruno Haible  <bruno@clisp.org>
75785
75786         * modules/lchown (Include): Add lchown.h.
75787         * modules/time_r (Include): Use "..." syntax.
75788         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75789
75790 2003-10-01  Simon Josefsson  <jas@extundo.com>
75791
75792         * MODULES.html.sh (func_all_modules): Move gethostname from section
75793         'based on' to section 'lacking' POSIX:2001.
75794
75795 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75796
75797         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75798         to output mode on the same stream.
75799
75800 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75801
75802         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75803         Fix arg typo in previous patch.
75804
75805 2003-09-28  Jim Meyering  <jim@meyering.net>
75806
75807         * lib/error.c: Correct cpp indentation.
75808
75809 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75810
75811         * modules/free: New file.
75812
75813 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75814
75815         * m4/free.m4: New file.
75816
75817 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75818
75819         * lib/minmax.h (MIN, MAX)
75820         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75821         Omit the special code that used __typeof__, since we worry that
75822         it could be more trouble than it's worth.  See:
75823         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75824         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75825
75826         * lib/free.c: New file.
75827
75828 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75829
75830         Trivial fixes to Makefile.am parts of module listings.
75831         * modules/strstr: Append strstr.h to lib_SOURCES.
75832         * modules/strcase: Likewise, for strcase.h.
75833
75834 2003-09-27  Karl Berry  <karl@gnu.org>
75835
75836         * config/mkinstalldirs: update from automake.
75837
75838 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75839
75840         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75841         (error_tail): Do not loop, reallocating temporary buffer, since
75842         the output cannot contain more wide characters than the input
75843         contains bytes, the size must be big enough already.  This avoids
75844         one potential size overflow calculation.  Check for size overflow
75845         when calculating temporary buffer size.  Free temporary buffer
75846         when done, if it was allocated with malloc; this plugs a memory
75847         leak.  Remove casts from void * to pointers, that are no longer
75848         needed now that we're assuming C89 or better.
75849
75850         Merge error changes from glibc.
75851
75852         * lib/error.c, error.h: Update copyright notice header to match glibc.
75853         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75854         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75855         Disable cancellation while printing error.
75856         * lib/error.h: Prepend __ to parameter names.
75857
75858 2003-09-26  Jim Meyering  <jim@meyering.net>
75859
75860         * lib/error.c (error_tail): Move some declarations
75861         into inner scope where the local variables are used.
75862
75863 2003-09-26  Bruno Haible  <bruno@clisp.org>
75864
75865         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75866         stpncpy().
75867         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75868
75869 2003-09-26  Bruno Haible  <bruno@clisp.org>
75870
75871         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75872         (stpncpy): Define as alias for gnu_stpncpy.
75873         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75874
75875 2003-09-25  Simon Josefsson  <jas@extundo.com>
75876
75877         * lib/xgetdomainname.h: New file.
75878         * lib/xgetdomainname.c: New file.
75879
75880 2003-09-25  Simon Josefsson  <jas@extundo.com>
75881             Bruno Haible  <bruno@clisp.org>
75882
75883         * modules/getdomainname: New file.
75884         * modules/xgetdomainname: New file.
75885         * MODULES.html.sh (func_all_modules): Add getdomainname,
75886         xgetdomainname.
75887
75888 2003-09-25  Simon Josefsson  <jas@extundo.com>
75889             Bruno Haible  <bruno@clisp.org>
75890
75891         * m4/getdomainname.m4: New file.
75892
75893 2003-09-25  Simon Josefsson  <jas@extundo.com>
75894             Bruno Haible  <bruno@clisp.org>
75895
75896         * lib/getdomainname.h: New file.
75897         * lib/getdomainname.c: New file.
75898
75899 2003-09-25  Karl Berry  <karl@gnu.org>
75900
75901         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75902
75903 2003-09-25  Karl Berry  <karl@gnu.org>
75904
75905         * config/install-sh: update from automake.
75906
75907 2003-09-25  Bruno Haible  <bruno@clisp.org>
75908
75909         * modules/version-etc-2: New file, from modules/version-etc with
75910         modifications.
75911         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75912
75913 2003-09-25  Bruno Haible  <bruno@clisp.org>
75914
75915         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75916         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75917
75918 2003-09-24  Simon Josefsson  <jas@extundo.com>
75919
75920         * modules/xgethostname: Add xgethostname.h.
75921
75922 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75923
75924         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75925         the buffer associated with the argument.  Bug reported by
75926         Simon Josefsson.
75927
75928 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75929
75930         * README: Document assumptions that 'int' is at least 32 bits
75931         wide, that integer arithmetic is 2's complement without overflow,
75932         that there are no holes in integer values, that adding sizes of
75933         two nonoverlapping objects can't overflow, and that all-bits-zero
75934         yields scalar zero.  Fix spelling and capitalization typos.
75935
75936 2003-09-19  Karl Berry  <karl@gnu.org>
75937
75938         * lib/argp.h: update from libc.
75939
75940 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75941
75942         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75943         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75944         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75945
75946 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75947
75948         * gnulib-tool: Use "test -h", not "test -L", for portability
75949         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75950         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75951         (sed_extract_prog): Issue s commands one-by-one, rather than
75952         using \| in one s command.
75953
75954 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75955
75956         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75957         input error, instead of returning NULL the next time we are called
75958         (and therefore losing track of errno).
75959
75960 2003-09-16  Bruno Haible  <bruno@clisp.org>
75961
75962         * gnulib-tool (func_create_testdir): Warn about duplicated
75963         dependencies.
75964
75965 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75966
75967         * modules/argmatch, modules/fatal, modules/obstack,
75968         modules/xalloc, modules/xgethostname: Sort dependencies by
75969         importance, not alphabetically.
75970
75971 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75972
75973         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75974         fails, so that the caller gets the proper errno.
75975
75976         * lib/readutmp.c (read_utmp): Likewise.
75977         Check for fstat error.  Close stream and free storage
75978         when failing.
75979
75980 2003-09-14  Karl Berry  <karl@gnu.org>
75981
75982         * config/srclist.txt (strdup.c): disable for c89 changes.
75983
75984 2003-09-14  Jim Meyering  <jim@meyering.net>
75985
75986         * lib/getloadavg.c: Correct cpp indentation.
75987         * lib/strdup.c: Likewise.
75988         * lib/vasnprintf.c: Likewise.
75989
75990 2003-09-14  Bruno Haible  <bruno@clisp.org>
75991
75992         * modules/fwriteerror: New file.
75993         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75994
75995 2003-09-14  Bruno Haible  <bruno@clisp.org>
75996
75997         * lib/fwriteerror.h: New file.
75998         * lib/fwriteerror.c: New file.
75999
76000 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76001
76002         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76003         modules/xgethostname, modules/xalloc: Depend on exit.
76004
76005 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76006
76007         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76008
76009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76010         and AC_MINIX, too, so that their extensions are available.
76011
76012         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76013         This macro has been superseded by gl_BACKUPFILE.
76014
76015         More patches to assume C89 or better.
76016
76017         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76018
76019         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76020         unconditionally.
76021         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76022         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76023         Include <string.h>, <stdlib.h> unconditionally.
76024         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76025         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76026         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76027         headers or for string.h.
76028         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76029         or strtoul.
76030
76031         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76032         headers.
76033         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76034         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76035         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76036         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76037         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76038         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76039         memcpy, memset.
76040         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76041         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76042         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76043         strtol.
76044         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76045         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76046         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76047         strtoul.
76048
76049 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76050
76051         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76052         * lib/obstack.c [!defined _LIBC]: Likewise.
76053         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76054         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76055         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76056
76057         More changes to assume C89 or better.
76058
76059         * lib/error.c (error_tail): Assume vprintf.
76060
76061         * lib/argmatch.c (getenv): Remove decl.
76062         * lib/progreloc.c (get_full_program_name): Define via prototype.
76063         * lib/setenv.c (clearenv): Likewise.
76064         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76065         needed.
76066         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76067         (malloc, memcpy): Remove decls.
76068         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76069         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76070         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76071         (memcpy): Remove macro.
76072         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76073         (__P): Remove.  All uses removed.
76074         (PTR): Remove.  All uses changed to void *.
76075         (CHAR_BIT, NULL): Remove.
76076         (spaces, zeros, memset_space, memset_zero)
76077         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76078         Remove.
76079         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76080         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76081         Define with prototype.
76082         Remove now-unnecessary prototype decl.
76083         (extra_args_spec): Assume ANSI C.  All uses changed.
76084         (extra_args_spec_iso): Remove.
76085         (my_strftime, emacs_strftimeu): Define via prototype.
76086         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76087         unconditionally.
76088         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76089         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76090         (strtoul, strtol): Remove decls.
76091         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76092         LONG_MAX): Remove.
76093         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76094         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76095         (LOCALE_PARAM_PROTO): New macro.
76096         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76097         (INTERNAL (strtol), strtol): Define with a prototype.
76098         (PARAMS): Remove.  All uses removed.
76099         * lib/tempname.c: Include <string.h> unconditionally.
76100         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76101         * lib/xgethostname.c (main): Define with a prototype.
76102         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76103         Include <stdlib.h> unconditionally.
76104         (calloc, malloc, realloc, free): Remove decls.
76105         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76106         Include <stdlib.h> unconditionally.  Sort include file names.
76107         (strtod): Remove.
76108         (xstrtod): Define with a prototype.
76109         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76110         (strtol, strtoul): Remove decls.
76111
76112 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76113
76114         More patches to assume C89 or better.
76115         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76116         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76117         string.h, memchr, STDC_HEADERS.
76118
76119 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76120
76121         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76122         Include <stdlib.h>, <string.h> unconditionally.
76123         Remove now-unnecessary cast to char *.
76124         * lib/strnlen.c: Include <string.h> unconditionally.
76125         * lib/yesno.c (yesno): Define with a prototype.
76126
76127 2003-09-11  Bruno Haible  <bruno@clisp.org>
76128
76129         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76130
76131 2003-09-10  Jim Meyering  <jim@meyering.net>
76132
76133         * lib/error.c: Correct indentation of cpp directives.
76134
76135 2003-09-10  Bruno Haible  <bruno@clisp.org>
76136
76137         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76138         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76139         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76140         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76141         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76142         <stdlib.h> and <string.h> checks.
76143         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76144         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76145
76146 2003-09-10  Bruno Haible  <bruno@clisp.org>
76147
76148         * lib/strcspn.c: Include <string.h> unconditionally.
76149         * lib/strpbrk.c: Include <string.h> unconditionally.
76150         * lib/strstr.c: Include <string.h> unconditionally.
76151         * lib/unicodeio.c: Include <string.h> unconditionally.
76152         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76153         * lib/unsetenv.c: Likewise.
76154         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76155         * lib/yesno.c: Include <stdlib.h> unconditionally.
76156         (rpmatch): Add prototype.
76157
76158 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76159
76160         More patches to assume C89 or better.
76161         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76162         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76163         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76164         or for string.h.
76165         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76166         stdlib.h.
76167         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76168         C headers.
76169         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76170         string.h.
76171         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76172         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76173         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76174         or for string.h.
76175         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76176         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76177         C headers.
76178         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76179         memcpy.
76180         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76181         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76182         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76183         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76184         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76185         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76186         string.h, free.
76187         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76188         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76189         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76190         C headers, or for string.h.
76191         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76192         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76193         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76194         headers, memory.h, stdlib.h, string.h, strings.h.
76195         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76196         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76197         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76198         strchr.
76199         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76200         headers, memory.h, string.h.
76201         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76202         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76203         free.
76204         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76205         headers.
76206         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76207         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76208         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76209         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76210         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76211
76212 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76213
76214         More K&R removal.
76215
76216         * lib/acosl.c (main): Use a prototype.
76217         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76218         tanl.c: Likewise.
76219
76220         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76221
76222         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76223         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76224         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76225         with a prototype.
76226         * lib/getopt.c (const): Remove macro.
76227         Include <string.h> unconditionally.
76228         (my_index): Remove; all uses changed to strchr.
76229         (strlen): Remove decl.
76230         (exchange): Remove forward decl; no longer needed.
76231         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76232         Define with prototype.
76233         * lib/getopt1.c (const): Remove macro.
76234         (getopt_long, getopt_long_only, main): Define with prototype.
76235
76236         * lib/getugroups.c: Include <string.h> unconditionally.
76237
76238         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76239         (getusershell, setusershell, endusershell, readname, main):
76240         Define with prototypes.
76241
76242         * lib/group-member.c: Include group-member.h first.
76243         Include <stdlib.h> unconditionally.
76244
76245         * lib/hard-locale.c: Include hard-locale.h first.
76246         Include <stdlib.h>, <string.h> unconditionally.
76247
76248         * lib/hash.c (free, malloc): Remove decls.
76249         Include <stdlib.h> unconditionally.
76250
76251         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76252         (getenv): Do not declare.
76253
76254         * lib/idcache.c: Include <string.h> unconditionally.
76255
76256         * lib/long-options.c: Include long-options.h first, to test interface.
76257         Include <stdlib.h> unconditionally.
76258
76259         * lib/makepath.c: Include makepath.h first, to test interface.
76260         Include <stdlib.h> and <string.h> unconditionally.
76261
76262         * lib/linebuffer.c: Include <stdlib.h>.
76263         (free): Remove decl.
76264
76265         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76266         stddef.h. rpl_malloc returns void *, not char *.
76267         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76268         prototype.
76269
76270         * lib/md5.h: Include <limits.h> unconditionally.
76271         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76272         (__P): Remove; all uses removed.
76273         * lib/md5.c: Include "md5.h" first.
76274         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76275         md5_buffer, md5_process_bytes, md5_process_block):
76276         Define with prototypes.
76277         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76278         * lib/sha.c: Include "sha.h" first.
76279         Include <stdlib.h>, <string.h> unconditionally.
76280
76281         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76282         * lib/memcmp.c (__ptr_t): Likewise.
76283         * lib/memrchr.c (__ptr_t): Likewise.
76284         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76285         Include <string.h> unconditionally.
76286         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76287         * lib/memchr.c: Include <stdlib.h> unconditionally.
76288         * lib/memchr.c (LONG_MAX): Remove.
76289         * lib/memrchr.c (LONG_MAX): Likewise.
76290         * lib/memchr.c (__memchr): Define via a prototype.
76291         * lib/memrchr.c (__memrchr): Likewise.
76292         * lib/memcmp.c (__P): Remove, and remove all uses.
76293         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76294         Remove forward decls; no longer needed.
76295         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76296         Use types required by C89 in prototype.
76297
76298         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76299         * lib/savedir.c: Likewise.
76300         * lib/mkdir.c (free): Remove decl.
76301         * lib/rmdir.c (rmdir): Define with a prototype.
76302         * lib/savedir.c: Include savedir.h first, to test interface.
76303
76304         * lib/mktime.c (STDC_HEADERS): Remove.
76305         Include <stdlib.h>, <string.h> unconditionally.
76306
76307         * lib/modechange.c: Include <stdlib.h> unconditionally.
76308         (malloc): Remove decl.
76309
76310         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76311         (free): Remove decl.
76312
76313         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76314         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76315         (This type really should be intptr_t, but that's a C99ism.)
76316         (_obstack_memcpy): Remove: all uses changed to memcpy.
76317         Include <string.h> unconditionally.
76318         (struct obstack): Assume __STDC__ for types of members
76319         chunkfun, freefun, extra_arg.
76320         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76321         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76322         obstack_begin, obstack_specify_allocation,
76323         obstack_specify_allocation_with_arg, obstack_chunkfun,
76324         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76325         Remove unprototyped decls and the macros that use them.
76326         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76327         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76328         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76329         (defined __STDC__ && __STDC__)]:
76330         Remove nonprototyped code.
76331         Include <stdlib.h> unconditionally.
76332         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76333         _obstack_allocated_p, _obstack_free, obstack_free,
76334         _obstack_memory_used, print_and_abort):
76335         Define using prototypes.
76336         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76337         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76338         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76339         obstack_next_free, obstack_object_size, obstack_room) [0]:
76340         Remove unused, unprototyped code.
76341
76342         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76343
76344         * lib/physmem.c (physmem_total, physmem_available, main): Define
76345         with prototypes.
76346
76347         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76348         (main): Define with a prototype.
76349
76350         * lib/posixver.c (getenv): Remove decl.
76351
76352         * lib/putenv.c (malloc): Returns void *, not char *.
76353         Include <string.h> unconditionally.
76354         (strchr, memcpy, NULL): Do not define.
76355
76356         * lib/readtokens.c: Include readtokens.h first, to test interface.
76357         Include <stdlib.h>, <string.h> unconditionally.
76358         (init_tokenbuffer): Define with a prototype.
76359
76360         * lib/regex.c (PARAMS): Remove.  All uses removed.
76361         All uses of _RE_ARGS removed, too.
76362         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76363         unconditionally.
76364         (bzero): Assume memset exists.
76365         (memcmp, memcpy, NULL): Remove.
76366         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76367         char, or assignments to local vars of type signed char.
76368         (init_syntax_once, PREFIX(extract_number_and_incr),
76369         PREFIX(print_partial_compiled_pattern),
76370         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76371         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76372         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76373         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76374         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76375         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76376         wcs_compile_range, byte_compile_range, truncate_wchar,
76377         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76378         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76379         count_mbs_length, wcs_re_match_2_internal,
76380         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76381         PREFIX(alt_match_null_string_p),
76382         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76383         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76384         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76385         now-unnecessary declaration, if any.
76386         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76387         regcomp, regexec):
76388         Remove now-unnecessary casts among pointer types.
76389         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76390
76391         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76392         (free): Remove decl.
76393
76394         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76395
76396         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76397         (free): Remove decl.
76398
76399         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76400         * lib/xgetcwd.c: Likewise.
76401
76402         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76403         (free): Remove decl.
76404
76405         * lib/strchrnul.c (strchrnul): Define with a prototype.
76406         Fix bug: c_in was not converted to char before searching.
76407
76408         The following changes are not K&R related:
76409
76410         * lib/group-member.h: Include <sys/types.h>, so that this file is
76411         self-contained.
76412         * lib/makepath.h: Likewise.
76413
76414         * lib/getusershell.c (readname, default_index, line_size, readname):
76415         Use size_t, not int, for sizes.
76416         (readname): If the size overflows, report an error instead of
76417         looping forever.
76418
76419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76420
76421         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76422         libc.
76423
76424 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76425
76426         * README: New section: portability guidelines.
76427
76428 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76429
76430         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76431         C89 spec.
76432
76433 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76434
76435         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76436
76437 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76438
76439         Assume C89 or better; remove K&R cruft.
76440         A few of these changes were first proposed by Derek Robert Price
76441         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76442
76443         * lib/addext.c: Include <string.h> unconditionally.
76444         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76445         Don't declare getenv or malloc.
76446
76447         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76448         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76449         (NULL): Remove.
76450         (find_stack_direction, alloca): Use prototypes.
76451
76452         * lib/atexit.c (atexit): Define using a prototype.
76453
76454         * lib/basename.c, dirname.c, stripslash.c:
76455         Include <string.h> unconditionally.
76456
76457         * lib/bcopy.c: Include <stddef.h>.
76458         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76459
76460         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76461
76462         * lib/error.h (error, error_at_line, error_print_progname)
76463         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76464         * lib/error.c: Include error.h first, to check interface.
76465         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76466         (VA_START): Remove; all uses changeed to va_start.
76467         (exit, strerror): Remove decls.
76468         (error_print_progname): Prototype uncondionally.
76469         Don't include <errno.h>; no longer needed.
76470         (private_strerror): Remove.
76471         (error_tail): Always define.
76472         (error, error_at_line): Assume C89 or better; always use prototypes.
76473         * lib/fatal.c: Include "fatal.h" first, to test interface.
76474         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76475         (VA_START): Remove; all uses changed to va_start.
76476         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76477         this case.
76478         (exit): Remove decl.
76479         (fatal): Prototype unconditionally.  Assume va_start works.
76480         Abort at end, to pacify gcc.
76481
76482         * lib/euidaccess.c (main): Define with a prototype.
76483
76484         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76485
76486         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76487
76488         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76489         prototypes.
76490         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76491         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76492         (getenv): Remove decl.
76493         (fnmatch): Define using a prototype.
76494         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76495         (FCT): Define using a prototype.
76496
76497         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76498
76499         * lib/gethostname.c: Include <stddef.h>.
76500         (gethostname): Define with prototype.  Length is size_t, not int.
76501
76502 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76503
76504         Assume C89 or better; remove K&R cruft.
76505         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76506         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76507         string.h, getenv, malloc.
76508         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76509         headers.
76510         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76511         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76512         do not check for strerror.
76513         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76514         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76515         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76516         do not check for doprnt or vprintf.
76517         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76518         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76519
76520 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76521
76522         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76523         getversion.c should have been removed then, but was accidentally
76524         preserved.
76525
76526         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76527         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76528
76529 2003-09-08  Karl Berry  <karl@gnu.org>
76530
76531         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76532                 config, forget about prep.
76533
76534         * config/depcomp, missing: update from automake.
76535
76536 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76537
76538         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76539         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76540
76541 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76542
76543         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76544         copy_tm_result.  Bug reported by Simon Josefsson in
76545         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76546
76547 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76548
76549         * m4/time_r.m4: New file.
76550         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76551         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76552         is. Check for timegm declaration.
76553         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76554         Do not check for gmtime_r.
76555         Replace mktime if __mktime_internal does not exist and if mktime
76556         hasn't been replaced already.
76557
76558 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76559
76560         * lib/time_r.c, lib/time_r.h: New files.
76561
76562         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76563         __localtime_r.
76564         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76565         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76566
76567         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76568         __gmtime_r.
76569         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76570         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76571         Include <time_r.h>.
76572
76573         * lib/timegm.c: Switch to glibc implementation, with the following
76574         changes:
76575         [defined HAVE_CONFIG_H]: Include <config.h>.
76576         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76577         (__mktime_internal) [!defined _LIBC]: New decl.
76578         (__gmtime_r) [!defined _LIBC]: New macro and function.
76579         (timegm): Use a prototype, since gnulib assumes C89.
76580         Do not bother declaring tmp to be const, as it's not really usefu.
76581         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76582         (timegm): Declare only if HAVE_DECL_TIMEGM.
76583
76584 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76585
76586         * MODULES.html.sh (func_all_modules): Add time_r.
76587         * modules/time_r: New file.
76588         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76589         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76590
76591 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76592
76593         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76594         Bug reported by Lute Kamstra in
76595         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76596
76597         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76598         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76599         course with correspondingly smaller numbers for tomorrow and
76600         yesterday.  From Tadayoshi Funaba.  Originally installed into
76601         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76602         coreutils merge?).
76603
76604 2003-08-31  Simon Josefsson  <jas@extundo.com>
76605
76606         * modules/timegm: New file.
76607         * MODULES.html.sh (func_all_modules): Add timegm.
76608
76609 2003-08-31  Simon Josefsson  <jas@extundo.com>
76610
76611         * m4/timegm.m4: New file.
76612
76613 2003-08-31  Simon Josefsson  <jas@extundo.com>
76614
76615         * lib/timegm.h: New file.
76616         * lib/timegm.c: New file.  Based on
76617         wget-1.8.2/src/http.c:mktime_from_utc.
76618
76619 2003-08-31  Karl Berry  <karl@gnu.org>
76620
76621         * lib/argp.h: update from libc.
76622
76623 2003-08-28  Bruno Haible  <bruno@clisp.org>
76624
76625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76626         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76627         followed by '#define fnmatch fnmatch_posix' gives an error.
76628
76629 2003-08-28  Bruno Haible  <bruno@clisp.org>
76630
76631         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76632         warning on QNX, which defines O_BINARY to 000000.
76633
76634 2003-08-27  Jim Meyering  <jim@meyering.net>
76635
76636         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76637         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76638         would fail after 32.  Reported by Danny Levinson.  Details here:
76639         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76640
76641 2003-08-24  Bruno Haible  <bruno@clisp.org>
76642
76643         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76644         MSVC7 <stdio.h> is included later.
76645
76646 2003-08-22  Simon Josefsson  <jas@extundo.com>
76647
76648         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76649
76650 2003-08-20  Karl Berry  <karl@gnu.org>
76651
76652         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76653
76654 2003-08-20  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/progname: New file.
76657         * MODULES.html.sh (func_all_modules): Add progname.
76658
76659 2003-08-20  Bruno Haible  <bruno@clisp.org>
76660
76661         * lib/progname.h: New file, from GNU gettext.
76662         * lib/progname.c: New file, from GNU gettext.
76663         * lib/progreloc.c: New file, from GNU gettext.
76664
76665 2003-08-19  Jim Meyering  <jim@meyering.net>
76666
76667         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76668         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76669
76670 2003-08-19  Bruno Haible  <bruno@clisp.org>
76671
76672         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76673         more.
76674
76675 2003-08-19  Bruno Haible  <bruno@clisp.org>
76676
76677         * lib/xstrdup.c: Assume <string.h> exists.
76678
76679 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76680
76681         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76682         in makefile rules.
76683
76684 2003-08-18  Jim Meyering  <jim@meyering.net>
76685
76686         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76687         * m4/lib-ld.m4: Likewise.
76688
76689 2003-08-18  Jim Meyering  <jim@meyering.net>
76690
76691         * lib/setenv.h: Indent nested cpp directive.
76692         * lib/vasnprintf.c: Remove trailing blanks.
76693
76694 2003-08-17  Simon Josefsson  <jas@extundo.com>
76695
76696         * modules/xstrndup: New file.
76697         * MODULES.html.sh (func_all_modules): Add xstrndup.
76698
76699 2003-08-17  Simon Josefsson  <jas@extundo.com>
76700
76701         * modules/argp: Fix autoconf macro name. Add more dependencies.
76702
76703 2003-08-17  Simon Josefsson  <jas@extundo.com>
76704
76705         * m4/xstrndup.m4: New file.
76706
76707 2003-08-17  Simon Josefsson  <jas@extundo.com>
76708
76709         * m4/argp.m4: New file.
76710
76711 2003-08-17  Simon Josefsson  <jas@extundo.com>
76712             Bruno Haible  <bruno@clisp.org>
76713
76714         * lib/xstrndup.h: New file.
76715         * lib/xstrndup.c: New file.
76716
76717 2003-08-17  Bruno Haible  <bruno@clisp.org>
76718
76719         * modules/strndup (Files, Include): Add lib/strndup.h.
76720
76721 2003-08-17  Bruno Haible  <bruno@clisp.org>
76722
76723         * modules/euidaccess (Files): Add lib/euidaccess.h.
76724
76725 2003-08-17  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/strndup.h: New file.
76728
76729 2003-08-17  Bruno Haible  <bruno@clisp.org>
76730
76731         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76732         like AC_GNU_SOURCE.
76733         * modules/extensions (configure.ac): Comment out the invocation of
76734         gl_USE_SYSTEM_EXTENSIONS.
76735
76736 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76737
76738         Merges from coreutils, etc.
76739         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76740         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76741         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76742         fixing a typo.
76743         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76744         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76745
76746 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76747
76748         Document merge from coreutils.
76749         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76750         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76751         * modules/utime: Add m4/utimes-null.m4.
76752
76753 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76754
76755         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76756         space, undoing this 2003-08-12 change:
76757         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76758
76759 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76760
76761         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76762         strtoul.c from libc, undoing this 2003-08-12 change:
76763         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76764
76765 2003-08-16  Jim Meyering  <jim@meyering.net>
76766
76767         Merges from coreutils.
76768         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76769         prefix.  Adjust cache variables similarly.  Create 500 rather than
76770         just 300 files, to exercise bug on Darwin6.5, too.
76771         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76772         $missing_dir.
76773         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76774         AM_SYS_POSIX_TERMIOS.
76775         Reported by mkc@mathdogs.com.
76776         Also change use of $am_cv_sys_posix_termios
76777         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76778         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76779         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76780         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76781         in /proc/mounts until it finds one with matching device number.  This
76782         is unnecessary when the FILE argument *is* a mount point.  No stat call
76783         is necessary in that case.  So, disable the statvfs-testing code on
76784         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76785         as RedHat bug# 84846.
76786         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76787         to 1MB, so as not to render systems with no stack size limit (e.g.,
76788         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76789         Include <unistd.h>.  On some systems,
76790         it is required for the definition of _SC_PAGESIZE.
76791
76792 2003-08-16  Jim Meyering  <jim@meyering.net>
76793
76794         Merge from coreutils.
76795         * lib/xstrtoimax.c: #else #if -> #elif.
76796         * lib/xstrtoumax.c: Likewise.
76797
76798 2003-08-16  Jim Meyering  <jim@meyering.net>
76799
76800         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76801         * m4/utimes.m4: Removed.
76802         * m4/utimes-null.m4: Renamed from utimes.m4.
76803
76804         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76805         to 1MB, so as not to render systems with no stack size limit (e.g.,
76806         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76807         Include <unistd.h>.  On some systems,
76808         it is required for the definition of _SC_PAGESIZE.
76809
76810 2003-08-16  Jim Meyering  <jim@meyering.net>
76811         and Paul Eggert  <eggert@cs.ucla.edu>
76812
76813         Merges from coreutils, etc.
76814
76815         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76816         using the latest version from cvs.  This avoids problems with #line
76817         directives using a vendor (Sun) compiler.
76818         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76819         Don't set GETGROUPS_LIB here; now it's
76820         done via getgroups.m4's wrapper function.
76821         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76822         rather than just in sh-util/configure.in, so that the
76823         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76824         same.
76825         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76826         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76827         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76828         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76829         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76830         Remove code that is now done by the newly-required macros.
76831         Append $(EXEEXT) to DF_PROG.
76832         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76833         Do not invoke or require the following here,
76834         since prereq.m4 or some gnulib .m4 now does this for us:
76835         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76836         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76837         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76838         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76839         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76840         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76841         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76842         AC_FUNC_OBSTACK.
76843         Do not replace the following functions, as this is now the job
76844         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76845         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76846         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76847         atexit getpass, strdup, getpagesize.
76848         Replace 'raise'.
76849         Do not check for the following functions, as this is now the job
76850         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76851         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76852         setregid.
76853         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76854         Check for sys/sysctl.h.
76855         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76856         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76857         of checking for ssize_t ourselves.
76858
76859         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76860         Require every macro that gnulib/modules/* suggests for us.
76861         (jm_PREREQ_ADDEXT): New macro.
76862         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76863         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76864
76865         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76866         (gl_PHYSMEM): Use it.
76867         Also check for `table' function.
76868         Check for new headers and functions.
76869         Add check for sys/sysmp.h.
76870         With suggestions from Kaveh Ghazi.
76871         Ignore headers that are present but cannot be compiled.  This
76872         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76873         C 5.4.
76874
76875 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76876
76877         Document merge from coreutils.
76878         * modules/userspec: Depend on posixver.
76879         * modules/strftime: Depend on tzset.
76880
76881 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76882
76883         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76884         rather than tab, after '#' in shell-script copyright notices.
76885         Suggested by Bruno Haible.
76886
76887 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76888
76889         * config/srclist-update: Use three spaces, rather than tab, after '#'
76890         in shell-script copyright notices.  Suggested by Bruno Haible.
76891         Remove unnecessary parenthesization in regular expression.
76892
76893 2003-08-15  Jim Meyering  <jim@meyering.net>
76894
76895         Merge from coreutils.
76896         * lib/xgethostname.c: Include <stdlib.h>.
76897         (xghostname): Don't exit for anything other than memory-related
76898         failure; just return NULL.
76899         * lib/userspec.c: Include "posixver.h".
76900         (parse_user_spec): Accept `.' as a separator only
76901         in pre-POSIX-200112 mode.
76902         * lib/strtoimax.c: Use #elif rather than #else #if.
76903         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76904         Remove function, now that we can rely on a working tzset function.
76905         [!_LIBC]: Ensure that the required autoconf test has been run.
76906         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76907         Use underlying_strftime for %r.
76908         * lib/sha.c: Merge in some clean-up and optimization changes from
76909         glibc.
76910         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76911         Ensure that it is a multiple of 64.
76912         Rearrange loop exit tests so as to avoid performing an
76913         additional fread after encountering an error or EOF.
76914         * lib/realloc.c: Update copyright date.
76915
76916 2003-08-15  Jim Meyering  <jim@meyering.net>
76917         and Paul Eggert  <eggert@twinsun.com>
76918
76919         Merge from coreutils.
76920         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76921         member but strut utmpx does not.  Needed for AIX 4.3.3.
76922         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76923
76924 2003-08-15  Jim Meyering  <jim@meyering.net>
76925         and Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         Merges from coreutils, etc.
76928         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76929         Require gl_FUNC_TZSET_CLOBBER.
76930         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76931         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76932         members.
76933
76934 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76935
76936         Help the merge from coreutils.
76937         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76938         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76939         * m4/tzset.m4: Use it too.
76940
76941 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76942
76943         * modules/tzset: New file.
76944
76945 2003-08-14  Jim Meyering  <jim@meyering.net>
76946
76947         Merges from coreutils.
76948         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76949         variable names, rather than @FNMATCH_H@.
76950         * modules/alloca: Likewise for $(ALLOCA_H).
76951
76952         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76953         the three copies of the literal target, `fnmatch.h'.
76954         * modules/alloca (alloca.h): Likewise.
76955
76956 2003-08-14  Jim Meyering  <jim@meyering.net>
76957
76958         Merge from coreutils.
76959         * m4/tzset.m4: New file.
76960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76961         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76962         otherwise, AIX 5.1 systems would end up using the latter.
76963         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76964         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76965         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76966         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76967
76968 2003-08-14  Jim Meyering  <jim@meyering.net>
76969
76970         Merge from coreutils.
76971         * lib/obstack.h: Whitespace changes.
76972         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76973         and xcalloc return values.
76974         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76975         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76976         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76977         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76978         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76979         error from mntctl.
76980         Use mntctl's return value to drive the entry-processing loop, since
76981         we can't rely on the value of the vmt_length member in the last
76982         entry.  On some systems doing so could result in exhausting
76983         virtual memory.  Based in part on a patch from Mike Jetzer.
76984
76985 2003-08-14  Jim Meyering  <jim@meyering.net>
76986         and Paul Eggert  <eggert@twinsun.com>
76987
76988         Merges from coreutils, plus other fixes.
76989         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76990         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76991         for credits and details.  Thanks to Kaveh Ghazi for helping
76992         to keep these files in sync.
76993         (ARRAY_SIZE): Define it.
76994         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76995         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76996         (memcasecmp): Don't assume size_t fits in unsigned int.
76997         Remove casts and duplicate code.
76998         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76999         (memcpy): Remove definition.
77000         Merge in some clean-up and optimization changes from glibc.
77001         [BLOCKSIZE]: Move definition to top of file.
77002         Ensure that it is a multiple of 64.
77003         Rearrange loop exit tests so as to avoid performing an
77004         additional fread after encountering an error or EOF.
77005         * lib/md5.h (md5_uintptr): Define.
77006         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77007         return to the initial working directory.  Preserve errno
77008         for caller.
77009         * lib/idcache.c: Include "xalloc.h".
77010         (xmalloc, xrealloc): Remove decls.
77011         (getuser): Remove casts no longer required in C89.
77012         * lib/human.c: Include stdio.h, for sprintf.
77013         * lib/group-member.c: Include "xalloc.h".
77014         (xmalloc, xrealloc): Remove decls.
77015         (get_group_info): Remove casts no longer required in C89.
77016         * lib/getusershell.c (readname): Remove casts no longer required in
77017         C89.
77018         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77019         * lib/getline.c: Whitespace fix, from coreutils.
77020
77021 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77022
77023         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77024         Check for isascii.
77025
77026         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77027         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77028         Undo previous (whitespace-only) change.
77029
77030 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77031
77032         * lib/exclude.c: Include <ctype.h>
77033         (IN_CTYPE_DOMAIN): New macro.
77034         (is_space): New fn.
77035         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77036         and empty lines.
77037
77038         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77039         Undo previous (whitespace-only) change.
77040
77041 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77042
77043         * config/srclist-update: Change update back to the old behavior,
77044         leaving whitespace alone.  Use one 'sed' command rather than a
77045         pipeline.
77046         (fixlicense): Now a variable, not a function.
77047         (remove_trailing_blanks): Remove.
77048         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77049         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77050         Undo previous (whitespace-only) change.
77051
77052 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77053
77054         Merge from coreutils.
77055         * modules/euidaccess: Add lib_SOURCES, include for new
77056         file euidaccess.h
77057
77058 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77059
77060         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77061         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77062         Normalize leading white space and remove trailing white space.
77063
77064         Merge from coreutils
77065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77066
77067         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77068         0.12.1.  These files are now being upgraded automatically by
77069         ../config/srclist-update.
77070
77071 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77072
77073         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77074         Normalize leading white space and remove trailing white space.
77075         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77076         notice, as per ../config/srclist-update.
77077
77078         Merge from coreutils.
77079         * lib/euidaccess.h: New file.
77080         * lib/euidaccess.c: Include it.
77081         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77082         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77083         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77084
77085 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77086
77087         * config/srclist-update: Add copyright notice.
77088         (remove_id_lines, remove_trailing_blanks): New constants.
77089         (fixfile): Use them to normalize spacing a bit in copied files.
77090         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77091         Normalize leading white space and remove trailing white space.
77092
77093         * config/texinfo.tex: Sync with texinfo.
77094
77095         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77096         strtoul.c from libc, to merge coreutils whitespace changes.
77097
77098         * config/srclist.txt: Get the following m4 files from gettext:
77099         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77100         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77101         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77102         wint_t.m4.
77103
77104 2003-08-12  Karl Berry  <karl@gnu.org>
77105
77106         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77107         been made.
77108
77109 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77110
77111         * modules/gnu-source, m4/gnu-source.m4:
77112         Remove; we're assuming Autoconf 2.54 or later now.
77113         Suggested by Bruno Haible.
77114         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77115
77116 2003-08-11  Bruno Haible  <bruno@clisp.org>
77117
77118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77119
77120 2003-08-11  Bruno Haible  <bruno@clisp.org>
77121
77122         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77123         (vasnprintf): Use it instead of wcslen.
77124
77125 2003-08-11  Bruno Haible  <bruno@clisp.org>
77126
77127         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77128         value to ensure that _Bool promotes to int. Use #define for _Bool when
77129         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77130
77131 2003-08-10  Karl Berry  <karl@gnu.org>
77132
77133         * lib/regex.h: update from libc (whitespace fix).
77134
77135 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77136
77137         Merge some files from coreutils.  These changes were
77138         originally made by Jim Meyering.
77139         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77140         many older Unixes require this.
77141         * lib/alloca.c (alloca): Remove cast to argument of free;
77142         no longer needed in C89.
77143         * lib/alloca_.h, regex.h: Fix white space to match
77144         what GNU indent does.
77145
77146 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77147
77148         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77149         apparently Emacs's Unicode mode got confused before my 2003-08-05
77150         checkin.
77151
77152 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77153
77154         * m4/extensions.m4: New file.
77155         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77156         Require gl_USE_SYSTEM_EXTENSIONS.
77157         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77158         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77159
77160 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77161
77162         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77163         * modules/extensions, modules/gnu-source: New files.
77164         * modules/timespec, modules/unlocked-io: Depend on extensions.
77165
77166 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77167
77168         * modules/restrict: New file.
77169         * MODULES.html.sh (func_all_modules): Add restrict.
77170         * modules/regex: Depend on restrict.
77171
77172 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77173
77174         * m4/restrict.m4: New file.
77175         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77176
77177 2003-08-07  Bruno Haible  <bruno@clisp.org>
77178
77179         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77180         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77181
77182 2003-08-07  Bruno Haible  <bruno@clisp.org>
77183
77184         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77185         makes the module 'getndelim2' compatible with the module 'getline'.
77186
77187 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77188
77189         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77190         byte with "\201" to avoid glitches when editing that source file
77191         with multi-gnome-terminal.
77192
77193 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77194
77195         * lib/bumpalloc.h: Remove.
77196
77197 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77198
77199         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77200         * modules/bumpalloc: Remove.
77201
77202 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77203
77204         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77205         GNU coding style.
77206
77207         Merge from coreutils.
77208         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77209         1. From glibc.
77210         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77211         from Karl Berry, implemented by Jim Meyering.
77212         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77213         from Dmitry V. Levin.
77214         Remove anachronistic cast of xrealloc.
77215         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77216         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77217         type. Otherwise, it wouldn't compile with at least /bin/cc on
77218         ymp-cray-unicos9.0.2.X.
77219         Combine two mostly-identical uses of alloca into one.
77220         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77221
77222 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77223
77224         [From Emacs.]
77225
77226         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77227         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77228         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77229         obsolete NLIST_NAME_UNION.
77230         [__GNU__]: Undef BSD and FSCALE.
77231         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77232
77233 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77234
77235         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77236         an enum type, so that it's guaranteed to promote to int.  See:
77237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77238
77239 2003-08-03  Karl Berry  <karl@gnu.org>
77240
77241         * config/depcomp: update from automake.
77242
77243 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77244
77245         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77246         (strerror): Don't assume that a printable int fits in 14 bytes.
77247
77248 2003-07-31  Bruno Haible  <bruno@clisp.org>
77249
77250         * modules/getpass-gnu: New file.
77251         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77252
77253 2003-07-31  Bruno Haible  <bruno@clisp.org>
77254
77255         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77256
77257 2003-07-24  Karl Berry  <karl@gnu.org>
77258
77259         * config/missing: update from automake.
77260
77261 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77262             Bruno Haible  <bruno@clisp.org>
77263
77264         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77265         * lib/getline.c (getline, getdelim): Likewise.
77266         Remove _GNU_SOURCE define; now it's defined in config.h through
77267         m4/getline.m4.
77268
77269 2003-07-23  Karl Berry  <karl@gnu.org>
77270
77271         * config/config.sub: update from prep.
77272
77273 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77274
77275         * modules/xalloc (Depends-on): Add exitfail.
77276         * modules/xmemcoll: Likewise.
77277
77278 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77279
77280         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77281         over-parenthesization in macros.
77282
77283         Sync with coreutils.
77284
77285         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77286         required by C99.
77287
77288         Use `exit_failure' for xalloc and xmemcoll instead of their own
77289         private exit-failure variables.
77290         * lib/xalloc.h (xalloc_exit_failure): Remove.
77291         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77292         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77293         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77294         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77295         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77296
77297 2003-07-20  Jim Meyering  <jim@meyering.net>
77298
77299         * modules/closeout (Depends-on): Add exitfail.
77300         Suggestion from Bruno Haible.
77301
77302 2003-07-19  Karl Berry  <karl@gnu.org>
77303
77304         * config/config.sub: update from prep.
77305
77306 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77307
77308         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77309         Remove.
77310         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77311         to test that it can stand by itself.  Include "exitfail.h".
77312         Clients should set exit_failure instead.
77313         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77314
77315 2003-07-18  Bruno Haible  <bruno@clisp.org>
77316
77317         * modules/getndelim2: New file.
77318         * modules/getline: Share files with module getndelim2.
77319         * modules/getnline: Depend on getndelim2 instead of sharing files with
77320         it. Add getnline.c to lib_SOURCES.
77321         * MODULES.html.sh (func_all_modules): Add getndelim2.
77322
77323 2003-07-18  Bruno Haible  <bruno@clisp.org>
77324
77325         * m4/getndelim2.m4: New file.
77326         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77327         invoke gl_PREREQ_GETNDELIM2.
77328         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77329         gl_PREREQ_GETNDELIM2.
77330         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77331         gl_GETNDELIM2.
77332
77333 2003-07-18  Bruno Haible  <bruno@clisp.org>
77334
77335         * lib/getndelim2.h: New file.
77336         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77337         getndelim2.h.
77338         (getndelim2): Make non-static. Change return type to ssize_t.
77339         * lib/getline.h: Change argument names.
77340         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77341         * lib/getnline.c: Include getndelim2.h.
77342
77343 2003-07-18  Andreas Schwab  <schwab@suse.de>
77344
77345         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77346
77347 2003-07-17  Karl Berry  <karl@gnu.org>
77348
77349         * config/config.sub: update from prep.
77350
77351 2003-07-17  Bruno Haible  <bruno@clisp.org>
77352
77353         * modules/getnline: New file.
77354         * modules/getline: Add lib/getndelim2.c to source file list.
77355         * MODULES.html.sh (func_all_modules): Add getnline.
77356
77357 2003-07-17  Bruno Haible  <bruno@clisp.org>
77358
77359         * m4/getnline.m4: New file.
77360
77361 2003-07-17  Bruno Haible  <bruno@clisp.org>
77362
77363         * m4/Makefile.am.in: Remove file.
77364         * m4/Makefile.am: Remove file.
77365         * m4/Makefile.in: Remove file.
77366
77367 2003-07-17  Bruno Haible  <bruno@clisp.org>
77368
77369         * lib/getnline.h: New file.
77370         * lib/getnline.c: New file.
77371         * lib/getndelim2.c: New file, extracted from getline.c.
77372         (getndelim2): Renamed from getdelim2, with added nmax argument.
77373         * lib/getline.c: Include getndelim2.c.
77374         (getdelim2): Moved out to getndelim2.c.
77375         (getline, getdelim): Update.
77376
77377 2003-07-17  Bruno Haible  <bruno@clisp.org>
77378
77379         * lib/Makefile.am: Remove file.
77380         * lib/Makefile.in: Remove file.
77381
77382 2003-07-17  Bruno Haible  <bruno@clisp.org>
77383
77384         * configure.in: Remove file.
77385         * Makefile.in: Remove file.
77386
77387 2003-07-17  Bruno Haible  <bruno@clisp.org>
77388
77389         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77390
77391 2003-07-16  Karl Berry  <karl@gnu.org>
77392
77393         * config/srclist-update: was running fixlicense twice, which caused
77394                 texinfo.tex to be nullified for some reason.  Simplify,
77395                 $gplsrc is no longer needed as far as I can see?
77396
77397 2003-07-16  Jim Meyering  <jim@meyering.net>
77398
77399         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77400
77401 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77402
77403         * config/srclist.txt: Get the following files from gettext-runtime/intl
77404         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77405         ref-del.sin.  From Bruno Haible.
77406         * config/srclist-update (fixfile): Change grep pattern again, since the
77407         previous fix didn't work (there was another trailing $).  Use
77408         '[$]' to escape the $s.
77409
77410 2003-07-15  Karl Berry  <karl@gnu.org>
77411
77412         * lib/vasnprintf.c: update from gettext.
77413
77414 2003-07-15  Karl Berry  <karl@gnu.org>
77415
77416         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77417         gets expanded when surrounded by '$'.
77418
77419 2003-07-15  Jim Meyering  <jim@meyering.net>
77420
77421         * modules/save-cwd: Don't depend on error.  From Derek Price.
77422
77423 2003-07-15  Jim Meyering  <jim@meyering.net>
77424
77425         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77426
77427 2003-07-14  Simon Josefsson  <jas@extundo.com>
77428
77429         * modules/mempcpy: New file.
77430         * MODULES.html.sh (func_all_modules): Add mempcpy.
77431
77432 2003-07-14  Simon Josefsson  <jas@extundo.com>
77433
77434         * m4/mempcpy.m4: New file.
77435
77436 2003-07-14  Simon Josefsson  <jas@extundo.com>
77437
77438         * lib/mempcpy.h: New file.
77439         * lib/mempcpy.c: New file.
77440
77441 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77442
77443         * modules/getdate, modules/posixtm: Depend on mktime.
77444
77445 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77446
77447         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77448         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77449         unicodeio.c, unicodeio.h, unlocked-io.h:
77450         Switch from LGPL to GPL.
77451
77452 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77453
77454         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77455         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77456         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77457         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77458         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77459         updated automatically by ../config/srclist-update.  This changes
77460         their license from LPGL to GPL.
77461
77462 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77463
77464         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77465         assumed to refer to the root of the most recent stable gettext version.
77466         * config/srclistvars.sh: Add defaults for eggert.
77467         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77468         Match "This program" as well as "The program".  This is needed
77469         for gettext.
77470
77471 2003-07-14  Jim Meyering  <jim@meyering.net>
77472
77473         Don't emit diagnostics.  Let callers do that.
77474         * lib/save-cwd.c: Don't include "error.h".
77475         (save_cwd): Don't call error.  Ensure that errno is valid
77476         when returning nonzero.
77477
77478         * lib/save-cwd.h (restore_cwd): Update prototype.
77479         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77480         Simplify.  Don't call error upon failure.  Let callers do that.
77481         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77482         when auditing is enabled.  But don't bother updating the #if.
77483
77484 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77485
77486         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77487         it breaks C++ compilation.
77488         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77489
77490 2003-07-10  Simon Josefsson  <jas@extundo.com>
77491
77492         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77493
77494 2003-07-10  Jim Meyering  <jim@meyering.net>
77495
77496         * m4/clock_time.m4: Remove trailing blank.
77497         * m4/intmax_t.m4: Likewise.
77498
77499 2003-07-10  Jim Meyering  <jim@meyering.net>
77500
77501         * lib/vasnprintf.c: Remove trailing blanks.
77502         Make cpp indentation consistent.
77503
77504 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77505
77506         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77507         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77508         Switch from LGPL to GPL.
77509
77510 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77511
77512         * config/srclist.txt: Sort sublists.  Add
77513         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77514         that differ from gnulib for one reason or another; we'd like this list
77515         to be smaller but for now let's document what we have.
77516
77517 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77518
77519         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77520         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77521         and sweeter "eval x=$x".
77522         * config/srclist.txt: Get lib/argp* from glibc.
77523
77524 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77525
77526         * lib/mktime.c: Fix some boundary cases and remove need for floating
77527         point.
77528
77529         Issue a compile-time diagnostic if time_t is floating point, or if
77530         two's complement arithmetic is not in effect, or if arithmetic
77531         right shift does not propagate the sign.  These assumptions were
77532         all in the original code but they weren't checked.
77533
77534         (TIME_T_MIDPOINT, verify): New macros.
77535         (__isleap): Remove; it has integer overflow problems.
77536         (leapyear): New function, without those problems.
77537         (ydhms_tm_diff): Remove; splitting into two parts.
77538         (ydhms_diff): New function, containing the arithmetic part of
77539         the old ydhms_tm_diff function.  Issue a compile-time
77540         diagnostic if we are not using C99 integer division.
77541         Avoid casts when possible.
77542         (guess_time_tm): New function, containing the checking part of
77543         the old ydhms_tm_diff function.  Return the new value, rather than
77544         the difference between it and the old.  Accept a new argument T
77545         so that *T specifies the old value.  Check for overflow in the result.
77546
77547         (__mktime_internal): Use a time_t offset, not a long int offset.
77548         This undoes the 2003-06-04 change, which is no longer needed now
77549         that we have better overflow checking.
77550         (localtime_offset): Likewise.
77551
77552         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77553         and long are 64-bit but int is only 32-bit.
77554         (ydhms_diff): Use long int to store year1 and yday1.
77555         Issue a compile-time diagnostic if long int is not wide enough.
77556
77557         (__mktime_internal): Use long int to store adjusted year and yday.
77558         Use plain C rather than preprocessor commands, if that doesn't
77559         affect efficiency.
77560         Check for overflow (and try to repair) after each probe
77561         rather than checking only at the very end.  This avoids some bugs
77562         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77563         does not equal GMT offset at maximum time).
77564         Use integer to check for overflow rather than floating point; this
77565         is more portable to non-IEEE hosts, and is a tad faster.
77566         When we detect that we are oscillating between two values,
77567         don't check whether tm_isdst has the requested value, since
77568         we already know the answer.  When tm_isdst has the wrong value,
77569         use a different heuristic to find the right one, based on the
77570         extreme values actually observed in practice in tz2003a,
77571         rather than the (overly optimistic) "previous 3 calendar quarters".
77572
77573         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77574         "T const" to accommodate glibc style.
77575         (check_result): Use less-confusing report format.  "long" -> "long int.
77576         (main): Likewise.
77577         Don't loop if the iteration overflows time_t.
77578         Allow a negative step in the iteration.
77579
77580 2003-07-06  Karl Berry  <karl@gnu.org>
77581
77582         * config/depcomp: update from automake.
77583         * config/config.sub: update from prep.
77584
77585 2003-07-03  Karl Berry  <karl@gnu.org>
77586
77587         * config/config.guess: update from prep.
77588
77589 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77590
77591         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77592         xreadlink.c now includes it unconditionally.
77593
77594 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77595
77596         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77597         having it depend on HAVE_SYS_TYPES_H.
77598
77599 2003-07-01  Bruno Haible  <bruno@clisp.org>
77600
77601         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77602         <sys/types.h> should be sufficient.
77603         Reported by Paul Eggert.
77604
77605 2003-06-26  Karl Berry  <karl@gnu.org>
77606
77607         * config/depcomp: update from automake.
77608
77609 2003-06-26  Bruno Haible  <bruno@clisp.org>
77610
77611         * modules/human: Depend on module stdbool.
77612
77613 2003-06-25  Bruno Haible  <bruno@clisp.org>
77614
77615         * modules/readlink: New file.
77616         * modules/xreadlink: Depend on it.
77617         * MODULES.html.sh (func_all_modules): Add readlink.
77618
77619 2003-06-25  Bruno Haible  <bruno@clisp.org>
77620
77621         * m4/readlink.m4: New file.
77622
77623 2003-06-25  Bruno Haible  <bruno@clisp.org>
77624
77625         * lib/readlink.c: New file.
77626
77627 2003-06-22  Karl Berry  <karl@gnu.org>
77628
77629         * config/srclist.txt: update mkinstalldirs from automake.
77630         * config/mkinstalldirs: update.
77631
77632 2003-06-22  Bruno Haible  <bruno@clisp.org>
77633
77634         Portability to mingw32.
77635         * m4/ssize_t.m4: New file, from GNU gettext.
77636         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77637         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77638
77639 2003-06-22  Bruno Haible  <bruno@clisp.org>
77640
77641         * modules/safe-read: Add m4/ssize_t.m4.
77642         * modules/xreadlink: Add m4/ssize_t.m4.
77643
77644 2003-06-20  Bruno Haible  <bruno@clisp.org>
77645
77646         Assume C89, so PARAMS isn't needed.
77647         * lib/unicodeio.h (PARAMS): Remove.
77648         * lib/unicodeio.c: Don't use PARAMS.
77649
77650 2003-06-18  Karl Berry  <karl@gnu.org>
77651
77652         * config/config.{guess,sub}: update from prep.
77653
77654 2003-06-18  Jim Meyering  <jim@meyering.net>
77655
77656         Merge changes from coreutils.
77657         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77658         Remove explicit declarations of xmalloc and realloc.
77659         Include xalloc.h.
77660         (read_utmp): Remove anachronistic cast of xmalloc.
77661
77662 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77663
77664         Assume C89, so PARAMS isn't needed.
77665         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77666         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77667         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77668         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77669         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77670         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77671         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77672         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77673         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77674         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77675         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77676         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77677         no longer needed. Anyway, config.h should always be included before any
77678         other file.
77679
77680 2003-06-11  Simon Josefsson  <jas@extundo.com>
77681
77682         * modules/sysexits: New file.
77683         * MODULES.html.sh (func_all_modules): Add sysexits.
77684
77685 2003-06-11  Simon Josefsson  <jas@extundo.com>
77686
77687         * lib/sysexit_.h: New file.
77688
77689 2003-06-11  Derek Price  <derek@ximbiot.com>
77690
77691         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77692         necessary.
77693
77694 2003-06-11  Bruno Haible  <bruno@clisp.org>
77695
77696         * m4/sysexits.m4: New file.
77697
77698 2003-06-10  Simon Josefsson  <jas@extundo.com>
77699
77700         * lib/argp.h: New file, from glibc.
77701         * lib/argp-ba.c: New file, from glibc.
77702         * lib/argp-eexst.c: New file, from glibc.
77703         * lib/argp-fmtstream.c: New file, from glibc.
77704         * lib/argp-fmtstream.h: New file, from glibc.
77705         * lib/argp-fs-xinl.c: New file, from glibc.
77706         * lib/argp-help.c: New file, from glibc.
77707         * lib/argp-namefrob.h: New file, from glibc.
77708         * lib/argp-parse.c: New file, from glibc.
77709         * lib/argp-pv.c: New file, from glibc.
77710         * lib/argp-pvh.c: New file, from glibc.
77711         * lib/argp-xinl.c: New file, from glibc.
77712
77713 2003-06-10  Simon Josefsson  <jas@extundo.com>
77714
77715         * modules/strchrnul: New file.
77716
77717 2003-06-10  Simon Josefsson  <jas@extundo.com>
77718
77719         * modules/argp: New file.
77720
77721 2003-06-10  Simon Josefsson  <jas@extundo.com>
77722
77723         * m4/strchrnul.m4: New file.
77724
77725 2003-06-10  Simon Josefsson  <jas@extundo.com>
77726
77727         * lib/strchrnul.h: New file.
77728         * lib/strchrnul.c: New file.
77729
77730 2003-06-10  Bruno Haible  <bruno@clisp.org>
77731
77732         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77733
77734 2003-06-07  Karl Berry  <karl@gnu.org>
77735
77736         * config/config.{guess,sub}: update from prep.
77737
77738 2003-06-07  Jim Meyering  <jim@meyering.net>
77739
77740         * modules/strtod: Use $(...) notation, not @...@ for
77741         AC_REPLACE'd variables.
77742         * modules/localcharset: Likewise.
77743
77744 2003-06-07  Jim Meyering  <jim@meyering.net>
77745
77746         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77747         in place of my name in the copyright comment.
77748         Remove definition and uses of __P.
77749
77750         From coreutils.
77751         * lib/stat.c: Don't declare xmalloc explicitly.
77752         Instead, include "xalloc.h".
77753         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77754         xrealloc, and xcalloc return values.
77755         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77756         Improve comment.
77757         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77758
77759 2003-06-07  Bruno Haible  <bruno@clisp.org>
77760
77761         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77762         avoid AC_CONFIG_LINKS.
77763         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77764         fnmatch.h, to avoid AC_CONFIG_LINKS.
77765         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77766
77767 2003-06-07  Bruno Haible  <bruno@clisp.org>
77768
77769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77770         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77771         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77772         directory.
77773         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77774         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77775         directory.
77776
77777 2003-06-06  Jim Meyering  <jim@meyering.net>
77778
77779         Merge from coreutils.
77780         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77781         Consolidate declarations and initializations of *_base* locals.
77782
77783         Merge from coreutils.
77784         This avoids a core dump on systems without GNU putenv,
77785         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77786         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77787         (unsetenv): New static function, from GNU libc.
77788         (rpl_putenv): Use it.
77789
77790         * lib/modechange.c: Remove trailing blanks.
77791
77792         Merge from coreutils.
77793         * lib/fsusage.c: Remove declaration of statfs.
77794         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77795
77796         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77797
77798 2003-06-06  Jim Meyering  <jim@meyering.net>
77799
77800         * lib/stdbool_.h: Renamed from stdbool.h.in.
77801
77802 2003-06-06  Jim Meyering  <jim@meyering.net>
77803             Bruno Haible  <bruno@clisp.org>
77804
77805         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77806         Adjust Makefile.am snippet not to redirect directly to target.
77807         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77808
77809 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77810
77811         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77812         mismatch, look in future quarters as well as past.  This fixes a
77813         bug when processing fall-backwards gaps immediately after a long
77814         period of daylight-saving time.
77815
77816         * lib/mktime.c: Assume freestanding C89 or better.
77817         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77818         (__P): Remove; not used.
77819         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77820         (mktime, not_equal_tm, print_tm, check_result,
77821         main): Use prototypes.  Use const * where appropriate.
77822         (main): Fix typo in testing code that uncovered by above changes.
77823         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77824
77825 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77826
77827         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77828         locale.h, localeconv.  This merges changes from coreutils.
77829
77830         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77831         It can be removed after the next Autoconf is released.
77832         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77833         needed.
77834
77835 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77836
77837         * lib/mktime.c: Fix Debian bug 177940
77838         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77839         (localtime_offset): Now long int, not time_t, because we want it
77840         to be guaranteed to be signed.  All uses changed.
77841         (__mktime_internal): If overflow would occur when adding offset,
77842         don't add it.
77843
77844         Merge 'human' changes from coreutils.  Rewrite to support
77845         locale-specific notations like thousands separators.
77846         * lib/human.c: Simplify authorship notice.
77847         Include human.h immediately after config.h.
77848         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77849         <limits.h>: Do not include, since human.h does.
77850         (SIZE_MAX, UINTMAX_MAX): New macros.
77851         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77852         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77853         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77854         (power_letter): Renamed from suffixes.
77855         (generate_suffix_backwards): Remove.
77856         (adjust_value): Now takes int style (because of human.h changes)
77857         and long double value (for greater precision on some platforms).
77858         (group_number): New function.
77859         (human_readable): Use it.  Use integer options, not enum.
77860         Put the options before the sizes in the arg list.
77861         Support all the new options.
77862         The old human_readable function has been removed;
77863         use inttostr.h instead.
77864         (human_readable, default_block_size, humblock):
77865         Use uintmax_t, not int, for block sizes.
77866         (human_readable_inexact, block_size_types): Remove.
77867         (block_size_opts): New constant.
77868         (human_options): Renamed from human_block_size, with new signature
77869         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77870         * lib/human.h: Add copyright and authorship notice.
77871         Include <limits.h> and <stdbool.h> unconditionally.
77872         (PARAMS): Remove.  All uses removed.
77873         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77874         (enum human_inexact_style): Remove tag; now a nameless enum.
77875         (human_floor, human_ceiling, human_round_to_even): Now have
77876         values 2, 0, 1 rather than -1, 1, 0.
77877         (human_group_digits, human_suppress_point_zero, human_autoscale,
77878         human_base_1024, human_SI, human_B): New constants.
77879         (human_readable_inexact, human_block_size): Remove.
77880         (human_readable): Size args are now uintmax_t, not int.
77881         (human_options): New decl.
77882
77883         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77884         unnecessary now that we assume C89 or better.  This change
77885         imported from coreutils.
77886
77887         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77888         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77889         in the 2003-05-30 sync from glibc.
77890
77891         .h files should stand alone, but we shouldn't include <sys/types.h>
77892         if we can get away with just <stddef.h>.
77893
77894         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77895         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77896         rather than <sys/types.h>, as we merely need size_t.
77897         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77898         to get size_t.
77899         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77900         Include <stdio.h>, to get FILE.
77901         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77902         memcasecmp.h has included <stddef.h> and all we need is size_t.
77903         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77904         our interface, instead of including <sys/types.h>
77905
77906 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77907
77908         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77909         now, as glibc mktime is buggy on non-glibc systems.
77910
77911 2003-06-03  Karl Berry  <karl@gnu.org>
77912
77913         * config/config.sub: update from prep.
77914
77915 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77916
77917         [from coreutils]
77918         Fix some minor time-related bugs with POSIX time arguments.
77919         Some valid time stamps were being rejected (notably -1, and
77920         time stamps before 1900 on 64-bit hosts).  And some invalid
77921         time stamps were being accepted, e.g. September 31.
77922
77923         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77924         that we can return (time_t) -1 successfully.
77925         * lib/posixtm.c: Likewise.
77926         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77927         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77928         (t): Remove static var.
77929         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77930         of static var.  All uses changed.
77931         (year): Do not reject years before 1900; they can occur with
77932         64-bit time_t.
77933         (posix_time_parse): Do not check for out-of-range components;
77934         that is now the caller's responsibility, since our checks were
77935         only approximations.
77936         (posixtime): Use mktime to check for out-of-range components,
77937         since it knows them exactly.
77938         If mktime returns (time_t) -1, check whether an error actually occurred
77939         by invoking localtime on -1.
77940         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77941         posixtime failures better.
77942         Improve the test data (in comments only).
77943
77944 2003-06-02  Karl Berry  <karl@gnu.org>
77945
77946         * config/mkinstalldirs (version): new variable.
77947         (--version): new option.
77948         (usage): improve message.
77949
77950 2003-05-30  Karl Berry  <karl@gnu.org>
77951
77952         * lib/mktime.c: update from libc.
77953
77954 2003-05-30  Bruno Haible  <bruno@clisp.org>
77955
77956         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77957         * config/config.rpath: Upgrade to gettext-0.12.1.
77958
77959 2003-05-30  Bruno Haible  <bruno@clisp.org>
77960
77961         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77962         * m4/nls.m4: New file, from gettext-0.12.1.
77963         * m4/po.m4: New file, from gettext-0.12.1.
77964         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77965
77966 2003-05-30  Bruno Haible  <bruno@clisp.org>
77967
77968         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77969         * lib/localcharset.h: Likewise.
77970         * lib/localcharset.c: Likewise.
77971
77972 2003-05-29  Karl Berry  <karl@gnu.org>
77973
77974         * config/config.rpath: update from gettext.
77975
77976 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77977
77978         Assume the headers required for C89 freestanding compilers.
77979         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77980         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77981         * m4/human.m4 (gl_HUMAN): Likewise.
77982         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77983         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77984         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77985         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77987         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77988
77989 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77990
77991         Assume the headers required for C89 freestanding compilers.
77992         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77993         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77994         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77995         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77996         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77997         define, since <limits.h> is guaranteed to do that.
77998         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77999         * lib/exclude.c: Include <stdbool.h> unconditionally.
78000         * lib/tempname.c: Include <stddef.h> unconditionally.
78001         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78002         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78003         <stddef.h> does that.
78004         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78005         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78006         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78007         needed.
78008         * lib/xstrtol.c: Likewise.
78009         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78010         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78011
78012         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78013         warnings on some platforms.
78014
78015         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78016         arbitrarily.
78017
78018 2003-05-26  Jim Meyering  <jim@meyering.net>
78019
78020         Merge in a change from coreutils:
78021         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78022         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78023         that condition, rather than `-1' which is slightly misleading.
78024         Change the name of the cache variable to have the gl_ prefix.
78025         Prompted by a patch from Richard Dawe for DJGPP.
78026
78027 2003-05-24  Karl Berry  <karl@gnu.org>
78028
78029         * config/config.guess: update from prep.
78030
78031 2003-05-22  Karl Berry  <karl@gnu.org>
78032
78033         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78034
78035 2003-05-20  Karl Berry  <karl@gnu.org>
78036
78037         * config/config.guess: update from prep.
78038
78039 2003-05-18  Karl Berry  <karl@gnu.org>
78040
78041         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78042         might actually be set by the user.
78043
78044         * config/depcomp, install-sh, mdate-sh: update from automake.
78045
78046 2003-05-17  Bruno Haible  <bruno@clisp.org>
78047
78048         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78049         invalid expansion for AC_EGREP_CPP.
78050         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78051         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78052         Suggested by Akim Demaille <akim@epita.fr> in
78053         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78054
78055 2003-05-12  Jim Meyering  <jim@meyering.net>
78056
78057         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78058         the space-padded-by-default conversion specifiers, %e, %k, %l.
78059
78060 2003-05-12  Bruno Haible  <bruno@clisp.org>
78061
78062         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78063         the string is longer than 4 KB.
78064
78065 2003-05-11  Karl Berry  <karl@gnu.org>
78066
78067         * config/config.{guess,sub}: update from prep.
78068
78069 2003-05-09  Bruno Haible  <bruno@clisp.org>
78070
78071         * modules/error: Add m4/strerror_r.m4 to file list.
78072
78073 2003-05-03  Bruno Haible  <bruno@clisp.org>
78074
78075         Upgrade to Unicode-4.0.
78076         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78077         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78078         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78079         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78080         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78081         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78082         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78083         Change width of U+E0100..U+E01EF from 1 to 0.
78084
78085 2003-04-25  Jim Meyering  <jim@meyering.net>
78086
78087         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78088         of type size_t, not int.
78089
78090 2003-04-25  Bruno Haible  <bruno@clisp.org>
78091
78092         * lib/copy-file.c: Include <stddef.h>, for size_t.
78093
78094 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78095
78096         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78097         code which expansion is under static control.  Patch imported from
78098         Akim Demaille's patch to Bison; see
78099         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78100
78101 2003-04-14  Bruno Haible  <bruno@clisp.org>
78102
78103         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78104
78105 2003-04-11  Jim Meyering  <jim@meyering.net>
78106
78107         Merge changes from Coreutils.
78108
78109         2003-03-22  Jim Meyering  <jim@meyering.net>
78110
78111         * lib/strftime.c (widen): Cast alloca return value to proper type.
78112
78113         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78114
78115         From GNU libc.
78116         * lib/strftime.c (my_strftime): Handle very large width
78117         specifications for numeric values correctly.  Improve checks for
78118         overflow.
78119
78120         2003-01-19  Jim Meyering  <jim@meyering.net>
78121
78122         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78123         definitions.
78124         (nl_get_alt_digit) [! defined my_strftime]: Define.
78125         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78126         _nl_get_alt_digit and _nl_get_walt_digit.
78127
78128         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78129         libc. These changes have no effect outside of _LIBC.
78130
78131 2003-04-10  Bruno Haible  <bruno@clisp.org>
78132
78133         * modules/findprog: New file.
78134         * MODULES.html.sh (func_all_modules): Add it.
78135
78136 2003-04-10  Bruno Haible  <bruno@clisp.org>
78137
78138         * m4/findprog.m4: New file.
78139         * m4/eaccess.m4: New file.
78140
78141 2003-04-10  Bruno Haible  <bruno@clisp.org>
78142
78143         * lib/findprog.h: New file, from GNU gettext.
78144         * lib/findprog.c: New file, from GNU gettext.
78145
78146 2003-04-05  Jim Meyering  <jim@meyering.net>
78147
78148         Merge changes from Coreutils.
78149
78150         * lib/exclude.h (PARAMS): Remove definition and uses.
78151         * lib/exclude.c: Remove uses of `PARAMS'.
78152
78153         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78154         Add test-cases for DOS filenames. Declare program_name.
78155         (main): Set up program_name.  Patch by Rich Dawe.
78156
78157         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78158         error from mntctl.
78159         Use mntctl's return value to drive the entry-processing loop, since
78160         we can't rely on the value of the vmt_length member in the last
78161         entry.  On some systems doing so could result in exhausting
78162         virtual memory.  Based in part on a patch from Mike Jetzer.
78163
78164 2003-04-04  Bruno Haible  <bruno@clisp.org>
78165
78166         * modules/linebreak: New file.
78167         * MODULES.html.sh (func_all_modules): Add it.
78168
78169 2003-04-04  Bruno Haible  <bruno@clisp.org>
78170
78171         * m4/linebreak.m4: New file.
78172
78173 2003-04-04  Bruno Haible  <bruno@clisp.org>
78174
78175         * lib/linebreak.h: New file, from GNU gettext.
78176         * lib/linebreak.c: New file, from GNU gettext with slight
78177         modifications.
78178         * lib/lbrkprop.h: New file, from GNU gettext.
78179
78180 2003-04-03  Bruno Haible  <bruno@clisp.org>
78181
78182         * modules/utf8-ucs4: New file.
78183         * modules/utf16-ucs4: New file.
78184         * modules/ucs4-utf8: New file.
78185         * modules/ucs4-utf16: New file.
78186         * MODULES.html.sh (func_all_modules): Add them.
78187
78188 2003-04-03  Bruno Haible  <bruno@clisp.org>
78189
78190         * m4/utf-ucs4.m4: New file.
78191         * m4/ucs4-utf.m4: New file.
78192
78193 2003-04-03  Bruno Haible  <bruno@clisp.org>
78194
78195         * lib/utf8-ucs4.h: New file, from GNU gettext.
78196         * lib/utf16-ucs4.h: New file, from GNU gettext.
78197         * lib/ucs4-utf8.h: New file, from GNU gettext.
78198         * lib/ucs4-utf16.h: New file, from GNU gettext.
78199
78200 2003-04-02  Bruno Haible  <bruno@clisp.org>
78201
78202         * modules/binary-io: New file.
78203         * MODULES.html.sh (func_all_modules): Add it.
78204
78205 2003-04-02  Bruno Haible  <bruno@clisp.org>
78206
78207         * lib/binary-io.h: New file, from GNU gettext.
78208
78209 2003-04-01  Bruno Haible  <bruno@clisp.org>
78210
78211         * modules/pathname: New file.
78212         * MODULES.html.sh (func_all_modules): Add it.
78213
78214 2003-04-01  Bruno Haible  <bruno@clisp.org>
78215
78216         * lib/pathname.h: New file, from GNU gettext.
78217         * lib/concatpath.c: New file, from GNU gettext.
78218
78219 2003-03-30  Bruno Haible  <bruno@clisp.org>
78220
78221         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78222
78223 2003-03-30  Bruno Haible  <bruno@clisp.org>
78224
78225         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78226         function chown() doesn't exist.
78227
78228 2003-03-28  Bruno Haible  <bruno@clisp.org>
78229
78230         * modules/copy-file: New file.
78231         * MODULES.html.sh (func_all_modules): Add it.
78232
78233 2003-03-28  Bruno Haible  <bruno@clisp.org>
78234
78235         * m4/copy-file.m4: New file.
78236
78237 2003-03-28  Bruno Haible  <bruno@clisp.org>
78238
78239         * lib/copy-file.h: New file, from GNU gettext.
78240         * lib/copy-file.c: New file, from GNU gettext.
78241
78242 2003-03-18  Jim Meyering  <jim@meyering.net>
78243
78244         * lib/quote.c (quote_n): Fix typo in comment.
78245
78246 2003-03-18  Bruno Haible  <bruno@clisp.org>
78247
78248         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78249         checking.
78250         * m4/onceonly_2_57.m4: Likewise.
78251
78252 2003-03-17  Bruno Haible  <bruno@clisp.org>
78253
78254         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78255         (m4_quote): Remove macro.
78256         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78257
78258 2003-03-14  Jim Meyering  <jim@meyering.net>
78259
78260         Merge changes from Coreutils.
78261         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78262         to be const, in order to avoid warnings.
78263         (obstack_room): Likewise.
78264         (obstack_empty_p): Likewise.
78265
78266 2003-03-14  Bruno Haible  <bruno@clisp.org>
78267
78268         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78269         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78270
78271 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78272
78273         Merge changes from Bison.
78274         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78275         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78276         when compiling Bison 1.875's `bitset bset = obstack_alloc
78277         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78278         * lib/hash.c: Include <stdbool.h> unconditionally.
78279
78280 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78281
78282         * m4/onceonly.m4 (m4_quote): New macro.
78283         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78284         Quote AC_FOREACH variable-expansions properly.
78285
78286 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78287
78288         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78289
78290 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78291
78292         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78293         Reported by Bruce Becker; see:
78294         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78295
78296 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78297             Bruno Haible  <bruno@clisp.org>
78298
78299         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78300         Reported by John Hughes, see
78301         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78302
78303 2003-02-20  Bruno Haible  <bruno@clisp.org>
78304
78305         * MODULES.html.sh (func_all_modules): Add poll.
78306
78307 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78308
78309         * modules/poll: New file.
78310
78311 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78312
78313         * lib/poll_.h: New file.
78314         * lib/poll.c: New file.
78315
78316 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78317
78318         * m4/poll.m4: New file.
78319
78320 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78321
78322         * modules/mathl: New file.
78323
78324 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78325
78326         * lib/mathl.h: New file.
78327         * lib/acosl.c: New file.
78328         * lib/asinl.c: New file.
78329         * lib/atanl.c: New file.
78330         * lib/ceill.c: New file.
78331         * lib/cosl.c: New file.
78332         * lib/expl.c: New file.
78333         * lib/floorl.c: New file.
78334         * lib/frexpl.c: New file.
78335         * lib/ldexpl.c: New file.
78336         * lib/logl.c: New file.
78337         * lib/sincosl.c: New file.
78338         * lib/sinl.c: New file.
78339         * lib/sqrtl.c: New file.
78340         * lib/tanl.c: New file.
78341         * lib/trigl.c: New file.
78342         * lib/trigl.h: New file.
78343
78344 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78345
78346         * m4/mathl.m4: New file.
78347
78348 2003-02-18  Bruno Haible  <bruno@clisp.org>
78349
78350         * MODULES.html.sh (func_all_modules): Add mathl.
78351
78352 2003-02-17  Bruno Haible  <bruno@clisp.org>
78353
78354         * modules/mkdtemp: New module.
78355         * MODULES.html.sh (func_all_modules): Add it.
78356
78357 2003-02-17  Bruno Haible  <bruno@clisp.org>
78358
78359         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78360
78361 2003-02-17  Bruno Haible  <bruno@clisp.org>
78362
78363         * lib/mkdtemp.h: New file, from GNU gettext.
78364         * lib/mkdtemp.c: New file, from GNU gettext.
78365
78366 2003-02-02  Jim Meyering  <jim@meyering.net>
78367
78368         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78369         e.g. glibc-2.2.93.
78370
78371 2003-01-31  Bruno Haible  <bruno@clisp.org>
78372
78373         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78374         'rpl_rename'.
78375         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78376         'rpl_strnlen'.
78377         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78378         'rpl_strtod'.
78379         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78380         'rpl_utime'.
78381
78382 2003-01-31  Bruno Haible  <bruno@clisp.org>
78383
78384         * lib/rename.c: #undef rename before defining rpl_rename.
78385         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78386
78387 2003-01-30  Bruno Haible  <bruno@clisp.org>
78388
78389         * modules/vasnprintf, modules/vasprintf: New modules.
78390         * MODULES.html.sh (func_all_modules): Add them.
78391
78392 2003-01-30  Bruno Haible  <bruno@clisp.org>
78393
78394         * m4/signed.m4: New file, from GNU gettext.
78395         * m4/longdouble.m4: New file, from GNU gettext.
78396         * m4/wchar_t.m4: New file, from GNU gettext.
78397         * m4/wint_t.m4: New file, from GNU gettext.
78398         * m4/vasnprintf.m4: New file.
78399         * m4/vasprintf.m4: New file.
78400
78401 2003-01-30  Bruno Haible  <bruno@clisp.org>
78402
78403         * lib/printf-args.h: New file, from GNU gettext.
78404         * lib/printf-args.c: New file, from GNU gettext.
78405         * lib/printf-parse.h: New file, from GNU gettext.
78406         * lib/printf-parse.c: New file, from GNU gettext.
78407         * lib/vasnprintf.h: New file, from GNU gettext.
78408         * lib/vasnprintf.c: New file, from GNU gettext.
78409         * lib/asnprintf.c: New file, from GNU gettext.
78410         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78411         * lib/vasprintf.c: New file, from GNU gettext.
78412         * lib/asprintf.c: New file, from GNU gettext.
78413
78414 2003-01-29  Bruno Haible  <bruno@clisp.org>
78415
78416         * modules/stpncpy: New module.
78417         * MODULES.html.sh (func_all_modules): Add it.
78418
78419 2003-01-29  Bruno Haible  <bruno@clisp.org>
78420
78421         * m4/stpncpy.m4: New file.
78422
78423 2003-01-29  Bruno Haible  <bruno@clisp.org>
78424
78425         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78426         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78427
78428 2003-01-28  Bruno Haible  <bruno@clisp.org>
78429
78430         * modules/c-ctype: New module.
78431         * MODULES.html.sh (func_all_modules): Add it.
78432
78433 2003-01-28  Bruno Haible  <bruno@clisp.org>
78434
78435         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78436         Paul Eggert.
78437         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78438         Paul Eggert.
78439
78440 2003-01-27  Bruno Haible  <bruno@clisp.org>
78441
78442         * modules/xsetenv: New module.
78443         * MODULES.html.sh (func_all_modules): Add it.
78444
78445 2003-01-27  Bruno Haible  <bruno@clisp.org>
78446
78447         * lib/xsetenv.h: New file, from GNU gettext.
78448         * lib/xsetenv.c: New file, from GNU gettext.
78449
78450 2003-01-23  Jim Meyering  <jim@meyering.net>
78451
78452         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78453         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78454
78455 2003-01-23  Bruno Haible  <bruno@clisp.org>
78456
78457         * modules/minmax: New module.
78458         * MODULES.html.sh (func_all_modules): Add it.
78459
78460 2003-01-23  Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78463         Eggert.
78464
78465 2003-01-22  Bruno Haible  <bruno@clisp.org>
78466
78467         * modules/exit: New module.
78468         * MODULES.html.sh (func_all_modules): Add it.
78469
78470 2003-01-22  Bruno Haible  <bruno@clisp.org>
78471
78472         * lib/exit.h: New file, from GNU gettext.
78473
78474 2003-01-19  Bruno Haible  <bruno@clisp.org>
78475
78476         * gnulib-tool: Recognize option --extract-maintainer.
78477         (func_get_maintainer): New function.
78478         * modules/*: Add Maintainer entry.
78479
78480 2003-01-16  Jim Meyering  <jim@meyering.net>
78481
78482         * m4/regex.m4: The `regex' struct is both input and output.
78483         Initialize it before each use.  Patch by Tim Waugh.
78484
78485 2003-01-16  Bruno Haible  <bruno@clisp.org>
78486
78487         * MODULES.html.sh: Add a table of contents. Add the module name as
78488         leftmost column. Add hyperlinks.
78489
78490 2003-01-15  Bruno Haible  <bruno@clisp.org>
78491
78492         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78493
78494 2003-01-15  Bruno Haible  <bruno@clisp.org>
78495
78496         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78497         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78498         suffix.
78499
78500 2003-01-15  Bruno Haible  <bruno@clisp.org>
78501
78502         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78503
78504 2003-01-15  Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78507         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78508
78509 2003-01-14  Jim Meyering  <jim@meyering.net>
78510
78511         * lib/same.c (same_name): Tweak a comment.
78512
78513 2003-01-14  Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78516         when a string comparison is sufficient.
78517
78518 2003-01-14  Bruno Haible  <bruno@clisp.org>
78519
78520         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78521         'unsigned int'.
78522
78523 2003-01-14  Bruno Haible  <bruno@clisp.org>
78524
78525         * lib/hash-pjw.c: Add comment about low quality of this function.
78526
78527 2003-01-13  Bruno Haible  <bruno@clisp.org>
78528
78529         * modules/stpcpy: Distribute lib/stpcpy.h.
78530         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78531
78532 2003-01-13  Bruno Haible  <bruno@clisp.org>
78533
78534         * modules/*: Add a description.
78535         * modules/strpbrk: Fix Makefile.am snippet.
78536         * modules/strtoimax: Fix dependencies.
78537         * modules/strtoumax: Likewise.
78538
78539 2003-01-13  Bruno Haible  <bruno@clisp.org>
78540
78541         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78542         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78543         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78544
78545 2003-01-13  Bruno Haible  <bruno@clisp.org>
78546
78547         * gnulib-tool (func_create_testdir): Store config/* files in the main
78548         directory.
78549         * config.rpath: Move to ...
78550         * config/config.rpath: ... here.
78551         * modules/gettext: Contains config/config.rpath, not config.rpath.
78552         * modules/iconv: Likewise.
78553
78554 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78555
78556         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78557         to avoid collisions with libcurses and libreadline.
78558
78559         * m4/getstr.m4: Remove.
78560         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78561
78562 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78563
78564         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78565         to avoid collisions with libcurses and libreadline.
78566
78567         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78568         * lib/getstr.h, getstr.c: Remove.
78569         * lib/getline.c: Include "getline.h", to check interface.
78570         Move body of old getstr.c here: this defines MIN_CHUNK and
78571         declares getdelim2, which is renamed from getstr.
78572         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78573
78574         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78575         All uses changed.
78576         * lib/linebuffer.h: Likewise.
78577         (readline): Remove backward-compatibility macro.
78578
78579 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78580
78581         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78582         to avoid collisions with libcurses and libreadline.
78583         * getstr: Remove.
78584         * MODULES.html.sh: Remove getstr.
78585         * modules/getline: Depend on unlocked-io, not getstr.
78586
78587 2003-01-12  Jim Meyering  <jim@meyering.net>
78588
78589         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78590
78591 2003-01-10  Bruno Haible  <bruno@clisp.org>
78592
78593         * modules/alloca: Change Makefile.am requirements. Simplify Include
78594         requirements. Add lib/alloca_.h to file list.
78595
78596 2003-01-10  Bruno Haible  <bruno@clisp.org>
78597
78598         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78599
78600 2003-01-10  Bruno Haible  <bruno@clisp.org>
78601
78602         * lib/alloca_.h: New file.
78603         * lib/getdate.y: Unconditionally include alloca.h.
78604         * lib/makepath.c: Likewise.
78605         * lib/setenv.c: Likewise.
78606         * lib/userspec.c: Likewise.
78607
78608 2003-01-09  Karl Berry  <karl@gnu.org>
78609
78610         * MODULES.html.sh: include `dirname $0` in PATH, to find
78611         gnulib-tool.
78612
78613 2003-01-09  Bruno Haible  <bruno@clisp.org>
78614
78615         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78616         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78617
78618 2003-01-09  Bruno Haible  <bruno@clisp.org>
78619
78620         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78621
78622 2003-01-09  Bruno Haible  <bruno@clisp.org>
78623
78624         * lib/stdbool.h.in: New file.
78625
78626 2003-01-09  Bruno Haible  <bruno@clisp.org>
78627
78628         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78629         * MODULES.html.sh: Likewise.
78630
78631 2003-01-08  Jim Meyering  <jim@meyering.net>
78632
78633         * lib/full-write.c: Undefine and define-away `const' after inclusion
78634         of errno.h, not before.  Suggestion from Bruno Haible.
78635
78636 2003-01-08  Bruno Haible  <bruno@clisp.org>
78637
78638         * modules/full-read: Depend on full-write.
78639
78640 2003-01-08  Bruno Haible  <bruno@clisp.org>
78641
78642         * lib/safe-read.c: Include specification header first, to ensure its
78643         selfcontainedness.
78644         * lib/full-write.c: Likewise.
78645
78646 2003-01-07  Jim Meyering  <jim@meyering.net>
78647
78648         * lib/full-write.c: Rework so that it may serve to define full_read,
78649         too.
78650         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78651
78652 2003-01-07  Bruno Haible  <bruno@clisp.org>
78653
78654         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78655         <inttypes.h>.
78656         * lib/xstrtol.h: Likewise.
78657         * lib/xstrtoimax.c: Likewise.
78658         * lib/xstrtoumax.c: Likewise.
78659         * lib/human.h: Likewise.
78660
78661         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78662         on systems that have <inttypes.h> but not <stdint.h>.
78663
78664 2003-01-07  Bruno Haible  <bruno@clisp.org>
78665
78666         * MODULES.html.sh: Add copyright notice.
78667         (missed_files): Omit CVS directory entries.
78668         (func_module): Make it work with sed-3.02.
78669         * MODULES.txt: Remove file.
78670
78671 2003-01-06  Jim Meyering  <jim@meyering.net>
78672
78673         * lib/version-etc.c: Update year in translatable copyright string.
78674
78675 2003-01-03  Karl Berry  <karl@gnu.org>
78676
78677         * config/config.{guess,sub}: update from prep.
78678
78679 2003-01-02  Karl Berry  <karl@gnu.org>
78680
78681         * doc/COPYING.DOC: belatedly updated to 1.2.
78682
78683 2003-01-01  Karl Berry  <karl@gnu.org>
78684
78685         * gnulib-tool (func_verify_module): report module name $module in
78686         error message, not $1.
78687         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78688         be created, only if it doesn't exist.
78689         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78690
78691 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78692
78693         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78694
78695 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78696
78697         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78698         memcmp if strcoll doesn't work.
78699
78700 2002-12-31  Bruno Haible  <bruno@clisp.org>
78701
78702         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78703         nonempty.
78704
78705 2002-12-31  Bruno Haible  <bruno@clisp.org>
78706
78707         * lib/memcoll.c (STRCOLL): New macro.
78708         (memcoll): Use it.
78709
78710 2002-12-31  Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/localcharset.h: New file.
78713         * lib/localcharset.c: Include it.
78714         * lib/unicodeio.c: Likewise.
78715
78716 2002-12-31  Bruno Haible  <bruno@clisp.org>
78717
78718         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78719         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78720
78721 2002-12-31  Bruno Haible  <bruno@clisp.org>
78722
78723         * lib/getline.h: Include <stddef.h>, for size_t.
78724
78725         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78726         * lib/unicodeio.c: Don't include <stddef.h>.
78727
78728 2002-12-31  Bruno Haible  <bruno@clisp.org>
78729
78730         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78731         HAVE_TM_ZONE.
78732
78733 2002-12-24  Karl Berry  <karl@gnu.org>
78734
78735         * config/config.guess: update from prep.
78736
78737 2002-12-24  Bruno Haible  <bruno@clisp.org>
78738
78739         General infrasructure.
78740         * m4/README: Rewritten.
78741         * m4/onceonly.m4: New file.
78742         * m4/onceonly_2_57.m4: New file.
78743
78744         Module atexit.
78745         * m4/atexit.m4: New file.
78746
78747         Module strtod.
78748         * m4/strtod.m4: New file.
78749
78750         Module strtol.
78751         * m4/strtol.m4: New file.
78752
78753         Module strtoul.
78754         * m4/strtoul.m4: New file.
78755
78756         Module memchr.
78757         * m4/memchr.m4: New file.
78758
78759         Module memcmp.
78760         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78761         (jm_FUNC_MEMCMP): Invoke it.
78762
78763         Module memcpy.
78764         * m4/memcpy.m4: New file.
78765
78766         Module memmove.
78767         * m4/memmove.m4: New file.
78768
78769         Module memset.
78770         * m4/memset.m4: New file.
78771
78772         Module strcspn.
78773         * m4/strcspn.m4: New file.
78774
78775         Module strpbrk.
78776         * m4/strpbrk.m4: New file.
78777
78778         Module strstr.
78779         * m4/strstr.m4: New file.
78780
78781         Module strerror.
78782         * m4/strerror.m4: New file.
78783
78784         Module mktime.
78785         * m4/mktime.m4: Renamed from jm-mktime.m4.
78786         (gl_PREREQ_MKTIME): New macro.
78787         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78788
78789         Module malloc.
78790         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78791         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78792         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78793
78794         Module realloc.
78795         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78796         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78797         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78798
78799         Module strftime.
78800         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78801         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78802         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78803         gl_TM_GMTOFF.
78804         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78805
78806         Module xalloc.
78807         * m4/xalloc.m4: New file.
78808
78809         Module alloca.
78810         * m4/alloca.m4: New file.
78811
78812         Module putenv.
78813         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78814         (jm_FUNC_PUTENV): Invoke it.
78815
78816         Module setenv.
78817         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78818         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78819         when invoked twice.
78820         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78821         gt_FUNC_SETENV.
78822
78823         Module memrchr.
78824         * m4/memrchr.m4: New file.
78825
78826         Module stpcpy.
78827         * m4/stpcpy.m4: New file.
78828
78829         Module strcase.
78830         * m4/strcase.m4: New file.
78831
78832         Module strdup.
78833         * m4/strdup.m4: New file.
78834
78835         Module strnlen.
78836         * m4/strnlen.m4: New file.
78837
78838         Module strndup.
78839         * m4/strndup.m4: New file.
78840
78841         Module xstrtod.
78842         * m4/xstrtod.m4: New file.
78843
78844         Module xstrtol.
78845         * m4/xstrtol.m4: New file.
78846
78847         Module getdate.
78848         * m4/getdate.m4: New file.
78849
78850         Module unlocked-io.
78851         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78852         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78853         * m4/jm-glibc-io.m4n: Remove file.
78854
78855         Module long-options.
78856         * m4/long-options.m4: New file.
78857
78858         Module md5.
78859         * m4/md5.m4: New file.
78860
78861         Module sha.
78862         * m4/sha.m4: New file.
78863
78864         Module getstr.
78865         * m4/getstr.m4: New file.
78866
78867         Module getline.
78868         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78869         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78870         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78871         simply getline. Infoke gl_PREREQ_GETLINE.
78872
78873         Module obstack.
78874         * m4/obstack.m4: New file.
78875
78876         Module hash.
78877         * m4/hash.m4: New file.
78878
78879         Module readtokens.
78880         * m4/readtokens.m4: New file.
78881
78882         Module strverscmp.
78883         * m4/strverscmp.m4: New file.
78884
78885         Module stdbool.
78886         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78887         OSF/1.
78888
78889         Module strtoll.
78890         * m4/strtoll.m4: New file.
78891
78892         Module strtoull.
78893         * m4/strtoull.m4: New file.
78894
78895         Module strtoimax.
78896         * m4/strtoimax.m4: New file.
78897
78898         Module strtoumax.
78899         * m4/strtoumax.m4: New file.
78900
78901         Module xstrtoimax.
78902         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78903         jm_AC_PREREQ_XSTRTOIMAX.
78904         Moved the strtol prerequisites to strtol.m4.
78905         Moved the strtoll prerequisites to strtoll.m4.
78906         Moved the strtoimax prerequisites to strtoimax.m4.
78907
78908         Module xstrtoumax.
78909         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78910         jm_AC_PREREQ_XSTRTOUMAX.
78911         Moved the strtoul prerequisites to strtoul.m4.
78912         Moved the strtoull prerequisites to strtoull.m4.
78913         Moved the strtoumax prerequisites to strtoumax.m4.
78914
78915         Module chown.
78916         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78917         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78918
78919         Module dup2.
78920         * m4/dup2.m4: New file.
78921
78922         Module ftruncate.
78923         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78924         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78925
78926         Module getgroups.
78927         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78928         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78929
78930         Module gettimeofday.
78931         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78932         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78933         gl_PREREQ_GETTIMEOFDAY.
78934
78935         Module mkdir.
78936         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78937         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78938
78939         Module mkstemp.
78940         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78941         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78942         jm_AC_TYPE_UINTMAX_T.
78943         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78944
78945         Module stat.
78946         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78947         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78948
78949         Module lstat.
78950         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78951         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78952
78953         Module timespec.
78954         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78955         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78956         * m4/st_mtim.m4: Indentation.
78957
78958         Module nanosleep.
78959         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78960         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78961         gl_PREREQ_NANOSLEEP.
78962
78963         Module regex.
78964         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78965         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78966         (gl_REGEX): New macro.
78967
78968         Module rename.
78969         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78970         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78971
78972         Module rmdir.
78973         * m4/rmdir.m4: New file.
78974
78975         Module utime.
78976         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78977         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78978         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78979
78980         Module dirname.
78981         * m4/dirname.m4: New file.
78982
78983         Module getopt.
78984         * m4/getopt.m4: New file.
78985
78986         Module unistd-safer.
78987         * m4/unistd-safer.m4: New file.
78988
78989         Module fnmatch.
78990         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78991         declaration.
78992         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78993         (gl_FUNC_FNMATCH_POSIX): New macro.
78994         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78995         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78996         simply fnmatch.
78997
78998         Module exclude.
78999         * m4/exclude.m4: New file.
79000
79001         Module human.
79002         * m4/human.m4: New file.
79003
79004         Module acl.
79005         * m4/acl.m4: Nop.
79006
79007         Module backupfile.
79008         * m4/backupfile.m4: New file.
79009         * m4/d-ino.m4: Indentation.
79010
79011         Module fsusage.
79012         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79013         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79014         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79015
79016         Module dirfd.
79017         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79018         requirements.
79019
79020         Module euidaccess.
79021         * m4/euidaccess.m4: New file.
79022
79023         Module file-type.
79024         * m4/file-type.m4: New file.
79025
79026         Module fileblocks.
79027         * m4/fileblocks.m4: New file.
79028
79029         Module filemode.
79030         * m4/filemode.m4: New file.
79031
79032         Module isdir.
79033         * m4/isdir.m4: New file.
79034
79035         Module lchown.
79036         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79037         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79038
79039         Module makepath.
79040         * m4/makepath.m4: New file.
79041
79042         Module modechange.
79043         * m4/modechange.m4: New file.
79044
79045         Module mountlist.
79046         * m4/mountlist.m4: New file.
79047         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79048         Indentation.
79049
79050         Module path-concat.
79051         * m4/path-concat.m4: New file.
79052
79053         Module pathmax.
79054         * m4/pathmax.m4: New file.
79055
79056         Module same.
79057         * m4/same.m4: New file.
79058
79059         Module save-cwd.
79060         * m4/save-cwd.m4: New file.
79061
79062         Module savedir.
79063         * m4/savedir.m4: New file.
79064
79065         Module xgetcwd.
79066         * m4/xgetcwd.m4: New file.
79067         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79068
79069         Module xreadlink.
79070         * m4/xreadlink.m4: New file.
79071
79072         Module safe-read.
79073         * m4/safe-read.m4: New file.
79074
79075         Module safe-write.
79076         * m4/safe-write.m4: New file.
79077
79078         Module closeout.
79079         * m4/closeout.m4: New file.
79080
79081         Module stdio-safer.
79082         * m4/stdio-safer.m4: New file.
79083
79084         Module getpass.
79085         * m4/getpass.m4: New file.
79086
79087         Module getugroups.
79088         * m4/getugroups.m4: New file.
79089
79090         Module group-member.
79091         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79092         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79093
79094         Module idcache.
79095         * m4/idcache.m4: New file.
79096
79097         Module userspec.
79098         * m4/userspec.m4: New file.
79099
79100         Module gettime.
79101         * m4/clock_time.m4: New file.
79102         * m4/gettime.m4: New file.
79103
79104         Module settime.
79105         * m4/settime.m4: New file.
79106
79107         Module posixtm.
79108         * m4/posixtm.m4: New file.
79109
79110         Module gethostname.
79111         * m4/gethostname.m4: New file.
79112
79113         Module canon-host.
79114         * m4/canon-host.m4: New file.
79115
79116         Module gettext.
79117         * m4/codeset.m4: New file, from gettext-0.11.5.
79118         * m4/gettext.m4: New file, from gettext-0.11.5.
79119         * m4/glibc21.m4: New file, from gettext-0.11.5.
79120         * m4/iconv.m4: New file, from gettext-0.11.5.
79121         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79122         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79123         * m4/inttypes.m4: New file, from gettext-0.11.5.
79124         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79125         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79126         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79127         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79128         * m4/lib-link.m4: New file, from gettext-0.11.5.
79129         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79130         * m4/progtest.m4: New file, from gettext-0.11.5.
79131         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79132         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79133         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79134
79135         Module localcharset.
79136         * m4/localcharset.m4: New file.
79137
79138         Module hard-locale.
79139         * m4/hard-locale.m4: New file.
79140
79141         Module mbswidth.
79142         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79143         onceonly macros.
79144         * m4/mbrtowc.m4: Add comment.
79145
79146         Module memcasecmp.
79147         * m4/memcasecmp.m4: New file.
79148
79149         Module memcoll.
79150         * m4/memcoll.m4: New file.
79151
79152         Module unicodeio.
79153         * m4/unicodeio.m4: New file.
79154
79155         Module rpmatch.
79156         * m4/rpmatch.m4: New file.
79157
79158         Module yesno.
79159         * m4/yesno.m4: New file.
79160
79161         Module exitfail.
79162         * m4/exitfail.m4: New file.
79163
79164         Module c-stack.
79165         * m4/c-stack.m4 (gl_C_STACK): New macro.
79166         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79167
79168         Module error.
79169         * m4/error.m4 (gl_ERROR): New macro.
79170         (jm_PREREQ_ERROR): Use onceonly macros.
79171
79172         Module fatal.
79173         * m4/fatal.m4: New file.
79174
79175         Module getloadavg.
79176         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79177         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79178
79179         Module getpagesize.
79180         * m4/getpagesize.m4: New file.
79181
79182         Module getusershell.
79183         * m4/getusershell.m4: New file.
79184
79185         Module physmem.
79186         * m4/physmem.m4: New file.
79187
79188         Module posixver.
79189         * m4/posixver.m4: New file.
79190
79191         Module quotearg.
79192         * m4/quotearg.m4: New file.
79193
79194         Module quote.
79195         * m4/quote.m4: New file.
79196
79197         Module readutmp.
79198         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79199
79200         Module sig2str.
79201         * m4/sig2str.m4: New file.
79202
79203         Other.
79204         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79205         ulonglong.m4.
79206         * m4/intmax_t.m4: New file.
79207         * m4/d-type.m4: Indentation.
79208         * m4/jm-macros.m4: Update.
79209         * m4/prereq.m4 (jm_PREREQ): Update.
79210         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79211         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79212         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79213         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79214         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79215         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79216         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79217         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79218         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79219         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79220         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79221         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79222         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79223         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79224         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79225         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79226         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79227         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79228         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79229
79230 2002-12-24  Bruno Haible  <bruno@clisp.org>
79231
79232         * MODULES.txt: Update according to m4/ changes.
79233
79234         Module gettext.
79235         * config.rpath: New file, from gettext-0.11.5.
79236
79237         * modules/*: New module descriptions.
79238         * gnulib-tool: New file.
79239         * MODULES.html.sh: New file.
79240
79241 2002-12-21  Karl Berry  <karl@gnu.org>
79242
79243         * doc/fdl.texi: update to version 1.2.
79244
79245 2002-12-19  Karl Berry  <karl@gnu.org>
79246
79247         * config/config.guess: update from prep.
79248
79249 2002-12-18  Bruno Haible  <bruno@clisp.org>
79250
79251         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79252         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79253
79254 2002-12-17  Bruno Haible  <bruno@clisp.org>
79255
79256         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79257         stdlib.h, string.h.
79258
79259 2002-12-17  Bruno Haible  <bruno@clisp.org>
79260
79261         * lib/canon-host.c (strdup): Remove unused declaration.
79262
79263         * lib/fsusage.c: Include full_read.h.
79264         (get_fs_usage): Use full_read instead of safe_read.
79265
79266         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79267
79268 2002-12-12  Karl Berry  <karl@gnu.org>
79269
79270         * config/config.guess: update from prep.
79271
79272 2002-12-11  Bruno Haible  <bruno@clisp.org>
79273
79274         * m4/setenv.m4: New file, from gettext-0.11.5.
79275
79276 2002-12-11  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79279         not unsetenv().
79280         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79281         modifications:
79282
79283         2002-12-11  Bruno Haible  <bruno@clisp.org>
79284
79285                 * setenv.c (alloca): Fall back to malloc.
79286                 (freea): New macro.
79287                 (setenv): Use freea() to free memory allocated with alloca().
79288
79289         2002-11-13  Bruno Haible  <bruno@clisp.org>
79290
79291                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79292                 function declarations.
79293                 * unsetenv.c (unsetenv): Likewise.
79294
79295         2002-03-04  Bruno Haible  <bruno@clisp.org>
79296
79297                 Portability to AIX 4.3.3.
79298                 * unsetenv.c: New file, extracted from setenv.c.
79299                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79300
79301         2001-12-20  Bruno Haible  <bruno@clisp.org>
79302
79303                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79304                 use malloc instead. For SunOS 4.
79305
79306         2001-12-11  Bruno Haible  <bruno@clisp.org>
79307
79308                 * setenv.c: Declare alloca.
79309                 (compar_fn_t): New typedef.
79310                 (KNOWN_VALUE, STORE_VALUE): Use it.
79311
79312         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79313         setenv.h.
79314
79315 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79316
79317         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79318         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79319         Choose values that are less likely to collide with system fnmatch
79320         options.
79321         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79322         defined (e.g., a pure POSIX system).
79323         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79324         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79325
79326 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79327
79328         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79329         a pain in practice to deal with generated m4 files.  This change
79330         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79331
79332         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79333         and jm-glibc-io.m4, as they are no longer a special case.
79334         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79335         kludge and the auto-generation stuff.  Check only whether the
79336         functions are declared, not whether they exist, since older hosts
79337         that don't declare the functions can't use the optimization anyway.
79338
79339 2002-12-06  Jim Meyering  <jim@meyering.net>
79340
79341         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79342
79343         Merge in changes from libc's misc/error.c, in preparation
79344         for the merge of gnulib's changes back into libc.
79345
79346         * lib/error.c (_): Define only if not already defined.
79347         Move definition to follow all #include directives.
79348         Include unlocked-io.h only if !_LIBC.
79349         [_LIBC]: Include <libio/libioP.h>.
79350         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79351         (fflush): Tweak definition to use INTUSE.
79352         (putc): Define.
79353
79354 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79355
79356         * lib/alloca.c [defined emacs]: Include "lisp.h".
79357         (xalloc_die) [defined emacs]: New macro.
79358         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79359         [! defined emacs]: Include <xalloc.h>.
79360         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79361         (pointer): Typedef to POINTER_TYPE *.
79362         (malloc): Remove decl; we now always use xmalloc.
79363         (alloca): Use old-style definition, since Emacs needs this.
79364         Check for arithmetic overflow when computing combined size.
79365
79366 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79367
79368         Do not generate unlocked-io.h automatically, since it's easier to
79369         maintain it by hand.
79370
79371         * lib/unlocked-io.h: New file, from GNU diffutils,
79372         but with proper copyright notice and attribution.
79373         * lib/gen-uio: Remove.
79374         * lib/Makefile.am: Add copyright notice.
79375         (libfetish_a_SOURCES): Add unlocked-io.h.
79376         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79377         (DISTCLEANFILES, io_functions): Remove macros.
79378         (EXTRA_DIST): Remove gen_uio.
79379         (unlocked-io.h): Remove rule.
79380
79381 2002-12-04  Jim Meyering  <jim@meyering.net>
79382
79383         Reflect the fact that stat.c and lstat.c are no longer generated.
79384         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79385         (DISTCLEANFILES): Likewise.
79386         (EXTRA_DIST): Likewise.
79387         (all_local): Don't depend on stat.c or lstat.c.
79388         (stat.c, lstat.c): Remove rules.
79389         (EXTRA_DIST): Remove xstat.in.
79390
79391         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79392         * lib/stat.c: New file.  Contents mostly from xstat.in.
79393         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79394         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79395
79396         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79397         too.
79398         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79399
79400 2002-12-03  Jim Meyering  <jim@meyering.net>
79401
79402         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79403         but not semantics, to minimize the differences between these two files.
79404         (safe_read): Change comment to mention SAFE_READ_ERROR.
79405
79406         * lib/safe-read.c (IS_EINTR): Define.
79407         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79408
79409 2002-12-02  Jim Meyering  <jim@meyering.net>
79410
79411         * lib/safe-read.c (EINTR): Define.
79412         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79413         (INT_MAX): Provide fallback.
79414         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79415
79416         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79417
79418 2002-12-02  Bruno Haible  <bruno@clisp.org>
79419
79420         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79421         Define, taken from safe-read.c.
79422         (INT_MAX): Provide fallback.
79423         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79424         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79425
79426         * lib/safe-read.c (EINTR): Remove definition.
79427         (safe_read): Don't use EINTR if it is absent.
79428
79429 2002-12-01  Jim Meyering  <jim@meyering.net>
79430
79431         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79432         zero.
79433         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79434
79435 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79436
79437         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79438         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79439         with `if (! (value < limit)) abort ();', for readability.
79440
79441 2002-11-26  Karl Berry  <karl@gnu.org>
79442
79443         * lib/strdup.c: copy from libc again, with jim's ok.
79444         * lib/.cppi-disable: re-add strdup.c
79445
79446 2002-11-25  Karl Berry  <karl@gnu.org>
79447
79448         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79449         instead of "strtol.c".
79450
79451 2002-11-25  Karl Berry  <karl@gnu.org>
79452
79453         * config/install-sh: update from automake for variable quoting, $0 in
79454         error msgs, etc.
79455
79456         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79457         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79458         entry.
79459
79460 2002-11-25  Jim Meyering  <jim@meyering.net>
79461
79462         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79463
79464 2002-11-24  Karl Berry  <karl@gnu.org>
79465
79466         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79467         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79468
79469 2002-11-24  Jim Meyering  <jim@meyering.net>
79470
79471         Update from coreutils:
79472
79473         * lib/mktime.c: Merge in changes from libc.
79474
79475         Avoid a link-time failure on some Linux systems.
79476         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79477         (otherwise).
79478         (__mon_yday): Declare with the STATIC attribute.
79479         (__mktime_internal): Likewise.
79480         Based on a report from Greg Schafer.
79481
79482 2002-11-23  Jim Meyering  <jim@meyering.net>
79483
79484         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79485         Use `unsigned', not `int', as type of index.
79486
79487         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79488
79489         * lib/fsusage.c: Remove unneeded parentheses around operands of
79490         `defined'.
79491
79492 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79493
79494         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79495         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79496         so that we can be included first.
79497         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79498         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79499         No need to include stddef.h or sys/types.h any more.
79500         Surround local include files with "", not "<>".
79501         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79502         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79503         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79504         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79505         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79506         (ISPRINT): Remove; no longer needed now that we assume C89.
79507
79508         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79509         Preserve errno.
79510
79511         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79512         quotearg_char): Use SIZE_MAX rather than
79513         (size_t) -1 when we are talking about "infinity".
79514
79515         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79516
79517 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79518
79519         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79520         hint that one should use `if (! x) abort ();' rather than `assert
79521         (x);', and anyway it's one less thing to worry about configuring.
79522         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79523         hash_rehash, hash_insert): Use abort rather than assert.
79524
79525 2002-11-22  Bruno Haible  <bruno@clisp.org>
79526
79527         * lib/safe-read.h: Assume C89. Add comments.
79528         (safe_read): Change return type to size_t.
79529         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79530         byte counts > SSIZE_MAX correctly.
79531         * lib/safe-write.h: New file.
79532         * lib/safe-write.c: New file.
79533         * lib/full-read.h: New file.
79534         * lib/full-read.c: New file.
79535         * lib/full-write.h: Assume C89. Add comments.
79536         * lib/full-write.c: Include safe-write.h.
79537         (full_write): Rewritten to use safe_write.
79538         Suggested by Jim Meyering and Paul Eggert.
79539
79540 2002-11-21  Jim Meyering  <jim@meyering.net>
79541
79542         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79543
79544         Merge in changes from the coreutils.
79545
79546         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79547         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79548         <stdint.h>.
79549         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79550         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79551         int.  Work more efficiently if X is the same width as uintmax_t.
79552         Do not compare X to -1, to avoid bogus compiler warning.
79553         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79554         Don't assume that f_frsize and f_bsize are the same type.
79555
79556         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79557         warning on FreeBSD.
79558
79559         * lib/makepath.c (make_path): Restore umask *before* creating the final
79560         component.
79561         (make_path): Minor reformatting.
79562
79563         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79564         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79565         HAVE_MALLOC/HAVE_REALLOC.
79566
79567         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79568         dummy ones.  At least on GNU/Linux systems, `auto' means something
79569         else.
79570         From Michael Stone.
79571
79572 2002-11-21  Bruno Haible  <bruno@clisp.org>
79573
79574         Remove case insensitive option matching.
79575         * lib/argmatch.h (argcasematch): Remove declaration.
79576         (ARGCASEMATCH): Remove macro.
79577         (__xargmatch_internal): Remove case_sensitive argument.
79578         (XARGMATCH): Update.
79579         (XARGCASEMATCH): Remove macro.
79580         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79581         case_sensitive argument.
79582         (argcasematch): Remove function.
79583         (__xargmatch_internal): Remove case_sensitive argument.
79584         (main): Use XARGMATCH instead of XARGCASEMATCH.
79585
79586         * lib/xmalloc.c: Change compile-time error message. Add comment about
79587         required autoconf version.
79588
79589 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79590
79591         Merge argmatch cleanups from Bison.  Assume C89.
79592
79593         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79594         Include stdlib.h, for EXIT_FAILURE.
79595         Always include <string.h>, since we assume C89.
79596         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79597         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79598         Include <stddef.h> instead, since it's all we need for size_t.
79599         (PARAMS): Remove.  All uses removed.
79600         (ARRAY_CARDINALITY): Do not bother to #undef.
79601         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79602         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79603         Remove unnecessary parentheses.
79604         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79605         Insert necessary parentheses.
79606         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79607         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79608
79609 2002-11-19  Bruno Haible  <bruno@clisp.org>
79610
79611         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79612         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79613
79614         * lib/mbswidth.h (PARAMS): Remove macro.
79615         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79616         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79617
79618         * lib/gcd.h (PARAMS): Remove macro.
79619         (gcd): Use ANSI C function declarations.
79620         * lib/gcd.c (gcd): Likewise.
79621
79622 2002-11-15  Bruno Haible  <bruno@clisp.org>
79623
79624         * lib/strcspn.c: Include <stddef.h>.
79625         (strcspn): Use ANSI C function declaration. Change return type to
79626         size_t. Use NULL.
79627         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79628         (strpbrk): Use NULL.
79629         * lib/strpbrk.h (PARAMS): Remove macro.
79630         (strpbrk): Use ANSI C function declaration.
79631         * lib/strstr.c: Don't include <sys/types.h>.
79632         * lib/strstr.h (PARAMS): Remove macro.
79633         (strstr): Use ANSI C function declarations.
79634
79635 2002-11-14  Karl Berry  <karl@gnu.org>
79636
79637         * config/mkinstalldirs: `do' on separate line, instead of
79638         `for var; do'.
79639
79640 2002-11-06  Bruno Haible  <bruno@clisp.org>
79641
79642         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79643         * lib/gcd.c (gcd): Likewise.
79644
79645 2002-11-05  Bruno Haible  <bruno@clisp.org>
79646
79647         * lib/gcd.h: New file, from gettext-0.11.5.
79648         * lib/gcd.c: New file, from gettext-0.11.5.
79649
79650 2002-11-05  Bruno Haible  <bruno@clisp.org>
79651
79652         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79653         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79654         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79655         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79656
79657         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79658         <libintl.h>.
79659         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79660         <libintl.h>.
79661
79662         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79663         * lib/human.c: Include gettext.h instead of <libintl.h>.
79664         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79665         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79666         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79667         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79668         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79669         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79670         (textdomain): Remove definition.
79671         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79672
79673         * lib/long-options.c: Remove include of <libintl.h> and definition of
79674         _.
79675         * lib/same.c: Remove include of <libintl.h> and definition of _.
79676
79677 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79678
79679         * lib/config.charset: A few additions for Solaris.
79680
79681 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79682
79683         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79684         * lib/localcharset.c (locale_charset): Declare as extern "C".
79685
79686 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79687
79688         * lib/config.charset: msdos in uk_UA uses CP1125.
79689
79690 2002-11-04  Bruno Haible  <bruno@clisp.org>
79691
79692         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79693         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79694         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79695         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79696         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79697
79698 2002-11-04  Bruno Haible  <bruno@clisp.org>
79699
79700         * lib/localcharset.c (locale_charset): Don't return an empty string.
79701
79702 2002-11-04  Bruno Haible  <bruno@clisp.org>
79703
79704         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79705         aliases.
79706
79707 2002-11-04  Bruno Haible  <bruno@clisp.org>
79708
79709         * lib/config.charset: Update for newest glibc. Add canonical names
79710         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79711
79712 2002-11-04  Bruno Haible  <bruno@clisp.org>
79713
79714         * lib/config.charset: Add support for NetBSD.
79715
79716 2002-11-04  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79719
79720 2002-11-01  Bruno Haible  <bruno@clisp.org>
79721
79722         * configure.in: Add AC_CONFIG_AUX_DIR call.
79723         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79724         test/Makefile.
79725         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79726
79727 2002-09-28  Karl Berry  <karl@gnu.org>
79728
79729         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79730         installed automake until the next release, since changes have been
79731         made.
79732
79733 2002-09-25  Karl Berry  <karl@gnu.org>
79734
79735         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79736         * lib/getopt*: copy from libc/posix.
79737         * lib/gettext.h: copy from gettext.
79738         * lib/.cppi-disable: add strdup.c, gettext.h.
79739
79740 2002-09-25  Karl Berry  <karl@gnu.org>
79741
79742         * config/srclist.txt: enable gettext.h check.
79743         * config/config.{guess,sub}: update from prep.
79744         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79745                 from automake 1.6.3.
79746         See srclist*.
79747
79748 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79749
79750         * regex.c (PATFETCH): Remove the translating fetch.
79751         (PATFETCH_RAW): Rename to PATFETCH.
79752         (set_image_of_range): New fun.
79753         (SET_RANGE_TABLE_WORK_AREA): Use it.
79754         (regex_compile): Don't translate the pattern chars so eagerly.
79755         Only do it when inserting an `exactn' bytecode or when handling
79756         a char-range.
79757         (mutually_exclusive_p): Avoid empty statement.
79758
79759 2002-07-06  Jim Meyering  <meyering@lucent.com>
79760
79761         * m4/README: Don't mention Makefile.am.in.
79762         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79763
79764 2002-07-01  Jim Meyering  <meyering@lucent.com>
79765
79766         * lib/c-stack.c: Include sys/time.h.
79767         From Volker Borchert.
79768
79769 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79770
79771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79772
79773 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79774
79775         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79776         New macro.  Use it uniformly instead of
79777         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79778         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79779         reported by Vin Shelton.
79780
79781 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79782
79783         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79784         Do not assume SA_SIGINFO behavior.
79785         Bug reported by Jim Meyering on NetBSD 1.5.2.
79786
79787 2002-06-22  Jim Meyering  <meyering@lucent.com>
79788
79789         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79790         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79791
79792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79793         now that configure.ac uses AC_GNU_SOURCE.
79794         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79795         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79796
79797         Update to latest tools.  Suggestions from Paul Eggert.
79798         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79799         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79800         * m4/fnmatch.m4: Likewise.
79801         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79802         to AC_HEADER_STDBOOL
79803
79804 2002-06-22  Jim Meyering  <meyering@lucent.com>
79805
79806         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79807         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79808
79809 2002-06-22  Jim Meyering  <meyering@lucent.com>
79810
79811         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79812
79813         * lib/exitfail.c, exitfail.h: Likewise.
79814         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79815
79816         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79817         of fnmatch.h.
79818         (EXTRA_DIST): Add fnmatch_loop.c.
79819         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79820
79821         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79822         * lib/fnmatch.c: Update from diffutils-2.8.2.
79823         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79824         * lib/fnmatch.h: Remove file.
79825
79826 2002-06-21  Jim Meyering  <meyering@lucent.com>
79827
79828         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79829         * m4/mbrtowc.m4: Likewise.
79830
79831         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79832         * m4/mbswidth.m4: Reflect name change:
79833         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79834         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79835
79836         * m4/lib-link.m4: Update from gettext-0.11.2.
79837         * m4/gettext.m4: Likewise.
79838
79839         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79840         From Alfred M. Szmidt.
79841
79842 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79843
79844         * lib/file-type.h: Report an error if neither S_ISREG nor
79845         S_IFREG is defined, instead of using a test specific to glibc
79846         2.2.  This should be safe, since POSIX requires S_ISREG and
79847         Unix Version 7 had S_IFREG.  We don't need to check for
79848         <sys/types.h> since we don't use any symbols that it defines.
79849
79850 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79851
79852         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79853         $@-t, so that each temporary file name is unique and valid in the first
79854         8 characters, for operation under DOS.
79855
79856 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79857
79858         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79859
79860 2002-06-15  Jim Meyering  <meyering@lucent.com>
79861
79862         Work even with DJGPP 2.03, which lacks support for symlinks.
79863         From Richard Dawe.
79864         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79865         is defined.
79866         * lib/lchown.c (S_ISLNK): Likewise.
79867
79868 2002-06-15  Jim Meyering  <meyering@lucent.com>
79869
79870         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79871         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79872         have been included before this file.
79873
79874 2002-06-14  Jim Meyering  <meyering@lucent.com>
79875
79876         * lib/file-type.h: Use the version from diffutils-2.8.2.
79877         * lib/file-type.c: Likewise.
79878
79879 2002-06-07  Jim Meyering  <meyering@lucent.com>
79880
79881         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79882         They're needed at least for NetBSD 1.5.2.
79883         ($statxfs_includes): Include those same headers.
79884         ($statxfs_includes): Include sys/vfs.h if available.
79885         ($statxfs_includes): Likewise for sys/statvfs.h.
79886         Check for the following members in both structs statfs and statvfs:
79887         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79888
79889 2002-06-01  Jim Meyering  <meyering@lucent.com>
79890
79891         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79892         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79893
79894 2002-05-28  Jim Meyering  <meyering@lucent.com>
79895
79896         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79897         Reported by Volker Borchert.
79898
79899 2002-05-27  Jim Meyering  <meyering@lucent.com>
79900
79901         Fix a problem seen only on nonconforming systems whereby ls.c's
79902         use of localtime, and then of gettimeofday would cause trouble:
79903         the localtime call used to initialize rpl_gettimeofday's save
79904         mechanism would clobber ls's current local time information so
79905         that in any long listing the first file would always be listed
79906         with date 1970-01-01.  Analysis by Volker Borchert.
79907
79908         * lib/gettimeofday.c (localtime): Undefine.
79909         (rpl_localtime): New function.
79910
79911 2002-05-27  Jim Meyering  <meyering@lucent.com>
79912
79913         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79914         localtime.
79915
79916         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79917         use the replacement function; it wouldn't resolve at link time.
79918         Reported by Volker Borchert.
79919
79920 2002-05-22  Jim Meyering  <meyering@lucent.com>
79921
79922         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79923         file-type.h.
79924         * lib/file-type.h: New file.
79925         * lib/file-type.c (file_type): New file/function.  Extracted from
79926         diffutils.
79927
79928 2002-04-30  Jim Meyering  <meyering@lucent.com>
79929
79930         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79931
79932 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79933
79934         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79935
79936 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79937
79938         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79939         Do not check for alloca.h (no longer used) or stdbool.h (was never
79940         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79941
79942 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79943
79944         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79945
79946 2002-04-29  Jim Meyering  <meyering@lucent.com>
79947
79948         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79949         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79950         Use AC_FUNC_STRNLEN here instead.
79951
79952         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79953         With autoconf-2.53a, it's part of AC_PROG_CC.
79954
79955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79956
79957         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79958         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79959
79960 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79961
79962         * lib/sig2str.h, lib/sig2str.c: New files.
79963         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79964
79965 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79966
79967         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79968         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79969         of 127, since 64 is the largest conceivable number for ancient
79970         nonstandard hosts.
79971         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79972
79973 2002-04-28  Jim Meyering  <meyering@lucent.com>
79974
79975         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79976
79977 2002-04-24  Jim Meyering  <meyering@lucent.com>
79978
79979         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79980         (jm_PREREQ): Use it.
79981
79982         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79983         mach/mach.h fcntl.h.
79984         Check for this function: setlocale.
79985
79986 2002-04-24  Jim Meyering  <meyering@lucent.com>
79987
79988         * lib/gettext.h: New file, from Gettext.
79989         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79990         (libfetish_a_SOURCES): Add gettext.h.
79991
79992 2002-04-16  Jim Meyering  <meyering@lucent.com>
79993
79994         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79995         ut_pid, ut_id, ut_exit.
79996
79997 2002-04-16  Jim Meyering  <meyering@lucent.com>
79998
79999         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80000         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80001         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80002
80003 2002-04-12  Jim Meyering  <meyering@lucent.com>
80004
80005         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80006         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80007         existence of the getmntinfo function.  Needed for Darwin 5.3.
80008
80009         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80010         This is necessary at least on Darwin 5.3.
80011
80012         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80013         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80014         strnlen.o in the library, and that makes some versions of ranlib
80015         object.
80016
80017 2002-04-12  Jim Meyering  <meyering@lucent.com>
80018
80019         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80020
80021 2002-04-09  Jim Meyering  <meyering@lucent.com>
80022
80023         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80024         to be more precise.  Rather than saying we're checking whether the
80025         function `works', say what we're testing.
80026         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80027         Reported by Bruno Haible.
80028
80029 2002-03-10  Jim Meyering  <meyering@lucent.com>
80030
80031         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80032         Suggestion from Santiago Vila.
80033
80034 2002-03-08  Jim Meyering  <meyering@lucent.com>
80035
80036         * lib/rename.c: Mention that this wrapper is needed also on
80037         mips-dec-ultrix4.4 systems.
80038
80039 2002-03-02  Jim Meyering  <meyering@lucent.com>
80040
80041         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80042         not HAVE_CLOCK_SETTIME.
80043
80044 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80045
80046         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80047         Check for clock_settime.
80048
80049 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80050
80051         * lib/nanosleep.h: Rename to....
80052         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80053
80054         * lib/gettime.c: New file.
80055         * lib/settime.c: New file.
80056         * lib/stime.c: Remove.
80057
80058         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80059         timespec.h.  Remove nanosleep.h.
80060
80061 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80062
80063         * m4/acl.m4: New file.
80064         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80065         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80066
80067 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80068
80069         * lib/acl.c, lib/acl.h: New files.
80070         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80071
80072 2002-02-24  Jim Meyering  <meyering@lucent.com>
80073
80074         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80075         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80076         cause trouble.  Reported by Nelson Beebe.
80077
80078 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80079
80080         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80081         compilers that don't know that xalloc_die never returns.
80082
80083 2002-02-20  Jim Meyering  <meyering@lucent.com>
80084
80085         * lib/getdate.c: Regenerate using bison-1.33.
80086
80087 2002-02-17  Jim Meyering  <meyering@lucent.com>
80088
80089         * config/config.guess (main): Don't use `head -1'; it's no longer
80090         portable. Use `sed 1q' instead.
80091
80092 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80093
80094         * m4/codeset.m4: Upgrade to gettext-0.11.
80095         * m4/gettext.m4: Upgrade to gettext-0.11.
80096         * m4/glibc21.m4: Upgrade to gettext-0.11.
80097         * m4/iconv.m4: Upgrade to gettext-0.11.
80098         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80099         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80100         * m4/lib-ld.m4: New file, from gettext-0.11.
80101         * m4/lib-link.m4: New file, from gettext-0.11.
80102         * m4/lib-prefix.m4: New file, from gettext-0.11.
80103         * m4/progtest.m4: Upgrade to gettext-0.11.
80104
80105 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80106
80107         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80108         (jm_PREREQ): Use it.
80109
80110 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80111
80112         * lib/posixver.c, lib/posixver.h: New files.
80113         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80114
80115 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80116             Bruno Haible  <bruno@clisp.org>
80117
80118         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80119         (fwrite_success_callback): New declaration.
80120         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80121         print_unicode_char. Call failure callback instead of error.
80122         (fwrite_success_callback): New function.
80123         (exit_failure_callback): New function.
80124         (fallback_failure_callback): New function.
80125         (print_unicode_char): Call unicode_to_mb.
80126
80127 2002-01-26  Jim Meyering  <meyering@lucent.com>
80128
80129         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80130         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80131
80132 2002-01-26  Jim Meyering  <meyering@lucent.com>
80133
80134         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80135
80136 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80137
80138         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80139
80140 2002-01-22  Jim Meyering  <meyering@lucent.com>
80141
80142         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80143         Otherwise, some versions of automake would omit the rule that makes
80144         Makefile from Makefile.in.
80145
80146 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80147
80148         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80149         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80150         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80151         (memcoll): Set errno to zero if there is no error.
80152
80153         * lib/quotearg.c (quotearg_buffer_restyled):
80154         Fix bug with quoting buffers containing NUL when backslashing escapes.
80155         This bug was exposed by the other changes in this patch.
80156         (quotearg_n_options): New arg ARGSIZE.
80157         All callers changed.
80158         (quoting_options_from_style): New function.
80159         (quotearg_n_style): Use it.
80160         (quotearg_n_style_mem): New function.
80161
80162         * lib/quotearg.h (quotearg_n_style_mem): New function.
80163
80164 2002-01-19  Jim Meyering  <meyering@lucent.com>
80165
80166         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80167         Remove useless quotes: DF_PROG="df".
80168         * m4/strnlen.m4: New file.
80169
80170 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80171
80172         * lib/backupfile.c (ISDIGIT): Comment fix.
80173         * lib/getdate.y (ISDIGIT): Likewise.
80174         * lib/posixtm.c (ISDIGIT, year): Likewise.
80175         * lib/strverscmp.c (ISDIGIT): Likewise.
80176         * lib/userspec.c (ISDIGIT): Likewise.
80177
80178 2002-01-16  Jim Meyering  <meyering@lucent.com>
80179
80180         * lib/getdate.y: Add three semicolons, each just before a closing
80181         brace. Bison (as of version 1.31) no longer papers over that mistake.
80182
80183 2002-01-05  Jim Meyering  <meyering@lucent.com>
80184
80185         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80186
80187 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80188
80189         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80190         not silently exit merely because the output buffer happens to
80191         have nothing pending.
80192
80193 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80194
80195         See the big note in ../ChangeLog.
80196         * lib/human.c (suffixes): Prefer K to k for 1024.
80197         (generate_suffix_backwards): New function.
80198         (human_readable_inexact): Use it.
80199         * lib/xstrtol.c (__xstrtol): If there is no number but there
80200         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80201         Accept 'K' as well as 'k'.
80202
80203 2001-12-15  Jim Meyering  <meyering@lucent.com>
80204
80205         * lib/regex.h (__restrict_arr): Update from libc.
80206
80207         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80208         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80209         (STREQ): Define.
80210
80211 2001-12-14  Jim Meyering  <meyering@lucent.com>
80212
80213         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80214         Suggestion from Bruno Haible.
80215
80216 2001-12-10  Jim Meyering  <meyering@lucent.com>
80217
80218         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80219         xrealloc, Instead, include "xalloc.h".
80220         (initbuffer): Don't cast xmalloc return value to char*.
80221         (readline): Reword comment.
80222         Don't cast xrealloc return value to char*
80223         Return NULL, not 0.
80224
80225 2001-12-09  Jim Meyering  <meyering@lucent.com>
80226
80227         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80228         about `signed and unsigned type in conditional expression'.
80229         * lib/posixtm.c (posix_time_parse): Likewise.
80230
80231         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80232
80233         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80234         to avoid a pedantic warning.
80235
80236         * lib/getstr.c: Don't include assert.h.
80237         (getstr): Remove warning-evoking assertions.
80238         Return -1 if offset parameter is out of bounds.
80239         Change the type of a local from int to size_t.
80240
80241         * lib/strftime.c (my_strftime_localtime_r): Include this function
80242         definition in the `#if ! HAVE_TM_GMTOFF' block.
80243
80244         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80245         Include xalloc.h instead.
80246
80247 2001-12-02  Jim Meyering  <meyering@lucent.com>
80248
80249         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80250         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80251         included.
80252
80253         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80254         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80255
80256 2001-11-30  Akim Demaille  <akim@epita.fr>
80257
80258         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80259         before being defined.
80260
80261 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80262
80263         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80264         First arg is int, not unsigned.
80265         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80266         (SIZE_MAX, UINT_MAX): New macros.
80267         (quotearg_n_options): Abort if N is negative.
80268         Avoid overflow check on hosts where size_t is 64 bits and int
80269         is 32 bits, as overflow is impossible there.
80270         Fix off-by-one typo that caused unnecessary reallocation.
80271
80272 2001-11-27  Jim Meyering  <meyering@lucent.com>
80273
80274         * lib/tempname.c: Merge with version from libc.
80275         * lib/regex.c: Likewise.
80276
80277         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80278         systems for which STDC_HEADERS is 0, it was not included, resulting in
80279         a warning about an integer-to-pointer conversion problem with getenv.
80280         Reported by Volker Borchert.
80281
80282 2001-11-26  Jim Meyering  <meyering@lucent.com>
80283
80284         * lib/gtod.h: Remove file.
80285         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80286         * lib/gettimeofday.c: Don't include gtod.h.
80287         (GTOD_init): Remove function.
80288         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80289         Suggestion from Volker Borchert.
80290
80291 2001-11-23  Jim Meyering  <meyering@lucent.com>
80292
80293         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80294         it.
80295         * lib/hash.c (struct hash_table): Define it here instead.
80296
80297 2001-11-22  Jim Meyering  <meyering@lucent.com>
80298
80299         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80300
80301 2001-11-20  Jim Meyering  <meyering@lucent.com>
80302
80303         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80304         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80305
80306 2001-11-19  Jim Meyering  <meyering@lucent.com>
80307
80308         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80309         directory.  Use "conftestXXXXXX" as the template.
80310         Suggestion from Paul Eggert.
80311
80312         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80313         immediately, so the test doesn't mistakenly hit the max-open-files
80314         limit.
80315
80316 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80317
80318         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80319         (TEMPORARIES): New macro.
80320         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80321         removes an artificial limitation (e.g. HP-UX 10.20, where
80322         TMP_MAX is 17576).
80323
80324 2001-11-18  Jim Meyering  <meyering@lucent.com>
80325
80326         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80327
80328 2001-11-18  Jim Meyering  <meyering@lucent.com>
80329
80330         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80331         on SunOS 4.
80332
80333         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80334         files will be created before anything else.
80335
80336 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80337
80338         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80339         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80340
80341 2001-11-17  Jim Meyering  <meyering@lucent.com>
80342
80343         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80344         Prompted by a report from Bob Proulx.
80345
80346         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80347         Instead, require UTILS_FUNC_MKSTEMP.
80348
80349 2001-11-17  Jim Meyering  <meyering@lucent.com>
80350
80351         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80352         Now, that's done as part of AC_FUNC_STRTOD.
80353
80354 2001-11-17  Jim Meyering  <meyering@lucent.com>
80355
80356         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80357         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80358         rather than group writable.  Patch by Juan F. Codagnone.
80359
80360         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80361         xrealloc, Instead, include "xalloc.h".
80362
80363         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80364         Remove explicit declarations of xmalloc, xrealloc,
80365         and xstrdup.  Instead, include "xalloc.h".
80366
80367         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80368         unlocked-io.h.
80369         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80370         Likewise.
80371         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80372
80373         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80374         Reported by Padraig Brady.
80375
80376         * lib/mkstemp.c: #undef mkstemp.
80377         Include config.h.
80378         (rpl_mkstemp): Rename from mkstemp.
80379         Protoize.
80380
80381 2001-11-16  Jim Meyering  <meyering@lucent.com>
80382
80383         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80384         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80385         determine the amount of total physical memory, use pstat_getstatic.
80386         HPUX-11 doesn't define _SC_PHYS_PAGES.
80387         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80388         If sysconf couldn't be used to determine the amount of available
80389         physical memory, use both pstat_getstatic and pstat_getdynamic.
80390         Based on a patch from Bob Proulx.
80391
80392 2001-11-10  Jim Meyering  <meyering@lucent.com>
80393
80394         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80395         (jm_PREREQ): Use it.
80396
80397 2001-11-09  Jim Meyering  <meyering@lucent.com>
80398
80399         * m4/jm-macros.m4: Require autoconf-2.52f.
80400         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80401         Use these AC_-prefixed names, not the AM_-prefixed ones.
80402
80403         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80404
80405 2001-11-05  Jim Meyering  <meyering@lucent.com>
80406
80407         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80408
80409 2001-11-04  Jim Meyering  <meyering@lucent.com>
80410
80411         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80412         $DEFS.
80413
80414 2001-11-03  Jim Meyering  <meyering@lucent.com>
80415
80416         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80417         of AC_DEFUN.
80418
80419         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80420         know the name of the variable in the macro definition.
80421
80422 2001-11-03  Jim Meyering  <meyering@lucent.com>
80423
80424         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80425         in argmatch_to_argument call.
80426
80427         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80428         argument.
80429
80430         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80431         e.g., a fault due to an attempt to free a NULL pointer.
80432
80433 2001-11-01  Jim Meyering  <meyering@lucent.com>
80434
80435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80436         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80437
80438 2001-11-01  Jim Meyering  <meyering@lucent.com>
80439
80440         * lib/dirfd.c, lib/dirfd.h: New files.
80441         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80442
80443         * lib/hash.c (hash_print) [TESTING]: Clean up.
80444
80445 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80446
80447         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80448         to avoid a warning if -Wall.
80449
80450 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80451
80452         * README: New file
80453         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80454         (per RMS's instructions, this is now the canonical source)
80455         * lgpl/, gpl/: New directories.
80456
80457 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80458
80459         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80460
80461 2001-10-21  Jim Meyering  <meyering@lucent.com>
80462
80463         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80464         this code would end up calling gettext even in packages built
80465         with --disable-nls.
80466         * lib/getopt.c (_): Likewise.
80467         * lib/regex.c (_): Likewise.
80468
80469 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80470
80471         * m4/error.m4 (jm_PREREQ_ERROR):
80472         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80473         AC_FUNC_STRERROR_R does that.
80474         Check for strerror declaration.
80475
80476         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80477         are supposed to have them these days.
80478         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80479         Merge changes from latest Autoconf CVS.
80480         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80481         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80482         POSIX decided to standardize on the int flavor of strerror_r.
80483
80484 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80485
80486         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80487         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80488         Use strerror_r that is only a macro, even if it is not a function.
80489         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80490         (private_strerror): Use prototypes, not old-style function definition.
80491         (print_errno_message): New function.
80492         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80493         char*-flavored one.
80494         (error_tail, error, error_at_line): Use it.
80495
80496 2001-10-11  Jim Meyering  <meyering@lucent.com>
80497
80498         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80499         and quote_n (1, ... to avoid clobbering a buffer.
80500
80501 2001-10-05  Jim Meyering  <meyering@lucent.com>
80502
80503         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80504         hash-pjw.h.
80505         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80506         * lib/hash-pjw.h: New file.
80507
80508 2001-09-30  Jim Meyering  <meyering@lucent.com>
80509
80510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80511         `struct fsstat' has the `f_fstypename' member.
80512         Use that to define FS_TYPE, which is now used to make
80513         the getfsstat link test tighter.
80514
80515 2001-09-30  Jim Meyering  <meyering@lucent.com>
80516
80517         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80518         Include <sys/ucred.h>, for Apple Darwin.
80519         Include sys/mount.h and sys/fs_types.h only if available.
80520         (FS_TYPE): Define.
80521         (read_filesystem_list): Use FS_TYPE.
80522
80523 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80524
80525         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80526         a boolean context.
80527
80528 2001-09-29  Jim Meyering  <meyering@lucent.com>
80529
80530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80531         [one-argument getmntent function]): Include stdio.h before mntent.h.
80532         SunOS 4.1.x needs it for the declaration of `FILE'.
80533         Patch by Volker Borchert.
80534
80535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80536         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80537         sys/fs_types.h, and make the link-test for getfsstat guard #include
80538         directives with appropriate #if HAVE_*_H tests so that we can
80539         detect getfsstat on Apple Darwin1.3.7 systems.
80540         Reported by Nelson Beebe.
80541         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80542
80543 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80544
80545         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80546         #defines strtoimax.  Also treat the other strto* functions
80547         like strtoimax.
80548
80549         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80550         Check for strtoul and strtoumax,
80551         as those declarations are made even in the signed case.
80552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80553         Likewise, for strtol and strtoimax.
80554
80555 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80556
80557         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80558         #defines strtoimax.  Also treat the other strto* functions
80559         like strtoimax.
80560
80561         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80562         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80563         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80564
80565 2001-09-26  Jim Meyering  <meyering@lucent.com>
80566
80567         Most macros in unlocked-io.h had the wrong number of arguments.
80568         * lib/gen-uio: New script.
80569         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80570         * lib/unlocked-io.hin: Remove file.
80571         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80572         rather than trying to embed it here.
80573         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80574         Reported by Padraig Brady.
80575
80576 2001-09-25  Volker Borchert  <bt@teknon.de>
80577
80578         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80579         `result'.
80580
80581 2001-09-24  Jim Meyering  <meyering@lucent.com>
80582
80583         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80584
80585 2001-09-23  Jim Meyering  <meyering@lucent.com>
80586
80587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80588         instead of the mere test for existence of mntent.h.  The latter
80589         would get a false-positive on AIX 3.4 systems.
80590         In the outer getmntent if-block, don't die if neither of the getmntent
80591         tests succeeds.  Instead, just fall through and continue with the
80592         remaining tests.
80593
80594 2001-09-23  Jim Meyering  <meyering@lucent.com>
80595
80596         * lib/mountlist.c: Remove useless parentheses in #if directives.
80597         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80598         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80599
80600 2001-09-22  Jim Meyering  <meyering@lucent.com>
80601
80602         * m4/gettext.m4: New file.  From gettext.
80603         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80604         * m4/progtest.m4: Likewise
80605         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80606         * m4/glibc21.m4: Likewise.
80607
80608         * m4/libintl.m4: Remove.  No longer used.
80609
80610 2001-09-22  Jim Meyering  <meyering@lucent.com>
80611
80612         * lib/localcharset.c: Update from latest gettext.
80613         * lib/config.charset: Likewise.
80614
80615 2001-09-20  Jim Meyering  <meyering@lucent.com>
80616
80617         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80618         strtoimax.
80619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80620         strtoumax.
80621
80622 2001-09-20  Jim Meyering  <meyering@lucent.com>
80623
80624         * lib/xstrtol.c (strtoimax): Guard declaration with
80625         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80626         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80627         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80628         (strtoumax): Likewise, for completeness (it wasn't necessary).
80629
80630 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80631
80632         * lib/strtoimax.c (HAVE_LONG_LONG):
80633         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80634         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80635         to work around bug in IBM C compiler.
80636
80637 2001-09-17  Jim Meyering  <meyering@lucent.com>
80638
80639         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80640         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80641         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80642         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80643         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80644         whenever the right hand side need not be expanded by the shell.
80645
80646 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80647
80648         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80649         library.  It's not correct, as some older glibcs are buggy.
80650         fnmatch wasn't fixed until glibc 2.2.
80651
80652         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80653         special shell magic here.
80654
80655 2001-09-16  Jim Meyering  <meyering@lucent.com>
80656
80657         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80658         * m4/jm-macros.m4: Require it.
80659
80660 2001-09-16  Jim Meyering  <meyering@lucent.com>
80661
80662         * lib/mkdir.c: New file.
80663
80664 2001-09-15  Jim Meyering  <meyering@lucent.com>
80665
80666         * m4/jm-macros.m4: Check for help2man.
80667
80668 2001-09-11  Jim Meyering  <meyering@lucent.com>
80669
80670         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80671         The body, by Paul Eggert, was moved here from configure.in.
80672         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80673
80674 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80675
80676         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80677         (jm_PREREQ): Use it.
80678
80679 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80680
80681         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80682         Use ssize_t, not int, to store result of readlink.
80683         Check for ssize_t overflow as well as size_t overflow,
80684         as POSIX says the result of readlink is implementation-defined
80685         when ssize_t overflows.
80686         Remove unnecessary cast to char*.
80687         Use free+malloc instead of realloc, as the storage doesn't need
80688         to be preserved and it's clearer and can be more efficient that way.
80689         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80690         * lib/xreadlink.h (xreadlink): Update prototype.
80691
80692 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80693
80694         * lib/xgetcwd.c: Revert some of the previous change; intead,
80695         fix the HAVE_GETCWD_NULL code to behave more like the
80696         !HAVE_GETCWD_NULL code used to.
80697
80698         Include "xalloc.h".
80699         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80700         invoke xalloc_die.
80701
80702 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80703
80704         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80705         sys/param.h, as pathmax.h includes them.
80706
80707 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80708
80709         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80710         (jm_PREREQ_XGETCWD): New macro.
80711
80712         * m4/getcwd.m4: New file.
80713
80714 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80715
80716         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80717         like the HAVE_GETCWD_NULL code.
80718         Include pathmax.h if not HAVE_GETCWD.
80719         Do not include xalloc.h.
80720         (INITIAL_BUFFER_SIZE): New symbol.
80721         Do not use xmalloc / xrealloc, since the caller is responsible for
80722         handling errors.  Preserve errno around `free' during failure.
80723         Do not overrun buffer when using getwd.
80724
80725 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80726
80727         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80728         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80729         getcwd (NULL, 0).
80730
80731 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80732
80733         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80734         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80735         spotted by Jim Meyering.
80736
80737 2001-09-03  Jim Meyering  <meyering@lucent.com>
80738
80739         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80740         failure.
80741
80742 2001-09-02  Jim Meyering  <meyering@lucent.com>
80743
80744         * lib/error.c: Update from GNU libc.
80745
80746 2001-09-01  Jim Meyering  <meyering@lucent.com>
80747
80748         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80749         Used by df.
80750
80751 2001-09-01  Jim Meyering  <meyering@lucent.com>
80752
80753         * lib/xreadlink.c: New file.
80754         * lib/xreadlink.h: New file.
80755         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80756         xreadlink.h.
80757
80758         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80759         doesn't conflict with sparc Solaris 7's definition in
80760         /usr/include/sys/int_types.h.
80761
80762         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80763         files.
80764         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80765         and strncasecmp as r-values.  Unixware didn't have declarations.
80766
80767 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80768
80769         * lib/xstrtol.h: Add copyright notice.
80770         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80771         LONGINT_INVALID_SUFFIX_CHAR.
80772
80773 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80774
80775         * lib/xstrtol.c (strtoimax): New decl.
80776
80777 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80778
80779         * lib/xgetcwd.c: Don't include pathmax.h.
80780         Include stdlib.h and unistd.h if available.
80781         Include xalloc.h.
80782         (xmalloc, xstrdup, free): Remove decls.
80783         (xgetcwd): Don't assume sizes fit in unsigned.
80784         Check for overflow when computing sizes.
80785         Simplify reallocation code.
80786
80787 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80788
80789         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80790         a directory's st_size can have an arbitrary value, so the old
80791         usage could waste an arbitrary amount of memory.  All uses
80792         changed.
80793         * lib/savedir.h: Update prototype.
80794
80795 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80796
80797         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80798
80799         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80800         old strtoimax.c.
80801
80802         Also, make the following further changes to make this file's
80803         configuration more similar to that of strtol.c:
80804         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80805         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80806         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80807         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80808         changed to signed values.
80809
80810         And make the following changes as well:
80811         Fix copyright notice, as 1999 was missing.
80812         (verify): New macro.
80813         (strtoimax): Check sizes at compile-time, not run-time.
80814         Prefer strtol to strtoll if both work.
80815         (main): Remove; it was not that useful and was a pain to maintain.
80816
80817         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80818
80819 2001-08-31  Jim Meyering  <meyering@lucent.com>
80820
80821         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80822         Use an initial, malloc'd, buffer of length 128 rather than
80823         a statically allocated one of length 1024.
80824
80825 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80826
80827         Simplify code, partly by assuming autoconf 2.52 semantics.
80828
80829         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80830
80831         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80832         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80833         All uses removed.
80834         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80835         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80836         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80837         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80838         jm_AC_HEADER_INTTYPES_H.
80839         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80840
80841         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80842
80843         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80844         Quote first arg of AC_DEFUN.
80845         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80846         since they are needed to parse the include file even if we need
80847         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80848         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80849         but with opposite signedness.
80850
80851 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80852
80853         Merge 'exclude' changes from tar 1.13.22.
80854         This fixes one or two unlikely storage allocation overflow bugs,
80855         but doesn't change user-visible behavior otherwise.
80856
80857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80858
80859         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80860         (jm_PREREQ_EXCLUDE): New macro.
80861
80862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80863
80864         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80865         tm to be declared.
80866
80867 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80868
80869         * lib/hash.c: Remove '2001' from copyright notice.
80870
80871 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80872
80873         * lib/full-write.h: New file.
80874         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80875         * lib/full-write.c: Correct credits, as cccp.c no longer
80876         exists and anyway it was so heavily changed from the old cccp
80877         code as to be unrecognizable.  Include full-write.h.
80878         (full_write): Return size_t, with short writes meaning failure.
80879         All callers changed.  This fixes a bug with large buffers
80880         on 64-bit hosts.
80881         * lib/utime.c: Include full-write.h.
80882
80883 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80884
80885         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80886         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80887         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80888         Include if available.
80889         (<xalloc.h>): Include
80890         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80891         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80892         collide with FNM macros.
80893         (struct patopts): New struct.
80894         (struct exclude): Use it, as exclude patterns now come with options.
80895         (new_exclude): Support above changes.
80896         (new_exclude, add_exclude_file):
80897         Initial size must now be a power of two to simplify overflow checking.
80898         (free_exclude, fnmatch_no_wildcards): New function.
80899         (excluded_filename): No longer requires options arg, as the options
80900         are determined by add_exclude.  Now returns bool, not int.
80901         (excluded_filename, add_exclude):
80902         Add support for the fancy new exclusion options.
80903         (add_exclude, add_exclude_file): Now takes int options arg.
80904         Check for arithmetic overflow when computing sizes.
80905         (add_exclude_file): xrealloc might modify errno, so don't
80906         realloc until after errno might be used.
80907
80908         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80909         New macros.
80910         (free_exclude): New decl.
80911         (add_exclude, add_exclude_file): Now takes int options arg.
80912         (excluded_filename): No longer requires options arg, as the options
80913         are determined by add_exclude.  Now returns bool, not int.
80914
80915 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80916
80917         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80918
80919 2001-08-27  Jim Meyering  <meyering@lucent.com>
80920
80921         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80922
80923         * lib/version-etc.c (N_): Remove definition.
80924         Revert most of last change.
80925         Instead, simply don't mark the `Copyright...' string for translation.
80926         Based on advice from Paul Eggert.
80927
80928         * lib/strtoxmax.c: Tweak comment.
80929
80930 2001-08-26  Jim Meyering  <meyering@lucent.com>
80931
80932         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80933
80934         * m4/xstrtoimax.m4: New file.
80935         * m4/xstrtoumax.m4: Add comments explaining why we
80936         AC_REPLACE_FUNCS(strtol).
80937
80938 2001-08-26  Jim Meyering  <meyering@lucent.com>
80939
80940         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80941         of copyright with `%s' so translators don't get an untranslated
80942         message in 2002.
80943         (COPYRIGHT_YEAR): Define.
80944         (version_etc): Use fprintf rather than fputs.
80945         Suggestion from Ulrich Drepper.
80946
80947         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80948
80949         * lib/strtoll.c: New file, from GNU libc.
80950         * lib/xstrtoimax.c: New file.
80951
80952         * lib/xstrtol.h: Add xstrtoimax.
80953         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80954         * lib/strtoimax.c: New file.  Likewise, but first define
80955         STRTOUXMAX_SIGNED.
80956
80957         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80958         ...
80959         * lib/strtoxmax.c: ... then renamed to this.
80960
80961 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80962
80963         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80964         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80965         (jm_AC_TYPE_INTMAX_T): New macro.
80966         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80967
80968         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80969
80970         * m4/longlong.m4: Renamed from ulonglong.m4.
80971         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80972         * m4/uintmax_t.m4: Removed.
80973
80974 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80975
80976         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80977         Port to Solaris 8, where 'sed' requires a space after the 'r'
80978         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80979         Redirect output to $tmp just once.
80980
80981 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80982
80983         * lib/addext.c (<errno.h>): Include.
80984         (errno): Declare if not defined.
80985         (addext): Work correctly when pathconf returns -1 and leaves
80986         errno alone because there is no limit.  Also, work even if
80987         pathconf returns a value greater than SIZE_MAX.
80988
80989 2001-08-12  Jim Meyering  <meyering@lucent.com>
80990
80991         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80992         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80993         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80994         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80995         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80996         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80997         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80998         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80999         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81000         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81001         utime.m4, utimes.m4, xstrtoumax.m4:
81002         Quote the first argument in each use of AC_DEFUN.
81003
81004 2001-08-12  Jim Meyering  <meyering@lucent.com>
81005
81006         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81007         Simply `return getcwd (NULL, 0);'.
81008         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81009         Use 1300 as initial value for length, not PATH_MAX.
81010
81011         * lib/pathmax.h: Clean up cpp syntax.
81012
81013 2001-08-12  Jim Meyering  <meyering@lucent.com>
81014
81015         * lib/gettimeofday.c: New file.
81016         * lib/gtod.h: New file.
81017         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81018
81019 2001-08-05  Jim Meyering  <meyering@lucent.com>
81020
81021         * m4/jm-macros.m4: Require autoconf-2.52.
81022
81023 2001-08-04  Jim Meyering  <meyering@lucent.com>
81024
81025         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81026         stmt, to get in sync with glibc.
81027
81028 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81029
81030         The following changes are from gettext 0.10.39 as maintained by
81031         Bruno Haible.
81032
81033         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81034         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81035         with inverted sense.  All uses changed.
81036
81037         * lib/mbswidth.c: Don't include <limits.h>.
81038         Include <stdlib.h> and <string.h> unconditionally.
81039         (iswcntrl, mbsinit, ISCNTRL): New macros.
81040         (mbsnwidth): Use K&R style function declarations.
81041         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81042         can optimize it when MB_CUR_MAX == 1.
81043         The width of control characters is zero, not 1.
81044
81045 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81046
81047         The following changes are from gettext 0.10.39 as maintained by
81048         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81049
81050         * m4/codeset.m4: Upgrade to serial AM1.
81051         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81052         all uses changed.  Quote first arg of AC_DEFUN.
81053         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81054
81055         * m4/iconv.m4: Upgrade to serial AM2.
81056         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81057         Add --with-libconv-prefix.
81058         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81059         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81060         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81061         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81062         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81063
81064         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81065         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81066         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81067         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81068         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81069         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81070         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81071         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81072         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81073
81074         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81075         string.h any more.
81076
81077         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81078         not the default value.
81079
81080         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81081         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81082         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81083         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81084         Also check for iswcntrl, used for wcwidth fallback.
81085         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81086         to Autoconf 2.13.
81087
81088 2001-08-03  Jim Meyering  <meyering@lucent.com>
81089
81090         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81091         as it was in the original.  Reported by Paul Eggert.
81092
81093 2001-07-16  Jim Meyering  <meyering@lucent.com>
81094
81095         * m4/gettimeofday.m4: New file.
81096         Prompted by a report from Bernhard Baehr.
81097
81098 2001-07-15  Jim Meyering  <meyering@lucent.com>
81099
81100         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81101         stuff. Now it's in ../Makefile.cfg.
81102
81103 2001-07-15  Jim Meyering  <meyering@lucent.com>
81104
81105         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81106         (BUILT_SOURCES): Add unlocked-io.h.
81107         (io_functions): Define.
81108         (unlocked-io.h): New rule.
81109         (DISTCLEANFILES): Add unlocked-io.h.
81110         (all-local): Depend on unlocked-io.h, to ensure it is created.
81111
81112         * lib/unlocked-io.hin: New file
81113
81114         * lib/regex.c: Update from glibc.
81115
81116 2001-07-05  Jim Meyering  <meyering@lucent.com>
81117
81118         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81119         recommendation.
81120         (libfetish_a_SOURCES): Put all .h files here instead.
81121         Remove a thus-exposed (better checks in automake) duplicate and
81122         two unnecessary .h files.
81123
81124 2001-07-04  Jim Meyering  <meyering@lucent.com>
81125
81126         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81127         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81128         distcheck failure.
81129
81130 2001-07-02  Jim Meyering  <meyering@lucent.com>
81131
81132         The following changes were prompted by suggestions from Bruno Haible.
81133
81134         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81135         is now generated.
81136         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81137         definition of EXTRA_DIST.
81138         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81139         ensure that the generated file is created/updated whenever the list
81140         of $(unlocked_functions) is changed.
81141         (jm-glibc-io.m4): New rule.
81142         (unlocked-io.h): New rule -- currently unused.
81143
81144 2001-06-24  Jim Meyering  <meyering@lucent.com>
81145
81146         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81147         unmatched right bracket, rather than kludging it with an extra,
81148         falsely-matching quote in a comment.  Patch by Akim Demaille.
81149
81150 2001-06-11  Jim Meyering  <meyering@lucent.com>
81151
81152         * lib/regex.c: Update from GNU libc.
81153
81154 2001-05-27  Jim Meyering  <meyering@lucent.com>
81155
81156         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81157         Check for ut_type in struct utmp.
81158
81159 2001-05-27  Jim Meyering  <meyering@lucent.com>
81160
81161         * lib/readutmp.h (UT_TYPE): Define.
81162
81163 2001-05-24  Jim Meyering  <meyering@lucent.com>
81164
81165         * lib/argmatch.c: Include "quote.h".
81166         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81167         quote function.  Reported by Göran Uddeborg.
81168
81169 2001-05-22  Jim Meyering  <meyering@lucent.com>
81170
81171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81172         now that we use the package-supplied version unconditionally.
81173         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81174
81175 2001-05-21  Jim Meyering  <meyering@lucent.com>
81176
81177         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81178         shell syntax errors.
81179
81180 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81181
81182         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81183
81184 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81185
81186         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81187         Don't bother to check library strftime, since
81188         we'll be using our own my_strftime function anyway.
81189         Define my_strftime instead of strftime.
81190
81191 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81192
81193         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81194         which is not yet declared.
81195
81196 2001-05-15  Jim Meyering  <meyering@lucent.com>
81197
81198         * m4/regex.m4: Use proper quoting so brackets appear in the test
81199         program.
81200         Reported by, and with help from, Bruno Haible.
81201
81202 2001-05-13  Jim Meyering  <meyering@lucent.com>
81203
81204         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81205         undefined.
81206
81207 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81208
81209         dirname code cleanup.  base_name now behaves more compatibly
81210         with POSIX basename when given file names that have trailing
81211         slashes, and similarly for dir_name.  Add new primitives
81212         base_len and dir_len.  Put the directory-name-related decls
81213         into dirname.h.
81214
81215         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81216         * lib/backupfile.c (base_name): Likewise.
81217         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81218         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81219         * lib/makepath.c (strip_trailing_slashes): Likewise.
81220         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81221         ISSLASH): Likewise.
81222         * lib/rename.c (strip_trailing_slashes): Likewise.
81223         * lib/same.c (base_name): Likewise.
81224         * lib/stripslash.c (ISSLASH): Likewise.
81225
81226         * lib/addext.c: Include <dirname.h> after size_t is defined.
81227         * lib/backupfile.c: Likewise.
81228
81229         * lib/addext.c (addext): Use base_len to trim redundant
81230         trailing slashes instead of doing it ourselves.
81231         But do not trim the last slash if it is not redundant.
81232
81233         * lib/backupfile.c (find_backup_file_name,
81234         max_backup_version): Use base_len instead of rolling it ourselves.
81235         Handle the case of "" and (on DOS) "C:" correctly.
81236
81237         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81238         needed. Include <string.h>, <dirname.h>.
81239         (base_name): Allow file names ending in slashes, other than names
81240         that are all slashes.  In this case, return the basename followed
81241         by the slashes.  This is more general, and can be used in places
81242         where the original base_name purposely had an assertion failure.
81243         (base_len): New function.
81244
81245         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81246         Do not include <assert.h>; no longer needed.
81247         Include xalloc.h.
81248         (memrchr): Remove decl.
81249         (dir_name_r): Remove.
81250         (dir_len): Renamed from dirlen.  All callers changed.
81251         Rewrite in terms of base_name, for simplicity and consistency.
81252         (dir_name): Never return NULL.  All callers changed.
81253         Do not include <stdlib.h> in test program; no longer needed.
81254         return 0; is fine for test program.
81255
81256         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81257         New macros.
81258         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81259
81260         * lib/path-concat.c (path_concat): Use base_len to compute
81261         base length, not strlen; this means we cannot rely on memcpy
81262         to null-terminate.
81263
81264         * lib/same.c (STREQ): Remove.
81265         (same_name): Handle the case where the basename ends in trailing '/'.
81266
81267         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81268         a slash was stripped.  Do not strip the last slash after a
81269         file system prefix.
81270
81271 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81272
81273         * lib/Makefile.am (libfetish_a_SOURCES):
81274         Add strftime.c, since we now compile it on all hosts.
81275
81276         * lib/strftime.c (my_strftime):
81277         Define to nstrftime if emacs, but only if my_strftime is not defined.
81278         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81279         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81280         Add one more extra argument: a nanoseconds value.
81281         All uses changed.
81282         (ns): New macro.
81283         (my_strftime function): Add %N format.
81284         (emacs_strftimeu): Renamed from emacs_strftime,
81285         with extra ut argument.
81286
81287 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81288
81289         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81290
81291 2001-04-21  Jim Meyering  <meyering@lucent.com>
81292
81293         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81294         doesn't interfere.
81295
81296 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81297
81298         * m4/ftruncate.m4: Check for chsize.
81299         Link with ftruncate.o unconditionally if ftruncate is missing.
81300         This was required when cross-compiling to i586-mingw32msvc.
81301
81302 2001-04-08  Jim Meyering  <meyering@lucent.com>
81303
81304         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81305         recomputed; that's necessary when the offset spans a DST transition.
81306         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81307
81308 2001-04-02  Jim Meyering  <meyering@lucent.com>
81309
81310         * lib/regex.h, regex.c: Update from GNU libc.
81311
81312 2001-03-24  Jim Meyering  <meyering@lucent.com>
81313
81314         * m4/jm-macros.m4: Require autoconf-2.49d.
81315
81316 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81317
81318         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81319
81320 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81321
81322         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81323
81324 2001-03-17  Jim Meyering  <meyering@lucent.com>
81325
81326         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81327         now that the version in autoconf is equivalent.
81328         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81329
81330         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81331         Suggestion from Akim Demaille.
81332
81333         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81334         (jm_PREREQ_TEMPNAME): New function.
81335
81336 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81337
81338         * lib/tempname.c (uint64_t): Define to uintmax_t if
81339         not defined, and if UINT64_MAX is not defined.
81340         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81341         Reported by John David Anglin.
81342
81343 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81344
81345         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81346         resolve alias if codeset is empty.
81347         * lib/config.charset (BeOS): Use wildcard syntax.
81348
81349 2001-03-13  Jim Meyering  <meyering@lucent.com>
81350
81351         * lib/path-concat.c (path_concat)
81352         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81353         concatenating e.g., `C:' and `foo'.
81354         From Bruno Haible.
81355
81356 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81357
81358         * lib/localcharset.c (locale_charset): Don't use
81359         setlocale(LC_CTYPE,NULL). Don't return NULL.
81360         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81361
81362 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81363
81364         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81365         support for DOS/DJGPP.
81366
81367 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81368
81369         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81370         lacks mkstemp.  Compile our own tempname.c if we compile our own
81371         mkstemp.c, as mkstemp relies on tempname.
81372
81373 2001-03-01  Jim Meyering  <meyering@lucent.com>
81374
81375         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81376         AH_VERBATIM really does output its argument verbatim.
81377
81378 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81379
81380         * lib/Makefile.am (libfetish_a_SOURCES):
81381         Add dup-safer.c, fopen-safer.c.
81382         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81383
81384         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81385         * lib/unistd-safer.h: New files.
81386
81387 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81388
81389         The mkstemp replacement is taken from glibc 2.2.2, with some
81390         portability fixes for use outside glibc, as follows:
81391
81392         * lib/tempname.c (struct_stat64): New macro.
81393         (direxists, __gen_tempname): Use it.
81394         This avoids a portability problem with Solaris 8.
81395
81396         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81397         (<stddef.h>, <stdint.h>, <string.h>):
81398         Include only if STDC_HEADERS || _LIBC.
81399         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81400         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81401         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81402         (__set_errno): Define this macro if <errno.h> doesn't.
81403         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81404         Define these macros if <stdio.h> doesn't.
81405         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81406         Define these macros if <sys/stat.h>
81407         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81408         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81409         __xstat64): Define if not _LIBC.
81410         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81411         (__gen_tempname): Invoke gettimeofday only if
81412         HAVE_GETTIMEOFDAY || _LIBC;
81413         otherwise, fall back on plain "time".
81414         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81415
81416         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81417
81418         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81419
81420 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81421
81422         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81423
81424 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81425
81426         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81427         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81428         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81429         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81430
81431 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81432
81433         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81434         Remove workaround macros for hosts that have mbrtowc but not
81435         mbstate_t, as we now insist on proper declarations for both
81436         before using mbrtowc.
81437
81438 2001-02-17  Jim Meyering  <meyering@lucent.com>
81439
81440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81441         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81442         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81443         UnixWare 7.1.1.
81444
81445         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81446         rather than AC_CACHE_VAL.
81447
81448 2001-02-17  Jim Meyering  <meyering@lucent.com>
81449
81450         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81451         around included file name.
81452
81453         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81454
81455         * lib/strftime.c: Update from GNU libc (the only changes were to
81456         comments).
81457
81458 2001-02-17  Jim Meyering  <meyering@lucent.com>
81459
81460         * lib/regex.c: Update from libc.
81461
81462 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81463
81464         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81465         clash.
81466
81467 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81468
81469         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81470         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81471         Reported by Mark Hounschell via Paul Eggert.
81472
81473 2001-02-07  Jim Meyering  <meyering@lucent.com>
81474
81475         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81476
81477 2001-02-05  Jim Meyering  <meyering@lucent.com>
81478
81479         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81480         it includes the patch required for `large file' support with at least
81481         HP-UX's 10.20 /bin/cc.
81482
81483 2001-02-03  Jim Meyering  <meyering@lucent.com>
81484
81485         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81486         AS_IF, now that it works once again (mysteriously).
81487         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81488
81489 2001-01-30  Jim Meyering  <meyering@lucent.com>
81490
81491         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81492         * m4/chown.m4: Rename conftestchown to conftest.chown.
81493         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81494         s/conftestdir2/conftest.d2/.
81495         * m4/utimes.m4: s/conftestdata/conftest.data/
81496         Inspired by Pavel Roskin's change in autoconf.
81497
81498 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81499
81500         * lib/config.charset: Update for FreeBSD 4.2.
81501
81502 2001-01-27  Jim Meyering  <meyering@lucent.com>
81503
81504         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81505         a use of AS_IF.
81506         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81507
81508 2001-01-26  Jim Meyering  <meyering@lucent.com>
81509
81510         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81511         quotearg.c includes it.
81512
81513 2001-01-26  Jim Meyering  <meyering@lucent.com>
81514
81515         * lib/quotearg.c: Include stddef.h.
81516         * lib/quote.c: Include stddef.h.
81517         Reported by Axel Kittenberger.
81518
81519         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81520         line in double quotes so that it evokes a better diagnostic.
81521         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81522         Reported by Axel Kittenberger.
81523
81524 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81525
81526         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81527         as if it was a `charset'.
81528
81529 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81530
81531         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81532         has const.
81533
81534 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81535
81536         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81537         to avoid a warning.  Add back 'const' to inptr.
81538
81539 2001-01-20  Jim Meyering  <meyering@lucent.com>
81540
81541         Be sure that headers are checked before used in code compiled
81542         for the type checks.
81543         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81544         In place of that, invoke jm_CHECK_ALL_TYPES.
81545         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81546         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81547         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81548         The check for ssize_t was mistakenly run before the test for unistd.h.
81549
81550         The configure-time check for stdbool.h was missing.
81551         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81552         (jm_PREREQ_HASH): New function.
81553
81554 2001-01-17  Jim Meyering  <meyering@lucent.com>
81555
81556         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81557         for autoconf-2.49c.
81558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81559
81560 2001-01-16  Jim Meyering  <meyering@lucent.com>
81561
81562         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81563         From Bruno Haible.
81564
81565 2001-01-14  Jim Meyering  <meyering@lucent.com>
81566
81567         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81568         foo and bar.  Create conftestdir/ in the script, not in the C code.
81569         Remove directories in the script, not in the C code.
81570         Remove conftestdir{,2} before trying to create the directory.
81571         Make the entire configure script fail if the mkdir fails.
81572
81573 2001-01-14  Jim Meyering  <meyering@lucent.com>
81574
81575         * lib/rename.c: New file.  From Volker Borchert.
81576         Include stdlib.h, string.h or strings.h, and xalloc.h.
81577         Use strip_trailing_slashes rather than open-coding it.
81578
81579 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81580
81581         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81582
81583 2001-01-03  Jim Meyering  <meyering@lucent.com>
81584
81585         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81586         of local `inptr' to avoid warning with some system declarations of
81587         iconv.
81588
81589 2001-01-02  Volker Borchert  <bt@teknon.de>
81590
81591         * m4/rename.m4: New file.
81592         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81593
81594 2001-01-01  Jim Meyering  <meyering@lucent.com>
81595
81596         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81597         even on systems with utmpx.h.  It's necessary for the declaration of
81598         utmp's ut_user member.  Reported by Andreas Jaeger.
81599
81600         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81601         available. They are required for the declarations of getgrgid and
81602         getpwuid resp.
81603         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81604         Reported by Andreas Jaeger.
81605
81606 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81607
81608         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81609         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81610         so `make install' also works in VPATH builds.
81611
81612 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81613
81614         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81615         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81616         can be used in subdirectories.
81617
81618 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81619
81620         * lib/modechange.c: Do not assume that mode_t uses the
81621         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81622         the other-execute bit of FOO even if S_IXOTH != 1.
81623
81624         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81625         WOTH, XOTH, ALLM): New macros.
81626         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81627          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81628         Use them.
81629         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81630         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81631         (mode_compile):
81632         No need to use uintmax_t; unsigned long is long enough.
81633         Don't bother to get suffix since we don't use it.
81634
81635 2000-12-26  Jim Meyering  <meyering@lucent.com>
81636
81637         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81638         better with autoheader.
81639
81640 2000-12-24  Jim Meyering  <meyering@lucent.com>
81641
81642         * lib/hash.c (is_prime): Return explicit boolean values.
81643         (hash_get_first): Return NULL to appease Irix5.6's 89.
81644         Reported by Nelson Beebe.
81645
81646 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81647
81648         * lib/localcharset.c (locale_charset): Add support for Win32.
81649
81650 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81651
81652         * lib/physmem.h, lib/physmem.c: New files.
81653
81654         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81655         (noinst_HEADERS): Add physmem.h.
81656
81657         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81658         't' for compatibility with Solaris 8 sort.
81659
81660 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81661
81662         * lib/config.charset: Add support for BeOS.
81663
81664 2000-12-17  Jim Meyering  <meyering@lucent.com>
81665
81666         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81667         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81668
81669 2000-12-16  Jim Meyering  <meyering@lucent.com>
81670
81671         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81672         N and M) would have treated it like `chown N:N FILE'.
81673
81674         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81675
81676 2000-12-16  Jim Meyering  <meyering@lucent.com>
81677
81678         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81679         SHELLS_FILE to a file name that's useful on djgpp systems.
81680         Include stdlib.h.
81681         (ADDITIONAL_DEFAULT_SHELLS): Define.
81682         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81683         Based mostly on a patch from Prashant TR.
81684
81685 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81686
81687         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81688         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81689         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81690
81691 2000-12-08  Andreas Schwab  <schwab@suse.de>
81692
81693         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81694         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81695
81696 2000-12-07  Jim Meyering  <meyering@lucent.com>
81697
81698         * lib/stripslash.c (ISSLASH): Define.
81699         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81700         `/'.
81701         From Prashant TR.
81702
81703         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81704         (dir_name_r): Declare this function as static.
81705         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81706         manifest itself on a name containing a mix of slashes and
81707         backslashes.
81708         Make this function work with names starting with a DOS-style
81709         drive letter and colon prefix.
81710         (dir_name): Append `.' if necessary.
81711         Based mostly on patches from Prashant TR and Eli Zaretskii.
81712
81713         * lib/dirname.h (dir_name_r): Remove prototype.
81714
81715 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81716
81717         * m4/off_t-format.m4: Remove this file.
81718         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81719
81720 2000-12-06  Jim Meyering  <meyering@lucent.com>
81721
81722         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81723         replacement strtoull, we may well need the replacement strtoul, too.
81724         Check for declarations of strtoul and strtoull.
81725         Check for strtol.  Mainly as a cue to cause automake to include
81726         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81727         Check for limits.h -- strtol.c needs it.
81728
81729 2000-12-05  Jim Meyering  <meyering@lucent.com>
81730
81731         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81732
81733 2000-12-04  Jim Meyering  <meyering@lucent.com>
81734
81735         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81736         Also include memory.h, stdlib.h, unistd.h if appropriate.
81737         Reported by Andreas Jaeger (conflicting declaration of malloc).
81738
81739 2000-12-02  Jim Meyering  <meyering@lucent.com>
81740
81741         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81742         * m4/jm-macros.m4 (jm_MACROS): require it.
81743
81744 2000-12-02  Jim Meyering  <meyering@lucent.com>
81745
81746         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81747
81748 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81749
81750         * lib/memrchr.c: Include <config.h> before any system include file.
81751
81752 2000-11-30  Jim Meyering  <meyering@lucent.com>
81753
81754         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81755
81756 2000-11-30  Jim Meyering  <meyering@lucent.com>
81757
81758         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81759
81760 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81761
81762         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81763
81764 2000-11-26  Jim Meyering  <meyering@lucent.com>
81765
81766         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81767
81768 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81769
81770         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81771         size of (size_t) -1; it's not portable.
81772
81773 2000-11-17  Jim Meyering  <meyering@lucent.com>
81774
81775         * lib/strstr.c: Update from GNU libc.
81776
81777 2000-11-17  Akim Demaille  <akim@epita.fr>
81778
81779         * lib/obstack.h: Formatting changes.
81780         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81781         prevent type checking.
81782         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81783         cast the value to (void *): assigning a `foo *' to a `void *'
81784         variable is valid.
81785         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81786
81787 2000-11-16  Jim Meyering  <meyering@lucent.com>
81788
81789         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81790
81791 2000-11-11  Jim Meyering  <meyering@lucent.com>
81792
81793         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81794
81795 2000-11-10  Jim Meyering  <meyering@lucent.com>
81796
81797         * lib/obstack.h: Update from GNU libc.
81798         * lib/obstack.c: Likewise.
81799
81800 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81801
81802         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81803
81804 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81805
81806         * lib/getusershell.c (setusershell): Use rewind rather than
81807         fseek/fseeko, to avoid configuration hassles with fseeko.
81808         Don't bother opening SHELLS_FILE if shellstream is NULL;
81809         it's not necessary.
81810
81811 2000-11-05  Jim Meyering  <meyering@lucent.com>
81812
81813         * lib/makepath.h (make_dir): Declare.
81814         * lib/makepath.c (make_dir): Remove `static' attribute.
81815         Tweak a comment.
81816
81817 2000-11-04  Jim Meyering  <meyering@lucent.com>
81818
81819         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81820
81821 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81822
81823         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81824         last one in a bucket, advance to the next bucket.
81825
81826 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81827
81828         * lib/fnmatch.c: Do not comment out all the code if we are using
81829         the GNU C library, because in some cases we are replacing buggy
81830         code in the GNU C library itself.
81831
81832 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81833
81834         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81835         (regex_compile): Catch bogus \(\1\).
81836
81837 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81838
81839         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81840         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81841         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81842
81843 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81844
81845         * lib/error.h, getline.h, modechange.h:
81846         Remove "2000" from Copyright line, as the file hasn't been
81847         changed this year other than in the copyright notice.
81848
81849         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81850         was changed this year.
81851
81852 2000-10-29  Jim Meyering  <meyering@lucent.com>
81853
81854         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81855         renaming.
81856         * m4/ls-mntd-fs.m4: Likewise
81857
81858 2000-10-29  Jim Meyering  <meyering@lucent.com>
81859
81860         * lib/xstat.in: Fix grammar in comment.
81861
81862 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81863
81864         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81865         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81866         doesn't define __restrict_arr.
81867
81868 2000-10-28  Jim Meyering  <meyering@lucent.com>
81869
81870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81871         (jm_PREREQ_MEMCHR): New function.
81872
81873 2000-10-28  Jim Meyering  <meyering@lucent.com>
81874
81875         * lib/memchr.c: Update from libc.
81876         Adjust for portability:
81877         [HAVE_STDLIB_H]: Include stdlib.h.
81878         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81879         Undef __memchr, too.
81880         [!weak_alias]: Define __memchr to memchr.
81881
81882         * lib/regex.c: Update from libc.
81883         * lib/regex.h: Likewise.
81884         * lib/getopt1.c: Likewise.
81885         * lib/memcmp.c: Likewise.
81886
81887         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81888         Avoid using fseek, when possible -- it's broken by design.
81889         Patch by Ulrich Drepper.
81890
81891 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81892
81893         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81894         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81895         Giving in to popular pressure to shut up the compiler with casts.
81896
81897 2000-10-26  Jim Meyering  <meyering@lucent.com>
81898
81899         * lib/strftime.c: Update from libc.
81900
81901 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81902
81903         * regex.c: More `unsigned char' -> `re_char' changes.
81904         Also change several `int' into `re_wchar_t'.
81905         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81906         (PUSH_FAILURE_POINTER): Don't cast any more.
81907         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81908         We want GCC to complain, since this piece of code makes
81909         re_match non-reentrant, which *should* be fixed.
81910         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81911         (EXTEND_BUFFER): Use RETALLOC.
81912         (SET_LIST_BIT): Don't cast.
81913         (re_wchar_t): New type.
81914         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81915         that those two functions will always properly return.
81916         (IMMEDIATE_QUIT_CHECK): Cast to void.
81917         (analyse_first): Use recursion rather than an explicit stack.
81918         (re_compile_fastmap): Can't fail anymore.
81919         (re_search_2): Don't check re_compile_fastmap for failure.
81920         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81921         Now also sets the new value (passed in a new argument).
81922         (re_match_2_internal): Use it.
81923         Also, use a new var `reg' of type size_t when looping through regs
81924         rather than reuse the inappropriate `mcnt'.
81925
81926 2000-10-25  Jim Meyering  <meyering@lucent.com>
81927
81928         * lib/obstack.c: Update from libc.
81929
81930 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81931
81932         * regex.c (regex_compile): Change the way of handling a range from
81933         a char less than 256 to a char not less than 256.
81934
81935 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81936
81937         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81938         NT-Emacs only.
81939         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81940         so that re_search functions only quit when callers expect them to.
81941
81942 2000-10-23  Jim Meyering  <meyering@lucent.com>
81943
81944         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81945         wrong.  That set_locale call must not have any side effects.
81946         From Paul Eggert.
81947
81948 2000-10-22  Jim Meyering  <meyering@lucent.com>
81949
81950         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81951         [CYCLIC]: Remove now-unused definition.
81952
81953         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81954         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81955         Suggestion from Ulrich Drepper.
81956
81957 2000-10-21  Jim Meyering  <meyering@lucent.com>
81958
81959         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81960         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81962
81963 2000-10-21  Jim Meyering  <meyering@lucent.com>
81964
81965         * lib/dirname.c (memrchr): Declare if necessary.
81966         (dir_name): Remove the restriction that there be no
81967         trailing slashes.  Now, this code skips past them, effectively
81968         ignoring them.
81969         [TEST_DIRNAME] (main): New unit tests.
81970
81971         * lib/memrchr.c: New file from GNU libc.
81972         Undef __memrchr, too.
81973         [!weak_alias]: Define __memrchr to memrchr.
81974         Guard weak_alias use with `#ifdef weak_alias'.
81975
81976 2000-10-21  Jim Meyering  <meyering@lucent.com>
81977
81978         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81979         (dir_name): Use dir_name_r.
81980         * lib/dirname.h (dir_name_r): Declare it.
81981
81982 2000-10-17  Jim Meyering  <meyering@lucent.com>
81983
81984         * lib/quote.h (PARAMS): Define and use.
81985         Reported by Akim Demaille.
81986
81987         * lib/getopt.c: Update from libc.
81988
81989 2000-10-16  Jim Meyering  <meyering@lucent.com>
81990
81991         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81992         setlocale.
81993         From Jan Fedak.
81994
81995 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81996
81997         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81998
81999 2000-09-25  Jim Meyering  <meyering@lucent.com>
82000
82001         * lib/md5.h (rol): Define (from GnuPG).
82002
82003         * lib/sha.c: Give credit (GnuPG) where due.
82004         (M): Use rol rather than open-coding it.
82005         Add a FIXME comment.
82006
82007 2000-09-21  Jim Meyering  <meyering@lucent.com>
82008
82009         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82010         Reported by Michael Stone.
82011
82012 2000-09-20  Jim Meyering  <meyering@lucent.com>
82013
82014         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82015         (noinst_HEADERS): Add sha.h.
82016         Based on code from Scott G. Miller and from GnuPG.
82017
82018 2000-09-18  Jim Meyering  <meyering@lucent.com>
82019
82020         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82021         LIBS. Otherwise, everyone ends up linking with -lelf for some
82022         configurations.
82023         Reported by Mike Stone.
82024
82025 2000-09-15  Jim Meyering  <meyering@lucent.com>
82026
82027         * lib/regex.c: Update from libc.
82028
82029 2000-09-10  Jim Meyering  <meyering@lucent.com>
82030
82031         * lib/getopt.c (_getopt_internal): Update from glibc.
82032
82033 2000-09-09  Jim Meyering  <meyering@lucent.com>
82034
82035         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82036         think it should be used as a general replacement for isascii.
82037         * lib/fnmatch.c: Likewise.
82038         * lib/mbswidth.c: Likewise
82039         * lib/regex.c: Likewise.
82040
82041         Don't use atoi.
82042         * lib/userspec.c: Include sys/param.h and limits.h.
82043         Include xstrtol.h.
82044         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82045         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82046         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82047         UID, GID.  Check range.
82048
82049 2000-09-06  Jim Meyering  <meyering@lucent.com>
82050
82051         * lib/getopt.c (_getopt_internal): Update from glibc.
82052
82053 2000-08-30  Jim Meyering  <meyering@lucent.com>
82054
82055         * lib/strftime.c: Merge in changes from GNU libc.
82056
82057 2000-08-26  Jim Meyering  <meyering@lucent.com>
82058
82059         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82060         * m4/fpending.m4: New file.
82061
82062 2000-08-26  Jim Meyering  <meyering@lucent.com>
82063
82064         * lib/closeout.c: Include "__fpending.h".
82065         (close_stdout_status): Return right away if there's nothing to flush.
82066
82067         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82068         * lib/__fpending.c: New file.
82069         * lib/__fpending.h: New file.
82070
82071 2000-08-20  Jim Meyering  <meyering@lucent.com>
82072
82073         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82074         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82075         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82076
82077 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82078
82079         Improve fileutils installation on systems where running
82080         programs (like install) can't be unlinked.
82081         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82082         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82083
82084 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82085
82086         Standardize on "memory exhausted" instead of "Memory exhausted"
82087         or "virtual memory exhausted".
82088         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82089         "virtual memory exhausted".
82090         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82091         our own message.
82092         * lib/userspec.c (parse_user_spec): Likewise.
82093         * lib/bumpalloc.h: comment fix
82094         * lib/same.c, userspec.c: Include xalloc.h.
82095
82096         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82097         not char *const and pointing to a constant array.
82098         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82099         (xrealloc): Comment fix.
82100
82101         * lib/userspec.c (parse_user_spec):
82102         Don't translate a message until just before returning,
82103         to avoid unnecessary translation.
82104
82105 2000-08-07  Jim Meyering  <meyering@lucent.com>
82106
82107         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82108         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82109         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82110         getgroups.c, gethostname.c, getopt.h, group-member.c,
82111         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82112         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82113         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82114         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82115         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82116         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82117         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82118         yesno.c: Back out Copyright date changes for each file with no change
82119         this year.  This eases coordination with other programs using the same
82120         source code modules.  From Paul Eggert.
82121
82122 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82123
82124         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82125         not char, for compatibility with glibc 2.1.3 strftime.c.
82126
82127 2000-08-03  Greg McGary  <greg@mcgary.org>
82128
82129         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82130         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82131         (EXTEND_BUFFER): Use them.
82132
82133 2000-08-01  Jim Meyering  <meyering@lucent.com>
82134
82135         * lib/dirname.c (ISSLASH): Define.
82136         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82137         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82138         both `\' and `/' may be use as path separators.
82139         Based on a patch from Prashant TR.
82140
82141 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82142
82143         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82144         slot vector a constant, since it might get modified.
82145
82146 2000-07-31  Jim Meyering  <meyering@lucent.com>
82147
82148         * lib/xmalloc.c: Use `virtual memory exhausted', not
82149         `Memory exhausted'.
82150         * lib/obstack.c (print_and_abort): Likewise.
82151
82152 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82153
82154         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82155         buffer, so that the caller can always quote one small
82156         component of a "memory exhausted" message in slot 0.
82157         From a suggestion by Jim Meyering.
82158
82159 2000-07-30  Jim Meyering  <meyering@lucent.com>
82160
82161         * lib/makepath.c (make_path): Quote the other instance, too.
82162
82163         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82164         (STATIC_BUF_SIZE): Define.
82165         (quotearg_n_options): Use only statically allocated storage when
82166         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82167         than STATIC_BUF_SIZE.
82168
82169 2000-07-29  Jim Meyering  <meyering@lucent.com>
82170
82171         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82172         * lib/dirname.c (dir_name): Likewise.
82173
82174         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82175         `/'.
82176
82177         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82178         (dir_name): Assert that there are no trailing slashes.
82179
82180 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82181
82182         * lib/mbswidth.h (mbswidth): Add a flags argument.
82183         (mbswidth): New declaration.
82184         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82185         * lib/mbswidth.c (mbswidth): Add a flags argument.
82186         (mbsnwidth): New function.
82187
82188 2000-07-24  Jim Meyering  <meyering@lucent.com>
82189
82190         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82191
82192 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82193
82194         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82195
82196 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82197
82198         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82199         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82200         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82201         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82202         invoke multibyte primitives.
82203
82204 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82205
82206         * lib/quotearg.c:
82207         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82208         so that mbstate_t is always defined.
82209
82210         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82211         be 1 in at least one GCC installation, and this configuration
82212         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82213         performance on hosts that have mbrtowc but have only unibyte
82214         locales, but I assume these hosts are rare.
82215
82216 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82217
82218         * lib/mbswidth.c (_XOPEN_SOURCE):
82219         Don't define; this causes problems on Solaris 7.
82220         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82221
82222 2000-07-23  Jim Meyering  <meyering@lucent.com>
82223
82224         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82225         too: getgrgid, getpwuid, getuid.
82226
82227 2000-07-23  Jim Meyering  <meyering@lucent.com>
82228
82229         * lib/basename.c (base_name): Add an assertion.
82230
82231 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82232
82233         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82234         shadow its mbsinit function.
82235
82236 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82237
82238         * lib/mbswidth.h: New file.
82239         * lib/mbswidth.c: New file.
82240         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82241         (noinst_HEADERS): Add mbswidth.h.
82242
82243 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82244
82245         * lib/config.charset: Add support for FreeBSD. Improve support for
82246         HP-UX and IRIX 6.
82247
82248 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82249
82250         * m4/mbswidth.m4: New file.
82251         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82252
82253 2000-07-15  Jim Meyering  <meyering@lucent.com>
82254
82255         * lib/makepath.c: Include quote.h.
82256         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82257         corresponding argument in a `quote (...)' call.
82258         Give better diagnostics.
82259
82260         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82261         (noinst_HEADERS): Add quote.h.
82262
82263         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82264         from tar's src/misc.c.
82265         * lib/quote.h: New file.  Prototypes for same.
82266
82267 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82268
82269         From a suggestion by Bruno Haible.
82270         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82271         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82272         to decide whether to define the BeOS workaround macro;
82273         this adjusts to the change to AC_MBSTATE_T.
82274
82275 2000-07-14  Jim Meyering  <meyering@lucent.com>
82276
82277         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82278         jm_AC_TYPE_UINTMAX_T.
82279
82280 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82281
82282         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82283
82284         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82285         quotearg_buffer_restyled): Add support for
82286         clocale_quoting_style.  Undo previous change to
82287         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82288         and "{RIGHT QUOTATION MARK}" msgids.
82289
82290 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82291
82292         From a suggestion by Bruno Haible.
82293         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82294         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82295         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82296         and mbstate_t, to a single-part test that simply defines mbstate_t.
82297         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82298         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82299
82300 2000-07-10  Jim Meyering  <meyering@lucent.com>
82301
82302         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82303
82304         * m4/gnu-source.m4: Output to confdefs.h directly.
82305         Suggestion from Akim Demaille.
82306
82307 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82308
82309         The old behavior of quoting `like this' doesn't look good with
82310         newer, ISO-style fonts.  See:
82311         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82312
82313         Instead, quote "like this" by default.  Let the translator
82314         tailor the locale-specific quoting behavior by providing
82315         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82316
82317         * lib/quotearg.c (N_): New macro.
82318         (gettext_default): New function.
82319         (quotearg_buffer_restyled): Use
82320         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82321         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82322
82323 2000-07-09  Jim Meyering  <meyering@lucent.com>
82324
82325         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82326         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82327
82328         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82329         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82330
82331 2000-07-09  Jim Meyering  <meyering@lucent.com>
82332
82333         * lib/Most files: Update copyright dates to include 2000.
82334
82335 2000-07-08  Jim Meyering  <meyering@lucent.com>
82336
82337         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82338         if not defined.
82339         (xgethostname): Remove now-unnecessary #ifdef.
82340         Move declaration of `err' into loop where it's used.
82341
82342 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82343         and Bruno Haible  <haible@clisp.cons.org>
82344
82345         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82346         only if the test for an object-type mbstate_t fails.  This
82347         prevents us from mistakenly reporting that mbstate_t is a
82348         system object type after we "#define mbstate_t int" to work
82349         around its lack.
82350
82351 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82352         and Bruno Haible  <haible@clisp.cons.org>
82353
82354         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82355
82356 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82357
82358         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82359         to strerror_r.
82360         Include <ctype.h> for use of isalpha.
82361
82362 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82363
82364         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82365         by allocating a larger buffer. Test the gethostname return value for
82366         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82367         returns an error and ENAMETOOLONG isn't defined.
82368
82369 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82370
82371         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82372         dimension.
82373
82374 2000-07-04  Jim Meyering  <meyering@lucent.com>
82375
82376         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82377         of the deprecated AC_CHECKING.
82378
82379 2000-07-04  Jim Meyering  <meyering@lucent.com>
82380
82381         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82382         Reported by Bruno Haible.
82383
82384 2000-07-04  Jim Meyering  <meyering@lucent.com>
82385
82386         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82387         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82388         lacks mbrtowc.
82389
82390 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82391
82392         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82393         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82394
82395 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82396         and Bruno Haible  <haible@clisp.cons.org>
82397
82398         * lib/quotearg.c (mbrtowc):
82399         Assign to *pwc, and return 1 only if result is nonzero.
82400         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82401
82402 2000-07-03  Jim Meyering  <meyering@lucent.com>
82403
82404         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82405
82406 2000-07-03  Jim Meyering  <meyering@lucent.com>
82407
82408         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82409         This is necessary to get a definition of e.g., UTMP_FILE on
82410         HP-UX 10.20.
82411         From Bob Proulx.
82412
82413 2000-07-02  Jim Meyering  <meyering@lucent.com>
82414
82415         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82416
82417         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82418         AC_LIBOBJ(function_name).
82419         * m4/chown.m4: Likewise.
82420         * m4/fnmatch.m4: Likewise.
82421         * m4/ftruncate.m4: Likewise.
82422         * m4/getgroups.m4: Likewise.
82423         * m4/getline.m4: Likewise.
82424         * m4/group-member.m4: Likewise.
82425         * m4/jm-macros.m4: Likewise.
82426         * m4/lstat.m4: Likewise.
82427         * m4/malloc.m4: Likewise.
82428         * m4/memcmp.m4: Likewise.
82429         * m4/nanosleep.m4: Likewise.
82430         * m4/putenv.m4: Likewise.
82431         * m4/realloc.m4: Likewise.
82432         * m4/regex.m4: Likewise.
82433         * m4/stat.m4: Likewise.
82434         * m4/strftime.m4: Likewise.
82435
82436 2000-07-02  Jim Meyering  <meyering@lucent.com>
82437
82438         * lib/quotearg.c (mbstate_t): Don't define here.
82439
82440 2000-07-02  Jim Meyering  <meyering@lucent.com>
82441
82442         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82443
82444 2000-07-01  Jim Meyering  <meyering@lucent.com>
82445
82446         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82447
82448 2000-07-01  Jim Meyering  <meyering@lucent.com>
82449
82450         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82451         problem.
82452
82453 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82454
82455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82456         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82457
82458 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82459
82460         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82461         per change in ../m4/ls-mntd-fs.m4.
82462         (read_filesystem_list): Ignore symbolic links.
82463
82464 2000-06-29  Jim Meyering  <meyering@lucent.com>
82465
82466         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82467         for declaration of strcmp.
82468
82469         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82470
82471         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82472         Avoid warning by casting result to `char *' to remove `const'.
82473
82474 2000-06-28  Jim Meyering  <meyering@lucent.com>
82475
82476         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82477         included by quotearg.c, for which we perform this test.  From
82478         Bruno Haible.
82479
82480 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82481
82482         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82483         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82484         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82485
82486 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82487
82488         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82489
82490 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82491
82492         savedir now sets errno on failure and invokes xmalloc to get memory.
82493         Fix a couple of other minor bugs while we're at it.
82494
82495         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82496         (NAMLEN): Remove macro.
82497         (malloc, realloc): Remove decls.
82498         (stpcpy): Likewise.
82499         ("xalloc.h"): Include.
82500         (NAME_SIZE_DEFAULT): New macro.
82501         (savedir): Use xmalloc / xrealloc to allocate memory.
82502         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82503         Skip "" directory entries.
82504         Use strlen to calculate directory entry length, since the old method
82505         is rarely used these days and isn't worth supporting.
82506         Don't use a pointer after freeing it.
82507         Check for integer overflow when calculating allocation size.
82508         Use memcpy to copy entries, instead of stpcpy.
82509         Set errno properly when returning NULL.
82510         Check for readdir error.
82511
82512 2000-06-26  Jim Meyering  <meyering@lucent.com>
82513
82514         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82515
82516 2000-06-25  Jim Meyering  <meyering@lucent.com>
82517
82518         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82519         Linux header bug when _XOPEN_SOURCE is defined to 500.
82520
82521 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82522
82523         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82524         deficiency.
82525
82526 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82527
82528         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82529         Include xalloc.h.
82530         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82531
82532 2000-06-24  Jim Meyering  <meyering@lucent.com>
82533
82534         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82535         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82536         for which strerror does return char*, but which lacks a conveniently
82537         accessible declaration of the function.  If the compile-test says
82538         strerror_r doesn't work, then resort to a `run'-test that works on
82539         BeOS and segfaults on DEC Unix.
82540
82541 2000-06-24  Jim Meyering  <meyering@lucent.com>
82542
82543         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82544
82545 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82546
82547         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82548         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82549
82550 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82551
82552         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82553         (mbrtowc, mbstate_t): Define substitutes if
82554         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82555         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82556         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82557
82558 2000-06-23  Jim Meyering  <meyering@lucent.com>
82559
82560         * m4/afs.m4: Add missing AC_MSG_RESULT.
82561         Reported by Bruno Haible.
82562
82563         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82564         Suggestion from Bruno Haible.
82565
82566 2000-06-23  Jim Meyering  <meyering@lucent.com>
82567
82568         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82569
82570 2000-06-21  Jim Meyering  <meyering@lucent.com>
82571
82572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82573
82574 2000-06-21  Jim Meyering  <meyering@lucent.com>
82575
82576         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82577         (noinst_HEADERS): Add getstr.h.
82578
82579         * lib/getline.c (getstr): Move into a separate file.
82580         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82581         the following changes: new parameter, delim2; both delim[12]
82582         parameters have type `int', not `char'.  The latter would lose
82583         with 8-bit delimiters.
82584         * lib/getstr.h: New file.
82585
82586 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82587
82588         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82589         than 1024, return a memory chunk of least possible size, instead
82590         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82591         Use free/xmalloc instead of xrealloc to avoid copying for very long
82592         paths.
82593
82594 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82595
82596         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82597         the empty string.
82598
82599 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82600
82601         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82602         address, not strdup.  Include <stdlib.h> and don't declare free().
82603
82604 2000-06-19  Jim Meyering  <meyering@lucent.com>
82605
82606         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82607
82608 2000-06-18  Jim Meyering  <meyering@lucent.com>
82609
82610         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82611
82612         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82613         `checking whether...' message to be consistent with that of the
82614         lstat test.
82615
82616 2000-06-18  Jim Meyering  <meyering@lucent.com>
82617
82618         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82619         Besides, these days every porting target provides a mkdir function.
82620
82621         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82622         needed. (this snippet comes from src/system.h).
82623
82624 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82625
82626         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82627
82628 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82629
82630         * lib/human.c (adjust_value): New function.
82631         (human_readable_inexact): Apply rounding style even when
82632         printing approximate values.
82633
82634 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82635
82636         * lib/human.c (human_readable_inexact): Allow an input block
82637         size that is not a multiple of the output block size, and vice versa.
82638         Reported by Piergiorgio Sartor.
82639
82640 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82641
82642         * lib/getdate.y (get_date): Apply relative times after time
82643         zone indicator, not before.  Reported by Todd A. Jacobs.
82644
82645 2000-06-13  Jim Meyering  <meyering@lucent.com>
82646
82647         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82648
82649         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82650
82651 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82652
82653         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82654
82655 2000-06-12  Jim Meyering  <meyering@lucent.com>
82656
82657         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82658         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82659         optional argument.
82660         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82661         the optional argument, `lib'.
82662
82663 2000-06-08  Jim Meyering  <meyering@lucent.com>
82664
82665         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82666
82667 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82668
82669         Rewrite largefile configuration so that we don't need to run
82670         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82671         AC_CANONICAL_HOST in configure.in -- jmm]
82672
82673         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82674         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82675         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82676         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82677         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82678         All uses changed.
82679         Instead of inspecting the output of getconf, try to compile the
82680         test program without and with the macro definition.
82681         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82682         for getconf.  Instead, check for the needed flags by compiling
82683         test programs.
82684
82685 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82686
82687         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82688
82689 2000-06-04  Jim Meyering  <meyering@lucent.com>
82690
82691         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82692         SunOS 4.1.4 for which gid_t is an unsigned type.
82693
82694 2000-06-03  Jim Meyering  <meyering@lucent.com>
82695
82696         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82697         now that autoconf requires that.
82698
82699         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82700         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82701         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82702
82703 2000-06-03  Jim Meyering  <meyering@lucent.com>
82704
82705         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82706
82707 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82708
82709         * m4/glibc21.m4: New file.
82710         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82711
82712 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82713
82714         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82715         newer, don't install charset.alias.
82716         * lib/config.charset: Change the Linux/glibc rules so they become empty
82717         on glibc-2.1 or newer.
82718
82719 2000-06-02  Jim Meyering  <meyering@lucent.com>
82720
82721         * lib/mountlist.c: Back out last change.  Instead, do this...
82722         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82723         me_dummy member using the same `ignore'-testing code.
82724         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82725         fs_type strings.
82726         From Mark D. Roth.
82727
82728 2000-05-29  Jim Meyering  <meyering@lucent.com>
82729
82730         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82731         mounts with the `ignore' attribute.  Based on a patch from
82732         Mark D. Roth.
82733
82734 2000-05-28  Jim Meyering  <meyering@lucent.com>
82735
82736         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82737         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82738         * m4/stat.m4: Likewise.
82739         * m4/lstat.m4: Likewise.
82740         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82741
82742         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82743         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82744
82745 2000-05-26  Jim Meyering  <meyering@lucent.com>
82746
82747         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82748
82749 2000-05-24  Jim Meyering  <meyering@lucent.com>
82750
82751         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82752         autoconf requires that.
82753         * m4/lib-check.m4: Likewise.
82754         * m4/jm-macros.m4: Likewise.
82755         * m4/strftime.m4: Likewise.
82756
82757         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82758         AC_CHECK_DECLS, now that autoconf requires that.
82759
82760 2000-05-22  Jim Meyering  <meyering@lucent.com>
82761
82762         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82763         * m4/lstat.m4: Likewise.
82764
82765 2000-05-22  Jim Meyering  <meyering@lucent.com>
82766
82767         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82768
82769 2000-05-20  Jim Meyering  <meyering@lucent.com>
82770
82771         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82772         (jm_PREREQ): Use it.
82773
82774 2000-05-18  Jim Meyering  <meyering@lucent.com>
82775
82776         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82777         back, too, since it may have been modified by allocate_entry.
82778         (hash_delete): Rewrite to use neither the assignment operator
82779         nor the comma operator in an if-expression.
82780
82781 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82782
82783         * lib/closeout.c:
82784         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82785         Remove; no longer needed.
82786         "quotearg.h": Add include.
82787         (file_name): Do not bother to explicitly initialize to NULL; it's less
82788         efficient on some hosts.
82789         (close_stdout_status): Remove test as to whether stdout was already
82790         closed; it breaks for the case "echo x | sort >&-".
82791         Quote file name colons.
82792         Do not assume that _("write error") lacks format strings.
82793
82794 2000-05-15  Jim Meyering  <meyering@lucent.com>
82795
82796         * lib/version-etc.c (version_etc_copyright): Update the copyright
82797         string used in all --version output.
82798
82799 2000-05-14  Jim Meyering  <meyering@lucent.com>
82800
82801         * lib/closeout.c (close_stdout_set_file_name): New function.
82802         (close_stdout_status): Use new file-scoped global.
82803         Return right away if fstat says the stdout file descriptor is invalid.
82804         * lib/closeout.h (close_stdout_set_file_name): Declare.
82805
82806 2000-05-10  Jim Meyering  <meyering@lucent.com>
82807
82808         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82809         (close_stdout_set_status): New function.
82810         * lib/closeout.h (close_stdout_set_status): Declare.
82811
82812 2000-05-09  Jim Meyering  <meyering@lucent.com>
82813
82814         * m4/gettext.m4: Rename this...
82815         * m4/libintl.m4: ...to this.
82816
82817 2000-05-08  Jim Meyering  <meyering@lucent.com>
82818
82819         * lib/long-options.c: Don't include closeout.h.
82820         (parse_long_options): Don't call close_stdout for --version.
82821
82822 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82823
82824         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82825         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82826         2.1.3 bug.  This avoids a clash when files like regex.c define
82827         _GNU_SOURCE.
82828
82829 2000-05-06  Jim Meyering  <meyering@lucent.com>
82830
82831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82832         (AC_REPLACE_FUNCS): Add strnlen.
82833
82834         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82835         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82836
82837         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82838         AC_SEARCH_LIBS call for nanosleep.
82839         (LIB_NANOSLEEP): Set and AC_SUBST.
82840
82841 2000-05-06  Jim Meyering  <meyering@lucent.com>
82842
82843         * lib/strnlen.c: Undefine __strnlen and strnlen.
82844         [!weak_alias]: Define __strnlen to strnlen.
82845
82846         * lib/atexit.c: New file, from libiberty.
82847
82848 2000-05-06  Jim Meyering  <meyering@lucent.com>
82849
82850         * lib/closeout.c (close_stdout_status): Also check for errors on the
82851         stderr stream.
82852
82853 2000-05-05  Jim Meyering  <meyering@lucent.com>
82854
82855         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82856         AC_SEARCH_LIBS call for clock_gettime.
82857         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82858
82859         * m4/search-libs.m4: Update from autoconf.
82860
82861         su doesn't work on Solaris 2.6.
82862         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82863         <shadow.h>.  Reported by Dragos Harabor.
82864
82865 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82866
82867         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82868         memcpy instead of xmalloc, xrealloc, path_concat.
82869         (locale_charset): Treat empty environment variables as absent.
82870         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82871
82872 2000-05-04  Jim Meyering  <meyering@lucent.com>
82873
82874         * lib/getopt.c: Update from glibc.
82875         * lib/obstack.c: Likewise.
82876         * lib/obstack.h: Likewise.
82877         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82878         file
82879
82880         * lib/regex.h: Likewise.
82881         * lib/strndup.c: Likewise.
82882         * lib/strnlen.c: New file, from glibc.
82883
82884 2000-05-03  Jim Meyering  <meyering@lucent.com>
82885
82886         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82887
82888 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82889
82890         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82891         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82892         compile-time test, rather than inspecting host and OS, to
82893         decide whether to define _LARGEFILE_SOURCE.
82894
82895 2000-05-01  Jim Meyering  <meyering@lucent.com>
82896
82897         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82898
82899         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82900         Based on a patch from Bruno Haible.
82901
82902 2000-05-01  Jim Meyering  <meyering@lucent.com>
82903
82904         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82905
82906 2000-04-29  Jim Meyering  <meyering@lucent.com>
82907
82908         * lib/path-concat.c: Declare strdup only if it's not defined.
82909         * lib/canon-host.c: Likewise.
82910
82911 2000-04-28  Jim Meyering  <meyering@lucent.com>
82912
82913         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82914         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82915         is included first, then limits.h is included by locale.h by libintl.h.
82916         From John David Anglin.
82917
82918 2000-04-25  Jim Meyering  <meyering@lucent.com>
82919
82920         * lib/makepath.c (S_IRWXUGO): Define.
82921         (make_path): Always perform explicit chmod if MODE specifies any
82922         of the `special' permission bits.  Prompted by a bug report against
82923         install from Mate Wierdl and Joost van Baal.
82924
82925 2000-04-18  Jim Meyering  <meyering@lucent.com>
82926
82927         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82928         (jm_PREREQ): Use it.
82929
82930 2000-04-18  Jim Meyering  <meyering@lucent.com>
82931
82932         * lib/README: New file.
82933
82934         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82935         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82936
82937 2000-04-17  Jim Meyering  <meyering@lucent.com>
82938
82939         Get it right :-)
82940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82941         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82942         Suggestion from Akim Demaille.
82943
82944 2000-04-17  Jim Meyering  <meyering@lucent.com>
82945
82946         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82947         the definition of it to rpl_strftime also defined-away the system's
82948         declaration.
82949
82950 2000-04-15  Jim Meyering  <meyering@lucent.com>
82951
82952         Use `C' to denote so-called `contiguous' files, the same way
82953         that tar does.
82954         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82955         (ftypelet): Use S_ISCTG.
82956         From Michael Deutschmann.
82957
82958 2000-04-14  Jim Meyering  <meyering@lucent.com>
82959
82960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82961         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82962         clobbered.
82963
82964 2000-04-14  Jim Meyering  <meyering@lucent.com>
82965
82966         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82967
82968 2000-04-13  Jim Meyering  <meyering@lucent.com>
82969
82970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82971         AH_VERBATIM to insert required #ifndef into config.h.in.
82972         Suggestion from Akim Demaille.
82973
82974 2000-04-12  Jim Meyering  <meyering@lucent.com>
82975
82976         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82977         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82978         Christian Krackowizer.
82979
82980         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82981         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82982         (AC_SYS_LARGEFILE): Require.
82983         (AM_C_PROTOTYPES): Require.
82984
82985 2000-04-08  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82988         names don't conflict.  Reported by Eli Zaretskii.
82989
82990 2000-04-07  Jim Meyering  <meyering@lucent.com>
82991
82992         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82993         sys/types.h, to work around system header problems on AIX 3.2.5.
82994         From Bruno Haible.
82995
82996 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82997
82998         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82999         bug.  Deal with the different error behavior of Irix iconv.
83000
83001 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83002
83003         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83004         IRIX if the installer said otherwise.
83005
83006 2000-04-05  Jim Meyering  <meyering@lucent.com>
83007
83008         Portability tweaks required for ultrix4.3.
83009         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83010         (jm_CHECK_DECLS): Add getutent to the list of functions.
83011         (_jm_DECL_HEADERS): Add utmpx.h.
83012         From John David Anglin.
83013
83014         * m4/strftime.m4: Back out the 2000-04-02 change.
83015         Instead of that change, simply undefine putenv in the test program.
83016
83017 2000-04-05  Jim Meyering  <meyering@lucent.com>
83018
83019         Portability tweaks required for ultrix4.3.
83020         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83021         getutent.
83022         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83023         * lib/canon-host.c: Declare strdup.
83024         * lib/path-concat.c: Likewise.
83025         From John David Anglin.
83026
83027 2000-04-04  Jim Meyering  <meyering@lucent.com>
83028
83029         Be more DOS 8.3-friendly.
83030         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83031         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83032         * lib/Makefile.am: Reflect renaming.
83033         Reported by Eli Zaretskii.
83034
83035         Use a temporary file name that won't clash with `charset.alias'
83036         in the DOS 8.3 name space.
83037         * lib/Makefile.am (charset_tmp): Define.
83038         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83039         (uninstall-local): Likewise.
83040         Reported by Eli Zaretskii.
83041
83042 2000-04-03  Jim Meyering  <meyering@lucent.com>
83043
83044         * m4/gettext.m4: Fix typo in comment.
83045
83046         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83047         textutils/configure.in).  Suggestion from Paul Eggert.
83048         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83049
83050 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83051
83052         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83053         variable in the shell rather than using putenv, which isn't
83054         portable.  This avoids the configure-time inter-test dependency
83055         on the potentially-renamed putenv function.
83056
83057 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83058
83059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83060         before checking struct stat.st_blksize, so that
83061         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83062
83063 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83064
83065         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83066         since strftime.c uses HAVE_STRFTIME to decide whether to use
83067         the underlying strftime.
83068
83069 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83070
83071         * lib/time/strftime.c (my_strftime): Make sure we call the system
83072         strftime, not ourselves, when invoking the underlying strftime.
83073
83074 2000-03-24  Jim Meyering  <meyering@lucent.com>
83075
83076         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83077         (charset_alias): Define.
83078         (install-exec-local): Factor out common code.
83079         (uninstall-local): Split lines longer than 80.
83080         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83081         (SUFFIXES): Define.
83082         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83083         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83084
83085 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83086
83087         * lib/config.charset: Output a line containing "Packages using this
83088         file".
83089         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83090         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83091         ref-del.sed): New rules.
83092
83093 2000-03-17  Jim Meyering  <meyering@lucent.com>
83094
83095         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83096         Otherwise, include <strings.h>
83097
83098 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83099
83100         * lib/unicodeio.c (utf8_wctomb): New function.
83101         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83102         format instead of in UCS-4 with platform dependent endianness.
83103
83104 2000-03-10  Jim Meyering  <meyering@lucent.com>
83105
83106         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83107         From Marco Franzen.
83108
83109 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83110
83111         * lib/savedir.c (savedir): Work even if directory size is
83112         negative; this can happen with some screwy NFS configurations.
83113
83114 2000-03-06  Jim Meyering  <meyering@lucent.com>
83115
83116         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83117         if it's NULL (because we ran out of memory).  From Bruno Haible.
83118
83119 2000-03-05  Jim Meyering  <meyering@lucent.com>
83120
83121         * lib/localcharset.c ("path-concat.h"): Include.
83122         (get_charset_aliases): Use path_concat instead of ANSI string
83123         concatenation.
83124
83125         * lib/unicodeio.h (PARAMS): Define.
83126         Use it to guard prototype.
83127
83128 2000-03-04  Jim Meyering  <meyering@lucent.com>
83129
83130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83131         for lib/localcharset.c.
83132
83133 2000-03-04  Jim Meyering  <meyering@lucent.com>
83134
83135         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83136         installing into it.
83137         (uninstall-local): Uncomment this rule so `make distcheck' works
83138         once again.
83139
83140         * lib/unicodeio.c (<errno.h>): Include it.
83141         (errno): Declare if not defined.
83142
83143         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83144
83145         * lib/config.charset: New version, incorporating remarks from a linux
83146         i18n mailing list.  From Bruno Haible.
83147
83148 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83149
83150         * m4/codeset.m4: New file.
83151         * m4/iconv.m4: New file.
83152         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83153
83154 2000-03-03  Jim Meyering  <meyering@lucent.com>
83155
83156         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83157
83158 2000-03-02  Jim Meyering  <meyering@lucent.com>
83159
83160         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83161         the messages come out on separate lines.
83162
83163         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83164         rather than jm_CHECK_DECLARATIONS.
83165         * m4/decl.m4: Remove now-unused file.
83166
83167         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83168         geteuid.
83169
83170 2000-03-02  Jim Meyering  <meyering@lucent.com>
83171
83172         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83173
83174 2000-03-01  Jim Meyering  <meyering@lucent.com>
83175
83176         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83177         * lib/unicodeio.c: Likewise.
83178
83179 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83180
83181         * lib/config.charset: New file.
83182         * lib/localcharset.c: New file.
83183         * lib/unicodeio.h, lib/unicodeio.c: New files.
83184         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83185         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83186         (noinst_HEADERS): Add unicodeio.h.
83187         (all-local, install-exec-local, charset.alias): New targets.
83188
83189 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83190
83191         * lib/quotearg.c (ALERT_CHAR): New macro.
83192         (quotearg_buffer_restyled): Use it.
83193
83194 2000-02-27  Jim Meyering  <meyering@lucent.com>
83195
83196         * m4/check-decl.m4: Add getenv to the list.
83197
83198 2000-02-27  Jim Meyering  <meyering@lucent.com>
83199
83200         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83201         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83202
83203         * lib/backupfile.c: Guard inclusion of stdlib.h with
83204         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83205         Declare malloc if needed.
83206
83207         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83208         `#ifndef HAVE_DECL..'
83209         now that autoconf always defines the HAVE_DECL_ symbols.
83210         * lib/human.c: Likewise.
83211         * lib/same.c: Likewise.
83212         * lib/strtoumax.c: Likewise.
83213
83214         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83215         declaration check was not run.
83216         * lib/hash.c: Likewise.
83217         * lib/human.c: Likewise.
83218         * lib/same.c: Likewise.
83219         * lib/strtoumax.c: Likewise.
83220
83221         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83222         `.', then first look up the entire `.'-containing string as a login
83223         name.
83224
83225 2000-02-23  Jim Meyering  <meyering@lucent.com>
83226
83227         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83228         in place of my hack.
83229
83230 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83231
83232         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83233         (textint): New typedef.
83234         (parser_control): Member year changed from int to textint.
83235         All uses changed.
83236         (YYSTYPE): Removed; replaced by %union with int and textint members.
83237         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83238         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83239         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83240         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83241         (date, number, to_year): Use width of number in digits, not its value,
83242         to determine whether it's a 2-digit year, or a 2-digit time.
83243         (yylex): Store number of digits of numeric tokens.
83244         Reported by John Kendall.
83245
83246         (parser_control): Changed from struct parser_control to typedef (for
83247         consistency).  All uses changed.
83248
83249         (tID): Removed; not used.
83250         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83251
83252 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83253
83254         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83255         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83256
83257 2000-02-12  Jim Meyering  <meyering@lucent.com>
83258
83259         * lib/userspec.c (ISDIGIT): Define it.
83260         (isdigit): Remove definition.
83261         (is_number): Use ISDIGIT, not isdigit.
83262         <libintl.h>: Include.
83263         (_ and N_): Define.
83264         (parse_user_spec): Mark translatable strings.
83265
83266 2000-02-10  Jim Meyering  <meyering@lucent.com>
83267
83268         With these changes, nanosleep.[ch] are finally enough like the other
83269         lib/* replacement files to compile on a few more losing systems.
83270
83271         * lib/nanosleep.h: Don't include config.h.
83272         Remove prototype from declaration of nanosleep.
83273         (PARAMS): Remove now-unneeded definition.
83274         * lib/nanosleep.c: #undef nanosleep.
83275         (rpl_nanosleep): Rename from nanosleep.
83276
83277 2000-02-10  Jim Meyering  <meyering@lucent.com>
83278
83279         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83280         gnu_nanosleep to rpl_nanosleep.
83281
83282 2000-02-09  Jim Meyering  <meyering@lucent.com>
83283
83284         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83285         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83286
83287 2000-02-08  Akim Demaille  <akim@epita.fr>
83288
83289         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83290         `[' and `]' and remove uses of `changequote'.
83291         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83292         (AC_SYS_LARGEFILE): Likewise.
83293         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83294         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83295         of changequote.
83296         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83297         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83298         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83299         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83300
83301 2000-02-05  Jim Meyering  <meyering@lucent.com>
83302
83303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83304         Remove explicit use of AC_HEADER_TIME.  It is required by
83305         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83306         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83307         in autoconf whereby the expansion of the latter ended up preceding
83308         the expansion of its prerequisite, AC_HEADER_TIME.
83309         Reported by Volker Borchert.
83310
83311 2000-02-03  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83314
83315 2000-02-03  Jim Meyering  <meyering@lucent.com>
83316
83317         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83318         rather than with `#if HAVE_UTMPNAME'.
83319
83320 2000-02-02  Jim Meyering  <meyering@lucent.com>
83321
83322         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83323         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83324         Reported by Eli Zaretskii.
83325
83326 2000-02-01  Jim Meyering  <meyering@lucent.com>
83327
83328         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83329
83330 2000-01-31  Jim Meyering  <meyering@lucent.com>
83331
83332         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83333         functions.  Add the time.h and sys/time.h headers along with the
83334         AC_REQUIRE'ment of AC_HEADER_TIME.
83335
83336 2000-01-31  Jim Meyering  <meyering@lucent.com>
83337
83338         * lib/nanosleep.h (nanosleep): Guard declaration with
83339         `#if ! HAVE_DECL_NANOSLEEP'.
83340         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83341         the declaration in that vendor's sys/timers.h.
83342         Reported by Christian Krackowizer.
83343
83344         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83345         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83346         (ISPRINT): Likewise.
83347         Reported by Tom Tromey.
83348
83349 2000-01-30  Jim Meyering  <meyering@lucent.com>
83350
83351         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83352
83353         * m4/prereq.m4 (utmp_includes): Define.
83354         Check for ut_user and ut_name members in both struct utmpx
83355         and struct utmp.
83356
83357 2000-01-30  Jim Meyering  <meyering@lucent.com>
83358
83359         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83360         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83361         header files where only utmpx.ut_user is declared.
83362
83363         * lib/readutmp.h (UT_USER): Define.
83364
83365 2000-01-29  Jim Meyering  <meyering@lucent.com>
83366
83367         * m4/lib-check.m4: New file containing library-related checks from
83368         fileutils and sh-utils (textutils had none).
83369
83370 2000-01-28  Jim Meyering  <meyering@lucent.com>
83371
83372         * m4/perl.m4: Change format of warning message to look more like that
83373         from the missing script.  Suggestion from François Pinard.
83374
83375 2000-01-25  Jim Meyering  <meyering@lucent.com>
83376
83377         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83378         well as time.h in the compile check.
83379         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83380         Fix typo in cross-compiling case: s/yes/no/.
83381
83382 2000-01-23  Jim Meyering  <meyering@lucent.com>
83383
83384         * m4/jm-macros.m4: Move df-related tests here from
83385         fileutils/configure.in
83386
83387         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83388         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83389
83390         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83391         s/space/ac_fsusage_space/.
83392         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83393
83394         * m4/ftruncate.m4: New file (derived from part of
83395         fileutils/configure.in).
83396         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83397         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83398
83399         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83400         AC_SUBST these here, rather than just in sh-util/configure.in, so
83401         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83402         all the same.
83403         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83404         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83405         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83406         (AC_SUBST(POW_LIBM)): Likewise.
83407         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83408
83409 2000-01-23  Jim Meyering  <meyering@lucent.com>
83410
83411         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83412         obstack.c.
83413
83414 2000-01-22  Jim Meyering  <meyering@lucent.com>
83415
83416         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83417
83418         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83419
83420         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83421         configure.in
83422         (AC_CHECK_HEADERS): Likewise for sh-utils.
83423         (AC_CHECK_HEADERS): Likewise for textutils.
83424         Merge the three lists of headers.
83425
83426         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83427         from fileutils' configure.in.
83428
83429         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83430         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83431         check-decl.m4.
83432
83433         * m4/check-decl.m4: Use #if rather than #ifdef.
83434         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83435         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83436         (_jm_DECL_HEADERS): Define new function.
83437         (jm_CHECK_DECLARATIONS): Require it.
83438
83439 2000-01-22  Jim Meyering  <meyering@lucent.com>
83440
83441         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83442         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83443         Required for some AIX systems.  Reported by Christian Krackowizer.
83444         [TESTING] (main): New function.
83445
83446         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83447         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83448         letters.
83449
83450         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83451         iswprint.
83452
83453         * lib/strverscmp.c (ISDIGIT): Define.
83454         (strverscmp): Use ISDIGIT, not isdigit.
83455
83456 2000-01-19  Jim Meyering  <meyering@lucent.com>
83457
83458         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83459         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83460         defines `struct timespec' in <sys/time.h>
83461
83462         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83463         Thanks to Akim for explaining.
83464
83465 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83466
83467         * lib/nanosleep.c (nanosleep):
83468         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83469         POSIX.1 doesn't require SA_INTERRUPT and some systems
83470         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83471         it's been part of POSIX.1 since day 1 (in 1988).
83472
83473 2000-01-17  Jim Meyering  <meyering@lucent.com>
83474
83475         * lib/interlock: Remove unused file.  Reported by François Pinard.
83476
83477 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83478
83479         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83480         alert, backslash, formfeed, and vertical tab unnecessarily in
83481         shell quoting style.
83482
83483 2000-01-16  Jim Meyering  <meyering@lucent.com>
83484
83485         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83486         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83487         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83488         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83489
83490 2000-01-16  Jim Meyering  <meyering@lucent.com>
83491
83492         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83493         because the latter didn't work.
83494
83495 2000-01-15  Jim Meyering  <meyering@lucent.com>
83496
83497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83498         (AC_REPLACE_FUNCS): Add memcpy and memset.
83499         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83500         Add strpbrk.
83501         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83502
83503 2000-01-12  Jim Meyering  <meyering@lucent.com>
83504
83505         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83506         (jm_PREREQ): Use it.
83507         (jm_PREREQ_READUTMP): New macro.
83508         (jm_PREREQ): Use it.
83509
83510 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83511
83512         Quote multibyte characters correctly.
83513         * m4/c-bs-a.m4: New file.
83514         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83515         (jm_PREREQ): Use it.
83516
83517 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83518
83519         * m4/uintmax_t.m4: Port to autoconf 2.13.
83520
83521 2000-01-08  Jim Meyering  <meyering@ascend.com>
83522
83523         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83524         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83525
83526 2000-01-04  Jim Meyering  <meyering@ascend.com>
83527
83528         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83529         jm_STRUCT_DIRENT_D_TYPE.
83530         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83531         jm_STRUCT_DIRENT_D_INO.
83532         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83533         jm_STRUCT_UTIMBUF.
83534         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83535         renamings.
83536         * m4/utime.m4: Likewise.
83537
83538         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83539         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83540
83541 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83542
83543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83544         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83545
83546 2000-01-02  Jim Meyering  <meyering@ascend.com>
83547
83548         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83549         remember if this is necessary.
83550
83551 1999-12-26  Jim Meyering  <meyering@ascend.com>
83552
83553         * m4/jm-macros.m4: Use it here.
83554         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83555
83556 1999-12-23  Jim Meyering  <meyering@ascend.com>
83557
83558         * m4/jm-macros.m4: Check for clock_gettime (moved from
83559         fileutils/configure.in)
83560         Check for gettimeofday.
83561
83562 1999-12-20  Jim Meyering  <meyering@ascend.com>
83563
83564         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83565         autoconf-2.14a-1999-12-20.
83566
83567 1999-12-19  Jim Meyering  <meyering@ascend.com>
83568
83569         * m4/lstat-slash.m4: New file.
83570         * m4/jm-macros.m4: Use the new macro:
83571         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83572
83573 1999-12-07  Jim Meyering  <meyering@ascend.com>
83574
83575         * m4/perl.m4: Require that File::Compare be available, too.
83576         Too many systems seem to lack it.
83577
83578         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83579         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83580
83581 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83582
83583         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83584         problem with the QNX 4.25 shell, which doesn't propagate exit
83585         status of failed commands inside shell assignments.
83586
83587 1999-11-17  Jim Meyering  <meyering@ascend.com>
83588
83589         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83590
83591 1999-11-07  Jim Meyering  <meyering@ascend.com>
83592
83593         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83594
83595 1999-11-06  Jim Meyering  <meyering@ascend.com>
83596
83597         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83598         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83599
83600 1999-11-05  Jim Meyering  <meyering@ascend.com>
83601
83602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83603         configure.in of textutils, fileutils, and sh-utils into this one
83604         (shared between those packages) file.
83605         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83606         AC_STRUCT_ST_BLKSIZE.
83607
83608 1999-11-03  Jim Meyering  <meyering@ascend.com>
83609
83610         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83611         of AC_CHECK_TYPE checks includes unistd.h.
83612         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83613         Suggestion from Akim Demaille.
83614
83615 1999-10-30  Jim Meyering  <meyering@ascend.com>
83616
83617         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83618         m4-quoted string.
83619         * m4/ls-mntd-fs.m4: Likewise.
83620         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83621         * m4/jm-winsz1.m4: Likewise.
83622
83623         * m4/const.m4: Remove file, since the fix made it into the experimental
83624         version of autoconf.
83625         * m4/mktime.m4: Likewise.
83626
83627         * m4/check-type.m4: Remove file, now that the latest version of
83628         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83629
83630         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83631         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83632         AC_CHECK_TYPE.
83633
83634 1999-10-04  Jim Meyering  <meyering@ascend.com>
83635
83636         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83637
83638 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83639
83640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83641         2.95.1 bug with HP-UX 10.20.
83642
83643 1999-09-17  Jim Meyering  <meyering@ascend.com>
83644
83645         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83646         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83647         due to missing strdup (against sh-utils-2.0).
83648
83649 1999-08-29  Jim Meyering  <meyering@ascend.com>
83650
83651         * m4/jm-macros.m4: Require jm_BISON.
83652         * m4/bison.m4: New file.
83653
83654 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83655
83656         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83657         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83658
83659 1999-08-05  Jim Meyering  <meyering@ascend.com>
83660
83661         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83662         to avoid conflicts with `conftest' on 8+3 filesystems.
83663         Suggestion from Eli Zaretskii.
83664
83665 1999-08-04  Jim Meyering  <meyering@ascend.com>
83666
83667         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83668         fileutils and sh-utils (textutils's getline test was inadequate).
83669         (AM_FUNC_GETLINE): Run this test.
83670         (AC_CHECK_FUNCS): Check for getdelim.
83671         Reported by Bob Proulx.
83672
83673 1999-08-02  Jim Meyering  <meyering@ascend.com>
83674
83675         * m4/jm-macros.m4: Add a comment.
83676
83677 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83678
83679         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83680         <inttypes.h> defines strtoumax as a macro (and not as a
83681         function).
83682
83683 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83684
83685         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83686         that we can shift, multiply and divide unsigned long long
83687         values; Ultrix cc can't do it.
83688
83689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83690
83691         * m4/mktime.m4: New file, which is a preview of what should appear
83692         in the next public autoconf release.
83693
83694 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83695
83696         * m4/lfs.m4: Remove this file.
83697         * m4/largefile.m4: New file.  It contains the old contents of
83698         lfs.m4, except that all names with prefix AC_LFS have been
83699         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83700         compatible with future autoconf versions.  Also, some minor m4
83701         quoting problems have been fixed.
83702
83703 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83704
83705         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83706         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83707         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83708         and simplify the shell code.
83709
83710 1999-08-01  Jim Meyering  <meyering@ascend.com>
83711
83712         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83713         m4.
83714
83715 1999-07-20  Jim Meyering  <meyering@ascend.com>
83716
83717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83718
83719 1999-07-15  Jim Meyering  <meyering@ascend.com>
83720
83721         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83722
83723 1999-05-22  Jim Meyering  <meyering@ascend.com>
83724
83725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83726
83727 1999-05-20  Jim Meyering  <meyering@ascend.com>
83728
83729         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83730         Add a colon after each `then' in case $4 is empty.
83731
83732 1999-05-16  Jim Meyering  <meyering@ascend.com>
83733
83734         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83735
83736 1999-05-10  Jim Meyering  <meyering@ascend.com>
83737
83738         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83739
83740         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83741         AC_FUNC_MKTIME.
83742
83743 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83744
83745         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83746
83747 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83748
83749         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83750         not CPPFLAGS, so that linking works correctly in IRIX.
83751
83752 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83753
83754         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83755
83756 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83757
83758         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83759         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83760         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83761         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83762         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83763
83764         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83765
83766 1999-04-20  Jim Meyering  <meyering@ascend.com>
83767
83768         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83769         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83770         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83771
83772 1999-04-18  Jim Meyering  <meyering@ascend.com>
83773
83774         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83775         * m4/jm-macros.m4: Use it.
83776
83777 1999-04-06  Jim Meyering  <meyering@ascend.com>
83778
83779         * m4/strftime.m4: Remove test for %f.
83780
83781 1999-03-29  Jim Meyering  <meyering@ascend.com>
83782
83783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83784         superset of the AC_TYPE_* checks in the textutils, fileutils,
83785         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83786         AC_TYPE_PID_T.
83787
83788 1999-03-28  Jim Meyering  <meyering@ascend.com>
83789
83790         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83791         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83792         replaced e.g., in the *.sh files of the sh-utils.
83793
83794 1999-03-20  Jim Meyering  <meyering@ascend.com>
83795
83796         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83797         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83798         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83799
83800 1999-03-19  Jim Meyering  <meyering@ascend.com>
83801
83802         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83803
83804 1999-03-12  Jim Meyering  <meyering@ascend.com>
83805
83806         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83807
83808 1999-03-07  Jim Meyering  <meyering@ascend.com>
83809
83810         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83811         declared.
83812
83813 1999-02-17  Jim Meyering  <meyering@ascend.com>
83814
83815         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83816         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83817
83818 1999-02-07  Jim Meyering  <meyering@ascend.com>
83819
83820         * m4/group-member.m4: New file -- extracted from sh-utils'
83821         configure.in.
83822
83823         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83824         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83825
83826 1999-02-06  Jim Meyering  <meyering@ascend.com>
83827
83828         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83829         * m4/fnmatch.m4: Likewise.
83830         * m4/getgroups.m4: Likewise.
83831         * m4/lstat.m4: Likewise.
83832         * m4/malloc.m4: Likewise.
83833         * m4/putenv.m4: Likewise.
83834         * m4/realloc.m4: Likewise.
83835         * m4/regex.m4: Likewise.
83836         * m4/stat.m4: Likewise.
83837         * m4/strftime.m4: Likewise.
83838         Suggestion from Alain Magloire.
83839
83840         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83841         * m4/fnmatch.m4: Likewise.
83842         * m4/getgroups.m4: Likewise.
83843         * m4/getline.m4: Likewise.
83844         * m4/lstat.m4: Likewise.
83845         * m4/malloc.m4: Likewise.
83846         * m4/memcmp.m4: Likewise.
83847         * m4/putenv.m4: Likewise.
83848         * m4/realloc.m4: Likewise.
83849         * m4/regex.m4: Likewise.
83850         * m4/stat.m4: Likewise.
83851         * m4/strftime.m4: Likewise.
83852         Suggestion from Alain Magloire.
83853
83854         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83855         an argument.
83856
83857         * m4/regex.m4: Add a run-time Test for proper operation of
83858         re_compile_pattern.
83859
83860 1999-01-31  Jim Meyering  <meyering@ascend.com>
83861
83862         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83863
83864 1999-01-30  Jim Meyering  <meyering@ascend.com>
83865
83866         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83867
83868         * m4/jm-mktime.m4: Make this a wrapper around the official
83869         AM_FUNC_MKTIME rather than my private copy, now that the official one
83870         is up to date.
83871         * m4/mktime.m4: Remove file.
83872
83873         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83874         * m4/uptime.m4: Likewise.
83875         * m4/uintmax_t.m4: Likewise.
83876
83877 1999-01-28  Jim Meyering  <meyering@ascend.com>
83878
83879         * m4/jm-macros.m4: Use jm_AFS.
83880         * m4/afs.m4: New file (from fileutils' configure.in).
83881
83882         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83883         * m4/chown.m4: Likewise.
83884         * m4/d-ino.m4: Likewise.
83885         * m4/d-type.m4: Likewise.
83886         * m4/fnmatch.m4: Likewise.
83887         * m4/getgroups.m4: Likewise.
83888         * m4/gettext.m4: Likewise.
83889         * m4/jm-mktime.m4: Likewise.
83890         * m4/jm-winsz2.m4: Likewise.
83891         * m4/lcmessage.m4: Likewise.
83892         * m4/ls-mntd-fs.m4: Likewise.
83893         * m4/malloc.m4: Likewise.
83894         * m4/memcmp.m4: Likewise.
83895         * m4/putenv.m4: Likewise.
83896         * m4/realloc.m4: Likewise.
83897         * m4/st_mtim.m4: Likewise.
83898         * m4/strftime.m4: Likewise.
83899
83900 1999-01-16  Jim Meyering  <meyering@ascend.com>
83901
83902         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83903         (ARGMATCH_DIE_DECL): Define.
83904
83905 1999-01-12  Jim Meyering  <meyering@ascend.com>
83906
83907         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83908         Reported by Lars Hecking.
83909
83910 1999-01-10  Jim Meyering  <meyering@ascend.com>
83911
83912         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83913         gross kludge.
83914         * m4/inttypes_h.m4: Likewise.
83915         * m4/lstat.m4: Likewise.
83916         * m4/malloc.m4: Likewise.
83917         * m4/readdir.m4: Likewise.
83918         * m4/realloc.m4: Likewise.
83919         * m4/st_dm_mode.m4: Likewise.
83920         * m4/stat.m4: Likewise.
83921         * m4/utimbuf.m4: Likewise.
83922         * m4/utimes.m4: Likewise.
83923
83924         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83925         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83926         comments in config.h.in are meaningful.
83927
83928         * m4/jm-macros.m4: Require autoconf-2.13 here.
83929
83930         * m4/regex.m4: By default, don't use the included regex.c on systems
83931         with glibc 2.  Suggestion from Uli Drepper.
83932
83933 1999-01-02  Jim Meyering  <meyering@ascend.com>
83934
83935         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83936
83937 1998-12-18  Jim Meyering  <meyering@ascend.com>
83938
83939         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83940         Based on a suggestion from Lars Hecking.
83941
83942 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83943
83944         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83945
83946 1998-11-16  Jim Meyering  <meyering@ascend.com>
83947
83948         * m4/lfs.m4: Double-quote the `uname...` expression.
83949
83950 1998-11-14  Jim Meyering  <meyering@ascend.com>
83951
83952         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83953         * m4/stat.m4: Likewise.
83954
83955 1998-11-03  Jim Meyering  <meyering@ascend.com>
83956
83957         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83958         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83959
83960 1998-10-18  Jim Meyering  <meyering@ascend.com>
83961
83962         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83963
83964 1998-10-17  Jim Meyering  <meyering@ascend.com>
83965
83966         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83967         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83968         calls for those previously hard-coded headers.  Instead, take a new
83969         parameter.
83970         (jm_CHECK_DECLARATIONS): Reflect interface change.
83971         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83972         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83973
83974         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83975
83976 1998-10-14  Jim Meyering  <meyering@ascend.com>
83977
83978         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83979         instead of "TZ=America/Vancouver".  From Paul Eggert.
83980
83981 1998-10-11  Jim Meyering  <meyering@ascend.com>
83982
83983         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83984         This adds a test for a recently added compatibility fix for mktime.c.
83985         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83986
83987 1998-09-27  Jim Meyering  <meyering@ascend.com>
83988
83989         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83990
83991         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83992         ../configure.in, including a change from Gordon Matzigkeit to allow
83993         cross-compiling for the Hurd.
83994
83995         * m4/glibc.m4: New file/macro to test for the GNU C Library
83996         versions 1 and 2.  From Gordon Matzigkeit.
83997         Indent.
83998
83999 1998-09-21  Jim Meyering  <meyering@ascend.com>
84000
84001         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84002
84003 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84004
84005         Port nanosecond-resolution times to UnixWare 2.1.2 and
84006         pedantic Solaris 2.6.
84007
84008         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84009         AC_STRUCT_ST_MTIM.
84010         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84011         Generate name of ns member, instead of just 1 or undef.
84012         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84013
84014 1998-08-15  Jim Meyering  <meyering@ascend.com>
84015
84016         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84017         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84018         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84019         instead of jm_TYPE_SSIZE_T.
84020
84021 1998-08-12  Jim Meyering  <meyering@ascend.com>
84022
84023         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84024
84025 1998-08-02  Jim Meyering  <meyering@ascend.com>
84026
84027         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84028         in acconfig.h manually.
84029
84030 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84031
84032         * m4/st_mtim.m4: New file.
84033
84034 1998-07-28  Jim Meyering  <meyering@ascend.com>
84035
84036         * m4/utimes.m4: Undef stat.
84037
84038 1998-07-25  Jim Meyering  <meyering@ascend.com>
84039
84040         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84041         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84042
84043 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84044
84045         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84046         uid and gid actually remain unchanged.
84047
84048 1998-07-07  Jim Meyering  <meyering@ascend.com>
84049
84050         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84051
84052 1998-07-04  Jim Meyering  <meyering@ascend.com>
84053
84054         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84055         to prove that this macro can be used in packages without regex.c.
84056
84057 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84058
84059         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84060         is to be used.
84061
84062 1998-07-03  Jim Meyering  <meyering@ascend.com>
84063
84064         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84065
84066         * m4/gettext.m4: New file -- from gettext-0.10.35.
84067         * m4/lcmessage.m4: Likewise.
84068         * m4/progtest.m4: Likewise.
84069
84070         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84071         * m4/jm-macros.m4: Require the new macro.
84072
84073 1998-06-29  Jim Meyering  <meyering@ascend.com>
84074
84075         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84076         for the definition of NGROUPS (used in a system header included
84077         by sys/mount.h).
84078
84079 1998-06-28  Jim Meyering  <meyering@ascend.com>
84080
84081         * m4/ls-mntd-fs.m4: New file.
84082         * m4/fstypename.m4: New file.
84083
84084         * m4/jm-macros.m4: Require the new macro.
84085         * m4/jm-glibc-io.m4: New file.
84086
84087 1998-05-19  Jim Meyering  <meyering@ascend.com>
84088
84089         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84090         * m4/lchown.m4: New file.
84091
84092         * m4/Makefile.am.in: New file.
84093         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84094
84095 1998-05-14  Jim Meyering  <meyering@ascend.com>
84096
84097         * m4/Makefile.am (EXTRA_DIST): Add them.
84098         * m4/jm-macros.m4: New file.
84099         * m4/utimbuf.m4: New file.
84100
84101 1998-05-12  Jim Meyering  <meyering@ascend.com>
84102
84103         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84104
84105 1998-05-11  Jim Meyering  <meyering@ascend.com>
84106
84107         * m4/isc-posix.m4: New file.
84108
84109 1998-05-10  Jim Meyering  <meyering@ascend.com>
84110
84111         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84112
84113 1998-05-09  Jim Meyering  <meyering@ascend.com>
84114
84115         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84116         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84117         with automake.
84118
84119         * m4/ssize_t.m4: New file.
84120         * m4/mktime.m4: Remove file -- the new automake has this now.
84121
84122 1998-04-26  Jim Meyering  <meyering@ascend.com>
84123
84124         * m4/assert.m4: New file.
84125         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84126
84127 1998-04-05  Jim Meyering  <meyering@ascend.com>
84128
84129         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84130         (jm_PREREQ): Use it here.
84131
84132 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84133
84134         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84135         in acconfig.h.
84136
84137 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84138
84139         * m4/prereq.m4: New file.
84140         * m4/error.m4: New file.
84141         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84142
84143 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84144
84145         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84146         cache-check for the same variable -- that defeated the purpose of
84147         the test; the test program was never run.  This was a problem only
84148         on systems with losing getline functions -- HP-UX 10.20 is one.
84149         Reported by Bjorn Helgaas.
84150
84151 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84152
84153         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84154
84155 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84156
84157         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84158
84159         * m4/const.m4: New file.  Use an initializer in this declaration
84160         typedef int charset[2]; const charset x;
84161         Reported by Bob Glickstein.
84162
84163 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84164
84165         * m4/chown.m4: Fix reversed types on -1 args to chown.
84166         From Kaveh Ghazi.
84167
84168 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84169
84170         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84171         Add lseek and memchr.
84172
84173         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84174         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84175         have a 20-character limit on names.
84176
84177 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84178
84179         * m4/inttypes_h.m4: New file.
84180         * m4/uintmax_t.m4: New file.
84181         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84182
84183
84184         -----
84185
84186         Local Variables:
84187         coding: utf-8
84188         End:
84189
84190         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84191
84192         Copying and distribution of this file, with or without
84193         modification, are permitted provided the copyright notice
84194         and this notice are preserved.